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

            Bug ID: 59053
           Summary: cilkplus branch compiler loops
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: john.forrest at fastercoin dot com

Created attachment 31184
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31184&action=edit
preprocessed file from 25 line function using sort from cilkpub

When compiling a small C++ function with latest cilkplus branch the compiler
loops (well killed after an hour).  Tried on 4.8 and get an internal compiler
error which may be a clue. .ii file attached
=====================
4.9 gcc -v and output
=====================
Build Specs - latest svn update of 4.9 cilkplus
--------------
john@fasterCoin2:~/cbcstable/2.8/s3/source/oct1413/pg$ /j/mycilk6/bin/g++ -v
Using built-in specs.
COLLECT_GCC=/j/mycilk6/bin/g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../cilk6/configure --prefix=/j/mycilk6 --libexecdir=/usr/lib
--enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++
--disable-multilib --disable-bootstrap --with-system-zlib CFLAGS='-fPIC
-I/j/mycilk4/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/include/ -march=x86-64'
LD=/usr/bin/ld LDFLAGS='-L/usr/lib/x86_64-linux-gnu -L/usr/local/lib/ -lz
-lpthread -lrt'
CXXFLAGS='-I/j/mycilk4/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/include
-I/j/mycilk4/include/c++/4.8.0/x86_64-unknown-linux-gnu
-I/j/mycilk4/include/c++/4.8.0/' : (reconfigured) ../cilk6/configure
--prefix=/j/mycilk6 --libexecdir=/usr/lib --enable-__cxa_atexit
--enable-clocale=gnu --enable-languages=c,c++ --disable-multilib
--disable-bootstrap --with-system-zlib CFLAGS='-fPIC -I/usr/include
-I/j/cilk6/libstdc++-v3/include -march=x86-64' LD=/usr/bin/ld : (reconfigured)
../cilk6/configure --prefix=/j/mycilk6 --libexecdir=/usr/lib
--enable-__cxa_atexit --enable-clocale=gnu --disable-multilib
--disable-bootstrap --with-system-zlib CFLAGS='-fPIC -I/usr/include
-I/j/cilk6/libstdc++-v3/include -march=x86-64' LD=/usr/bin/ld
--enable-languages=c,c++,lto --no-create --no-recursion
Thread model: posix
gcc version 4.9.0 20130520 (experimental) (GCC) 
----------
Command line
/j/mycilk6/bin/g++ -Wall -O0 -fcilkplus misc_cpp.ii
-----------
Output - none

With old 4.8 version
In file included from ../misc_cpp.cpp:6:0:
/j/cilkpub/include/cilkpub/sort.h: In function ‘void
cilkpub::internal::repack_and_subsort(RandomAccessIterator,
RandomAccessIterator, size_t, ValueType*, const size_t (*)[32], Compare) [with
RandomAccessIterator = CoinPair<int, int>*; ValueType = CoinPair<int, int>;
Compare = CoinFirstLess_2<int, int>; size_t = long unsigned int]’:
/j/cilkpub/include/cilkpub/sort.h:433:14: internal compiler error: Segmentation
fault
         void repack_and_subsort( RandomAccessIterator xs,
              ^
Please submit a full bug report,
with preprocessed source if appropriate.

Reply via email to