<html>
    <head>
      <base href="http://bugzilla.gdcproject.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add support for the GCC 'naked' attribute"
   href="http://bugzilla.gdcproject.org/show_bug.cgi?id=114">114</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Add support for the GCC 'naked' attribute
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>GDC
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>development
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>gdc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>ibuclaw@gdcproject.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>slavo5150@yahoo.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I'm targeting ARM Cortex-M bare metal, and I need my reset interrupt handler
marked with the 'naked' attribute as it will be called before I've initialized
my the hardware containing my stack.  

It can also be used to make a useful hard fault handler for finding elusive
bugs as described here. 
<a href="http://www.freertos.org/Debugging-Hard-Faults-On-Cortex-M-Microcontrollers.html">http://www.freertos.org/Debugging-Hard-Faults-On-Cortex-M-Microcontrollers.html</a>

I could do what I need in assembly, but then I'd break my "do it all in D"
goal.

I propose the following syntax:

@attribute("naked") void myNakedFunction() { }

The GCC 'naked' attribute is documented here:
gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>