public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Bug in traditional cpp in gcc 3.3.2 ?
@ 2003-11-25 15:31 Marc Espie
  2003-11-25 17:01 ` Andreas Schwab
  0 siblings, 1 reply; 6+ messages in thread
From: Marc Espie @ 2003-11-25 15:31 UTC (permalink / raw)
  To: gcc

The following fragment is giving me errors I don't understand.

b.c
#ifdef HAVE_PROTOTYPES
# include <stdarg.h>
# define SH_VA_START(va, argn) va_start(va, argn)
#else
# include <varargs.h>
# define SH_VA_START(va, argn) va_start(va)
#endif /* HAVE_PROTOTYPES */

cpp -traditional-cpp -DHAVE_PROTOTYPES b.c >/dev/null
b.c:6: macro "va_start" requires 2 arguments, but only 1 given

Note that line 6 is the define SH_VA_START which is NOT taken.
What business does traditional-cpp have complaining about a usage
of va_start that doesn't even exist ?

The problem vanishes in non -traditional-cpp mode...

Is there something I'm not getting, or is this a genuine bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <bqb9lu$m85$2@clipper.ens.fr>]

end of thread, other threads:[~2003-12-07 18:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-25 15:31 Bug in traditional cpp in gcc 3.3.2 ? Marc Espie
2003-11-25 17:01 ` Andreas Schwab
2003-11-29 18:14   ` PATCH: work-around for bug in -traditional-cpp Marc Espie
2003-11-29 23:11     ` Neil Booth
2003-11-29 23:52       ` Marc Espie
     [not found] <bqb9lu$m85$2@clipper.ens.fr>
2003-12-07 18:30 ` Marc Espie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).