On 3/20/25 2:51 AM, Richard Biener wrote:
> On Wed, Mar 19, 2025 at 6:39 PM Matthias Klose <d...@debian.org> wrote:
>>
>> For building ghdl, the compiler needs to be patched to know the "vhdl"
>> language.  Could that patch be applied to the upstream GCC, so that not
>> everybody needs to patch GCC to build ghdl?
> 
> I would suggest, since with LTO all languages are globbed to i == 0, to
> rework the if chain to instead of making it exhaustive with gcc_unreachable 
> (),
> make it fall back to i == 0 for not otherwise handled languages.
> 
> Whatever this code does.

This code is for emitting our traceback table, which is some data in the text
section immediately after the end of the function.  IIRC, on Linux, we default
to emitting an empty traceback table now, so this specific code doesn't really
get used anymore, so I think your suggestion of reworking this to just default
to i = 0 for C and all unknown languages is probably the best solution.
Segher, do you agree?

Peter


Reply via email to