Re: Clang 3.3 findings and Illegal Shifts

From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: Jeffrey Walton <noloader(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Clang 3.3 findings and Illegal Shifts
Date: 2013-11-13 07:35:25
Message-ID: 20131113073525.GB5666@awork2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 2013-11-12 19:58:31 -0500, Jeffrey Walton wrote:
> Here are Clang 3.3 findings regarding illegal shifts. The code will be
> subject to removal by the compiler and optimizer (and linker if LTO is
> used).

> /home/jwalton/postgresql-9.3.1/src/test/regress/./tmp_check/data/base/1
> ... localtime.c:127:20: runtime error: left shift of negative value -1

Those all seem to be runtime errors, so they aren't likely to be removed
by the compiler. That's not to say they shouldn't be looked at though.

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Jeffrey Walton 2013-11-13 07:52:35 be-secure.c and SSL/TLS
Previous Message Michael Paquier 2013-11-13 06:18:22 Re: BUG #8587: quantile segfaults when quantile out of [0;1] range