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: [Ada] Stop mapping Pure on Ada functions to GCC const


Hi,

> Pure functions in Ada might raise and this doesn't match (any more)
> "const" functions in the middle-end, currently assumed to be
> SIDE_EFFECTS free, so ...

so a decision was finally made that const functions can't throw?
Is the reasoning behind that explained anywhere?  I'm worried
that this will represent a big performance hit for Ada: for
example, the routines in Ada.Numerics.Elementary_Functions
won't be "const" anymore, so won't be CSE'd etc.

Ciao,

Duncan.


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