This is the mail archive of the gcc@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: sizeof (_Bool)


> yes, "vector" is context sensitive.  "vector long" is treated
> as in the PIM (including a warning as deprecated, but that's recent).

is is a problem with gcc's current implementation and we can't really
do anything about it until we get a merged front end and get rid of
this __builtin_choose_expr stuff.  right no "vector long" and "vector
int" both map to V4SI (signed) and there's no way to distinguish between
them.

> 
> This is also context sensitive in the FE(s), and quite tricky
> to get right.  I don't think there's any other way to conform
> to the PIM and all the language standards, so if you don't
> want to go the context-sensitive route, you'll have to decide
> which conformance to give up.

i might end up getting rid of bool altogether out of the FSF version,
unless someone can come up with a better solution.

aldy


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