public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/36077]  New: Expressions result is wrong
@ 2008-04-29 10:22 peter at xmos dot com
  2008-04-29 10:23 ` [Bug c/36077] " peter at xmos dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: peter at xmos dot com @ 2008-04-29 10:22 UTC (permalink / raw)
  To: gcc-bugs

I am developing a test generator for in house compilers and have come across a
difference where gcc does not agree with our compilers or the Microsoft
compiler.

The result t1_2a of the expression is what differs between gcc and other
compilers.

This is on gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-9), and does not matter what
the platform is.

Compiled with:

$ gcc4 test.c -o test.exe
$ ./test.exe
Error:
t1_2a ffffffff
t1_2b 22a8b02e
t1_2c 0

Working:
t2_2a 0
t2_2b 0

When compared to running on Visual Studio:

$ cl test.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for
80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

test.c
Microsoft (R) Incremental Linker Version 8.00.50727.762
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:test.exe
test.obj

$ ./test.exe
Error:
t1_2a 0
t1_2b 22a8b02e
t1_2c 0

Working:
t2_2a 0
t2_2b 0


-- 
           Summary: Expressions result is wrong
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: peter at xmos dot com
 GCC build triplet: gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)
  GCC host triplet: Linux 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:56:44 EST 2007
                    x86_64 x
GCC target triplet: Target: x86_64-redhat-linux


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


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

end of thread, other threads:[~2009-03-31 15:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-29 10:22 [Bug c/36077] New: Expressions result is wrong peter at xmos dot com
2008-04-29 10:23 ` [Bug c/36077] " peter at xmos dot com
2008-04-29 10:23 ` peter at xmos dot com
2008-04-29 11:41 ` [Bug middle-end/36077] " rguenth at gcc dot gnu dot org
2008-04-29 11:41 ` rguenth at gcc dot gnu dot org
2008-04-29 13:54 ` rguenth at gcc dot gnu dot org
2008-04-29 13:54 ` rguenth at gcc dot gnu dot org
2008-04-29 15:14 ` [Bug middle-end/36077] [4.1/4.2 Regression] " rguenth at gcc dot gnu dot org
2008-04-29 15:14 ` [Bug middle-end/36077] " rguenth at gcc dot gnu dot org
2008-05-19 20:35 ` [Bug middle-end/36077] [4.1/4.2 Regression] " jsm28 at gcc dot gnu dot org
2008-07-04 23:03 ` [Bug middle-end/36077] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-31 15:37 ` jsm28 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).