From owner-p4-projects@FreeBSD.ORG Fri Sep 5 15:01:37 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D442B16A4C1; Fri, 5 Sep 2003 15:01:36 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D04216A4BF for ; Fri, 5 Sep 2003 15:01:36 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3EE543FF5 for ; Fri, 5 Sep 2003 15:01:35 -0700 (PDT) (envelope-from peter@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h85M1Z0U063519 for ; Fri, 5 Sep 2003 15:01:35 -0700 (PDT) (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h85M1Zf8063516 for perforce@freebsd.org; Fri, 5 Sep 2003 15:01:35 -0700 (PDT) Date: Fri, 5 Sep 2003 15:01:35 -0700 (PDT) Message-Id: <200309052201.h85M1Zf8063516@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm To: Perforce Change Reviews Subject: PERFORCE change 37593 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Sep 2003 22:01:37 -0000 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.