Optimization of strcpy with an offset outside the string
smallmeter@netscape.net
smallmeter@netscape.net
Tue Dec 4 08:24:00 GMT 2001
Daniel Jacobowitz <drow@mvista.com> wrote:
>On Mon, Dec 03, 2001 at 08:45:26PM -0600, Corey Minyard wrote:
>> In the PowerPC Linux kernel, at some points in time the reference to
>> some constant data is at an offset (because the MMU is not set up yet).
>> So you see expressions like:
>>
>> print("test" + offset);
>>
>Is this still in the current PPC kernels?
Current stock 2.4.16. I'm not using the PPC development kernels.
>
>Franz raised this issue several months ago, and I believe the verdict
>was that it was illegal.
Sounds good to me.
>
>I personally wouldn't mind a warning being generated, though!
How could we generate a warning? They don't know the value of the
offset, and it may be perfectly legal.
-Corey
--
__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
More information about the Gcc
mailing list