This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/51528] New: SRA should not create BOOLEAN_TYPE replacements
- From: "jamborm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 Dec 2011 15:24:14 +0000
- Subject: [Bug tree-optimization/51528] New: SRA should not create BOOLEAN_TYPE replacements
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51528
Bug #: 51528
Summary: SRA should not create BOOLEAN_TYPE replacements
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: jamborm@gcc.gnu.org
ReportedBy: jamborm@gcc.gnu.org
We already do not create ENUMERAL_TYPE replacements in SRA and neither
we should be creating BOOLEAN_TYPE ones because that can lead to
miscompilations, as the attached testcase shows. Like in the enumeral
case, we should only create replacements of types with precision that
matches their mode size.
I'll take care of that.