|
From: Nicholas N. <n.n...@gm...> - 2009-08-23 22:25:34
|
On Sun, Aug 23, 2009 at 9:11 PM, <sv...@va...> wrote:
> Author: bart
> Date: 2009-08-23 12:11:36 +0100 (Sun, 23 Aug 2009)
> New Revision: 10861
>
> Log:
> Fixed a declaration: function attributes must be inserted after the return type instead of before, otherwise gcc 4.4 ignores the attribute declaration.
Really? Is this described in the GCC docs anywhere? It's a very
disturbing change, I'm sure we have numerous functions where the
attribute comes first. For example, all the Cachegrind simulation
functions look like this:
static VG_REGPARM(1)
void log_1I_0D_cache_access(InstrInfo* n)
{
...
}
If the attribute was ignored then Cachegrind should almost certainly
crash very quickly.
Nick
|