public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/21809] New: [3.4/4.0/4.1 Regression] Floating Optimization Bug
@ 2005-05-29 16:24 themis_hv at yahoo dot co dot uk
  2005-05-29 16:25 ` [Bug rtl-optimization/21809] " pinskia at gcc dot gnu dot org
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: themis_hv at yahoo dot co dot uk @ 2005-05-29 16:24 UTC (permalink / raw)
  To: gcc-bugs

This problems occurs with GCC 3.4.4, gcc-4.0-20050521 snapshot and
gcc-4.1-20050528 snapshot.


test-case.c:
#include <assert,h>
volatile float x = 3;
int main()
{
float a = 1 / x;
x = a;
assert(a == x);
}


This case (test-case.c) works with gcc -O0 without a problem.

But with gcc {-O1,-O2,-O3,-Os} causes the following error:
test: test.c:9: main: Assertion 'a == x' failed'

-- 
           Summary: [3.4/4.0/4.1 Regression] Floating Optimization Bug
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: themis_hv at yahoo dot co dot uk
                CC: gcc-bugs at gcc dot gnu dot org,themis_hv at yahoo dot
                    co dot uk
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

end of thread, other threads:[~2005-05-29 20:09 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-29 16:24 [Bug rtl-optimization/21809] New: [3.4/4.0/4.1 Regression] Floating Optimization Bug themis_hv at yahoo dot co dot uk
2005-05-29 16:25 ` [Bug rtl-optimization/21809] " pinskia at gcc dot gnu dot org
2005-05-29 16:44 ` pinskia at gcc dot gnu dot org
2005-05-29 17:04 ` themis_hv at yahoo dot co dot uk
2005-05-29 17:18 ` [Bug target/21809] " pinskia at gcc dot gnu dot org
2005-05-29 18:04 ` themis_hv at yahoo dot co dot uk
2005-05-29 18:27 ` pinskia at gcc dot gnu dot org
2005-05-29 19:06 ` pinskia at gcc dot gnu dot org
2005-05-29 19:06 ` themis_hv at yahoo dot co dot uk
2005-05-29 19:24 ` themis_hv at yahoo dot co dot uk
2005-05-29 19:24 ` pinskia at gcc dot gnu dot org
2005-05-29 19:31 ` themis_hv at yahoo dot co dot uk
2005-05-29 19:32 ` pinskia at gcc dot gnu dot org
2005-05-29 19:32 ` themis_hv at yahoo dot co dot uk
2005-05-29 19:35 ` pinskia at gcc dot gnu dot org
2005-05-29 19:37 ` themis_hv at yahoo dot co dot uk
2005-05-29 19:43 ` joseph at codesourcery dot com
2005-05-29 19:44 ` pinskia at gcc dot gnu dot org
2005-05-29 19:48 ` pinskia at gcc dot gnu dot org
2005-05-29 19:48 ` themis_hv at yahoo dot co dot uk
2005-05-29 19:56 ` pinskia at gcc dot gnu dot org
2005-05-29 19:56 ` themis_hv at yahoo dot co dot uk
2005-05-29 20:33 ` themis_hv at yahoo dot co dot uk

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).