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: [gfortran] Make all labels DECL_ARTIFICIAL


On Wednesday 02 February 2005 04:44, Feng Wang wrote:
> When fixing PR18827, I found this was wrong. Making USER labels artificial
> will make it removed incorrectly under some circumstances. i.e. if we
> assign a label to a globle variable and don't use the label and variable
> elsewhere in the module, the optimization will remove the label but leave
> the assignment. This will cause linking error.

Sounds like the middle-end removes artificial labels even if they
are addressable, or the front end not marking the label as such.
Can you see in the dumps where the label disappears?

Gr.
Steven


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