This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Re: Checking out PR4483 (constant overflow on PPC, problems compiling Linux kernel)
- From: Corey Minyard <minyard at acm dot org>
- To: Geert Bosch <bosch at gnat dot com>
- Cc: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 30 Nov 2001 12:00:41 -0600
- Subject: Re: [PATCH] Re: Checking out PR4483 (constant overflow on PPC, problems compiling Linux kernel)
- References: <3528D958-E5BB-11D5-A27C-00039344BF4A@gnat.com>
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