--- Comment #14 from borntraeger at de dot ibm dot com 2010-07-26 10:13
---
I have seen the original problem only with bitfields.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45017
--- Comment #13 from mikpe at it dot uu dot se 2010-07-25 17:15 ---
is non-standard. For instance, Solaris 10 doesn't have it.
Does the test case really require explicit bit fields? Does it work (as in show
the miscompile before the fix) with shift & mask operations instead?
--
h
--- Comment #12 from dave at hiauly1 dot hia dot nrc dot ca 2010-07-25
17:13 ---
Subject: Re: miscompile with bitfield and optimization
> Is endian.h available on all supported platforms?
It is not available on HP-UX.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45017
--- Comment #11 from borntraeger at de dot ibm dot com 2010-07-25 16:54
---
Something like the following should do the trick.
Is endian.h available on all supported platforms?
*** gcc.c-torture/execute/pr45017.c.orig
--- gcc.c-torture/execute/pr45017.c
***
*** 1,9
---
--- Comment #10 from mikpe at it dot uu dot se 2010-07-25 16:45 ---
This test fails on powerpc64-linux and sparc64-linux.
--
mikpe at it dot uu dot se changed:
What|Removed |Added
--- Comment #9 from ebotcazou at gcc dot gnu dot org 2010-07-25 15:44
---
On the SPARC as well.
--
ebotcazou at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #8 from danglin at gcc dot gnu dot org 2010-07-23 13:17 ---
Test fails on hppa64-hp-hpux11.11.
--
danglin at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #7 from drow at gcc dot gnu dot org 2010-07-23 02:49 ---
FYI, confirmed to fail for ColdFire.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45017
--- Comment #6 from schwab at linux-m68k dot org 2010-07-22 12:59 ---
> Huh? This is one byte, how does endianess come into play?
By the use of bitfields.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45017
--- Comment #5 from rguenther at suse dot de 2010-07-22 12:42 ---
Subject: Re: miscompile with bitfield and
optimization
On Thu, 22 Jul 2010, borntraeger at de dot ibm dot com wrote:
> --- Comment #4 from borntraeger at de dot ibm dot com 2010-07-22 12:41
> ---
> the testca
--- Comment #4 from borntraeger at de dot ibm dot com 2010-07-22 12:41
---
the testcase will fail on big endian machines.
since r2=f and r1=2 instead of r2=2 and r1=f.
Can you adopt the testcase to check the endianess?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45017
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-07-22 12:15 ---
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What|Removed |Added
Status|ASSIGNED
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-07-22 12:14 ---
Subject: Bug 45017
Author: rguenth
Date: Thu Jul 22 12:14:27 2010
New Revision: 162411
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162411
Log:
2010-07-22 Richard Guenther
PR tree-optimization/
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-07-21 16:20 ---
Confirmed. This is caused by mem-ref & VN. Thus, mine.
--
rguenth at gcc dot gnu dot org changed:
What|Removed |Added
14 matches
Mail list logo