public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/48331] New: [4.7 Regression] gcc.c-torture/execute/built-in-setjmp.c FAILs with -O -fira-algorithm=priority -fPIC
@ 2011-03-29 12:10 zsojka at seznam dot cz
  2011-03-29 12:54 ` [Bug rtl-optimization/48331] " zsojka at seznam dot cz
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2011-03-29 12:10 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.7 Regression]
                    gcc.c-torture/execute/built-in-setjmp.c FAILs with -O
                    -fira-algorithm=priority -fPIC
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


Created attachment 23797
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23797
reduced testcase

Output:
$ gcc -O -fira-algorithm=priority -fPIC testcase.c
$ valgrind -q ./a.out  
==1889== Use of uninitialised value of size 8
==1889==    at 0x400599: sub2 (testcase.c:6)
==1889==    by 0x4E4EB6C: (below main) (in /lib64/libc-2.11.3.so)
==1889== 
==1889== Jump to the invalid address stated on the next line
==1889==    at 0x0: ???
==1889==    by 0x4E4EB6C: (below main) (in /lib64/libc-2.11.3.so)
==1889==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1889== 
==1889== 
==1889== Process terminating with default action of signal 11 (SIGSEGV)
==1889==  Bad permissions for mapped region at address 0x0
==1889==    at 0x0: ???
==1889==    by 0x4E4EB6C: (below main) (in /lib64/libc-2.11.3.so)
Segmentation fault


Tested revisions:
r171653 - fail
r171626 - OK


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-03-30  8:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-29 12:10 [Bug rtl-optimization/48331] New: [4.7 Regression] gcc.c-torture/execute/built-in-setjmp.c FAILs with -O -fira-algorithm=priority -fPIC zsojka at seznam dot cz
2011-03-29 12:54 ` [Bug rtl-optimization/48331] " zsojka at seznam dot cz
2011-03-29 14:37 ` zsojka at seznam dot cz
2011-03-29 15:24 ` vmakarov at redhat dot com
2011-03-29 21:43 ` vmakarov at gcc dot gnu.org
2011-03-30  1:49 ` hp at gcc dot gnu.org
2011-03-30  8:41 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).