public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/24146] New: Optimizes away FPU control word store
@ 2005-09-30 13:42 rguenth at gcc dot gnu dot org
  2005-09-30 13:46 ` [Bug tree-optimization/24146] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 15+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-09-30 13:42 UTC (permalink / raw)
  To: gcc-bugs

For the following testcase, the call to mpfr_test_init is optimized away
at -O1 and up.  Which is of course bogous(?).

void mpfr_test_init (void);
void mpfr_test_init ()
{
  do { int __cw = (0x037f & (~0x300)) | 0x200; __asm__ ("fldcw %0" : : "m"
(__cw)); } while (0);
}

int
main (void)
{
  mpfr_test_init ();
  return 0;
}

-- 
           Summary: Optimizes away FPU control word store
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i686-pc-linux-gnu


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


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

end of thread, other threads:[~2005-09-30 19:52 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-30 13:42 [Bug tree-optimization/24146] New: Optimizes away FPU control word store rguenth at gcc dot gnu dot org
2005-09-30 13:46 ` [Bug tree-optimization/24146] " pinskia at gcc dot gnu dot org
2005-09-30 13:58 ` rearnsha at gcc dot gnu dot org
2005-09-30 14:07   ` Daniel Berlin
2005-09-30 14:00 ` [Bug tree-optimization/24146] [4.0 Regression] " rguenth at gcc dot gnu dot org
2005-09-30 14:04 ` pinskia at gcc dot gnu dot org
2005-09-30 14:07 ` pinskia at gcc dot gnu dot org
2005-09-30 14:18   ` Daniel Berlin
2005-09-30 14:07 ` dberlin at dberlin dot org
2005-09-30 14:11 ` bonzini at gcc dot gnu dot org
2005-09-30 14:11 ` bonzini at gcc dot gnu dot org
2005-09-30 14:17 ` pinskia at gcc dot gnu dot org
2005-09-30 14:19 ` dberlin at dberlin dot org
2005-09-30 14:36 ` [Bug middle-end/24146] [4.0/4.1 Regression] ASMs with no output are not marked as volatile pinskia at gcc dot gnu dot org
2005-09-30 19:52 ` rth at gcc dot gnu dot 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).