non-local goto optimization

Eric Botcazou ebotcazou@libertysurf.fr
Thu Jul 5 07:43:00 GMT 2007


> This change screwed exception handling on m68k, m68k uses
> current_function_has_nonlocal_label to save the pic register. Since the
> condition in reload() changed, it's not set anymore in all cases.

Could you clarify?  The only change to current_function_has_nonlocal_label was 
in expand_builtin_unwind_init, not in reload.  However, I understand that it 
can be problematic for back-ends and that they need to be audited.

> I could now just update the condition or I could fix this once and for all
> and introduce a flag which tells the back end explicitly when to save
> additional fixed register in this case.

I think that 2 flags are overkill and that you should update the condition.

-- 
Eric Botcazou



More information about the Gcc-patches mailing list