[Bug 114] Add support for the GCC 'naked' attribute
gdc-bugzilla at gdcproject.org
gdc-bugzilla at gdcproject.org
Sat Apr 5 08:04:13 PDT 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=114
--- Comment #2 from Mike <slavo5150 at yahoo.com> ---
Thank you for addressing this.
I had trouble applying this patch...
-----------------------------------------------------
patching file gcc/d/d-lang.cc
Hunk #2 FAILED at 58.
1 out of 3 hunks FAILED -- saving rejects to file gcc/d/d-lang.cc.rej
-----------------------------------------------------
... so I edited the d-lang.cc directly. GDC built without any problems using
the latest 4.8.2 branch and these instructions on the wiki:
http://wiki.dlang.org/Bare_Metal_ARM_Cortex-M_GDC_Cross_Compiler.
However, when compiling my program, I get the following error:
-----------------------------------------------------
<built-in>:0: internal compiler error: in register_scoped_attribute, at
attribs.c:291
0x6325b4 register_scoped_attribute
../../gcc-4.8.2/gcc/attribs.c:291
0x632645 register_scoped_attributes(attribute_spec const*, char const*)
../../gcc-4.8.2/gcc/attribs.c:149
0x6329a8 init_attributes()
../../gcc-4.8.2/gcc/attribs.c:254
0x6331bc decl_attributes(tree_node**, tree_node*, int)
../../gcc-4.8.2/gcc/attribs.c:356
0x805dce add_builtin_function_common
../../gcc-4.8.2/gcc/langhooks.c:557
0x8065f3 add_builtin_function(char const*, tree_node*, int, built_in_class,
char const*, tree_node*)
../../gcc-4.8.2/gcc/langhooks.c:577
0x650def do_build_builtin_fn
../../gcc-4.8.2/gcc/d/d-builtins.c:1055
0x657138 d_init_builtins()
../../gcc-4.8.2/gcc/builtins.def:195
0x664c66 d_backend_init()
../../gcc-4.8.2/gcc/d/d-builtins.c:1765
0x633ef4 d_init
../../gcc-4.8.2/gcc/d/d-lang.cc:257
0x8ee1d6 lang_dependent_init
../../gcc-4.8.2/gcc/toplev.c:1688
0x8ee1d6 do_compile
../../gcc-4.8.2/gcc/toplev.c:1850
-----------------------------------------------------
This occurs regardless of whether I use any attributes or not.
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20140405/2429b80a/attachment-0001.html>
More information about the D.gnu
mailing list