[Bug lto/53426] [lto with ipa-pta]: ICE:create_variable_info_for at ../../gcc-trunk/gcc/tree-ssa-structalias.c:5581

vincenzo.innocente at cern dot ch gcc-bugzilla@gcc.gnu.org
Mon May 21 10:04:00 GMT 2012


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

vincenzo Innocente <vincenzo.innocente at cern dot ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.7.1
            Summary|[lto]:                      |[lto with ipa-pta]:
                   |ICE:create_variable_info_fo |ICE:create_variable_info_fo
                   |r  at                       |r  at
                   |../../gcc-trunk/gcc/tree-ss |../../gcc-trunk/gcc/tree-ss
                   |a-structalias.c:5581        |a-structalias.c:5581

--- Comment #2 from vincenzo Innocente <vincenzo.innocente at cern dot ch> 2012-05-21 08:37:22 UTC ---
apparently it is quite easy to reproduce and it is due to "-fipa-pta"
for instance using the test case in PR53337

cat boostLto.cc
#include "boost/thread/mutex.hpp"
namespace edm {
  namespace rootfix {
    boost::mutex* getGlobalMutex();
  }
}

boost::mutex* edm::rootfix::getGlobalMutex() { 
    static boost::mutex m_;
    return &m_;
}


c++ -O3 -fPIC -shared -o bha.so boostLto.cc
-I/build/ge/new-binutils/a/slc5_amd64_gcc470/external/boost/1.49.0-cms3/include
-fipa-pta[vocms123] ~/public/ctest/bugs48 $ c++ -O3 -fPIC -flto -shared -o
bha.so boostLto.cc
-I/build/ge/new-binutils/a/slc5_amd64_gcc470/external/boost/1.49.0-cms3/include
[vocms123] ~/public/ctest/bugs48 $ c++ -O3 -fPIC -flto -shared -o bha.so
boostLto.cc
-I/build/ge/new-binutils/a/slc5_amd64_gcc470/external/boost/1.49.0-cms3/include
-fipa-pta
lto1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: c++ returned 1 exit status
/afs/cern.ch/user/i/innocent/w3/gcc47slc5/bin/ld: fatal error: lto-wrapper
failed
collect2: error: ld returned 1 exit status

the preprocessed source of the above source is attached to PR53337 as well



More information about the Gcc-bugs mailing list