Hi Andreas.

On Sat, 17 Jan 2015 17:30:40 +0100, Andreas Färber wrote:
> Am 17.01.2015 um 17:11 schrieb Mark Odell:
>> 
>> typedef struct // No struct tag, must use typedef.
>> {
>>         union {
>>                 ...
>>                 int32_t  *int32_p;
>>         }; // Anonymous union makes use easier
> [snup]
> 
> I vaguely recall that gcc 4.8+ warns about anonymous unions?

My gcc-4.8.3 doesn't. (By default I've enabled all the warnings I know of, in 
addition to -Wall; perhaps I'm just missing something).

> Also some other projects do name structs despite using typedefs, as
> that's supposedly the name gdb picks up.

Some people like typedefs, others don't. I've tried to find out which is 
better, and I ended up having no real opinion on it.
(I initially didn't add a typedef, because I know it's not always favored. 
Personally, I use typedefs a lot, as I see it as a part of the C-language).

As for myself, I'm hoping that I can set up GDC (dlang.org), so I can get a 
Cortex-M toolchain that supports OOP without the C++ kludge. ;)
<http://wiki.dlang.org/Bare_Metal_ARM_Cortex-M_GDC_Cross_Compiler>


Love
Jens

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to