This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Question about option -fpermissive


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


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