Update check for working assembler --gdwarf-4 option
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 16 Oct 2020 12:59:51 +0000 (05:59 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 24 Oct 2020 16:03:36 +0000 (09:03 -0700)
commit1aeb7d7d67d167297ca2f4a97ef20f68e7546b4c
tree4f74334ca22079bdab72a7d5ec1250a31c35a65d
parent0df73beea03f9dc124dc6e98ec4bdeacca7a2eea
Update check for working assembler --gdwarf-4 option

Rename HAVE_AS_WORKING_DWARF_4_FLAG to HAVE_AS_WORKING_DWARF_N_FLAG
Don't set HAVE_AS_WORKING_DWARF_N_FLAG if --gdwarf-5/--gdwarf-4 generate
an extra assembly input file in debug info from compiler generated
.debug_line or fail with the APP marker:

https://sourceware.org/bugzilla/show_bug.cgi?id=25878
https://sourceware.org/bugzilla/show_bug.cgi?id=26740
https://sourceware.org/bugzilla/show_bug.cgi?id=26778

Also replace success with dwarf4_success in the 32-bit --gdwarf-4 check.

PR bootstrap/97451
* configure.ac (HAVE_AS_WORKING_DWARF_4_FLAG): Renamed to ...
(HAVE_AS_WORKING_DWARF_N_FLAG): This.  Don't define if there is
an extra assembly input file in debug info.  Replace success
with dwarf4_success in the 32-bit --gdwarf-4 check.
* dwarf2out.c (asm_outputs_debug_line_str): Check
HAVE_AS_WORKING_DWARF_N_FLAG instead of
HAVE_AS_WORKING_DWARF_4_FLAG.
* gcc.c (ASM_DEBUG_SPEC): Likewise.
(ASM_DEBUG_OPTION_SPEC): Likewise.
* config.in: Regenerated.
* configure: Likewise.
gcc/config.in
gcc/configure
gcc/configure.ac
gcc/dwarf2out.c
gcc/gcc.c