help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: flex patches for ISO C++ compilers


From: Curtis L. Janssen
Subject: Re: flex patches for ISO C++ compilers
Date: Tue, 7 Aug 2001 21:03:40 -0700 (PDT)

"W. L. Estes" <address@hidden> writes:
> A lot of people are still using gcc-2.95.X. How does your patch effect
> those users? (It'd be reasonable to only investigate 2.95.3.)

I've gone back and checked quite a few compilers to test
compatibility.  As a result, I have a new patch that fixes some
things I missed and adds a C++ test target in Makefile.in.  I
also fixed MISC/testxxLexer.l and added test input and output
files.  The new patch is wrt 2.5.4a and is attached.  Here are
the test systems:

      OS            C++ Compiler     default   -DFLEX_IOSTREAM_H (1)
Mandrake 8.0/i386   gcc 2.95.3         ok              ok
Mandrake 8.0/i386   gcc 2.96           ok              ok
Mandrake 8.0/i386   gcc 3.0            ok              ok
Redhat 6.1/i386     egcs 1.1.2         ok              ok
Debian 2.2r3/Alpha  gcc 2.95.2         ok              ok
Debian 2.2r3/Alpha  Compaq 6.3.6.8     ok(2)           ok
AIX 4.3             xlC 5.0            ok              ok
IRIX 6.5            MIPSpro 7.3.1.2    ok              fails

(1) This is the backwards compatibility flag
(2) Must give Compaq C++ -D__USE_STD_IOSTREAM (it is not ISO C++
    compliant by default)

Note that in the test application neither iostream nor iostream.h
are included.  Whichever iostream flex includes is the one used.
If the application explicitly includes iostream.h, then the
-DFLEX_IOSTREAM_H flag should be given.  Applications explicitly
using iostream should work without specifying any flags.

Curt
-----------------------------------------------------------------------
Curtis Janssen
address@hidden                http://aros.ca.sandia.gov/~cljanss
Tel: +1 925-294-1509                 Fax: +1 925-294-2234
Sandia National Labs, MS 9217, PO Box 969, Livermore, CA 94551, USA

Attachment: patch-flex-2.4.5a-snl.2.gz
Description: application/gunzip


reply via email to

[Prev in Thread] Current Thread [Next in Thread]