On Thu, 8 Feb 2007, Linus Torvalds wrote: > Even gcc DOES DIFFERENT THINGS! Have you even read the docs? > > By default it is treated as signed int but this may be changed by > the -funsigned-bitfields option. > Yes, I read the 4.1.1 docs: By default, such a bit-field is signed, because this is consistent: the basic integer types such as int are signed types. That is the whole basis for my argument, when you declare something "int," most programmers would consider that to be SIGNED regardless of whether it is 32 bits, 13 bits, or 1 bit. No doubt it is configurable because of the existance of brain-dead compilers that treat them as unsigned. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: somebody dropped a (warning) bomb
- From: Linus Torvalds <[email protected]>
- Re: somebody dropped a (warning) bomb
- References:
- somebody dropped a (warning) bomb
- From: Jeff Garzik <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Linus Torvalds <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Jan Engelhardt <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Linus Torvalds <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Jan Engelhardt <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Linus Torvalds <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: David Rientjes <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Linus Torvalds <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: David Rientjes <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Linus Torvalds <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: David Rientjes <[email protected]>
- Re: somebody dropped a (warning) bomb
- From: Linus Torvalds <[email protected]>
- somebody dropped a (warning) bomb
- Prev by Date: [patch] bugfixes and new hardware support for arcnet driver
- Next by Date: Re: [PATCH] ATA convert GSI to irq on ia64
- Previous by thread: Re: somebody dropped a (warning) bomb
- Next by thread: Re: somebody dropped a (warning) bomb
- Index(es):