This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]