------- Comment #5 from jespdj at hotmail dot com 2006-09-27 21:11 -------
Created an attachment (id=12342)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12342&action=view)
output of g++ tst.cpp -S
Here is the assembler source produced with g++ tst.cpp -S
At the bottom of the file is this:
.globl __ZZ8functionvE1x
.section .rdata$_ZZ8functionvE1x,"dr"
.linkonce same_size
.align 16
__ZZ8functionvE1x:
.long 123
.def _printf; .scl 2; .type 32; .endef
Indeed there is an ".align 16", but despite this, I get the alignment error.
When I comment out "inline" on the function, the assembly source looks slightly
different. I will attach the assembly file in a separate attachment.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29249