re PR c/88701 (Internal compiler error for valid program using compound literal with...
[gcc.git] / gcc / c / ChangeLog
index 6f0f67cc190128ec522efde9fcc9d58e368ba81b..7cffd900c274ecedf103a7f4132ad8752ad6bbe2 100644 (file)
@@ -1,3 +1,86 @@
+2019-01-07  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c/88701
+       * c-decl.c (build_compound_literal): If not TREE_STATIC, only pushdecl
+       if current_function_decl is non-NULL.
+
+2019-01-07  Joseph Myers  <joseph@codesourcery.com>
+
+       PR c/88720
+       PR c/88726
+       * c-decl.c (pop_scope): Use TREE_PUBLIC and b->nested to determine
+       whether a function is nested, not DECL_EXTERNAL.  Diagnose inline
+       functions declared but never defined only for external scope, not
+       for other scopes.
+
+2019-01-07  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/85052
+       * c-parser.c (c_parser_postfix_expression): Parse
+       __builtin_convertvector.
+
+2019-01-01  Jakub Jelinek  <jakub@redhat.com>
+
+       Update copyright years.
+
+2018-12-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR c/51628
+       * c-typeck.c (convert_for_assignment): Call
+       warn_for_address_or_pointer_of_packed_member.
+
+2018-12-19  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * c-parser.c (c_parser_asm_statement) <RID_CONST, RID_RESTRICT>: Give
+       a more specific error message (instead of just falling through).
+
+2018-12-19  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * c-parser.c (c_parser_asm_statement): Keep track of the location each
+       asm qualifier is first seen; use that to give nicer "duplicate asm
+       qualifier" messages.  Delete 'quals" variable, instead pass the
+       "is_volatile_ flag to build_asm_stmt directly.
+       * c-tree.h (build_asm_stmt): Make the first arg bool instead of tree.
+       * c-typeck.c (build_asm_stmt): Ditto; adjust.
+
+2018-12-19  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * c-parser.c (c_parser_asm_statement): Rewrite the loop to work without
+       "done" boolean variable.
+
+2018-12-19  David Malcolm  <dmalcolm@redhat.com>
+
+       PR c++/87504
+       * c-typeck.c (class maybe_range_label_for_tree_type_mismatch):
+       Move from here to gcc-rich-location.h and gcc-rich-location.c.
+       (build_binary_op): Use struct op_location_t and
+       class binary_op_rich_location.
+
+2018-12-11  Jakub Jelinek  <jakub@redhat.com>
+
+       PR sanitizer/88426
+       * c-convert.c (convert): Call c_fully_fold before calling
+       ubsan_instrument_float_cast.
+
+2018-12-08  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * c-parser (c_parser_asm_statement) [RID_INLINE]: Delete stray line
+       setting "quals".
+
+2018-12-06  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * c-parser.c (c_parser_asm_statement): Detect the inline keyword
+       after asm.  Pass a flag for it to build_asm_expr.
+       * c-tree.h (build_asm_expr): Update declaration.
+       * c-typeck.c (build_asm_stmt): Add is_inline parameter.  Use it to
+       set ASM_INLINE_P.
+
+2018-12-06  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       PR inline-asm/55681
+       * c-parser.c (c_parser_asm_statement): Update grammar.  Allow any
+       combination of volatile and goto, in any order, without repetitions.
+
 2018-12-04  James Norris  <jnorris@codesourcery.com>
            Cesar Philippidis  <cesar@codesourcery.com>
            Julian Brown  <julian@codesourcery.com>
        * c-decl.c: Likewise.  Include gt-c-c-decl.h, not gt-c-decl.h.
        * c-parser.c: Likewise.  Include gt-c-c-parser.h, not gt-c-parser.h.
 \f
-Copyright (C) 2012-2018 Free Software Foundation, Inc.
+Copyright (C) 2012-2019 Free Software Foundation, Inc.
 
 Copying and distribution of this file, with or without modification,
 are permitted in any medium without royalty provided the copyright