Help restricting args of an intrinsic function

Syd Polk spolk@apple.com
Mon Feb 2 23:44:00 GMT 2004


On Feb 2, 2004, at 11:58 AM, Mike Stump wrote:
> On Saturday, January 31, 2004, at 07:25 AM, Diego Novillo wrote:
>> Syd seems to be looking for anything that the compiler can prove is a
>> constant.
>
> Ok, I'll buy that, but I don't think we want anything that can ever be 
> turned off via an -O style option, or anything that is (or can be) 
> machine dependent.
>

What we support needs to work at -O0.

>> Powerful != expensive.  Why are you considering such a simple data 
>> flow
>> problem a non-starter?
>
> We don't want to offer something that only compiles code on some 
> machine or only compiles code with certain optimization settings.
>
> The pointer case may be just beyond what we want to work.
>

I don't think that we will need the pointer case. We will need the 
following:

- hard-coded integers
- const int variables
- static const int members in C++
- enums

Anything else does not work in the competing compiler, either.

Syd Polk
Apple Computer
Technology EPM, Mac OS X Development Tools
+1 408 974-0577



More information about the Gcc mailing list