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: Small change to expand_expr CONSTRUCTOR handling


    Could you be a more explicit?  Was there a compilation failure or
    wrong code generated? What is the nature of the bug and why is
    this a good fix?

Wrong code generated.  The issue was that the elaboration code for the
initialization of library-level data put pointers to the stack of the
elaboration routine into the library-level data, which is always wrong.

The reason it did so was that it didn't treat a CONSTRUCTOR as static.
However, if you're looking for a constant address, giving the address
of a static CONSTRUCTOR is best.


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