<< Back to previous view

[PCC-174] pcc cannot build itself on NetBSD/pmax (MIPS) Created: 27/Oct/10  Updated: 27/Oct/10

Status: Open
Project: pcc
Component/s: pcc backend
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Altamiranus Assignee: Unassigned
Resolution: Unresolved Votes: 0
Environment: NetBSD 5.0.2 using pmax emulation - MIPS little-endian.

File Attachments: File mkext.E     Text File mkext.S    

PCC cannot build with itself. It fails to compile mkext.c when calling fprintf with like a gazillion arguments.

Here are the commands used to isolate the issue:

pcc -v -E -DGCC_COMPAT -DPCC_DEBUG -Dos_netbsd -Dmach_mips -D_ISOC99_SOURCE -I. -I../.. -I../../mip -I../../arch/mips -I../../is/netbsd -g -DPCC_DEBUG -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wsign-compare -Wtruncate -DMKEXT ../../mip/mkext.c

The above commands invokes cpp:

/usr/local/libexec/cpp -v -D__PCC__=0 -D__PCC_MINOR__=9 -D__PCC_MINORMINOR__=9 -D__GNUC__=4 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=1 -D__GNUC_STDC_INLINE__=1 -D__REGISTER_PREFIX__= -D__USER_LABEL_PREFIX__= -D__NetBSD__ -D__ELF__ -D__STDC_ISO_10646__=200009L -D__WCHAR_TYPE__=int -D__SIZEOF_WCHAR_T__=4 -D__WCHAR_MAX__=2147483647 -D__WINT_TYPE__=unsigned int -D__SIZE_TYPE__=unsigned long -D__PTRDIFF_TYPE__=long int -D__SIZEOF_WINT_T__=4 -D__mips__ -DGCC_COMPAT -DPCC_DEBUG -Dos_netbsd -Dmach_mips -D_ISOC99_SOURCE -I. -I../.. -I../../mip -I../../arch/mips -I../../is/netbsd -DPCC_DEBUG -DMKEXT -S /usr/local/include/pcc/ -S /usr/include/ -S /usr/local/lib/pcc/mipsel-unknown-netbsd5.0.2/0.9.9/include/ ../../mip/mkext.c


/usr/local/libexec/ccom mkext.E > mkext.S

Error is:

../../mip/mkext.c, line 389: compiler error: Cannot generate code, node 0x7dd70948 op FUNARG

Attached are the generated mkext.E and mkext.S.
Generated at Tue Jun 19 08:43:02 CEST 2018 using JIRA Enterprise Edition, Version: 3.13.1-#333.