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]

gcc-2.95.2, Next 4.2, compiler errors when nonoptimized


NeXT Cube running Openstep 4.2.
gmake CFLAGS='-O2' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2
-fno-implicit-templates' bootstrap

The native compiler aborts with signal 6 when compiling several files in  
stage1. Curiously the bug goes away when -O2 is specified.

I'm not sure how this should really be fixed. Here's the patch for  
gcc/Makefile.in anyway.

*** Makefile.in.orig    Sun Oct 31 19:54:34 1999
--- Makefile.in Sun Oct 31 19:54:42 1999
***************
*** 69,75 ****
  XCFLAGS =
  TCFLAGS =
  # -W -Wall warnings are disabled for releases.
! CFLAGS = -g
  BOOT_CFLAGS = -O2 $(CFLAGS)
  #WARN_CFLAGS = -W -Wall
  # These exists to be overridden by the x-* and t-* files, respectively.
--- 69,75 ----
  XCFLAGS =
  TCFLAGS =
  # -W -Wall warnings are disabled for releases.
! CFLAGS = -g -O2
  BOOT_CFLAGS = -O2 $(CFLAGS)
  #WARN_CFLAGS = -W -Wall
  # These exists to be overridden by the x-* and t-* files, respectively.

---
Where diesel guitars from faraway bars, blast out the
best songs from our holy wars. Coyote carnival catches
on fire, all the cops in the world pick us up on radar.
Jim McKelvey  mckelvey@fafnir.com



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