On 12/07/2011 01:00 AM, Joern Rennecke wrote:
> Quoting Richard Henderson <r...@redhat.com>:
> 
>>> I can fix this in libgcc/config/epiphany/t-epiphany with:
>>>
>>> unwind-sjlj.o : CFLAGS += -fno-exceptions
>>> unwind-sjlj.o : c_flags := $(filter-out -fexceptions,$(cflags))
>>>
>>> Is that the right way to do it?  Or should we more generally remove  
>>> -fexceptions
>>> from the build rules for the exception handling runtime?
>>
>> No.  In general removing -fexceptions from the unwind routines will cause
>> the unwind routines to fail.
> 
> Is this something where dwarf2 unwinding diverges from sjlj exception 
> handling?
> Or can you show a testcase where -fexceptions is needed for
> unwind-sjlj.o ?
> The above patch makes hundreds of failures in the g++ and libstdc++-v3
> testsuite go away, with no unwind related failures remaining.

Hum, it's probably true that sjlj doesn't actually need -fexceptions here.
But I really hate to add makefile hackery to work around a compiler that
is clearly broken.


r~

Reply via email to