[Bug libgcc/91379] internal compiler error __gcov_fork

2019-08-08 Thread cbunch at cfhp dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91379

--- Comment #4 from Clinton Bunch  ---
Setting the CFLAGS and CXXFLAGS to -O0 -g as suggested didn't help. It still
blew up at the same point building libgcc.

  Interestingly, I noticed that it doesn't blow up if the code is compiled in
-mlp64 mode, only in the default -milp32 mode.  The process successfully builds
a 64-bit libgcc_s.so

[Bug libgcc/91379] internal compiler error __gcov_fork

2019-08-07 Thread cbunch at cfhp dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91379

--- Comment #2 from Clinton Bunch  ---
As I stated, I've tried to compile 4.9.4, 5.3.0, 5.5.0, 6.1.0, 6.5.0 and 8.3.0
I get the same error on all of them.  I reported on 9.1.0 as it is the current
version.  I can't get a gcc more recent than 4.9.2 to even attempt a build and
none of these versions will compile with the HP C/C++ compiler.

[Bug libgcc/91379] New: internal compiler error __gcov_fork

2019-08-06 Thread cbunch at cfhp dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91379

Bug ID: 91379
   Summary: internal compiler error __gcov_fork
   Product: gcc
   Version: 9.1.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libgcc
  Assignee: unassigned at gcc dot gnu.org
  Reporter: cbunch at cfhp dot com
  Target Milestone: ---

Created attachment 46678
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46678=edit
The pre-processed source for libgcov-interface.c -DL_gcov_fork

Unable to build gcc-9.1.0 (or 5.3.0, 5.5.0, 6.3.0, 6.5.0, 8.1.0)

../../../gcc-9.1.0/libgcc/libgcov-interface.c: In function '__gcov_fork':
../../../gcc-9.1.0/libgcc/libgcov-interface.c:184:1: internal compiler error:
in simplify_subreg, at simplify-rtx.c:6446
  184 | }
  | ^


ia64-hp-hpux11.31

'../gcc-9.1.0/configure'
'--prefix=/opt/gcc-9.1' '--with-gmp-include=/usr/local/include'
'--with-gmp-lib=
/usr/local/lib/hpux64' '--with-mpfr-include=/usr/local/include'
'--with-mpfr-lib
=/usr/local/lib/hpux64' '--with-mpc-include=/usr/local/include'
'--with-mpc-lib=
/usr/local/lib/hpux64' '--with-gnu-as' '--without-gnu-ld' '--disable-libgcj'
'--
disable-libgomp' --enable-languages=c,c++
--with-build-time-tools=/opt/binutils/
bin CC='gcc -mlp64' CXX='g++ -mlp64'

compiling with gcc-4.9.2

two code change made to get this far:
#undef MAKE_DECL_ONE_ONLY added to gcc/config/ia64/hpux.h

change FTW *ftwbuf to FTW ftwbuf in gcov-tool.c:unlink_gcda_file to match
default prototype for HP-UX (parameter is not used in function.)