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] | |
Jason Merrill wrote:
DECL_NOT_REALLY_EXTERN also doesn't indicate whether or not something is defined, it indicates whether or not we should emit it if we have a definition and it is needed.
Right. I'm sure we could come up with a better name. :-)
I also wonder whether, in the post-cgraph world, we could simplify a lot of this handling in the C++ front end. We used to play these games to make sure that the definitions didn't get emitted for COMDAT functions until needed -- but, now, cgraph will presumably do that for us.
So, could we just get rid of DECL_NOT_REALLY_EXTERN, and, instead of setting that, just clear DECL_EXTERNAL?
Tested x86_64-pc-linux-gnu, applied to trunk. I'd like to apply this to 4.2 as well; OK, Mark?
please wait until after the 4.2.2 release and then apply this.
(I'm trying to avoid making the mistake I made with 4.2.2 RC1 where I kept letting patches in until I felt I had to do RC2...)
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |