[PATCH] Fix --gdwarf-5 configure tests for Windows

Jeff Law jeffreyalaw@gmail.com
Wed Jun 23 14:41:26 GMT 2021



On 6/23/2021 3:53 AM, Eric Botcazou wrote:
> The issues are that 1) they use readelf instead of objdump and 2) they use
> ELF syntax in the assembly code.
>
> Tested on x86-64/Linux and x86[-64]/Windows, OK for mainline and 11 branch?
>
>
> 2021-06-23  Eric Botcazou  <ebotcazou@adacore.com>
>
> 	* configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
> 	(working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
> 	(--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
> 	* configure: Regenerate.
OK for trunk and backport (again your call on timing of the backport).

jeff



More information about the Gcc-patches mailing list