--- Comment #10 from hjl dot tools at gmail dot com 2008-02-14 22:56
---
Binutils is fixed by
http://sourceware.org/ml/binutils/2008-02/msg00152.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35200
--- Comment #9 from pinskia at gmail dot com 2008-02-14 22:09 ---
Subject: Re: [4.3 Regression] bogus aliasing warning
On 14 Feb 2008 20:54:18 -, hjl dot tools at gmail dot com
<[EMAIL PROTECTED]> wrote:
> Where is this documented in ISO C?
There is a Defect Report explicitly abo
On 14 Feb 2008 20:54:18 -, hjl dot tools at gmail dot com
<[EMAIL PROTECTED]> wrote:
> Where is this documented in ISO C?
There is a Defect Report explicitly about this:
http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_236.htm
-- Pinski
--- Comment #8 from rguenth at gcc dot gnu dot org 2008-02-14 21:23 ---
See 6.5/6 and /7
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35200
--- Comment #7 from rguenth at gcc dot gnu dot org 2008-02-14 21:19 ---
ISO C even disallows type-punning with unions (which is in fact a GNU
extension):
union { int i; float f } u;
u.i = 1;
return u.f;
invokes undefined behavior in ISO C. You have to use memcpy and two different
memo
--- Comment #6 from hjl dot tools at gmail dot com 2008-02-14 20:54 ---
(In reply to comment #5)
> Can you when you debug the function, please dump the VOPs also since then it
> should become obvious the issue.
>
> Anyways I don't think this an bogus warning and really I think this is a
--- Comment #5 from pinskia at gcc dot gnu dot org 2008-02-14 20:21 ---
Can you when you debug the function, please dump the VOPs also since then it
should become obvious the issue.
Anyways I don't think this an bogus warning and really I think this is a code
issue.
This is actually do
--- Comment #4 from hjl dot tools at gmail dot com 2008-02-14 20:16 ---
The first time we saw it is last Nov. But it is very hard to reproduce.
Any changes in input will make the warning to disappear. Here is what
Xuepeng got
The warning are caused by SSA and type-punning:
[EMAIL PROTE
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-02-14 20:00 ---
Oh there is an union here.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added