aaron.ballman added inline comments. ================ Comment at: include/clang/Basic/DiagnosticSemaKinds.td:2765 @@ +2764,3 @@ +def warn_vector_mode_deprecated : Warning< + "specifying vector types with __attribute__ ((mode)) is deprecated, " + "use __attribute__ ((vector_size)) instead">, ---------------- DmitryPolukhin wrote: > aaron.ballman wrote: > > How about: > > > > "'mode' attribute is not supported for vector types; use the 'vector_size' > > attribute instead" > Both GCC and ICC support vector types in mode attribute with similar warning > so for compatibility reasons it is better to implement it. Taking into > account that detection of vector types is more than half of supporting them. > I do agree that warning group is confusing. I was not able to find more > suitable warning group so would you recommend to create new one for this > warning? Are there headers from major library vendors that rely on supporting this feature? If not, then I would say it's probably better to simply not implement the diagnostic and fail to support such constructs at all. If it is used by major vendors and would prevent otherwise functional code from working, then this approach is reasonable. In that case, I would add a new diagnostic group (DeprecatedAttributes and add it to the Deprecated group).
http://reviews.llvm.org/D14744 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits