This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Should fold preserve types?
- From: Waldek Hebisch <hebisch at math dot uni dot wroc dot pl>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 30 Mar 2004 07:48:03 +0200 (CEST)
- Subject: Should fold preserve types?
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?
--
Waldek Hebisch
hebisch@math.uni.wroc.pl