PR tree-ssa/57385
[official-gcc.git] / gcc / c / ChangeLog
blobe0fef1e164fcaec34498f28b25ddc9b39b921fb6
1 2013-05-23  Mike Stump  <mikestump@comcast.net>
3         * c-typeck.c (convert_for_assignment): Handle references to memory
4         spaces better.
6 2013-05-16  Jason Merrill  <jason@redhat.com>
8         * Make-lang.in (cc1$(exeext)): Use link mutex.
10 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
12         * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
13         to simply use OPT_Wpointer_arith.
14         (build_unary_op): Likewise.
16 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
18         PR c/19449
19         * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
20         argument.  If set, or it temporarily for parsing of the first
21         argument into force_folding_builtin_constant_p.
22         (c_parser_postfix_expression): Adjust callers.
24 2013-03-21  Richard Biener  <rguenther@suse.de>
26         * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
27         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
29 2013-02-12  Marek Polacek  <polacek@redhat.com>
31         PR c/44938
32         * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
33         origtypes to NULL.
35 2013-01-24  Jakub Jelinek  <jakub@redhat.com>
37         PR c/56078
38         * c-typeck.c (set_nonincremental_init_from_string): If
39         constructor_max_index is NULL, treat it as if tree_int_cst_lt
40         returned false.
41         (process_init_element): Likewise.
43 2012-12-20  Jakub Jelinek  <jakub@redhat.com>
45         PR c++/55619
46         * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
47         argument, don't call default_function_array_conversion
48         nor c_fully_fold here.
49         (c_parser_asm_statement): Adjust callers.
50         * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
51         and outputs here, and call default_function_array_conversion
52         on inputs that don't need to be addressable.
54 2012-12-18  Jakub Jelinek  <jakub@redhat.com>
56         PR c/39464
57         * c-typeck.c (convert_for_assignment): For -Wpointer-sign
58         warning require that both c_common_unsigned_type as well as
59         c_common_signed_type is the same for both mvl and mvr types.
61 2012-11-16  Diego Novillo  <dnovillo@google.com>
63         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
65         * c-common.c: Use new vec API in vec.h.
66         * c-common.h: Likewise.
67         * c-gimplify.c: Likewise.
68         * c-pragma.c: Likewise.
69         * c-pretty-print.c: Likewise.
70         * c-pretty-print.h: Likewise.
71         * c-semantics.c: Likewise.
72         * c-decl.c: Likewise.
73         * c-parser.c: Likewise.
74         * c-tree.h: Likewise.
75         * c-typeck.c: Likewise.
77 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
79         PR c++/54930
80         * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
82 2012-10-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
84         PR c/53066
85         * c-decl.c (warn_if_shadowing): Do not warn if a variable
86         shadows a function, unless the variable is a function or a
87         pointer-to-function.
89 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
91         PR c/54381
92         * c-parser.c (struct c_tree_loc_pair): Removed.
93         (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
94         add location_t * and tree * arguments, fill in array of 3
95         sizeof_arg trees and corresponding locs.
96         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
97         c_parser_expr_list callers.
98         (c_parser_postfix_expression_after_primary): Likewise.  Pass
99         array of 3 sizeof_arg trees and locs (corresponding to first
100         3 arguments) to sizeof_pointer_memaccess_warning.
102 2012-10-09  Lawrence Crowl  <crowl@google.com>
104         * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
105         * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
106         hash table.
108 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
110         PR c++/54194
111         * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
112         call.
114 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
116         PR c++/54427
117         * c-typeck.c: Include c-common.h.
118         (enum stv_conv): Moved to c-common.h.
119         (scalar_to_vector): Moved to c-common.c.
120         (build_binary_op): Adapt to scalar_to_vector's new prototype.
121         * Make-lang.in: c-typeck.c depends on c-common.h.
123 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
125         * c-decl.c (c_write_global_declarations): Fix handling of
126         -fdump-ada-spec*.
128 2012-09-30  Sharad Singhai  <singhai@google.com>
130         * c-decl.c (c_write_global_declarations): Use a different method
131         to determine if the dump has ben initialized.
133 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
135         PR c/54552
136         * c-typeck.c (c_cast_expr): When casting to a type requiring
137         C_MAYBE_CONST_EXPR to be created, pass the inner expression to
138         c_fully_fold first.
140 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
142         PR c/54103
143         * c-typeck.c (build_unary_op): Pass original argument of
144         TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
145         any C_MAYBE_CONST_EXPR, if it has integer operands.
146         (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
147         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
148         to c_objc_common_truthvalue_conversion, then remove any
149         C_MAYBE_CONST_EXPR, if they have integer operands.  Use
150         c_objc_common_truthvalue_conversion not
151         c_common_truthvalue_conversion.
152         (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
153         call note_integer_operands for arguments with integer operands
154         that are not integer constants.
156 2012-09-13  Jakub Jelinek  <jakub@redhat.com>
158         PR c/54559
159         * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
160         COMPLEX_TYPE with in_late_binary_op set temporarily to true.
162 2012-08-31  Jakub Jelinek  <jakub@redhat.com>
164         PR c/54428
165         * c-convert.c (convert): Don't call fold_convert_loc if
166         TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
167         is a COMPLEX_EXPR.  Remove TYPE_MAIN_VARIANT check from
168         COMPLEX_TYPE -> COMPLEX_TYPE conversion.
170 2012-08-24  Jakub Jelinek  <jakub@redhat.com>
172         PR c/54355
173         * c-decl.c (c_parser_label): Pass true as nested and fix up comments
174         for nested and empty_ok arguments in the call to
175         c_parser_declaration_or_fndef.
177 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
179         * c-tree.h (c_last_sizeof_arg): Declare.
180         * c-parser.c (struct c_tree_loc_pair): New type.
181         (c_parser_expr_list): Add sizeof_arg argument.  Fill it in if
182         non-NULL.
183         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
184         (c_parser_postfix_expression_after_primary): Likewise.  Call
185         sizeof_pointer_memaccess_warning if needed.
186         (sizeof_ptr_memacc_comptypes): New function.
187         * c-typeck.c (c_last_sizeof_arg): New global variable.
188         (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
190 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
192         * c-lang.h (lang_decl): Add variable_size GTY option.
194 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
196         * c-decl.c: Include dumpfile.h instead of tree-dump.h.
197         * Make-lang.in: Fix dependencies.
199 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
201         * Make-lang.in: New file, rules migrated from gcc/Makefile.in
202         and add language Makefile hooks.
203         * config-lang.in: New file.
204         * c-config-lang.in: Moved from gcc/config-lang.in to here, and
205         add the required "normal" config-lang.in rules.
206         * c-lang.h: Moved from gcc/ to here.
207         * c-tree.h: Likewise.
208         * c-objc-common.c: Likewise.
209         * c-objc-common.h: Likewise.
210         * c-typeck.c: Likewise.
211         * c-convert.c: Likewise.
212         * c-lang.c: Likewise.
213         * c-aux-info.c: Likewise.
214         * c-errors.c: Likewise.
215         * gccspec.c: Likewise.
216         * c-decl.c: Likewise.  Include gt-c-c-decl.h, not gt-c-decl.h.
217         * c-parser.c: Likewise.  Include gt-c-c-parser.h, not gt-c-parser.h.
219 Copyright (C) 2012-2013 Free Software Foundation, Inc.
221 Copying and distribution of this file, with or without modification,
222 are permitted in any medium without royalty provided the copyright
223 notice and this notice are preserved.