This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Banish except.h from the front ends


On Sun, Jun 27, 2010 at 11:19 PM, Manuel López-Ibáñez
<lopezibanez@gmail.com> wrote:
> On 27 June 2010 22:50, Steven Bosscher <stevenb.gcc@gmail.com> wrote:
>> Hello,
>>
>> The implementation of exception handling is a middle-end thing, so
>> front ends do not need to know about anything defined in except.h.
>>
>> Well, almost nothing: init_eh and init_eh_for_function are called from
>> front ends (esp. init_eh for Ada and LTO) because not all front ends
>
> Which FE is using init_eh_for_function?

None, apparently. I thought LTO did, but grep disagrees. I can easily
leave it in except.h, of course.

>> let toplev initialize EH handling. This makes sense because a front
>> end may not know at the start of the compilation of a file whether EH
>> will be needed or not (and in Ada: what kind of EH).
>
> Could you add a comment in toplev.h about this? I feel it won't be
> clear why these functions are declared there otherwise.

Sure.

Ciao!
Steven


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]