This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Re: Optimization of strcpy with an offset outside the string
- From: smallmeter at netscape dot net
- To: drow at mvista dot com (Daniel Jacobowitz), minyard at acm dot org (Corey Minyard)
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 04 Dec 2001 11:22:01 -0500
- Subject: RE: Re: Optimization of strcpy with an offset outside the string
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/