<< Back to previous view

[PCC-407] compiler error: hopcode2: 6 with -xdce -xtemps Created: 03/Sep/12  Updated: 04/Sep/12

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

Type: Bug Priority: Major
Reporter: Iain Hibbert Assignee: Anders Magnusson
Resolution: Fixed Votes: 0
Environment: NetBSD/i386

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

Comment by Anders Magnusson [ 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.
Generated at Sat Jun 24 05:25:47 CEST 2017 using JIRA Enterprise Edition, Version: 3.13.1-#333.