Issue Details (XML | Word | Printable)

Key: PCC-209
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Iain Hibbert
Votes: 0
Watchers: 0
Operations

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

garbled assembler output on i386

Created: 05/Jan/11 10:11 AM   Updated: 09/Jan/11 10:19 PM
Component/s: i386 target
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. File print.i (50 kB)

Environment: NetBSD/i386


 Description  « Hide
compiling Lua on NetBSD/i386 fails with errors in the assembly code as shown by compiling the attached print.i file

% pcc -c print.i
/tmp/ctm.21212a: Assembler messages:
/tmp/ctm.21212a:1051: Error: unknown pseudo-op: `.'

and looking at the generated assembly (pcc -S print.i) shows the following garble

leave
ret
.size PrintUpvalues,.-PrintUpvalues
.`3\M^P\M-;(5\M^P\M-;pE\M^P\M-;(5\M^P\M-; luaU_print
.align 4
.globl luaU_print
.type luaU_print,@function
luaU_print:
pushl %ebp
movl %esp,%ebp
subl $8,%esp



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 09/Jan/11 10:19 PM
Should be fixed now. Attribute strings that had a lifetime longer than the current statement needed them stored permanent.