public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/48331] New: [4.7 Regression] gcc.c-torture/execute/built-in-setjmp.c FAILs with -O -fira-algorithm=priority -fPIC
Date: Tue, 29 Mar 2011 12:10:00 -0000	[thread overview]
Message-ID: <bug-48331-4@http.gcc.gnu.org/bugzilla/> (raw)

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


             reply	other threads:[~2011-03-29 11:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-29 12:10 zsojka at seznam dot cz [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-48331-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).