This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
ada vs identical flex
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb at sources dot redhat dot com
- Date: Thu, 07 Oct 2004 15:43:33 -0400
- Subject: ada vs identical flex
I'm comparing the generated ada-lex.c output from FLEX 2.5.2. Yes,
that's comparing the output from the same "identical" FLEX - one is
found on NetBSD/PPC 1.6.2, and the other on FC3.
For yyrealloc, I'm finding that some cases are wrapped in #ifndef
YY_USES_REJECT, while others are not vis:
NBSD FC3
declaration yes no
definition yes no
reference yes yes
ada_flex_use no no
On NetBSD, since ada_flex_use tries to refer to a function wrapped in
#ifndef YY_USE_REJECT (i.e., #ifdef'ed out) the build barfs.
On the other hand on FC3, the declaration / definition are always
visible and the build succeeds.
Ideas?
Andrew