------- Comment #16 from jingyu at google dot com  2010-01-15 21:14 -------
Subject: Re:  [4.4/4.5 regression] problematic 
        REG_EQUAL note added to SUBREG

Sorry. The following change would fix it on X86.

Index: testsuite/gcc.c-torture/execute/pr42691.c
===================================================================
--- 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;
 }


On Fri, Jan 15, 2010 at 1:11 PM, mikpe at it dot uu dot se
<gcc-bugzi...@gcc.gnu.org> wrote:
>
>
> ------- Comment #15 from mikpe at it dot uu dot se  2010-01-15 21:11 -------
> The test case added with this PR appears to be rather broken. On armv5tel with
> gcc-4.3 or 4.4 (without the fix) -Os -mthumb I do get an abort(), which seems
> deliberate. However, replacing -Os -mthumb with -O0 -g results in a segfault
> because deletedEntry is NULL when "*deletedEntry = 0.0;" is executed. It also
> segfaults in the same way on i686/x86_64/powerpc64 even with old non-broken
> compiler versions.
>
> Looking at the code I don't see how it could ever work, that is exit normally
> with status 0.

The test case would fail on ARM -mthumb -Os due to the bug described
in the thread.

I will fix the problem immediately.

Jing

>
>
> --
>
> mikpe at it dot uu dot se changed:
>
>           What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                 CC|                            |mikpe at it dot uu dot se
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42691
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
> You are the assignee for the bug, or are watching the assignee.
>


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42691

Reply via email to