Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439432 (PR52445) - sys-devel/gcc-4.6.3 - conditional store replacement causes segfault in generated code
Summary: sys-devel/gcc-4.6.3 - conditional store replacement causes segfault in genera...
Status: RESOLVED FIXED
Alias: PR52445
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR52445
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-23 18:14 UTC by Steev Klimaszewski (RETIRED)
Modified: 2012-11-25 03:06 UTC (History)
1 user (show)

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 Steev Klimaszewski (RETIRED) gentoo-dev 2012-10-23 18:14:21 UTC
(From upstream bug report)
The cond_store_replacement() optimization can move a memory access outside of a
conditional statement that checks whether it is safe to access the memory. 
This can cause the program to segfault.

(Last comment in upstream bug report)
A recently reported miscompilation
of a device driver in the Linux/ARM kernel by gcc-4.6.3 was traced to this bug.
 Applying the trunk patch to 4.6.3 fixed that test case.

Reproducible: Always




This patch has been applied upstream to the 4.7 series.  I'd like it if we could apply it to 4.6.  It's been requested in the bug to be applied for a 4.6.4 release, and I'm running it locally here and it does indeed fix the issue.