This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Re: Optimization of strcpy with an offset outside the string

Daniel Jacobowitz <> 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.


Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape!

Get your own FREE, personal Netscape Mail account today at

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]