Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000170 [libFirm] backend minor always 2016-01-12 10:09 2016-06-27 09:27
Reporter nobody View Status public  
Assigned To
Priority normal Resolution open  
Status confirmed   Product Version development
Summary 0000170: two __builtin_return_address related bugs
Description cparser -c test.c
warning: the x86_64 backend is highly experimental and unfinished (consider the -m32 switch) [-Wexperimental]
ir/lower/lower_builtins.c:207: libFirm panic in lower_builtin: cannot lower Builtin node of kind Builtin T[73:11]
cparser -m32 -c test.c
cparser: ir/be/ia32/ia32_new_nodes.c:272: ia32_attr_t *get_ia32_attr(ir_node *): Assertion `is_ia32_irn(node) && "need ia32 node to get ia32 attributes"' failed.
Additional Information
Tags No tags attached.
Attached Files c file icon test.c [^] (58 bytes) 2016-01-12 10:09

- Relationships
related to 0000171new cparser Query backend for supported builtins 
has duplicate 0000166new libFirm cparser: ir/be/ia32/ia32_new_nodes.c:272: ia32_attr_t *get_ia32_attr(ir_node *): Assertion `is_ia32_irn(node) && "need ia32 node 

-  Notes
(0000251)
Matze (administrator)
2016-01-16 06:56

Note really a solution, but I committed: 2eb2ab8ce5a8670819018430ba1670c86d25122b leading to a slightly better error message at least:

ir/lower/lower_builtins.c:208: libFirm panic in lower_builtin: builtin kind ir_bk_return_address not supported (for this target)
(0000252)
Matze (administrator)
2016-01-16 06:57

And for the record: Currently __builtin_return_address() is not implemented in any of the backends except the ia32 one, and the implementation in the ia32 one aborts with an assert.
(0000269)
Matze (administrator)
2016-06-27 09:27

Note that the ia32 version of __builtin_return_address should have been fixed a while ago in the context of b6787e36eb0d99eb28f4fb478932e0c9ed094e90.

Leaving this open since the builtin is still not implemented on x86_64.

- Issue History
Date Modified Username Field Change
2016-01-12 10:09 nobody New Issue
2016-01-12 10:09 nobody File Added: test.c
2016-01-16 06:54 Matze Relationship added related to 0000171
2016-01-16 06:56 Matze Note Added: 0000251
2016-01-16 06:56 Matze Status new => confirmed
2016-01-16 06:57 Matze Note Added: 0000252
2016-01-20 15:38 UniQ Relationship added has duplicate 0000166
2016-06-27 09:27 Matze Note Added: 0000269


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