xref: /netbsd-src/external/gpl3/gcc.old/dist/config/bootstrap-debug-lib.mk (revision 1debfc3d3fad8af6f31804271c18e67f77b4d718)
1*1debfc3dSmrg# This BUILD_CONFIG option tests that target libraries built during
2*1debfc3dSmrg# stage3 would have generated the same executable code if they were
3*1debfc3dSmrg# compiled with -g0.
4*1debfc3dSmrg
5*1debfc3dSmrg# It uses -g0 rather than -gtoggle because -g is default on target
6*1debfc3dSmrg# library builds, and toggling it where it's supposed to be disabled
7*1debfc3dSmrg# breaks e.g. crtstuff on ppc.
8*1debfc3dSmrg
9*1debfc3dSmrgSTAGE1_TFLAGS += -g0 -fcompare-debug=
10*1debfc3dSmrgSTAGE2_TFLAGS += -fcompare-debug=
11*1debfc3dSmrgSTAGE3_TFLAGS += -fcompare-debug=-g0
12*1debfc3dSmrgdo-compare = $(SHELL) $(srcdir)/contrib/compare-debug $$f1 $$f2
13