This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: K+R compile fixes and small performance tweaks
- To: gcc-patches at gcc dot gnu dot org, zack at wolery dot cumb dot org
- Subject: Re: cpplib: K+R compile fixes and small performance tweaks
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Wed, 12 Jul 2000 16:46:29 -0400 (EDT)
> From: Zack Weinberg <zack@wolery.cumb.org>
>
> cppexp.c had excessively clever macro constructs which some pre-ANSI
> compilers rejected. I would like to add a -Wtraditional warning for
> this, but it's not clear to me exactly what the problem was.
> zw
There were two problems. One was "unary plus" which is an ANSIism.
I just checked in a patch to have -Wtraditional warn about this.
The second problem was reported on nextstep, which I though used gcc
as its compiler. It complained about function macros whose defined
arguments were missing/empty.
http://gcc.gnu.org/ml/gcc-bugs/2000-07/msg00258.html
I don't think this one is a traditional C problem since my K&R
compiler accepted it fine.
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions