This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: preserve parameter attributes during C++ decl smashing
- From: Jason Merrill <jason at redhat dot com>
- To: Taras Glek <tglek at mozilla dot com>
- Cc: gcc-patches at gcc dot gnu dot org, David Mandelin <dmandelin at mozilla dot com>
- Date: Fri, 24 Apr 2009 15:43:14 -0400
- Subject: Re: preserve parameter attributes during C++ decl smashing
- References: <49EFB7D1.3090107@mozilla.com>
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