Using exception specifications to help compiler

Wolfgang Bangerth bangerth@ices.utexas.edu
Mon Jun 9 14:55:00 GMT 2003


> The results are the following: file sizes are slightly reduced on average, 
> but run-time increases by about 1.5 per cent (details below).

I dug somewhat deeper and (at least part of) the reason turned out to be a 
memory-corruption type bug in the C++ front end! :-( I have just filed 
this as PR 11131.

Mark, Nathan, may I kindly ask you to look at that PR and see whether that 
triggers something with you? In short, the PR is about the fact that an 
unrelated declaration of a specialization of a member leads to stripping a 
function of its "inline" attribute. Why this is connected to exception 
specifications -- I don't know, but it leads to a lot of lost inlining 
opportunities in our code when I add these exception specifications...

Thanks a lot 
  Wolfgang

-------------------------------------------------------------------------
Wolfgang Bangerth              email:            bangerth@ices.utexas.edu
                               www: http://www.ices.utexas.edu/~bangerth/




More information about the Gcc mailing list