From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sean McNeil To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: preprocessor/2948 Date: Sun, 27 May 2001 10:36:00 -0000 Message-id: <20010527173600.4896.qmail@sourceware.cygnus.com> X-SW-Source: 2001-05/msg00923.html List-Id: The following reply was made to PR preprocessor/2948; it has been noted by GNATS. From: Sean McNeil To: Neil Booth Cc: neil@gcc.gnu.org, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org Subject: Re: preprocessor/2948 Date: Sun, 27 May 2001 10:27:17 -0700 Same result. Please recall that the problem is with the normal compilation and not the 2 stage command below. Normal compilation adds a lot of additional unnecessary code to the ttt.s file. It appears that it is proceesing more than what shows from the output of the -E stage. For instance, I get an external reference to operator delete (void*) which is no where to be found in the -E output. The commands below and substituting ttt.cc with ttt.ii both produce expected results. Sean Neil Booth wrote: > Sean McNeil wrote:- > > > 2 stage command: > > > > arm-wrs-vxworks-g++ -E -mcpu=arm8 -mapcs-32 -mlittle-endian -ansi > > -nostdinc -fno-implicit-templates -DVXW_EXPLICIT_TEMPLATES -O2 > > -mno-sched-prolog -I/usr/wind/target/h -DCPU=ARMARCH4 -DARMEL > > -fno-exceptions -o /tmp/ttt.cc -c PlotFile.cpp > > > > arm-wrs-vxworks-g++ -mcpu=arm8 -mapcs-32 -mlittle-endian -ansi -nostdinc > > -fno-implicit-templates -DVXW_EXPLICIT_TEMPLATES -O2 -mno-sched-prolog > > -I/usr/wind/target/h -DCPU=ARMARCH4 -DARMEL -fno-exceptions -o > > /tmp/ttt.o /tmp/ttt.cc > > Could you try naming your intermediate file ttt.ii? This is the > convention for C++ preprocessed source. Naming it ttt.cc informs the > compiler that it is unpreprocessed source for the 2nd invocation too, > which could be what is causing the problems. > > Neil.