<html>
    <head>
      <base href="http://bugzilla.gdcproject.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - Add support for the GCC 'naked' attribute"
   href="http://bugzilla.gdcproject.org/show_bug.cgi?id=114#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - Add support for the GCC 'naked' attribute"
   href="http://bugzilla.gdcproject.org/show_bug.cgi?id=114">bug 114</a>
              from <span class="vcard"><a class="email" href="mailto:slavo5150@yahoo.com" title="Mike <slavo5150@yahoo.com>"> <span class="fn">Mike</span></a>
</span></b>
        <pre>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: 
<a href="http://wiki.dlang.org/Bare_Metal_ARM_Cortex-M_GDC_Cross_Compiler">http://wiki.dlang.org/Bare_Metal_ARM_Cortex-M_GDC_Cross_Compiler</a>.

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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>