public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34099]  New: optimizer problem
@ 2007-11-15  6:56 rwgk at yahoo dot com
  2007-11-15  6:57 ` [Bug c++/34099] " rwgk at yahoo dot com
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: rwgk at yahoo dot com @ 2007-11-15  6:56 UTC (permalink / raw)
  To: gcc-bugs

Platform:
  Fedora release 7 (Moonshine)
  Linux idle.lbl.gov 2.6.22.9-91.fc7 #1 SMP Thu Sep 27 20:47:39 EDT 2007 x86_64
x86_64 x86_64 GNU/Linux

% g++ -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: /net/rosie/scratch2/rwgk/gcc_trunk/configure
--prefix=/net/cci-filer1/vol1/tmp/rwgk/gcc_trunk_130159_x86_64_fc7
--enable-languages=c,c++,fortran --with-mpfr=/usr
Thread model: posix
gcc version 4.3.0 20071113 (experimental) (GCC)

I'll attach a small reproducer.

It works with -O0:

% g++ -O0 -Wall multiply_bug.cpp -fno-strict-aliasing && ./a.out
(7,4)

But doesn't with -O1 or higher:

% g++ -O1 -Wall multiply_bug.cpp -fno-strict-aliasing && ./a.out
(0,0)

The reproducer #includes complex. I'm guessing it wouldn't be
hard to reduce the reproducer if necessary.

Ralf


-- 
           Summary: optimizer problem
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rwgk at yahoo dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

end of thread, other threads:[~2007-11-19 12:53 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-15  6:56 [Bug c++/34099] New: optimizer problem rwgk at yahoo dot com
2007-11-15  6:57 ` [Bug c++/34099] " rwgk at yahoo dot com
2007-11-15 10:21 ` [Bug tree-optimization/34099] [4.3 Regression] " rguenth at gcc dot gnu dot org
2007-11-15 14:56 ` rguenth at gcc dot gnu dot org
2007-11-15 15:08 ` rguenth at gcc dot gnu dot org
2007-11-15 15:40 ` rguenth at gcc dot gnu dot org
2007-11-15 15:44 ` ebotcazou at gcc dot gnu dot org
2007-11-15 15:51 ` rguenther at suse dot de
2007-11-15 16:04 ` rguenth at gcc dot gnu dot org
2007-11-15 16:06 ` rguenth at gcc dot gnu dot org
2007-11-15 16:08 ` rguenth at gcc dot gnu dot org
2007-11-15 16:38 ` rguenth at gcc dot gnu dot org
2007-11-15 17:10 ` rguenth at gcc dot gnu dot org
2007-11-15 17:17 ` rguenth at gcc dot gnu dot org
2007-11-16 10:10 ` rguenth at gcc dot gnu dot org
2007-11-16 10:36 ` rguenth at gcc dot gnu dot org
2007-11-19 12:52 ` rguenth at gcc dot gnu dot org
2007-11-19 12:53 ` rguenth 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).