This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/42691] [4.4/4.5 regression] problematic REG_EQUAL note added to SUBREG
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jan 2010 16:05:23 -0000
- Subject: [Bug rtl-optimization/42691] [4.4/4.5 regression] problematic REG_EQUAL note added to SUBREG
- References: <bug-42691-17567@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #24 from jakub at gcc dot gnu dot org 2010-01-16 16:05 -------
In the preprocessor you can do #if __SIZEOF_DOUBLE__ == 4 * __SIZEOF_SHORT__
(and in #else just have a int main (void) { return 0; }).
Or you could in main do if (sizeof (double) != 4 * sizeof (short)) return 0;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42691