This is the mail archive of the gcc-patches@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: [PATCH] Re: Checking out PR4483 (constant overflow on PPC, problems compiling Linux kernel)


Geert Bosch wrote:

>
> On Friday, November 30, 2001, at 11:27 , Corey Minyard wrote:
>
>> In one situation, we have an expression (0x80000000UL - u).  "u" get 
>> substituted with 42
>
> Since "u" was an int in the user's code, I'd think it should still be 
> an int
> and have SI mode, and the plus operation should have been done in that 
> mode too.
> Inlining should never affect the mode that is used for operations.
>
>   -Geert

gcc determined that "u" was a constant, and substituted the REG with a 
CONST_INT,
and constants don't have modes.  Am I missing something here?

-Corey



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