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: "mikpe at it dot uu dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jan 2010 21:42:35 -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 #17 from mikpe at it dot uu dot se 2010-01-15 21:42 -------
(In reply to comment #16)
> --- testsuite/gcc.c-torture/execute/pr42691.c (revision 155944)
> +++ testsuite/gcc.c-torture/execute/pr42691.c (working copy)
> @@ -26,7 +26,8 @@
>
> i++;
> }
> - *deletedEntry = 0.0;
> + if (deletedEntry)
> + *deletedEntry = 0.0;
> return 0;
> }
Thanks, with this fix the test case exits normally with -O0 on both arm and
i686, but abort()s as intended with -Os -mthumb with 4.4 (pre-fix) on arm.
BTW, gcc-4.3.4 is also broken but gcc-4.2.4 works.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42691