This is the mail archive of the gcc-patches@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]

Re: [PR c++/33887] Fix incorrect use of jboolean in link.cc


>>>>> "Richard" == Richard Guenther <richard.guenther@gmail.com> writes:

Richard> Thinking about it -- jboolean is unsigned : 1?  I guess for b
Richard> += x to work it should be bool : 1, which has special
Richard> semantics for addition.  That is:

I think it should really just work the same as 'bool'.
So, yeah, I think your patch is probably what we want.

Alexandre's patch is still what I prefer, though, since I don't like
to see math-y operations on booleans.

Tom


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