usage of -funsigned-char
Mike Frysinger
vapier at gentoo.org
Tue Dec 4 06:06:28 UTC 2007
On Monday 03 December 2007, Denys Vlasenko wrote:
> On Sunday 02 December 2007 15:52, Mike Frysinger wrote:
> > can we analyze the usage of -funsigned-char in Makefile.flags ? i feel
> > like this is the wrong way to go for anything ...
>
> I think it is a great way to avoid all sorts of stupid bugs
> when char is inadvertently sign-extended.
>
> I try to write code such that it will work with signed char,
> but at the same time -funsigned-char gives additional protection -
> even if some code is potentially buggy wrt signed char, it
> will actually work.
while in general, i can understand this ... but it's my understanding that the
signedness of the char may be tied to the ISA and it can actually be a severe
determinate to optimization capabilities where forcing the signedness to the
opposite of the default ISA ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.busybox.net/pipermail/busybox/attachments/20071204/755eaf96/attachment-0002.pgp
More information about the busybox
mailing list