public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/58034] New: glibc nptl/tst-cleanup2 fail due to scheduling
@ 2013-07-31  0:21 amodra at gmail dot com
  2013-07-31 13:59 ` [Bug rtl-optimization/58034] " dje at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: amodra at gmail dot com @ 2013-07-31  0:21 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58034
           Summary: glibc nptl/tst-cleanup2 fail due to scheduling
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amodra at gmail dot com

Created attachment 30575
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30575&action=edit
preprocessed test case

nprl/tst-cleanup2 fails when compiled with -O2 -mcpu=power6 due to sched1
moving an assignment to a REG over code that traps.

The relevant test case source:

  if (setjmp (jmpbuf))
    {
      puts ("Exiting main...");
      return 0;
    }

  sprintf (p, "This should segv\n");

  return 1;
}

The sprintf is optimised to three loads and stores.  The problem occurs due to
the assignment of 1 to the REG holding the function return value being
scheduled before the sprintf expansion.


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

end of thread, other threads:[~2013-08-19  9:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-31  0:21 [Bug rtl-optimization/58034] New: glibc nptl/tst-cleanup2 fail due to scheduling amodra at gmail dot com
2013-07-31 13:59 ` [Bug rtl-optimization/58034] " dje at gcc dot gnu.org
2013-07-31 15:31 ` pinskia at gcc dot gnu.org
2013-07-31 15:46 ` dje at gcc dot gnu.org
2013-07-31 15:52 ` pinskia at gcc dot gnu.org
2013-08-01  1:08 ` amodra at gmail dot com
2013-08-06 23:00 ` [Bug rtl-optimization/58034] [4.8/4.9 Regression] " joseph at codesourcery dot com
2013-08-19  9:53 ` 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).