Date: Fri, 5 Sep 2003 15:01:35 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 37593 for review Message-ID: <200309052201.h85M1Zf8063516@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=37593 Change 37593 by peter@peter_daintree on 2003/09/05 15:01:12 use brute force to make damn sure the backend is compiled with -g and -static to get the best chance of gdb making sense of the gcc coredumps Affected files ... .. //depot/projects/ezm3/language/modula3/m3compiler/m3cc/gcc/gcc/Makefile.in#4 edit Differences ... ==== //depot/projects/ezm3/language/modula3/m3compiler/m3cc/gcc/gcc/Makefile.in#4 (text+ko) ==== @@ -65,9 +65,9 @@ # TCFLAGS is used for compilations with the GCC just built. XCFLAGS = TCFLAGS = -CFLAGS = -g +CFLAGS = -g -static STAGE1_CFLAGS = -g @stage1_cflags@ -BOOT_CFLAGS = -g -O2 +BOOT_CFLAGS = -g -static # The warning flags are separate from BOOT_CFLAGS because people tend to # override optimization flags and we'd like them to still have warnings @@ -102,7 +102,7 @@ T_CPPFLAGS = AWK = @AWK@ -CC = @CC@ +CC = @CC@ -g -static BISON = @BISON@ BISONFLAGS = FLEX = @FLEX@ @@ -582,13 +582,13 @@ # IN_GCC distinguishes between code compiled into GCC itself and other # programs built during a bootstrap. # autoconf inserts -DCROSS_COMPILE if we are building a cross compiler. -INTERNAL_CFLAGS = -DIN_GCC @CROSS@ +INTERNAL_CFLAGS = -DIN_GCC @CROSS@ -g -static # This is the variable actually used when we compile. # If you change this line, you probably also need to change the definition # of HOST_CFLAGS in build-make to match. ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) \ - $(CFLAGS) $(WARN_CFLAGS) $(XCFLAGS) @DEFS@ + $(CFLAGS) $(WARN_CFLAGS) $(XCFLAGS) @DEFS@ -g -static # Likewise. ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS) @@ -630,7 +630,7 @@ # Always use -I$(srcdir)/config when compiling. .c.o: - $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION) + $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) -g $(INCLUDES) $< $(OUTPUT_OPTION) # This tells GNU make version 3 not to export all the variables # defined in this file into the environment. @@ -962,7 +962,7 @@ cp xgcc$(exeext) gcc-cross$(exeext) cc1$(exeext): $(C_OBJS) $(BACKEND) $(LIBDEPS) - $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cc1$(exeext) \ + $(CC) $(ALL_CFLAGS) $(LDFLAGS) -g -static -o cc1$(exeext) \ $(C_OBJS) $(BACKEND) $(LIBS) # Build the version of limits.h that we will install.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309052201.h85M1Zf8063516>