Re: Rules about type of comparison of gcc vector types

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Unfortunately, Clang and GCC implement different rules here, so perhaps
> it would be best to avoid a dependency on that, if possible?..

I'm actually trying to fix Clang to make it compatible with GCC (at
https://github.com/llvm/llvm-project/issues/132604 ) :~)

> For GCC, element type for the resulting vector is chosen in
> c_common_type_for_size, which starts by picking a suitable type in sequence
> int, signed char, short, long, long long. Hence, 'long' is never chosen on
> ILP32 platforms, and 'long long' won't be picked on LP64.

Thank you for your description of the behavior!

PS: Sorry, I forgot to include the mailing list in the first reply.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux