This is the mail archive of the gcc-patches@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]

Re: Dependence tracking broke implicit extern "C"


 > AIX 4.1's system headers are not C++ aware.  However, when compiling a
 > C Hello World program as C++, it fails to link because printf is
 > mangled.
 > 
 > It seems that some recent change in the dependence generators has
 > started treating the sysp flag as a boolean, instead of as a tri-state
 > variable, in which 0 indicates a user header; 1, a system header and
 > 2, a system header implicitly extern "C".
 > 
 > This patch fixes it.  Tested on AIX 4.1 with the latest snapshot.  Ok
 > to install?
 > 
 > Index: gcc/ChangeLog
 > from  Alexandre Oliva  <aoliva@redhat.com>
 >         * cppfiles.c (stack_include_file): Use MAX of sysp.

Please add a testcase so it doesn't resurface.

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions


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