]>
Commit | Line | Data |
---|---|---|
44d90fe1 PC |
1 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
2 | ||
3 | * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns | |
4 | to simply use OPT_Wpointer_arith. | |
5 | (build_unary_op): Likewise. | |
6 | ||
4e7d7b3d JJ |
7 | 2013-04-03 Jakub Jelinek <jakub@redhat.com> |
8 | ||
9 | PR c/19449 | |
10 | * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p | |
11 | argument. If set, or it temporarily for parsing of the first | |
12 | argument into force_folding_builtin_constant_p. | |
13 | (c_parser_postfix_expression): Adjust callers. | |
14 | ||
839b422f RB |
15 | 2013-03-21 Richard Biener <rguenther@suse.de> |
16 | ||
17 | * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P | |
18 | instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly. | |
19 | ||
2ee028f1 MP |
20 | 2013-02-12 Marek Polacek <polacek@redhat.com> |
21 | ||
22 | PR c/44938 | |
23 | * c-parser.c (c_parser_postfix_expression_after_primary): Initialize | |
24 | origtypes to NULL. | |
25 | ||
8824edff JJ |
26 | 2013-01-24 Jakub Jelinek <jakub@redhat.com> |
27 | ||
28 | PR c/56078 | |
29 | * c-typeck.c (set_nonincremental_init_from_string): If | |
30 | constructor_max_index is NULL, treat it as if tree_int_cst_lt | |
31 | returned false. | |
32 | (process_init_element): Likewise. | |
33 | ||
eadd3d0d JJ |
34 | 2012-12-20 Jakub Jelinek <jakub@redhat.com> |
35 | ||
36 | PR c++/55619 | |
37 | * c-parser.c (c_parser_asm_operands): Remove CONVERT_P | |
38 | argument, don't call default_function_array_conversion | |
39 | nor c_fully_fold here. | |
40 | (c_parser_asm_statement): Adjust callers. | |
41 | * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs | |
42 | and outputs here, and call default_function_array_conversion | |
43 | on inputs that don't need to be addressable. | |
44 | ||
f8a93a2e JJ |
45 | 2012-12-18 Jakub Jelinek <jakub@redhat.com> |
46 | ||
47 | PR c/39464 | |
48 | * c-typeck.c (convert_for_assignment): For -Wpointer-sign | |
49 | warning require that both c_common_unsigned_type as well as | |
50 | c_common_signed_type is the same for both mvl and mvr types. | |
51 | ||
9771b263 DN |
52 | 2012-11-16 Diego Novillo <dnovillo@google.com> |
53 | ||
54 | Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) | |
55 | ||
56 | * c-common.c: Use new vec API in vec.h. | |
57 | * c-common.h: Likewise. | |
58 | * c-gimplify.c: Likewise. | |
59 | * c-pragma.c: Likewise. | |
60 | * c-pretty-print.c: Likewise. | |
61 | * c-pretty-print.h: Likewise. | |
62 | * c-semantics.c: Likewise. | |
63 | * c-decl.c: Likewise. | |
64 | * c-parser.c: Likewise. | |
65 | * c-tree.h: Likewise. | |
66 | * c-typeck.c: Likewise. | |
67 | ||
880661a4 JW |
68 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
69 | ||
70 | PR c++/54930 | |
71 | * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr. | |
72 | ||
077d1abe MLI |
73 | 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
74 | ||
75 | PR c/53066 | |
76 | * c-decl.c (warn_if_shadowing): Do not warn if a variable | |
77 | shadows a function, unless the variable is a function or a | |
78 | pointer-to-function. | |
79 | ||
3a785c97 JJ |
80 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
81 | ||
82 | PR c/54381 | |
83 | * c-parser.c (struct c_tree_loc_pair): Removed. | |
84 | (c_parser_expr_list): Remove struct c_tree_loc_pair * argument, | |
85 | add location_t * and tree * arguments, fill in array of 3 | |
86 | sizeof_arg trees and corresponding locs. | |
87 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust | |
88 | c_parser_expr_list callers. | |
89 | (c_parser_postfix_expression_after_primary): Likewise. Pass | |
90 | array of 3 sizeof_arg trees and locs (corresponding to first | |
91 | 3 arguments) to sizeof_pointer_memaccess_warning. | |
92 | ||
703c8606 LC |
93 | 2012-10-09 Lawrence Crowl <crowl@google.com> |
94 | ||
95 | * Make-lang.in (c-decl.o): Add dependence on hash-table.h. | |
96 | * c-decl.c (detect_field_duplicates_hash): Change to new type-safe | |
97 | hash table. | |
98 | ||
5d9de0d0 PC |
99 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
100 | ||
101 | PR c++/54194 | |
102 | * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses | |
103 | call. | |
104 | ||
a212e43f MG |
105 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
106 | ||
107 | PR c++/54427 | |
108 | * c-typeck.c: Include c-common.h. | |
109 | (enum stv_conv): Moved to c-common.h. | |
110 | (scalar_to_vector): Moved to c-common.c. | |
111 | (build_binary_op): Adapt to scalar_to_vector's new prototype. | |
112 | * Make-lang.in: c-typeck.c depends on c-common.h. | |
113 | ||
3b78de56 AC |
114 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
115 | ||
116 | * c-decl.c (c_write_global_declarations): Fix handling of | |
117 | -fdump-ada-spec*. | |
118 | ||
78c60e3d SS |
119 | 2012-09-30 Sharad Singhai <singhai@google.com> |
120 | ||
121 | * c-decl.c (c_write_global_declarations): Use a different method | |
122 | to determine if the dump has ben initialized. | |
123 | ||
9f33203d JM |
124 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
125 | ||
126 | PR c/54552 | |
127 | * c-typeck.c (c_cast_expr): When casting to a type requiring | |
128 | C_MAYBE_CONST_EXPR to be created, pass the inner expression to | |
129 | c_fully_fold first. | |
130 | ||
a27d595d JM |
131 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
132 | ||
133 | PR c/54103 | |
134 | * c-typeck.c (build_unary_op): Pass original argument of | |
135 | TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove | |
136 | any C_MAYBE_CONST_EXPR, if it has integer operands. | |
137 | (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR, | |
138 | TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR | |
139 | to c_objc_common_truthvalue_conversion, then remove any | |
140 | C_MAYBE_CONST_EXPR, if they have integer operands. Use | |
141 | c_objc_common_truthvalue_conversion not | |
142 | c_common_truthvalue_conversion. | |
143 | (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and | |
144 | call note_integer_operands for arguments with integer operands | |
145 | that are not integer constants. | |
146 | ||
9feb29df JJ |
147 | 2012-09-13 Jakub Jelinek <jakub@redhat.com> |
148 | ||
149 | PR c/54559 | |
150 | * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or | |
151 | COMPLEX_TYPE with in_late_binary_op set temporarily to true. | |
152 | ||
d409320c JJ |
153 | 2012-08-31 Jakub Jelinek <jakub@redhat.com> |
154 | ||
155 | PR c/54428 | |
156 | * c-convert.c (convert): Don't call fold_convert_loc if | |
157 | TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e | |
158 | is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from | |
159 | COMPLEX_TYPE -> COMPLEX_TYPE conversion. | |
160 | ||
6265d07c JJ |
161 | 2012-08-24 Jakub Jelinek <jakub@redhat.com> |
162 | ||
163 | PR c/54355 | |
164 | * c-decl.c (c_parser_label): Pass true as nested and fix up comments | |
165 | for nested and empty_ok arguments in the call to | |
166 | c_parser_declaration_or_fndef. | |
167 | ||
1a4049e7 JJ |
168 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
169 | ||
170 | * c-tree.h (c_last_sizeof_arg): Declare. | |
171 | * c-parser.c (struct c_tree_loc_pair): New type. | |
172 | (c_parser_expr_list): Add sizeof_arg argument. Fill it in if | |
173 | non-NULL. | |
174 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers. | |
175 | (c_parser_postfix_expression_after_primary): Likewise. Call | |
176 | sizeof_pointer_memaccess_warning if needed. | |
177 | (sizeof_ptr_memacc_comptypes): New function. | |
178 | * c-typeck.c (c_last_sizeof_arg): New global variable. | |
179 | (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it. | |
180 | ||
0229aee9 UB |
181 | 2012-07-24 Uros Bizjak <ubizjak@gmail.com> |
182 | ||
183 | * c-lang.h (lang_decl): Add variable_size GTY option. | |
184 | ||
7ee2468b SB |
185 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
186 | ||
187 | * c-decl.c: Include dumpfile.h instead of tree-dump.h. | |
188 | * Make-lang.in: Fix dependencies. | |
189 | ||
d4a10d0a SB |
190 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
191 | ||
192 | * Make-lang.in: New file, rules migrated from gcc/Makefile.in | |
193 | and add language Makefile hooks. | |
194 | * config-lang.in: New file. | |
195 | * c-config-lang.in: Moved from gcc/config-lang.in to here, and | |
196 | add the required "normal" config-lang.in rules. | |
197 | * c-lang.h: Moved from gcc/ to here. | |
198 | * c-tree.h: Likewise. | |
199 | * c-objc-common.c: Likewise. | |
200 | * c-objc-common.h: Likewise. | |
201 | * c-typeck.c: Likewise. | |
202 | * c-convert.c: Likewise. | |
203 | * c-lang.c: Likewise. | |
204 | * c-aux-info.c: Likewise. | |
205 | * c-errors.c: Likewise. | |
206 | * gccspec.c: Likewise. | |
207 | * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h. | |
208 | * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h. | |
209 | \f | |
d1e082c2 | 210 | Copyright (C) 2012-2013 Free Software Foundation, Inc. |
d4a10d0a SB |
211 | |
212 | Copying and distribution of this file, with or without modification, | |
213 | are permitted in any medium without royalty provided the copyright | |
214 | notice and this notice are preserved. |