public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/55236] New: [4.8 Regression] gcc.c-torture/execute/pr22493-1.c FAILs with -fPIC
@ 2012-11-07 21:10 zsojka at seznam dot cz
  2012-11-08 16:18 ` [Bug tree-optimization/55236] " jakub at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2012-11-07 21:10 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55236
           Summary: [4.8 Regression] gcc.c-torture/execute/pr22493-1.c
                    FAILs with -fPIC
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


Created attachment 28631
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28631
testcase (gcc.c-torture/execute/pr22493-1.c)

Output:
$ gcc -O2 -fPIC -fwrapv testcase.c
$ ./a.out 
Aborted

The problem seems to be that f() is optimised just to abort().
In the -fPIC case, f() is called, and the program aborts.
Without -fPIC, f() is not called, so the program doesn't abort - though the
body of f() is reduced to just abort() as well.

Tested revisions:
r193182 - FAIL
4.7 r191640 - OK


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

end of thread, other threads:[~2013-02-01 14:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-07 21:10 [Bug tree-optimization/55236] New: [4.8 Regression] gcc.c-torture/execute/pr22493-1.c FAILs with -fPIC zsojka at seznam dot cz
2012-11-08 16:18 ` [Bug tree-optimization/55236] " jakub at gcc dot gnu.org
2012-11-17 22:00 ` jakub at gcc dot gnu.org
2012-11-19  9:39 ` [Bug tree-optimization/55236] " jakub at gcc dot gnu.org
2013-01-07 10:07 ` rguenth at gcc dot gnu.org
2013-02-01 13:59 ` jakub at gcc dot gnu.org
2013-02-01 14:24 ` jakub 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).