[PATCH] D14872: PR25575: Make GCC 4.4+ comatible layout for packed bit-fileds of char type

hfinkel@anl.gov via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 25 13:53:07 PST 2015


hfinkel added inline comments.

================
Comment at: include/clang/Basic/DiagnosticSemaKinds.td:2783
@@ -2783,1 +2782,3 @@
+  "the newer semantic is provided here">,
+  InGroup<DiagGroup<"attribute-packed-for-bitfield-semantic-changed">>;
 def warn_transparent_union_attribute_field_size_align : Warning<
----------------
Calling this "a semantic" reads oddly to me. This sounds better to me:

  def note_attribute_packed_for_bitfield_offset_changed : Warning<
    "the offset assigned to packed bit-field member %0 has changed with GCC version 4.4 - "
    "the newer offset is used here">,
    InGroup<DiagGroup<"attribute-packed-bitfield-offset-changed">>;

================
Comment at: lib/Sema/SemaDeclAttr.cpp:1040
@@ -1039,3 +1039,3 @@
     // If the alignment is less than or equal to 8 bits, the packed attribute
     // has no effect.
     if (!FD->getType()->isDependentType() &&
----------------
This comment is now out of date?


http://reviews.llvm.org/D14872





More information about the cfe-commits mailing list