<< Back to previous view

[PCC-8] pcc won't compile without PCC_DEBUG defined Created: 01/Dec/08  Updated: 03/May/14

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

Type: Improvement Priority: Minor
Reporter: Gregory McGarry Assignee: Anders Magnusson
Resolution: Fixed Votes: 0

File Attachments: File PCC_DEBUG.diff    

 Description   
>cl /Feccom.exe -DWIN32 -DMSLINKER -DTARGO
S=win32 -Dos_win32 -Dmach_i386 -DLIBEXECDIR="" /MD /I..\..\cc\ccom /I..\..\os\wi
n32 /I..\..\arch\i386 /I..\..\mip ..\..\cc\ccom\main.c ..\..\mip\compat.c scan.c
 cgram.c external.c ..\..\cc\ccom\optim.c ..\..\cc\ccom\pftn.c ..\..\cc\ccom\tre
es.c ..\..\cc\ccom\inline.c ..\..\cc\ccom\symtabs.c ..\..\cc\ccom\gcc_compat.c .
.\..\cc\ccom\init.c ..\..\arch\i386\local.c ..\..\arch\i386\code.c ..\..\cc\ccom
\stabs.c ..\..\mip\match.c ..\..\mip\reader.c ..\..\mip\optim2.c ..\..\mip\regs.
c ..\..\arch\i386\local2.c ..\..\arch\i386\order.c ..\..\arch\i386\table.c ..\..
\mip\common.c "C:\Program Files\UnxUtils\lib\libfl.lib"
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86

Copyright (C) Microsoft Corporation. All rights reserved.

main.c
compat.c
scan.c
cgram.c
cgram.c(1386) : warning C4047: '=' : 'NODE *' differs in levels of indirection f
rom 'int'
cgram.c(1389) : warning C4047: '=' : 'NODE *' differs in levels of indirection f
rom 'int'
external.c
optim.c
pftn.c
trees.c
inline.c
symtabs.c
gcc_compat.c
init.c
local.c
..\..\arch\i386\local.c(1427) : warning C4113: 'void (__cdecl *)(NODE *)' differ
s in parameter lists from 'void (__cdecl *)(NODE *,void *)'
..\..\arch\i386\local.c(1427) : error C2198: 'walkf' : too few arguments for cal
l
code.c
stabs.c
match.c
reader.c
optim2.c
..\..\mip\optim2.c(812) : warning C4116: unnamed type definition in parentheses
regs.c
..\..\mip\regs.c(830) : error C2039: 'nodnum' : is not a member of 'regw'
        ..\..\mip\regs.c(121) : see declaration of 'regw'
..\..\mip\regs.c(831) : error C2039: 'nodnum' : is not a member of 'regw'
        ..\..\mip\regs.c(121) : see declaration of 'regw'
..\..\mip\regs.c(831) : error C2039: 'nodnum' : is not a member of 'regw'
        ..\..\mip\regs.c(121) : see declaration of 'regw'
..\..\mip\regs.c(838) : error C2039: 'nodnum' : is not a member of 'regw'
        ..\..\mip\regs.c(121) : see declaration of 'regw'
..\..\mip\regs.c(839) : error C2039: 'nodnum' : is not a member of 'regw'
        ..\..\mip\regs.c(121) : see declaration of 'regw'
..\..\mip\regs.c(839) : error C2039: 'nodnum' : is not a member of 'regw'
        ..\..\mip\regs.c(121) : see declaration of 'regw'
..\..\mip\regs.c(869) : error C2039: 'nodnum' : is not a member of 'regw'
        ..\..\mip\regs.c(121) : see declaration of 'regw'
..\..\mip\regs.c(870) : error C2039: 'nodnum' : is not a member of 'regw'
        ..\..\mip\regs.c(121) : see declaration of 'regw'
..\..\mip\regs.c(870) : error C2039: 'nodnum' : is not a member of 'regw'
        ..\..\mip\regs.c(121) : see declaration of 'regw'
local2.c
Generating Code...
Compiling...
order.c
table.c
common.c
Generating Code...


 Comments   
Comment by Anders Magnusson [ 01/Dec/08 03:35 PM ]
This is because nodnum is used in the register allocator. Parts of the allocator must be rewritten to speed things up and this will be fixed at the same time.
Comment by Iain Hibbert [ 22/Apr/10 10:23 AM ]
the attached PCC_DEBUG.diff file provides some #ifdefs that enable ccom to compile without PCC_DEBUG
Comment by Anders Magnusson [ 03/May/14 11:58 AM ]
Fixed (at last! :-)
Generated at Thu Nov 27 12:52:25 CET 2014 using JIRA Enterprise Edition, Version: 3.13.1-#333.