This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Should fold preserve types?
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Waldek Hebisch <hebisch at math dot uni dot wroc dot pl>
- Cc: gcc at gcc dot gnu dot org, Andrew Pinski <pinskia at physics dot uc dot edu>
- Date: Tue, 30 Mar 2004 00:59:49 -0500
- Subject: Re: Should fold preserve types?
- References: <E1B8C6V-0000M6-00@hera.math.uni.wroc.pl>
On Mar 30, 2004, at 00:48, Waldek Hebisch wrote:
I have found multiple places where `fold' (from gcc-3.5-20040327)
returns integers as results of comparisons. GNU Pascal needs
boolean type so passes as argument expresion of boolean type.
Since `fold' returns integers this causes spurious error messages
on valid Pascal programs. So my question is if `fold' should be
fixed or should I put a wrapper around `fold' for Pascal use?
What do you mean by integers, it can return integer constants
but also integers when there is a cast to an integer type.
Also note that you really need to make GNU Pascal work with
the tree-ssa as it is being merged in soon.
Thanks,
Andrew Pinski