This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[C++ patch] typedef'd bitfields


Hi,
Here's a patch to get bitfields via a non-explicitly signed typedef
to obey the ABI's bitfield signedness. Strange though it is that,

typedef int Int;
struct S {
	Int a : 1;		// might or might not be signed
};

Also tidies up some other bits of grokdeclarator.


built & tested on i686-pc-linux-gnu, ok?

nathan
-- 
Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
         'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org

Attachment: bitfield-2.patch
Description: Binary data

Attachment: bitfield1.C
Description: Binary data

Attachment: bitfield2.C
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]