This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: weak-attribute over-optimisation with 4.1
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: Jan Kiszka <jan dot kiszka at web dot de>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 21 May 2006 10:53:52 +0200
- Subject: Re: weak-attribute over-optimisation with 4.1
- References: <446F567B.6060101@web.de>
* Jan Kiszka:
> So, is this a regression? Does it also happen with vanilla 4.1?
According to the documentation, the weak attribute affects
declarations, not definitions, and is an instruction to the linker.
Technically, the GCC 4.1 behavior is correct. I'm not sure if it's
desirably, though.