Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000110 [cparser] firm graph generation minor always 2013-08-01 10:37 2013-09-13 10:12
Reporter luzero View Status public  
Assigned To
Priority normal Resolution open  
Status confirmed   Product Version
Summary 0000110: bad error reporting in case of missing builtins
Description cparser -m32 -std=c99 -pthread -g -c -o out.o 000.c
ir/lower/lower_builtins.c:149: libFirm panic in lower_builtin: Can't lower Builtin node of kind Builtin T[111:13]

Additional Information cparser: e038ad4
libfirm: 6cba223
Tags No tags attached.
Attached Files c file icon 000.c [^] (1,257 bytes) 2013-08-01 10:37
c file icon test.c [^] (85 bytes) 2013-09-13 10:12

- Relationships

-  Notes
zwinkau (manager)
2013-08-01 16:27

Basically, libfirm does not support __sync_val_compare_and_swap. Sad, but only a GCC extension: [^]

Nevertheless, a nice error message should be reported instead of a panic.
Matze (administrator)
2013-08-01 23:39

actually we do support it, but only if there is hardware support for it. So you need to use at least -march=i686.
I will leave this bug report open, because obviously we should fail in a much nicer way (and/or generate a compilerlib call) if hardware support is missing.
Andreas Fried (reporter)
2013-09-13 10:12

test.c is a reduced test case for this bug.

- Issue History
Date Modified Username Field Change
2013-08-01 10:37 luzero New Issue
2013-08-01 10:37 luzero File Added: 000.c
2013-08-01 16:27 zwinkau Note Added: 0000159
2013-08-01 23:39 Matze Note Added: 0000161
2013-08-01 23:39 Matze Status new => confirmed
2013-08-01 23:39 Matze Summary libFirm panic in lower_builtin => bad error reporting in case of missing builtins
2013-08-01 23:40 Matze Severity major => minor
2013-09-13 10:12 Andreas Fried File Added: test.c
2013-09-13 10:12 Andreas Fried Note Added: 0000175

Mantis 1.1.5[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker