Issue Details (XML | Word | Printable)

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

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

compiler error: hopcode2: 6 with -xdce -xtemps

Created: 03/Sep/12 10:15 PM   Updated: 04/Sep/12 06:53 PM
Component/s: C frontend
Affects Version/s: None
Fix Version/s: None

Environment: NetBSD/i386

 Description  « Hide
The following example code fails to build when using -xtemps and -xdce

int foo(int a, int *b)
    a ? b[a] |= 1 : 0;

pcc -c -xtemps -xdce foo.c
foo.c, line 3: compiler error: hopcode2: 6
/usr/libexec/ccom terminated with status 1

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson made changes - 04/Sep/12 06:51 PM
Field Original Value New Value
Assignee Anders Magnusson [ ragge ]
Anders Magnusson added a comment - 04/Sep/12 06:53 PM
Fixed now.
The assigned instruction field were not cleared if insn assignment were run again, causing unwanted (and sometimes impossible) insns to be emitted.

Anders Magnusson made changes - 04/Sep/12 06:53 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]