Issue Details (XML | Word | Printable)

Key: PCC-174
Type: Bug Bug
Status: Open Open
Priority: Critical Critical
Assignee: Unassigned
Reporter: Altamiranus
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
pcc

pcc cannot build itself on NetBSD/pmax (MIPS)

Created: 27/Oct/10 11:56 PM   Updated: 27/Oct/10 11:56 PM
Component/s: pcc backend
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. File mkext.E (56 kB)
2. Text File mkext.S (22 kB)

Environment: NetBSD 5.0.2 using pmax emulation - MIPS little-endian.


 Description  « Hide
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

Then:

/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.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.