2013-03-21 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / c / ChangeLog
bloba76fb3e88621ccda71f422785ff8c29d1e06f08e
1 2013-03-21  Richard Biener  <rguenther@suse.de>
3         * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
4         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
6 2013-02-12  Marek Polacek  <polacek@redhat.com>
8         PR c/44938
9         * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
10         origtypes to NULL.
12 2013-01-24  Jakub Jelinek  <jakub@redhat.com>
14         PR c/56078
15         * c-typeck.c (set_nonincremental_init_from_string): If
16         constructor_max_index is NULL, treat it as if tree_int_cst_lt
17         returned false.
18         (process_init_element): Likewise.
20 2012-12-20  Jakub Jelinek  <jakub@redhat.com>
22         PR c++/55619
23         * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
24         argument, don't call default_function_array_conversion
25         nor c_fully_fold here.
26         (c_parser_asm_statement): Adjust callers.
27         * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
28         and outputs here, and call default_function_array_conversion
29         on inputs that don't need to be addressable.
31 2012-12-18  Jakub Jelinek  <jakub@redhat.com>
33         PR c/39464
34         * c-typeck.c (convert_for_assignment): For -Wpointer-sign
35         warning require that both c_common_unsigned_type as well as
36         c_common_signed_type is the same for both mvl and mvr types.
38 2012-11-16  Diego Novillo  <dnovillo@google.com>
40         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
42         * c-common.c: Use new vec API in vec.h.
43         * c-common.h: Likewise.
44         * c-gimplify.c: Likewise.
45         * c-pragma.c: Likewise.
46         * c-pretty-print.c: Likewise.
47         * c-pretty-print.h: Likewise.
48         * c-semantics.c: Likewise.
49         * c-decl.c: Likewise.
50         * c-parser.c: Likewise.
51         * c-tree.h: Likewise.
52         * c-typeck.c: Likewise.
54 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
56         PR c++/54930
57         * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
59 2012-10-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
61         PR c/53066
62         * c-decl.c (warn_if_shadowing): Do not warn if a variable
63         shadows a function, unless the variable is a function or a
64         pointer-to-function.
66 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
68         PR c/54381
69         * c-parser.c (struct c_tree_loc_pair): Removed.
70         (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
71         add location_t * and tree * arguments, fill in array of 3
72         sizeof_arg trees and corresponding locs.
73         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
74         c_parser_expr_list callers.
75         (c_parser_postfix_expression_after_primary): Likewise.  Pass
76         array of 3 sizeof_arg trees and locs (corresponding to first
77         3 arguments) to sizeof_pointer_memaccess_warning.
79 2012-10-09  Lawrence Crowl  <crowl@google.com>
81         * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
82         * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
83         hash table.
85 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
87         PR c++/54194
88         * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
89         call.
91 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
93         PR c++/54427
94         * c-typeck.c: Include c-common.h.
95         (enum stv_conv): Moved to c-common.h.
96         (scalar_to_vector): Moved to c-common.c.
97         (build_binary_op): Adapt to scalar_to_vector's new prototype.
98         * Make-lang.in: c-typeck.c depends on c-common.h.
100 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
102         * c-decl.c (c_write_global_declarations): Fix handling of
103         -fdump-ada-spec*.
105 2012-09-30  Sharad Singhai  <singhai@google.com>
107         * c-decl.c (c_write_global_declarations): Use a different method
108         to determine if the dump has ben initialized.
110 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
112         PR c/54552
113         * c-typeck.c (c_cast_expr): When casting to a type requiring
114         C_MAYBE_CONST_EXPR to be created, pass the inner expression to
115         c_fully_fold first.
117 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
119         PR c/54103
120         * c-typeck.c (build_unary_op): Pass original argument of
121         TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
122         any C_MAYBE_CONST_EXPR, if it has integer operands.
123         (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
124         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
125         to c_objc_common_truthvalue_conversion, then remove any
126         C_MAYBE_CONST_EXPR, if they have integer operands.  Use
127         c_objc_common_truthvalue_conversion not
128         c_common_truthvalue_conversion.
129         (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
130         call note_integer_operands for arguments with integer operands
131         that are not integer constants.
133 2012-09-13  Jakub Jelinek  <jakub@redhat.com>
135         PR c/54559
136         * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
137         COMPLEX_TYPE with in_late_binary_op set temporarily to true.
139 2012-08-31  Jakub Jelinek  <jakub@redhat.com>
141         PR c/54428
142         * c-convert.c (convert): Don't call fold_convert_loc if
143         TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
144         is a COMPLEX_EXPR.  Remove TYPE_MAIN_VARIANT check from
145         COMPLEX_TYPE -> COMPLEX_TYPE conversion.
147 2012-08-24  Jakub Jelinek  <jakub@redhat.com>
149         PR c/54355
150         * c-decl.c (c_parser_label): Pass true as nested and fix up comments
151         for nested and empty_ok arguments in the call to
152         c_parser_declaration_or_fndef.
154 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
156         * c-tree.h (c_last_sizeof_arg): Declare.
157         * c-parser.c (struct c_tree_loc_pair): New type.
158         (c_parser_expr_list): Add sizeof_arg argument.  Fill it in if
159         non-NULL.
160         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
161         (c_parser_postfix_expression_after_primary): Likewise.  Call
162         sizeof_pointer_memaccess_warning if needed.
163         (sizeof_ptr_memacc_comptypes): New function.
164         * c-typeck.c (c_last_sizeof_arg): New global variable.
165         (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
167 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
169         * c-lang.h (lang_decl): Add variable_size GTY option.
171 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
173         * c-decl.c: Include dumpfile.h instead of tree-dump.h.
174         * Make-lang.in: Fix dependencies.
176 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
178         * Make-lang.in: New file, rules migrated from gcc/Makefile.in
179         and add language Makefile hooks.
180         * config-lang.in: New file.
181         * c-config-lang.in: Moved from gcc/config-lang.in to here, and
182         add the required "normal" config-lang.in rules.
183         * c-lang.h: Moved from gcc/ to here.
184         * c-tree.h: Likewise.
185         * c-objc-common.c: Likewise.
186         * c-objc-common.h: Likewise.
187         * c-typeck.c: Likewise.
188         * c-convert.c: Likewise.
189         * c-lang.c: Likewise.
190         * c-aux-info.c: Likewise.
191         * c-errors.c: Likewise.
192         * gccspec.c: Likewise.
193         * c-decl.c: Likewise.  Include gt-c-c-decl.h, not gt-c-decl.h.
194         * c-parser.c: Likewise.  Include gt-c-c-parser.h, not gt-c-parser.h.
196 Copyright (C) 2012-2013 Free Software Foundation, Inc.
198 Copying and distribution of this file, with or without modification,
199 are permitted in any medium without royalty provided the copyright
200 notice and this notice are preserved.