This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Question about option -fpermissive
- To: egcs at egcs dot cygnus dot com
- Subject: Question about option -fpermissive
- From: Andris Pavenis <andris at stargate dot astr dot lu dot lv>
- Date: Sat, 26 Jun 1999 11:59:45 +0000
- Organization: AI LU
Hi!
I have met following problem with C++ compiler (gcc-2.95 prereleases up
to 19990623):
Any warning is interpretted as error. Debugging cc1plus showed that
function init_decl_processing() in gcc/cp/decl.c sets
flag_pedantic_errors to 1 unless I'm specifying command line
option -fpermissive to cc1plus (or -fpedantic I may want not to use)
I put something like
#undef CC1PLUS_SPEC
#define CC1PLUS_SPEC "%{!fno-permissive:-fpermissive}"
in gcc/config/i386/djgpp.h (I compiled gcc-2.95 prerelease for DJGPP).
Earlier tests (not latest weeks though) showed the same
problem also for Linux.
Andris