This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/61493] New: Bug exposed by speculative devirtualizing


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61493

            Bug ID: 61493
           Summary: Bug exposed by speculative devirtualizing
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wmi at google dot com

1.cxx is attached.

$~/workarea/gcc-r211604/build/install/bin/g++ -v
Using built-in specs.
COLLECT_GCC=/usr/local/google/home/wmi/workarea/gcc-r211604/build/install/bin/g++
COLLECT_LTO_WRAPPER=/usr/local/google/home/wmi/workarea/gcc-r211604/build/install/libexec/gcc/x86_64-unknown-linux-gnu/4.10.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../src/configure --enable-languages=c,c++ --disable-bootstrap
--prefix=/usr/local/google/home/wmi/workarea/gcc-r211604/build/install
Thread model: posix
gcc version 4.10.0 20140613 (experimental) (GCC)

$~/workarea/gcc-r211604/build/install/bin/g++ -O2 1.cxx
$./a.out
not equal

$~/workarea/gcc-r211604/build/install/bin/g++ -O2 1.cxx
$./a.out
equal

$~/workarea/gcc-r211604/build/install/bin/g++ -O2
-fno-devirtualize-speculatively 1.cxx
$./a.out
equal

Google ref b/15521306


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]