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] Fix problematic folding


On Sat, Aug 2, 2008 at 12:51 PM, Eric Botcazou <ebotcazou@adacore.com> wrote:
>> Hmm, I don't get the trunk to produce anything like the above dump - the
>> additions are always gone:
>
> Either you don't have recent enough a compiler or you didn't compile with
> -gnatp like me. :-)

Ah, no - I didn't build with -gnatp ;)

> Anyway, I think that mimicing the other compilers is both simpler (there is no
> boolean arithmetics in Ada, Gigi generates it for some specific constructs so
> we can tweak the expressions) and probably safer.  Thanks for the tip.

Yep.  The middle-end doesn't know about boolean arithmetic anyway
(true + true == true), but just can do 1-bit arithmetic where true + true would
be false ...

> Tested on i586-suse-linux, applied on the mainline.

Thanks,
Richard.


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