Discussion:
CVS commit: pcc/cc/ccom
Iain Hibbert
2012-08-08 07:35:29 UTC
Permalink
pcc/cc/ccom: inline.c
Handle the situation where an IP_REF node appears before PROLOG in an
interpass list. Fixes a problem with compiling gcc.
This seems to break something.

I have a script which compiles pcc with gcc, then again with the gcc-built
pcc, then again with the pcc-built pcc and compares the output of the last
two builds, and the final build does not complete..

eg, the pcc-built pcc fails to work with any input:

% cat x.c
int main(int ac, char *av[]) { return 0; }
% pcc -c x.c
x.c:1: error: read error on file x.c
/usr/libexec/pcpp terminated with status 1

regards,
iain
Anders Magnusson
2012-08-08 08:47:53 UTC
Permalink
Post by Iain Hibbert
pcc/cc/ccom: inline.c
Handle the situation where an IP_REF node appears before PROLOG in an
interpass list. Fixes a problem with compiling gcc.
This seems to break something.
Yep, I did a mistake and moreover when I test-compiled I did not have
the change applied :-/
Fixed now, thanks.

-- Ragge
Post by Iain Hibbert
I have a script which compiles pcc with gcc, then again with the gcc-built
pcc, then again with the pcc-built pcc and compares the output of the last
two builds, and the final build does not complete..
% cat x.c
int main(int ac, char *av[]) { return 0; }
% pcc -c x.c
x.c:1: error: read error on file x.c
/usr/libexec/pcpp terminated with status 1
regards,
iain
Loading...