This is the mail archive of the gcc@gcc.gnu.org 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 <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/


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