Bug 3073 - i386 asm/sigcontext.h has union without a name
Summary: i386 asm/sigcontext.h has union without a name
Status: RESOLVED INVALID
Alias: None
Product: uClibc
Classification: Unclassified
Component: Other (show other bugs)
Version: 0.9.31
Hardware: PC Linux
: P5 minor
Target Milestone: ---
Assignee: Carmelo Amoroso
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-12 10:08 UTC by Will Moore
Modified: 2011-02-02 16:38 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Will Moore 2011-01-12 10:08:47 UTC
i386 /asm/sigcontext.h line 96 has
    };
when it should be
    }some_union_name;

Gcc coughs at the lack of name for the union when configured -pedantic -pedantic-errors.  Looking at the git tree
online this is still present though I tripped over it when using uclibc 0.9.31
as a part of buildroot2010.11.
Comment 1 Will Moore 2011-01-12 13:12:46 UTC
Ignore previous comment "Looking at the git tree
online this is still present ", I have not a clue how what is in git gets into i386 /asm/sigcontext.h.   I saw this in 0.9.31 and it may be fixed later versions...
Comment 2 Carmelo Amoroso 2011-02-01 10:33:28 UTC
Hi Will,
the sigcontext.h you are referring to is part of the kernel headers.
You should post a patch to the LKML instead of uCLibc.

Cheers,
Carmelo
Comment 3 Bernhard Reutner-Fischer 2011-02-02 16:38:30 UTC
This is called anonymous union, and is a normal (IIRC) gnu99 thing.