bugAVR C Runtime Library - Bugs: bug #24446, _attribute_ should be...

 
 

bug #24446: _attribute_ should be __attribute__ (with double underscores)

Submitted by:  Juergen Weigert <jnweiger>
Submitted on:  Fri 03 Oct 2008 11:55:04 PM UTC  
 
Category:  Documentation Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Header files
Status:  Fixed Assigned to:  Joerg Wunsch <joerg_wunsch>
Percent Complete:  0% Open/Closed:  Closed
Release:  1.6.2 Fixed Release:  1.7.0

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 03 Oct 2008 11:55:04 PM UTC, original submission:  

the suggested code needs this to compile:

avr/include/avr/wdt.h    2008-09-26 10:25:48.000000000 +0200
+++ ./wdt.h     2008-10-04 01:55:38.000000000 +0200
@@ -70,7 +70,7 @@
     #include <stdint.h>
     #include <avr/wdt.h>

-    uint8_t mcusr_mirror attribute ((section (".noinit")));
+    uint8_t mcusr_mirror _attribute_ ((section (".noinit")));

     void get_mcusr(void) \
       _attribute_((naked)) \
user-manual-1.6.2/group__avr__watchdog.html        2008-04-02 23:03:07.000000000 +0200
+++ ./group__avr__watchdog.html 2008-10-04 01:51:45.000000000 +0200
@@ -34,7 +34,7 @@
 <div class="fragment"><pre class="fragment"><span class="preprocessor">    #include &lt;<a class="code" href="stdint_8h.html">stdint.h</a>&gt;</span>
 <span class="preprocessor">    #include &lt;<a class="code" href="wdt_8h.html">avr/wdt.h</a>&gt;</span>

-    <a class="code" href="group__avr__stdint.html#gba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> mcusr_mirror attribute ((section (<span class="stringliteral">".noinit"</span>)));
+    <a class="code" href="group__avr__stdint.html#gba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> mcusr_mirror _attribute_ ((section (<span class="stringliteral">".noinit"</span>)));

     <span class="keywordtype">void</span> get_mcusr(<span class="keywordtype">void</span>) \
       _attribute_((naked)) \

Juergen Weigert <jnweiger>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by joerg_wunsch (Updated the item)
  • -email is unavailable- added by jnweiger (Submitted the item)
  •  

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-10-04 joerg_wunsch Fixed ReleaseNone => 1.7.0
    2008-10-04 joerg_wunsch StatusNone => Fixed
        Assigned toNone => joerg_wunsch
        Open/ClosedOpen => Closed

    Back to the top


    Powered by Savane 3.5