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: preserve parameter attributes during C++ decl smashing


This seems like a reasonable change, but it doesn't cover a redeclaration that is not a definition which adds attributes, i.e.

void f(int i);
void f(int i __attribute ((foo)));
void f(int i) { ... }

I think in this situation the "foo" attribute will get silently dropped on the floor. Better to always merge the attributes, I think.

Jason


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