Re: [PATCH] Fix as flags for -c xx.s -g0 -g (PR driver/49726)

2017-01-16 Thread Jeff Law
On 01/10/2017 03:51 PM, Jakub Jelinek wrote: Hi! ASM_DEBUG_SPEC uses usually %{g:%{!g0:--gdwarf2}} or something similar. In the past, it used to be %{g:--gdwarf2}. Both have problems (and thus this is also a regression). The problem with the current ASM_DEBUG_SPEC is that if one uses -g0 -g,

[PATCH] Fix as flags for -c xx.s -g0 -g (PR driver/49726)

2017-01-10 Thread Jakub Jelinek
Hi! ASM_DEBUG_SPEC uses usually %{g:%{!g0:--gdwarf2}} or something similar. In the past, it used to be %{g:--gdwarf2}. Both have problems (and thus this is also a regression). The problem with the current ASM_DEBUG_SPEC is that if one uses -g0 -g, which normally means that -g overrides -g0, we