Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 313009 (PR43629) - [4.3/4.4/bad-code] sys-devel/gcc -O1+ sometimes breaks implicit struct initialization
Summary: [4.3/4.4/bad-code] sys-devel/gcc -O1+ sometimes breaks implicit struct initia...
Status: RESOLVED FIXED
Alias: PR43629
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR43629
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-03 18:45 UTC by Julien Etienne
Modified: 2010-06-10 05:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Etienne 2010-04-03 18:45:18 UTC
As detailled in gcc bug http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43629 an optimization fails in some circumstances.

The current gcc version supported by gentoo is impacted.
As a workaround you might suggest users to use -fno-tree-ssa in addition to their usual compilation CFLAGS in make.conf

The long term solution would be to patch gcc to fix the issue once the patch is available.

Currently I have experienced this bug on my x86_64

Best regards
Julien

Reproducible: Always
Comment 1 Julien Etienne 2010-04-03 21:31:49 UTC
The correct option is -fno-tree-sra ... I made a typo in my first post.
See the gcc bug report for details.

Cheers
Comment 2 SpanKY gentoo-dev 2010-06-10 05:23:42 UTC
fix is included in gcc-4.3.5 and gcc-4.4.4 releases