Issue Details (XML | Word | Printable)

Key: PCC-408
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

compiler error: dce needs bb fixup

Created: 04/Sep/12 08:59 PM   Updated: 05/Sep/12 09:12 PM
Component/s: C frontend
Affects Version/s: None
Fix Version/s: None

Environment: pcc 1.1.0.DEVEL 20120903 for netbsd-i386, on NetBSD/i386


 Description  « Hide
the following code fragment, extracted and simplied from NetBSD usr.bin/newsyslog

int foo(void);
 
void bar(int a)
{
    a ? foo() + foo() : 0;
}

when compiled with -xdce and -xtemps, fails with

foo.c, line 5: compiler error: dce needs bb fixup

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson made changes - 05/Sep/12 09:11 PM
Field Original Value New Value
Assignee Anders Magnusson [ ragge ]
Anders Magnusson added a comment - 05/Sep/12 09:12 PM
Fixed by removing some ifdefs.

Anders Magnusson made changes - 05/Sep/12 09:12 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]