[Bug c/68589] New: internal compiler error: Segmentation fault

2015-11-27 Thread bacon at cs dot nyu.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68589

Bug ID: 68589
   Summary: internal compiler error: Segmentation fault
   Product: gcc
   Version: 4.9.3
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: bacon at cs dot nyu.edu
  Target Milestone: ---

Created attachment 36859
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36859&action=edit
Preprocessor output

Here is the command line and output:

$ gcc -v -save-temps -std=gnu99 -DHAVE_CONFIG_H -I.
-I../../../../../setl-2.3.5/src/run/gmp-setl/mpn -I.. -D__GMP_WITHIN_GMP
-I../../../../../setl-2.3.5/src/run/gmp-setl
-I../../../../../setl-2.3.5/src/run/gmp-setl/..
-I../../../../../setl-2.3.5/src/run/gmp-setl/../.. -I../.. -I../../..
-DOPERATION_mp_bases -g -O2 -Wall -Wextra -Wcast-qual -Wc++-compat
-Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wmissing-format-attribute -Wmissing-noreturn -c
../../../../../setl-2.3.5/src/run/gmp-setl/mpn/mp_bases.c -o mp_bases.o
Using built-in specs.
COLLECT_GCC=gcc
Target: x86_64-pc-cygwin
Configured with:
/cygdrive/i/szsz/tmpp/gcc/gcc-4.9.3-1.x86_64/src/gcc-4.9.3/configure
--srcdir=/cygdrive/i/szsz/tmpp/gcc/gcc-4.9.3-1.x86_64/src/gcc-4.9.3
--prefix=/usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc
--docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C
--build=x86_64-pc-cygwin --host=x86_64-pc-cygwin --target=x86_64-pc-cygwin
--without-libiconv-prefix --without-libintl-prefix --libexecdir=/usr/lib
--enable-shared --enable-shared-libgcc --enable-static
--enable-version-specific-runtime-libs --enable-bootstrap --enable-__cxa_atexit
--with-dwarf2 --with-tune=generic
--enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-graphite
--enable-threads=posix --enable-libatomic --enable-libgomp --disable-libitm
--enable-libquadmath --enable-libquadmath-support --enable-libssp
--enable-libada --enable-libgcj-sublibs --disable-java-awt --disable-symvers
--with-ecj-jar=/usr/share/java/ecj.jar --with-gnu-ld --with-gnu-as
--with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix
--without-libintl-prefix --with-system-zlib --enable-linker-build-id
Thread model: posix
gcc version 4.9.3 (GCC)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=gnu99' '-D' 'HAVE_CONFIG_H' '-I'
'.' '-I' '../../../../../setl-2.3.5/src/run/gmp-setl/mpn' '-I' '..' '-D'
'__GMP_WITHIN_GMP' '-I' '../../../../../setl-2.3.5/src/run/gmp-setl' '-I'
'../../../../../setl-2.3.5/src/run/gmp-setl/..' '-I'
'../../../../../setl-2.3.5/src/run/gmp-setl/../..' '-I' '../..' '-I' '../../..'
'-D' 'OPERATION_mp_bases' '-g' '-O2' '-Wall' '-Wextra' '-Wcast-qual'
'-Wc++-compat' '-Wpointer-arith' '-Wbad-function-cast' '-Wcast-align'
'-Wwrite-strings' '-Wstrict-prototypes' '-Wmissing-prototypes'
'-Wmissing-declarations' '-Wsuggest-attribute=format'
'-Wsuggest-attribute=noreturn' '-c' '-o' 'mp_bases.o' '-mtune=generic'
'-march=x86-64'
 /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/cc1.exe -E -quiet -v -I . -I
../../../../../setl-2.3.5/src/run/gmp-setl/mpn -I .. -I
../../../../../setl-2.3.5/src/run/gmp-setl -I
../../../../../setl-2.3.5/src/run/gmp-setl/.. -I
../../../../../setl-2.3.5/src/run/gmp-setl/../.. -I ../.. -I ../../.. -Dunix
-idirafter
/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../lib/../include/w32api
-idirafter
/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/lib/../lib/../../include/w32api
-D HAVE_CONFIG_H -D __GMP_WITHIN_GMP -D OPERATION_mp_bases
../../../../../setl-2.3.5/src/run/gmp-setl/mpn/mp_bases.c -mtune=generic
-march=x86-64 -std=gnu99 -Wall -Wextra -Wcast-qual -Wc++-compat -Wpointer-arith
-Wbad-function-cast -Wcast-align -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wsuggest-attribute=format
-Wsuggest-attribute=noreturn -g -fworking-directory -O2 -fpch-preprocess -o
mp_bases.i
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/include"
ignoring duplicate directory
"/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/lib/../lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
 .
 ../../../../../setl-2.3.5/src/run/gmp-setl/mpn
 ..
 ../../../../../setl-2.3.5/src/run/gmp-setl
 ../../../../../setl-2.3.5/src

[Bug c/68589] internal compiler error: Segmentation fault

2015-11-27 Thread bacon at cs dot nyu.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68589

--- Comment #1 from David Bacon  ---
Version 5.2.0 of gcc for the same Cygwin 64-bit platform fails in the same way
on the same source line.

[Bug c/68589] internal compiler error: Segmentation fault

2015-11-27 Thread bacon at cs dot nyu.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68589

--- Comment #3 from David Bacon  ---
A workaround for this gcc bug is to replace the offending 1e37 (the only one in
the .i file) with 10.1 (1{37 zeroes}.1). 
That works in the 5.2.0 case, anyway.

It is worth noting also that the segfault occurred with every pure positive
power of 10 that I tried (quite a few):  the .1 matters, if not to the
floating-point value realized.

  dB

[Bug c/68589] internal compiler error: Segmentation fault

2015-11-27 Thread bacon at cs dot nyu.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68589

--- Comment #2 from David Bacon  ---
A workaround for this gcc bug is to replace the offending 1e37 (the only one in
the .i file) with 10.1 (1{37 zeroes}.1). 
That works in the 5.2.0 case, anyway.

It is worth noting also that the segfault occurred with every pure positive
power of 10 that I tried (quite a few):  the .1 matters, if not to the
floating-point value realized.

  dB

[Bug c/68589] internal compiler error: Segmentation fault

2015-11-28 Thread bacon at cs dot nyu.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68589

--- Comment #4 from David Bacon  ---
This bug was first observed in gcc 4.9.3, but since it is also present in
5.2.0, I have changed the Version field in this bug report from 4.9.3 to 5.2.0.

  dB

[Bug c/68589] internal compiler error: Segmentation fault

2015-12-01 Thread bacon at cs dot nyu.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68589

--- Comment #6 from David Bacon  ---
I haven't run into this issue on Linux either, only on Cygwin.

dB