PR c++/79641
* c-attribs.c (handle_mode_attribute): Use build_qualified_type to
preserve quals.
* c-c++-common/pr79641.c: New test.
From-SVN: r245632
+2017-02-21 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/79641
+ * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
+ preserve quals.
+
2017-02-17 Joseph Myers <joseph@codesourcery.com>
* c-cppbuiltin.c (builtin_define_float_constants): Define
return NULL_TREE;
}
- *node = typefm;
+ *node = build_qualified_type (typefm, TYPE_QUALS (type));
}
return NULL_TREE;
2017-02-21 Jakub Jelinek <jakub@redhat.com>
+ PR c++/79641
+ * c-c++-common/pr79641.c: New test.
+
PR tree-optimization/79649
* gcc.target/i386/pr79649.c: New test.
--- /dev/null
+/* PR c++/79641 */
+/* { dg-do compile } */
+
+const int __attribute__((__mode__ (__QI__))) i = 0;