Browse Source
* configure.ac (with-build-config): Document. Handle without. Handle missing argument. * configure: Rebuilt. config/ChangeLog: * bootstrap-debug-big.mk (STAGE2_CFLAGS): Drop -gtoggle. * bootstrap-debug-lean.mk: Update comments. (STAGE2_CFLAGS): Likewise. (do-compare): Don't override. ChangeLog: * configure.ac (with-build-config): Document. Handle without. Handle missing argument. * configure: Rebuilt.gdb_7_0-branch
12 changed files with 183 additions and 9 deletions
@ -0,0 +1,8 @@ |
|||
# This BUILD_CONFIG option is a bit like bootstrap-debug-lean, but it
|
|||
# trades space for speed: instead of recompiling programs during
|
|||
# stage3, it generates dumps during stage2 and stage3, saving them all
|
|||
# until the final compare.
|
|||
|
|||
STAGE2_CFLAGS += -fdump-final-insns |
|||
STAGE3_CFLAGS += -fdump-final-insns |
|||
do-compare = $(SHELL) $(srcdir)/contrib/compare-debug $$f1 $$f2 |
|||
@ -0,0 +1,16 @@ |
|||
# This BUILD_CONFIG option is to be used along with
|
|||
# bootstrap-debug-lean and bootstrap-debug-lib in a full bootstrap, to
|
|||
# check that all host and target files are built with -fcompare-debug.
|
|||
|
|||
# These arrange for a simple warning to be issued if -fcompare-debug
|
|||
# is not given.
|
|||
# BOOT_CFLAGS += -fcompare-debug="-w%n-fcompare-debug not overridden"
|
|||
# TFLAGS += -fcompare-debug="-w%n-fcompare-debug not overridden"
|
|||
|
|||
# GCC_COMPARE_DEBUG="-w%n-fcompare-debug not overridden";
|
|||
|
|||
FORCE_COMPARE_DEBUG = \
|
|||
GCC_COMPARE_DEBUG=$${GCC_COMPARE_DEBUG--fcompare-debug-not-overridden}; \
|
|||
export GCC_COMPARE_DEBUG; |
|||
POSTSTAGE1_HOST_EXPORTS += $(FORCE_COMPARE_DEBUG) |
|||
BASE_TARGET_EXPORTS += $(FORCE_COMPARE_DEBUG) |
|||
@ -0,0 +1,11 @@ |
|||
# This BUILD_CONFIG option is a bit like bootstrap-debug, but rather
|
|||
# than comparing stripped object files, it compares compiler internal
|
|||
# state during stage3. Both can be used simultaneously.
|
|||
|
|||
# This makes it slower than bootstrap-debug alone, for there's
|
|||
# additional dumping and recompilation during stage3.
|
|||
# bootstrap-debug-big can avoid the recompilation, if plenty of disk
|
|||
# space is available.
|
|||
|
|||
STAGE2_CFLAGS += -fcompare-debug= |
|||
STAGE3_CFLAGS += -fcompare-debug |
|||
@ -0,0 +1,12 @@ |
|||
# This BUILD_CONFIG option tests that target libraries built during
|
|||
# stage3 would have generated the same executable code if they were
|
|||
# compiled with -g0.
|
|||
|
|||
# It uses -g0 rather than -gtoggle because -g is default on target
|
|||
# library builds, and toggling it where it's supposed to be disabled
|
|||
# breaks e.g. crtstuff on ppc.
|
|||
|
|||
STAGE1_TFLAGS += -g0 -fcompare-debug= |
|||
STAGE2_TFLAGS += -fcompare-debug= |
|||
STAGE3_TFLAGS += -fcompare-debug=-g0 |
|||
do-compare = $(SHELL) $(srcdir)/contrib/compare-debug $$f1 $$f2 |
|||
@ -1,2 +1,12 @@ |
|||
STAGE2_CFLAGS += -g0 |
|||
# This BUILD_CONFIG option builds checks that toggling debug
|
|||
# information generation doesn't affect the generated object code.
|
|||
|
|||
# It is very lightweight: in addition to not performing any additional
|
|||
# compilation (unlike bootstrap-debug-lean), it actually speeds up
|
|||
# stage2, for no debug information is generated when compiling with
|
|||
# the unoptimized stage1.
|
|||
|
|||
# For more thorough testing, see bootstrap-debug-lean.mk
|
|||
|
|||
STAGE2_CFLAGS += -gtoggle |
|||
do-compare = $(SHELL) $(srcdir)/contrib/compare-debug $$f1 $$f2 |
|||
|
|||
@ -0,0 +1,2 @@ |
|||
BOOT_CFLAGS += -time=$(shell pwd)/time.log |
|||
TFLAGS += -time=$(shell pwd)/time.log |
|||
Loading…
Reference in new issue