On Wed, Sep 16, 2020 at 02:33:03PM +0200, Mark Wielaard wrote: > > 2020-09-15 Jakub Jelinek <ja...@redhat.com> > > > > * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG, > > HAVE_AS_WORKING_DWARF_4_FLAG): New tests. > > * gcc.c (ASM_DEBUG_DWARF_OPTION): Define. > > (ASM_DEBUG_SPEC): Use ASM_DEBUG_DWARF_OPTION instead of > > "--gdwarf2". Use %{cond:opt1;:opt2} style. > > (ASM_DEBUG_OPTION_DWARF_OPT): Define. > > (ASM_DEBUG_OPTION_SPEC): Define. > > (asm_debug_option): New variable. > > (asm_options): Add "%(asm_debug_option)". > > (static_specs): Add asm_debug_option entry. > > (static_spec_functions): Add dwarf-version-gt. > > (debug_level_greater_than_spec_func): New function. > > * config/darwin.h (ASM_DEBUG_OPTION_SPEC): Define. > > * config/darwin9.h (ASM_DEBUG_OPTION_SPEC): Redefine. > > * config.in: Regenerated. > > * configure: Regenerated. > > I tested against the binutils-2_35-branch which will become 2.35.1 next > week. The configure tests succeed there. So I think you can change the > [elf,2,36,0] to [elf,2,35,1].
No problem with such a change, although it isn't that important, because most of the people don't use in-tree builds and for out of tree builds the actual test rather than version comparison is used instead. Jakub