Re: Clang 3.3 findings and Illegal Shifts - Mailing list pgsql-bugs

From Andres Freund
Subject Re: Clang 3.3 findings and Illegal Shifts
Date
Msg-id 20131113073525.GB5666@awork2.anarazel.de
Whole thread Raw
In response to Clang 3.3 findings and Illegal Shifts  (Jeffrey Walton <noloader@gmail.com>)
Responses Re: Clang 3.3 findings and Illegal Shifts  (Kevin Grittner <kgrittn@ymail.com>)
List 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

pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: BUG #8587: quantile segfaults when quantile out of [0;1] range
Next
From: Jeffrey Walton
Date:
Subject: be-secure.c and SSL/TLS