[Bug bootstrap/67156] config/bootstrap-debug.mk: STAGE2_CFLAGS += -gtoggle
dilyan.palauzov at aegee dot org
gcc-bugzilla@gcc.gnu.org
Sat Aug 8 15:36:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67156
Дилян Палаузов <dilyan.palauzov at aegee dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |---
--- Comment #5 from Дилян Палаузов <dilyan.palauzov at aegee dot org> ---
If do-compare in /Makefile.in is substituted with "$(SHELL)
$(srcdir)/contrib/compare-debug $$f1 $$f2" from "config/bootstrap-debug-big.mk"
or "config/bootstrap-debug-lib.mk" or "config/bootstrap-debug.mk", then
comparing files ignores debug information. However in my case, do-compare is
substituted with "cmp --ignore-initial=16 $$f1 $$f2" from config/acx.m4 .
Effectively the latter executes
gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
and ./configure contains:
configure-5349-
configure-5350-
configure-5351-$as_echo_n "checking how to compare bootstrapped objects... "
>&6; }
configure:5352:if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
configure-5353- $as_echo_n "(cached) " >&6
configure-5354-else
configure-5355- echo abfoo >t1
configure-5356- echo cdfoo >t2
configure:5357: gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c
$$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
configure-5358- if cmp t1 t2 2 2 > /dev/null 2>&1; then
configure-5359- if cmp t1 t2 1 1 > /dev/null 2>&1; then
configure-5360- :
configure-5361- else
configure:5362: gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
configure-5363- fi
configure-5364- fi
configure-5365- if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
configure-5366- if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
configure-5367- :
configure-5368- else
configure:5369: gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
configure-5370- fi
configure-5371- fi
configure-5372- rm t1 t2
configure-5373-
configure-5374-fi
configure:5375:{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
$gcc_cv_prog_cmp_skip" >&5
configure:5376:$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
configure:5377:do_compare="$gcc_cv_prog_cmp_skip"
configure-5378-
after ./configure config.log contains:
configure:5350: checking how to compare bootstrapped objects
configure:5375: result: cmp --ignore-initial=16 $$f1 $$f2
[...]
do_compare='cmp --ignore-initial=16 $$f1 $$f2'
and config.status contains:
S["do_compare"]="cmp --ignore-initial=16 $$f1 $$f2"
So the problem is why do_compare is cmp and not contrib/compare-debug .
More information about the Gcc-bugs
mailing list