[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #27201] _WORDREGISTER in xmega headers does not work
From: |
Joerg Wunsch |
Subject: |
[avr-libc-dev] [bug #27201] _WORDREGISTER in xmega headers does not work in C99 mode |
Date: |
Fri, 07 Aug 2009 10:52:35 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.19) Gecko/20081217 SeaMonkey/1.1.14 |
Follow-up Comment #1, bug #27201 (project avr-libc):
The problem is that accessing the union (and also struct,
for byte-wide access) elements without naming the union
itself is a GCC extension, so it is turned off when compiling
with -std=c99.
It appears to me that prepending the entire union declaration
with __extension__ does fix it by telling GCC "It's OK to use
the following GCC extension here, regardless of the --std
option in effect".
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?27201>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/