Re: [2.6 patch] kill IN_STRING_C
From: Ryan Cumming
Date: Mon Nov 08 2004 - 14:42:31 EST
On Monday 08 November 2004 10:22, linux-os wrote:
> Hmmm, how does it get the correct return-value and type?
Presumably it does it only for sprintf() calls where the return value is
> I don't
> think that a compiler is allowed to change the function(s) called.
GCC is making the assumption that the functions it's replacing comply with the
C standard. I personally don't think that's too insane, especially since it
can be turned off (see below).
> If gcc is doing this now, there are many potential problems and
> it needs to be fixed. For instance, one can't qualify a
> 'C' runtime library and then have a compiler decide that it's
> not going to call the pre-qualified function.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/