]>
Commit | Line | Data |
---|---|---|
c3388e62 DM |
1 | 2015-05-12 David Malcolm <dmalcolm@redhat.com> |
2 | ||
3 | * c-common.h (warn_for_misleading_indentation): New prototype. | |
4 | * c-indentation.c: New file. | |
5 | * c.opt (Wmisleading-indentation): New option. | |
6 | ||
c7b38fd5 TV |
7 | 2015-05-12 Tom de Vries <tom@codesourcery.com> |
8 | ||
9 | PR tree-optimization/66010 | |
10 | * c-common.c (build_va_arg): Don't mark ap addressable unless necessary. | |
11 | ||
381bf11e JM |
12 | 2015-05-09 Jason Merrill <jason@redhat.com> |
13 | ||
edff0c06 JM |
14 | * c-opts.c (c_common_post_options): Also clear |
15 | cpp_opts->cpp_warn_cxx11_compat. | |
16 | ||
129211bc JM |
17 | * c-common.h (enum cxx_dialect): Add cxx_unset. |
18 | * c-common.c (cxx_dialect): Initialize to cxx_unset. | |
19 | * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset. | |
20 | ||
381bf11e JM |
21 | * c.opt (std=c++14): Remove Undocumented flag and experimental warning. |
22 | (std=gnu++0x): Mark as Undocumented. | |
23 | (std=gnu++1y): Add deprecated message. | |
24 | ||
fe191308 JM |
25 | 2015-05-08 Jason Merrill <jason@redhat.com> |
26 | ||
765189ff JM |
27 | * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat. |
28 | * c-opts.c: Adjust. | |
29 | ||
fe191308 JM |
30 | * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat. |
31 | ||
755e528f MP |
32 | 2015-05-08 Marek Polacek <polacek@redhat.com> |
33 | ||
34 | PR c/64918 | |
35 | * c.opt (Woverride-init-side-effects): New option. | |
36 | ||
0173bd2a MP |
37 | 2015-05-07 Marek Polacek <polacek@redhat.com> |
38 | ||
39 | PR c/65179 | |
40 | * c-common.c (c_fully_fold_internal): Warn when left shifting a | |
41 | negative value. | |
42 | * c.opt (Wshift-negative-value): New option. | |
43 | * c-opts.c (c_common_post_options): Set warn_shift_negative_value | |
44 | when -Wextra and C99/C++11 mode. | |
45 | ||
e0f0d3b9 MP |
46 | 2015-05-07 Marek Polacek <polacek@redhat.com> |
47 | Martin Uecker <uecker@eecs.berkeley.edu> | |
48 | ||
49 | * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting | |
50 | flexible member array-like members if SANITIZE_BOUNDS_STRICT. | |
51 | ||
8243e2a9 JM |
52 | 2015-05-05 Jason Merrill <jason@redhat.com> |
53 | ||
54 | * c.opt (Wterminate): New. | |
55 | ||
577cd070 MP |
56 | 2015-04-30 Marek Polacek <polacek@redhat.com> |
57 | ||
58 | * c-common.c (maybe_warn_bool_compare): When comparing with 0/1, | |
59 | require that the non-constant be of a boolean type. | |
60 | ||
0373796b JT |
61 | 2015-04-29 Josh Triplett <josh@joshtriplett.org> |
62 | ||
e0f0d3b9 MP |
63 | * c-common.c (handle_section_attribute): Refactor to reduce |
64 | nesting and distinguish between error cases. | |
0373796b | 65 | |
716c0ba6 MP |
66 | 2015-04-29 Marek Polacek <polacek@redhat.com> |
67 | ||
68 | PR c/64610 | |
69 | * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean | |
70 | with 0/1. | |
71 | ||
8848828b JJ |
72 | 2015-04-29 Jakub Jelinek <jakub@redhat.com> |
73 | ||
74 | * c-common.h (omp_clause_mask): Unconditionally define as a class. | |
75 | Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of | |
76 | HOST_BITS_PER_WIDE_INT. | |
77 | ||
ecd0e562 TV |
78 | 2015-04-28 Tom de Vries <tom@codesourcery.com> |
79 | ||
80 | PR tree-optimization/65887 | |
81 | * c-common.c (build_va_arg): Mark va_arg ap argument as addressable. | |
82 | ||
2a877204 | 83 | 2015-04-28 Eric Botcazou <ebotcazou@adacore.com> |
e0f0d3b9 | 84 | Pierre-Marie de Rodat <derodat@adacore.com> |
2a877204 EB |
85 | |
86 | * c-ada-spec.c (in_function): Delete. | |
87 | (dump_generic_ada_node): Do not change in_function and remove the | |
88 | redundant code dealing with it. | |
89 | (print_ada_declaration): Do not change in_function. Use INDENT_INCR. | |
90 | (print_ada_methods): Output the static member functions in a nested | |
91 | package after the regular methods as well as associated renamings. | |
92 | ||
4853031e MP |
93 | 2015-04-24 Marek Polacek <polacek@redhat.com> |
94 | ||
95 | PR c/65830 | |
96 | * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative | |
97 | and OPT_Wshift_count_overflow. | |
98 | ||
8c2b7f79 MP |
99 | PR c/63357 |
100 | * c-common.c (warn_logical_operator): Warn if the operands have the | |
101 | same expressions. | |
102 | ||
b8787813 MP |
103 | 2015-04-24 Marek Polacek <polacek@redhat.com> |
104 | ||
105 | PR c/61534 | |
106 | * c-common.c (warn_logical_operator): Bail if either operand comes | |
107 | from a macro expansion. | |
108 | ||
8fba1830 BRF |
109 | 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
110 | ||
111 | PR target/55143 | |
112 | * c-common.c (c_default_pointer_mode): Add definition. | |
113 | * c-common.h (c_default_pointer_mode): Add declaration. | |
114 | ||
17958621 JJ |
115 | 2015-03-11 Jakub Jelinek <jakub@redhat.com> |
116 | ||
117 | * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup | |
118 | on record_builtin_type argument. | |
119 | ||
7ccb1a11 JJ |
120 | 2015-03-10 Jakub Jelinek <jakub@redhat.com> |
121 | ||
122 | PR c/65120 | |
123 | * c-common.c (warn_logical_not_parentheses): Don't warn for | |
124 | !x == 0 or !x != 0. | |
125 | ||
04fd785e MP |
126 | 2015-03-07 Marek Polacek <polacek@redhat.com> |
127 | ||
128 | PR sanitizer/65280 | |
129 | * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF | |
130 | before trying to figure out whether we have a flexible array member. | |
131 | ||
a4e26206 EB |
132 | 2015-03-06 Eric Botcazou <ebotcazou@adacore.com> |
133 | Jonathan Wakely <jwakely.gcc@gmail.com> | |
134 | ||
135 | * c-ada-spec.c (dump_ada_double_name): Fix pasto. | |
136 | ||
0d2489f4 EB |
137 | 2015-03-05 Eric Botcazou <ebotcazou@adacore.com> |
138 | ||
139 | PR ada/65319 | |
140 | * c-ada-spec.c (print_destructor): Remove obsolete code. | |
141 | ||
83ed54d7 EB |
142 | 2015-03-01 Eric Botcazou <ebotcazou@adacore.com> |
143 | ||
144 | * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX. | |
145 | (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and | |
146 | DECL_TEMPLATE_RESULT emulations. | |
147 | (dump_ada_template)): Add guard for TYPE_METHODS. | |
148 | ||
7631f0e2 MP |
149 | 2015-02-27 Marek Polacek <polacek@redhat.com> |
150 | ||
151 | PR c/65040 | |
152 | * c.opt (Wformat-signedness): Don't enable by -Wformat=2. | |
153 | ||
d1783ae5 KT |
154 | 2015-02-27 Kai Tietz <ktietz@redhat.com> |
155 | ||
156 | PR c/35330 | |
157 | * c-pragma.c (handle_pragma_weak): Do not try to create | |
158 | weak/alias of declarations not being function, or variable | |
159 | declarations. | |
160 | ||
56a9f6bc TS |
161 | 2015-02-24 Thomas Schwinge <thomas@codesourcery.com> |
162 | ||
163 | PR libgomp/64625 | |
164 | * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12): | |
165 | Remove macros. | |
166 | (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros. | |
167 | ||
3d5cb23d MP |
168 | 2015-02-16 Marek Polacek <polacek@redhat.com> |
169 | ||
170 | PR c/65066 | |
171 | * c-format.c (check_format_types): Handle null param. | |
172 | ||
fa008882 MP |
173 | 2015-02-13 Marek Polacek <polacek@redhat.com> |
174 | ||
175 | PR c/65040 | |
176 | * c-format.c (check_format_types): Don't warn about different | |
177 | signedness if the original value is in the range of WANTED_TYPE. | |
178 | ||
785f21af JM |
179 | 2015-02-12 Jason Merrill <jason@redhat.com> |
180 | ||
181 | PR c++/64956 | |
182 | * c-opts.c (c_common_post_options): Change flag_abi_version from 0 | |
183 | to the current highest version. | |
184 | * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0. | |
185 | ||
4886ec8e JJ |
186 | 2015-02-04 Jakub Jelinek <jakub@redhat.com> |
187 | ||
188 | PR c/64824 | |
189 | PR c/64868 | |
190 | * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR | |
191 | instead of RDIV_EXPR. Use build_binary_op instead of | |
192 | build2_loc. | |
193 | ||
40fecdd6 JM |
194 | 2015-01-30 Joseph Myers <joseph@codesourcery.com> |
195 | ||
196 | * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed | |
197 | to pass input_location as first argument. | |
198 | ||
a0c88d06 TV |
199 | 2015-01-23 Tom de Vries <tom@codesourcery.com> |
200 | ||
201 | PR libgomp/64672 | |
202 | * c.opt (fopenacc): Mark as LTO option. | |
203 | ||
1506ae0e TV |
204 | 2015-01-23 Tom de Vries <tom@codesourcery.com> |
205 | ||
206 | PR libgomp/64707 | |
207 | * c.opt (fopenmp): Mark as LTO option. | |
208 | ||
31be63ab JJ |
209 | 2015-01-21 Jakub Jelinek <jakub@redhat.com> |
210 | ||
211 | PR c/63307 | |
212 | * cilk.c (fill_decls_vec): Only put decls into vector v. | |
213 | (compare_decls): Fix up formatting. | |
214 | ||
215 | 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com> | |
216 | ||
217 | PR c/63307 | |
218 | * cilk.c: Include vec.h. | |
219 | (struct cilk_decls): New structure. | |
220 | (wrapper_parm_cb): Split this function to... | |
221 | (fill_decls_vec): ...this... | |
222 | (create_parm_list): ...and this. | |
223 | (compare_decls): New function. | |
224 | (for_local_cb): Remove. | |
225 | (wrapper_local_cb): Ditto. | |
226 | (build_wrapper_type): For now first traverse and fill vector of | |
227 | declarations then sort it and then deal with sorted vector. | |
228 | (cilk_outline): Ditto. | |
229 | (declare_one_free_variable): Ditto. | |
230 | ||
6875457f JM |
231 | 2015-01-21 Jason Merrill <jason@redhat.com> |
232 | ||
233 | PR c++/64629 | |
234 | * c-format.c (check_format_arg): Call decl_constant_value. | |
235 | ||
185c9e56 ML |
236 | 2015-01-19 Martin Liska <mliska@suse.cz> |
237 | ||
238 | * c-common.c (handle_noicf_attribute): New function. | |
239 | ||
41dbbb37 TS |
240 | 2015-01-15 Thomas Schwinge <thomas@codesourcery.com> |
241 | Bernd Schmidt <bernds@codesourcery.com> | |
242 | James Norris <jnorris@codesourcery.com> | |
243 | Cesar Philippidis <cesar@codesourcery.com> | |
244 | Ilmir Usmanov <i.usmanov@samsung.com> | |
245 | Jakub Jelinek <jakub@redhat.com> | |
246 | ||
247 | * c.opt (fopenacc): New option. | |
248 | * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC. | |
249 | * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12): | |
250 | New macros. | |
251 | * c-common.h (c_finish_oacc_wait): New prototype. | |
252 | * c-omp.c: Include "omp-low.h" and "gomp-constants.h". | |
253 | (c_finish_oacc_wait): New function. | |
254 | * c-pragma.c (oacc_pragmas): New variable. | |
255 | (c_pp_lookup_pragma, init_pragma): Handle it. | |
256 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE, | |
257 | PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA, | |
258 | PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL, | |
259 | PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT. | |
260 | (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC, | |
261 | PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE, | |
262 | PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN, | |
263 | PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE, | |
264 | PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE, | |
265 | PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE, | |
266 | PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST, | |
267 | PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS, | |
268 | PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT, | |
269 | PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY, | |
270 | PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN, | |
271 | PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT, | |
272 | PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE, | |
273 | PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF, | |
274 | PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR, | |
275 | PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT, | |
276 | PRAGMA_OACC_CLAUSE_WORKER. | |
277 | ||
5434dc07 MD |
278 | 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com> |
279 | ||
280 | * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__ | |
281 | for the new option fstack-protector_explicit. | |
282 | * c-common.c (c_common_attribute_table): Add stack_protect attribute. | |
283 | (handle_stack_protect_attribute): New function. | |
284 | ||
de1b5c17 MU |
285 | 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu> |
286 | ||
287 | * c.opt: New option -Warray-bounds=. | |
288 | ||
adfac8df JJ |
289 | 2015-01-09 Michael Collison <michael.collison@linaro.org> |
290 | ||
291 | * array-notation-common.c: Include hash-set.h, machmode.h, | |
292 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
293 | fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h. | |
294 | * c-ada-spec.c: Ditto. | |
295 | * c-cilkplus.c: Ditto. | |
296 | * c-common.c: Include input.h due to flattening of tree.h. | |
297 | Define macro GCC_C_COMMON_C. | |
298 | * c-common.h: Flatten tree.h header files into c-common.h. | |
299 | Remove include of tree-core.h. | |
300 | * c-cppbuiltin.c: Include hash-set.h, machmode.h, | |
301 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
302 | fold-const.h, wide-int.h, and inchash.h due to | |
303 | flattening of tree.h. | |
304 | * c-dump.c: Ditto. | |
305 | * c-format.c: Flatten tree.h header files into c-common.h. | |
306 | * c-cppbuiltin.c: Include hash-set.h, machmode.h, | |
307 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
308 | fold-const.h, wide-int.h, and inchash.h due to | |
309 | flattening of tree.h. | |
310 | * c-dump.c: Include hash-set.h, machmode.h, | |
311 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
312 | fold-const.h, wide-int.h, and inchash.h due to | |
313 | flattening of tree.h. | |
314 | * c-format.c: Include hash-set.h, machmode.h, | |
315 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
316 | fold-const.h, wide-int.h, inchash.h and real.h due to | |
317 | flattening of tree.h. | |
318 | * c-gimplify.c: Include hash-set.h, machmode.h, | |
319 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
320 | fold-const.h, wide-int.h, and inchash.h due to | |
321 | flattening of tree.h. | |
322 | * cilk.c: Ditto. | |
323 | * c-lex.c: Ditto. | |
324 | * c-omp.c: Ditto. | |
325 | * c-opts.c: Ditto. | |
326 | * c-pch.c: Ditto. | |
327 | * c-ppoutput.c: Ditto. | |
328 | * c-pragma.c: Ditto. | |
329 | * c-pretty-print.c: Ditto. | |
330 | * c-semantics.c: Ditto. | |
331 | * c-ubsan.c: Ditto. | |
332 | * stub-objc.c: Ditto. | |
333 | ||
f5481fc4 JM |
334 | 2015-01-08 Jason Merrill <jason@redhat.com> |
335 | ||
336 | * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use | |
337 | do_ubsan_in_current_function. | |
338 | (ubsan_maybe_instrument_reference_or_call): Likewise. | |
339 | * c-ubsan.h: Declare it. | |
340 | ||
de35aa66 MS |
341 | 2015-01-08 Mike Stump <mikestump@comcast.net> |
342 | ||
343 | * c-common.c (c_common_attribute_table): Add no_sanitize_thread. | |
344 | ||
4a9a42ab MP |
345 | 2015-01-07 Marek Polacek <polacek@redhat.com> |
346 | ||
347 | PR c/64440 | |
348 | * c-common.c (c_fully_fold_internal): Warn for division and modulo | |
349 | if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero. | |
350 | ||
2f42e5de TS |
351 | 2015-01-05 Trevor Saunders <tsaunders@mozilla.com> |
352 | ||
353 | PR c++/31397 | |
354 | * c.opt (Wsuggest-override): New option. | |
355 | ||
5624e564 JJ |
356 | 2015-01-05 Jakub Jelinek <jakub@redhat.com> |
357 | ||
358 | Update copyright years. | |
359 | ||
5bd012f8 MP |
360 | 2015-01-05 Marek Polacek <polacek@redhat.com> |
361 | ||
362 | PR c/64423 | |
363 | * c-common.c (warn_array_subscript_with_type_char): Add location_t | |
364 | parameter. Use it. | |
365 | * c-common.h (warn_array_subscript_with_type_char): Update | |
366 | declaration. | |
367 | ||
a7fa8d18 ESR |
368 | 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net> |
369 | ||
370 | * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro. | |
371 | Control macro with flag_sized_deallocation. | |
372 | ||
768952be MU |
373 | 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu> |
374 | ||
375 | * c.opt (Wdiscarded-array-qualifiers): New option. | |
376 | ||
1f8d3e84 JJ |
377 | 2014-12-19 Jakub Jelinek <jakub@redhat.com> |
378 | ||
379 | PR preprocessor/63831 | |
380 | * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute | |
381 | and __has_cpp_attribute here. | |
382 | * c-ppoutput.c (init_pp_output): Set cb->has_attribute to | |
383 | c_common_has_attribute. | |
384 | * c-common.h (c_common_has_attribute): New prototype. | |
385 | * c-lex.c (init_c_lex): Set cb->has_attribute to | |
386 | c_common_has_attribute instead of cb_has_attribute. | |
387 | (get_token_no_padding): New function. | |
388 | (cb_has_attribute): Renamed to ... | |
389 | (c_common_has_attribute): ... this. No longer static. Use | |
390 | get_token_no_padding, require ()s, don't build TREE_LIST | |
391 | unnecessarily, fix up formatting, adjust diagnostics, call | |
392 | init_attributes. | |
393 | ||
20b06add JM |
394 | 2014-12-15 Jason Merrill <jason@redhat.com> |
395 | ||
396 | * c.opt (-fsized-deallocation, -Wc++14-compat): New. | |
397 | (-Wsized-deallocation): New. | |
398 | * c-opts.c (c_common_post_options): -fsized-deallocation defaults | |
399 | to on in C++14 and up. | |
400 | ||
94a073b2 JM |
401 | 2014-12-11 Jason Merrill <jason@redhat.com> |
402 | ||
acaa5911 JM |
403 | * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr. |
404 | ||
94a073b2 JM |
405 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if |
406 | we aren't complaining about VLAs. | |
407 | ||
7fb66c15 MP |
408 | 2014-12-06 Marek Polacek <polacek@redhat.com> |
409 | ||
410 | PR tree-optimization/64183 | |
411 | * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a | |
412 | shift-expression if it is integer_type_node. Use types_compatible_p. | |
413 | ||
b731b390 JJ |
414 | 2014-11-29 Jakub Jelinek <jakub@redhat.com> |
415 | ||
416 | * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL | |
417 | last argument from create_tmp_var_raw and create_tmp_var calls. | |
418 | * cilk.c (gimplify_cilk_spawn): Likewise. | |
419 | * c-omp.c (c_finish_omp_atomic): Likewise. | |
420 | ||
6a4da643 MP |
421 | 2014-11-28 Marek Polacek <polacek@redhat.com> |
422 | ||
423 | * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR | |
424 | instead of unsigned_type_node. | |
425 | ||
541e35a6 MP |
426 | 2014-11-28 Marek Polacek <polacek@redhat.com> |
427 | ||
428 | PR c/63862 | |
429 | * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR | |
430 | to op1_utype. | |
431 | * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift | |
432 | expression to unsigned_type_node. | |
433 | ||
dcc97066 MW |
434 | 2014-11-20 Mark Wielaard <mjw@redhat.com> |
435 | ||
436 | PR debug/38757 | |
437 | * c-opts.c (set_std_c89): Set lang_hooks.name. | |
438 | (set_std_c99): Likewise. | |
439 | (set_std_c11): Likewise. | |
440 | (set_std_cxx98): Likewise. | |
441 | (set_std_cxx11): Likewise. | |
442 | (set_std_cxx14): Likewise. | |
443 | (set_std_cxx1z): Likewise. | |
444 | ||
aa7da51a JJ |
445 | 2014-11-21 Jakub Jelinek <jakub@redhat.com> |
446 | ||
447 | PR target/63764 | |
448 | * c-common.h (convert_vector_to_pointer_for_subscript): Change | |
449 | return type to bool. | |
009a3480 | 450 | * c-common.c: Include gimple-expr.h. |
aa7da51a JJ |
451 | (convert_vector_to_pointer_for_subscript): Change return type to |
452 | bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true | |
453 | and copy it into a TARGET_EXPR and use that instead of *vecp | |
454 | directly. | |
455 | ||
538dd0b7 DM |
456 | 2014-11-19 David Malcolm <dmalcolm@redhat.com> |
457 | ||
458 | Merger of git branch "gimple-classes-v2-option-3". | |
459 | * ChangeLog.gimple-classes: New. | |
460 | * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack" | |
461 | from being just a vec<gimple> to a vec<gbind *>. | |
462 | ||
c39a5e99 JJ |
463 | 2014-11-18 Jakub Jelinek <jakub@redhat.com> |
464 | ||
465 | PR sanitizer/63813 | |
466 | * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type | |
467 | argument to ptype, set type to TREE_TYPE (ptype). Don't call | |
468 | get_pointer_alignment for non-pointers. Use ptype, or if it is | |
469 | reference type, corresponding pointer type, as type of kind | |
470 | argument. | |
471 | (ubsan_maybe_instrument_reference, | |
472 | ubsan_maybe_instrument_member_call): Adjust callers. | |
473 | ||
8537a4a9 MP |
474 | 2014-11-15 Marek Polacek <polacek@redhat.com> |
475 | ||
476 | PR middle-end/63884 | |
477 | * array-notation-common.c (is_sec_implicit_index_fn): Return false | |
478 | for NULL fndecl. | |
479 | (extract_array_notation_exprs): Return for NULL node. | |
480 | ||
2079956a JM |
481 | 2014-11-12 Joseph Myers <joseph@codesourcery.com> |
482 | ||
483 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and | |
484 | undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state. | |
485 | ||
1304953e JJ |
486 | 2014-11-12 Jakub Jelinek <jakub@redhat.com> |
487 | ||
488 | PR c/59708 | |
489 | * c-common.c (check_builtin_function_arguments): Handle | |
490 | BUILT_IN_{ADD,SUB,MUL}_OVERFLOW. | |
491 | ||
e5e44252 AK |
492 | 2014-11-10 Andi Kleen <ak@linux.intel.com> |
493 | ||
494 | PR c/60804 | |
495 | * c-common.h (check_no_cilk): Declare. | |
496 | * cilk.c (get_error_location): New function. | |
497 | (check_no_cilk): Dito. | |
498 | ||
e64b984d AK |
499 | 2014-11-10 Andi Kleen <ak@linux.intel.com> |
500 | ||
501 | * cilk.c (recognize_spawn): Use expression location | |
502 | for error message. | |
503 | ||
13c21655 PC |
504 | 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com> |
505 | ||
506 | * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add. | |
507 | ||
42fd12b1 ESR |
508 | 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net> |
509 | ||
510 | * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros; | |
511 | (__cpp_rtti, __cpp_exceptions): New macros for C++98; | |
512 | (__cpp_range_based_for, __cpp_initializer_lists, | |
513 | __cpp_delegating_constructors, __cpp_nsdmi, | |
514 | __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros | |
515 | for C++11; (__cpp_attribute_deprecated): Remove in favor of | |
516 | __has_cpp_attribute. | |
517 | * c-lex.c (cb_has_attribute): New callback CPP function; | |
518 | (init_c_lex): Set has_attribute callback. | |
519 | ||
6f450181 RB |
520 | 2014-11-04 Richard Biener <rguenther@suse.de> |
521 | ||
522 | * c-common.c (shorten_compare): Do not shorten mixed | |
523 | DFP and non-DFP compares. | |
524 | ||
26f0e1d6 ESR |
525 | 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net> |
526 | ||
527 | * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests. | |
528 | * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test. | |
529 | Commentary and rearrangement of tests. | |
530 | * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test. | |
531 | Commentary and rearrangement of tests. | |
532 | * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto | |
533 | * g++.dg/cpp1y/feat-cxx98.C: Commentary. | |
534 | ||
ef4bddc2 RS |
535 | 2014-10-29 Richard Sandiford <richard.sandiford@arm.com> |
536 | ||
537 | * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant | |
538 | enum from machine_mode. | |
539 | ||
c582198b AM |
540 | 2014-10-28 Andrew MacLeod <amacleod@redhat.com> |
541 | ||
adfac8df JJ |
542 | * c-common.c: Adjust include files. |
543 | * c-gimplify.c: Ditto. | |
544 | * cilk.c: Ditto. | |
545 | * c-pragma.c: Ditto. | |
546 | * c-ubsan.c: Ditto. | |
c582198b | 547 | |
60393bbc AM |
548 | 2014-10-27 Andrew MacLeod <amacleod@redhat.com> |
549 | ||
550 | * c-gimplify.c: Adjust include files. | |
551 | ||
d723bb7c MLI |
552 | 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org> |
553 | ||
554 | PR c++/53061 | |
555 | * c-opts.c (c_common_diagnostics_set_defaults): Renamed from | |
556 | c_common_initialize_diagnostics. | |
557 | * c-common.h: Likewise. | |
558 | ||
90f3520e MP |
559 | 2014-10-24 Marek Polacek <polacek@redhat.com> |
560 | ||
561 | PR c/56980 | |
562 | * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't | |
563 | print "struct"/"union"/"enum" for typedefed names. | |
564 | ||
59d7607a MP |
565 | 2014-10-23 Marek Polacek <polacek@redhat.com> |
566 | ||
567 | * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR | |
568 | in unsigned type. | |
569 | ||
d95a2703 JJ |
570 | 2014-10-22 Jakub Jelinek <jakub@redhat.com> |
571 | Yury Gribov <y.gribov@samsung.com> | |
572 | ||
573 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, | |
574 | ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask | |
575 | instead of flag_sanitize_recover as bool flag. | |
576 | ||
8e6ef852 KY |
577 | 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com> |
578 | ||
579 | * cilk.c: Revert previous change. | |
580 | ||
948cf550 IZ |
581 | 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com> |
582 | ||
583 | PR c/63307 | |
584 | * cilk.c: Include vec.h. | |
585 | (struct cilk_decls): New structure. | |
586 | (wrapper_parm_cb): Split this function to... | |
587 | (fill_decls_vec): ...this... | |
588 | (create_parm_list): ...and this. | |
589 | (compare_decls): New function. | |
590 | (for_local_cb): Remove. | |
591 | (wrapper_local_cb): Ditto. | |
592 | (build_wrapper_type): For now first traverse and fill vector of | |
593 | declarations then sort it and then deal with sorted vector. | |
594 | (cilk_outline): Ditto. | |
595 | (declare_one_free_variable): Ditto. | |
596 | ||
92574c7c MP |
597 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
598 | ||
599 | * c-opts.c (c_common_post_options): Set warn_implicit_int. | |
600 | * c.opt (Wimplicit-int): Initialize to -1. | |
601 | ||
83685514 AM |
602 | 2014-10-16 Andrew MacLeod <amacleod@redhat.com> |
603 | ||
604 | * c-pragma.c: Adjust include files. | |
605 | * c-semantics.c: Likewise. | |
606 | ||
5b8300ea DD |
607 | 2014-10-16 DJ Delorie <dj@redhat.com> |
608 | ||
609 | * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are | |
610 | multiples of bytes. | |
611 | ||
5f83e90b JM |
612 | 2014-10-14 Jason Merrill <jason@redhat.com> |
613 | ||
614 | PR c++/63455 | |
615 | * c-common.h (CPP_PREPARSED_EXPR): New. | |
616 | (N_CP_TTYPES): Adjust. | |
617 | ||
d73326ca MP |
618 | 2014-10-15 Marek Polacek <polacek@redhat.com> |
619 | ||
620 | * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C. | |
621 | ||
78a7c317 DD |
622 | 2014-10-14 DJ Delorie <dj@redhat.com> |
623 | ||
624 | * c-pretty-print.c (pp_c_integer_constant): Check for all __intN | |
625 | types, not just __int128. | |
626 | * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN | |
627 | types, not just __int128. | |
628 | (cpp_atomic_builtins): Round pointer sizes up. | |
629 | (type_suffix): Use type precision, not specific types. | |
630 | * c-common.c (c_common_reswords): Remove __int128 special case. | |
631 | (c_common_type_for_size): Check for all __intN types, not just | |
632 | __int128. | |
633 | (c_common_type_for_mode): Likewise. | |
634 | (c_common_signed_or_unsigned_type): Likewise. | |
635 | (c_build_bitfield_integer_type): Likewise. | |
636 | (c_common_nodes_and_builtins): Likewise. | |
637 | (keyword_begins_type_specifier): Likewise. | |
638 | * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all | |
639 | __intN variants. | |
640 | ||
2a22f99c TS |
641 | 2014-10-12 Trevor Saunders <tsaunders@mozilla.com> |
642 | ||
643 | * c-common.c: Use hash_table instead of hashtab. | |
644 | ||
2a8ef767 ESR |
645 | 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net> |
646 | ||
adfac8df | 647 | * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the |
2a8ef767 ESR |
648 | C++11 section. |
649 | ||
3c9aabbd MG |
650 | 2014-10-03 Marc Glisse <marc.glisse@inria.fr> |
651 | ||
652 | PR c++/54427 | |
653 | PR c++/57198 | |
654 | PR c++/58845 | |
655 | * c-common.c (warn_logical_operator): Punt for vectors. | |
656 | ||
a15f7cb8 ESR |
657 | 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net> |
658 | ||
659 | Implement SD-6: SG10 Feature Test Recommendations | |
660 | * c-cppbuiltin.c (c_cpp_builtins()): Define language feature | |
661 | macros and the __has_header macro. | |
662 | ||
8d0cf15e JM |
663 | 2014-09-30 Jason Merrill <jason@redhat.com> |
664 | ||
dd5d5481 JM |
665 | * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and |
666 | RID_IS_TRIVIALLY_CONSTRUCTIBLE. | |
667 | * c-common.c (c_common_reswords): Add __is_trivially_copyable. | |
668 | ||
b752325e JM |
669 | * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE. |
670 | * c-common.c (c_common_reswords): Add __is_trivially_copyable. | |
671 | ||
8d0cf15e JM |
672 | * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO. |
673 | * c-common.c (c_common_reswords): Remove __is_convertible_to. | |
674 | ||
083e891e MP |
675 | 2014-09-24 Marek Polacek <polacek@redhat.com> |
676 | ||
677 | PR c/61405 | |
678 | PR c/53874 | |
679 | * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD. | |
680 | ||
7861b648 AK |
681 | 2014-09-23 Andi Kleen <ak@linux.intel.com> |
682 | ||
683 | * c-common.c (handle_no_reorder_attribute): New function. | |
684 | (c_common_attribute_table): Add no_reorder attribute. | |
685 | ||
9a79452d JM |
686 | 2014-09-22 Joseph Myers <joseph@codesourcery.com> |
687 | ||
688 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
689 | __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point | |
690 | modes. | |
691 | ||
dd69f047 JM |
692 | 2014-09-18 Joseph Myers <joseph@codesourcery.com> |
693 | ||
694 | * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__ | |
695 | for supported floating-point modes. | |
696 | ||
737a4826 MLI |
697 | 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
698 | ||
699 | * c.opt (Wpsabi): Use LangEnabledBy. | |
700 | * c-opts.c (c_common_handle_option): Do not handle here. | |
701 | ||
8cc4b7a2 JM |
702 | 2014-09-12 Joseph Myers <joseph@codesourcery.com> |
703 | ||
704 | * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__ | |
705 | macros for floating-point modes. | |
706 | ||
179b5a55 MG |
707 | 2014-09-11 Marc Glisse <marc.glisse@inria.fr> |
708 | ||
709 | PR target/58757 | |
710 | * c-cppbuiltin.c (builtin_define_float_constants): Correct | |
711 | __*_DENORM_MIN__ without denormals. | |
712 | ||
570a11fe JJ |
713 | 2014-09-10 Jakub Jelinek <jakub@redhat.com> |
714 | ||
715 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, | |
716 | ubsan_instrument_vla, ubsan_instrument_return): Adjust | |
717 | ubsan_create_data callers. | |
718 | (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if | |
719 | index is constant or BIT_AND_EXPR with constant mask and is | |
720 | small enough for the bound. | |
721 | * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of | |
722 | ARRAY_REF, make sure the inner ARRAY_REF is not walked again. | |
723 | ||
b559c810 MLI |
724 | 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
725 | ||
726 | * c.opt: Add CppReason to various flags. | |
727 | (Wdate-time): Re-sort. | |
728 | * c-common.c: Include c-common.h earlier. | |
729 | (struct reason_option_codes_t): Delete. | |
730 | (c_option_controlling_cpp_error): Prefix global type and struct | |
731 | with cpp_. | |
732 | ||
1ef33fd4 MLI |
733 | 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
734 | ||
735 | * c.opt (Wnormalized): New. | |
736 | (Wnormalized=): Use Enum and Reject Negative. | |
737 | * c-opts.c (c_common_handle_option): Do not handle Wnormalized here. | |
738 | ||
66bb34c0 JM |
739 | 2014-09-08 Joseph Myers <joseph@codesourcery.com> |
740 | ||
741 | * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa | |
742 | digits of floating-point modes if -fbuilding-libgcc. | |
743 | ||
53d68b9f JM |
744 | 2014-09-05 Joseph Myers <joseph@codesourcery.com> |
745 | ||
746 | * c-cppbuiltin.c (c_cpp_builtins): Also define | |
747 | __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__, | |
748 | __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__, | |
749 | __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__, | |
750 | __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__, | |
751 | __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__, | |
752 | __LIBGCC_STACK_GROWS_DOWNWARD__, | |
753 | __LIBGCC_DONT_USE_BUILTIN_SETJMP__, | |
754 | __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__, | |
755 | __LIBGCC_DWARF_FRAME_REGISTERS__, | |
756 | __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__, | |
757 | __LIBGCC_STACK_POINTER_REGNUM__ and | |
758 | __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc. | |
759 | (builtin_define_with_value): Handle backslash-escaping in string | |
760 | macro values. | |
761 | ||
f65586dc RB |
762 | 2014-09-05 Richard Biener <rguenther@suse.de> |
763 | ||
764 | PR middle-end/63148 | |
765 | * c-format.c (check_format_arg): Properly handle | |
766 | effectively signed POINTER_PLUS_EXPR offset. | |
767 | ||
2b71f4a4 MLI |
768 | 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org> |
769 | ||
770 | * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels, | |
771 | Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic, | |
772 | (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var | |
773 | and Init. | |
774 | * c-opts.c (c_common_handle_option): Do not handle here. | |
775 | (sanitize_cpp_opts): Likewise. | |
776 | * c-common.c (struct reason_option_codes_t): Handle | |
777 | CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC. | |
778 | ||
d2e4feca MP |
779 | 2014-09-03 Marek Polacek <polacek@redhat.com> |
780 | ||
781 | * c.opt (Wlogical-not-parentheses): Enable by -Wall. | |
782 | ||
9a771876 JJ |
783 | 2014-09-02 Jakub Jelinek <jakub@redhat.com> |
784 | Balaji V. Iyer <balaji.v.iyer@intel.com> | |
785 | Igor Zamyatin <igor.zamyatin@intel.com> | |
786 | ||
787 | * c-cilkplus.c (cilk_for_number_of_iterations): New function. | |
788 | * c-common.c (c_common_reswords): Added _Cilk_for. | |
789 | * c-common.h (enum rid): Added RID_CILK_FOR. | |
790 | (cilk_for_number_of_iterations): Add declaration. | |
791 | * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and | |
792 | CILK_FOR. | |
793 | * c-pragma.c (init_pragma): Register "grainsize" pragma. | |
794 | * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE. | |
795 | ||
81b5d104 MLI |
796 | 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
797 | ||
798 | * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels, | |
799 | Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs, | |
800 | Wundef): Use CPP, Var and Init. | |
801 | * c-opts.c (c_common_handle_option): Do not handle the above flags here. | |
802 | ||
b753b37b MLI |
803 | 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
804 | ||
805 | * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init. | |
806 | * c-opts.c (c_common_handle_option): Do not handle here. | |
807 | ||
028aee17 JM |
808 | 2014-08-25 Jason Merrill <jason@redhat.com> |
809 | ||
810 | * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for | |
811 | -std=c++14 and -std=gnu++14, rather than the reverse. | |
812 | * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and | |
813 | OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14. | |
814 | * c-common.h (cxx_dialect): Remove cxx1y. | |
815 | ||
e4276ba5 ESR |
816 | 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net> |
817 | ||
818 | * c-common.h (enum cxx_dialect): Add cxx14. | |
819 | * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14. | |
820 | * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from | |
821 | cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11. | |
822 | ||
a545cacd JM |
823 | 2014-08-22 Jason Merrill <jason@redhat.com> |
824 | ||
825 | * c.opt (std=gnu++17): Fix alias. | |
826 | ||
59ea0364 MP |
827 | 2014-08-22 Marek Polacek <polacek@redhat.com> |
828 | ||
829 | PR c++/62199 | |
830 | * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't | |
831 | check for vector types. Drop LHS argument. | |
832 | * c-common.h (warn_logical_not_parentheses): Adjust. | |
833 | ||
596e808c MLI |
834 | 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
835 | ||
836 | * c.opt (Wcomment): Use CPP, Var and LangEnabledBy. | |
837 | (Wmultichar): Likewise. | |
838 | (Wdate-time): Use C-family languages instead of Common. Use CPP | |
839 | and Var. | |
840 | * c-opts.c (c_common_handle_option): Do not handle the above | |
841 | options here. | |
842 | (sanitize_cpp_opts): Likewise. | |
843 | ||
18767f65 MLI |
844 | 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org> |
845 | ||
846 | PR fortran/44054 | |
847 | * c-opts.c: Include tree-diagnostics.h. | |
848 | (c_diagnostic_finalizer): New. | |
849 | (c_common_initialize_diagnostics): Use it. | |
850 | ||
b4413594 MLI |
851 | 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
852 | ||
853 | PR preprocessor/51303 | |
854 | * c-common.c (struct reason_option_codes_t option_codes): | |
855 | Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically. | |
856 | ||
43f9a13c MLI |
857 | 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
858 | ||
859 | PR c/60975 | |
860 | PR c/53063 | |
861 | * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy. | |
862 | * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto. | |
863 | (c_common_post_options): Call init_global_opts_from_cpp. | |
864 | (sanitize_cpp_opts): Do not handle Wvariadic-macros here. | |
865 | ||
04159acf MP |
866 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
867 | ||
868 | PR c++/62153 | |
869 | * c-common.c (maybe_warn_bool_compare): New function. | |
870 | * c-common.h (maybe_warn_bool_compare): Declare. | |
871 | * c.opt (Wbool-compare): New option. | |
872 | ||
35aff4fb MP |
873 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
874 | ||
875 | * c.opt (Wc99-c11-compat): New option. | |
876 | ||
177cce46 MP |
877 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
878 | ||
879 | * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according | |
880 | to warn_c90_c99_compat. | |
881 | * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize | |
882 | to -1. | |
883 | ||
6ae9194f MLI |
884 | 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org> |
885 | Steven Bosscher <steven@gcc.gnu.org> | |
886 | ||
887 | PR c/52952 | |
888 | * c-format.c: Add extra_arg_loc and format_string_loc to struct | |
889 | format_check_results. | |
890 | (check_function_format): Use true and add comment for boolean | |
891 | argument. | |
892 | (finish_dollar_format_checking): Use explicit location when warning. | |
893 | (check_format_info): Likewise. | |
894 | (check_format_arg): Set extra_arg_loc and format_string_loc. | |
895 | (check_format_info_main): Use explicit location when warning. | |
896 | (check_format_types): Pass explicit location. | |
897 | (format_type_warning): Likewise. | |
898 | ||
8e54f6d3 MLI |
899 | 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
900 | ||
901 | PR fortran/44054 | |
902 | * c-format.c: Handle Fortran flags. | |
903 | ||
cd4e76fc IZ |
904 | 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com> |
905 | ||
906 | PR other/61962 | |
907 | * array-notation-common.c (find_rank): Added handling for other | |
908 | types of references. | |
909 | ||
f3bede71 MP |
910 | 2014-08-10 Marek Polacek <polacek@redhat.com> |
911 | ||
912 | PR c/51849 | |
913 | * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp. | |
914 | * c.opt (Wc90-c99-compat): Add option. | |
915 | ||
9f25a338 TS |
916 | 2014-08-07 Trevor Saunders <tsaunders@mozilla.com> |
917 | ||
918 | * c-gimplify.c, cilk.c: Remove includes of pointer-set.h. | |
919 | ||
62e4eb35 MP |
920 | 2014-08-03 Marek Polacek <polacek@redhat.com> |
921 | ||
922 | * c-common.c (check_case_value): Add location_t parameter. Use it. | |
923 | (c_add_case_label): Pass loc to check_case_value. | |
924 | ||
b787e7a2 TS |
925 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
926 | ||
927 | * cilk.c: Use hash_map instead of pointer_map. | |
928 | ||
6e2830c3 TS |
929 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
930 | ||
931 | * c-gimplify.c: Use hash_set instead of pointer_set. | |
932 | ||
a7ee52fb IZ |
933 | 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com> |
934 | ||
935 | PR middle-end/61455 | |
936 | * array-notation-common.c (extract_array_notation_exprs): Handling | |
937 | of DECL_EXPR added. | |
938 | ||
944fa280 JJ |
939 | 2014-08-01 Jakub Jelinek <jakub@redhat.com> |
940 | ||
941 | * c-common.h (min_align_of_type): Removed prototype. | |
942 | * c-common.c (min_align_of_type): Removed. | |
943 | * c-ubsan.h (ubsan_maybe_instrument_reference, | |
944 | ubsan_maybe_instrument_member_call): New prototypes. | |
945 | * c-ubsan.c: Include stor-layout.h and builtins.h. | |
946 | (ubsan_maybe_instrument_reference_or_call, | |
947 | ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New | |
948 | functions. | |
949 | ||
b4dfdc11 MG |
950 | 2014-07-31 Marc Glisse <marc.glisse@inria.fr> |
951 | ||
952 | PR c++/60517 | |
953 | * c.opt (-Wreturn-local-addr): Move to common.opt. | |
954 | ||
a41844e5 JM |
955 | 2014-07-30 Jason Merrill <jason@redhat.com> |
956 | ||
957 | PR c++/61659 | |
958 | PR c++/61687 | |
959 | Revert: | |
960 | * c.opt (-fuse-all-virtuals): New. | |
961 | ||
976d5a22 TT |
962 | 2014-07-30 Tom Tromey <tromey@redhat.com> |
963 | ||
964 | PR c/59855 | |
965 | * c.opt (Wdesignated-init): New option. | |
966 | * c-common.c (c_common_attribute_table): Add "designated_init". | |
967 | (handle_designated_init): New function. | |
968 | ||
cdc94aca MP |
969 | 2014-07-24 Marek Polacek <polacek@redhat.com> |
970 | ||
971 | PR c/57653 | |
972 | * c-opts.c (c_finish_options): If -imacros is in effect, return. | |
973 | ||
f41373b6 DS |
974 | 2014-07-16 Dodji Seketeli <dodji@redhat.com> |
975 | ||
976 | PR preprocessor/60723 - missing system-ness marks for macro tokens | |
977 | * c-ppoutput.c (struct print::prev_was_system_token): New data | |
978 | member. | |
979 | (init_pp_output): Initialize it. | |
980 | (maybe_print_line_1, maybe_print_line, print_line_1, print_line) | |
981 | (do_line_change): Return a flag saying if a line marker was | |
982 | emitted or not. | |
983 | (scan_translation_unit): Detect if the system-ness of the token we | |
984 | are about to emit is different from the one of the previously | |
985 | emitted token. If so, emit a line marker. Avoid emitting useless | |
986 | adjacent line markers. Avoid emitting line markers for tokens | |
987 | originating from the expansion of built-in macros. | |
988 | (scan_translation_unit_directives_only): Adjust. | |
989 | ||
4d661eaa MP |
990 | 2014-07-15 Marek Polacek <polacek@redhat.com> |
991 | ||
992 | * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if | |
993 | TYPE_MAX_VALUE is NULL. | |
994 | ||
b108f48f JJ |
995 | 2014-07-14 Jakub Jelinek <jakub@redhat.com> |
996 | ||
997 | PR middle-end/61294 | |
998 | * c.opt (Wmemset-transposed-args): New warning. | |
999 | ||
c0221884 JM |
1000 | 2014-07-10 Jason Merrill <jason@redhat.com> |
1001 | ||
1002 | PR c++/61659 | |
1003 | PR c++/61687 | |
1004 | * c.opt (-fuse-all-virtuals): New. | |
1005 | ||
63dfbb95 RB |
1006 | 2014-07-09 Richard Biener <rguenther@suse.de> |
1007 | ||
1008 | PR c-family/61741 | |
1009 | * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions | |
1010 | using unsigned arithmetic if overflow does not wrap instead of | |
1011 | if overflow is undefined. | |
1012 | ||
773ec47f MP |
1013 | 2014-07-06 Marek Polacek <polacek@redhat.com> |
1014 | ||
1015 | PR c/6940 | |
1016 | * c.opt (Wsizeof-array-argument): New option. | |
1017 | ||
00a7ba58 JJ |
1018 | 2014-07-03 Jakub Jelinek <jakub@redhat.com> |
1019 | ||
1020 | * c-ada-spec.c (dump_ada_nodes): Don't call qsort if | |
1021 | comments->count <= 1, as comments->entries might be NULL. | |
1022 | ||
52ec0ea3 MP |
1023 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
1024 | ||
1025 | * c.opt (Wint-conversion): New option. | |
1026 | ||
d5c3d343 MP |
1027 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
1028 | ||
1029 | PR c/58286 | |
1030 | * c.opt (Wincompatible-pointer-types): New option. | |
1031 | ||
6e7ceb17 PC |
1032 | 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com> |
1033 | ||
1034 | PR c++/51400 | |
1035 | * c-common.c (handle_noreturn_attribute, handle_const_attribute): | |
1036 | Do not discard TYPE_QUALS of type. | |
1037 | ||
da73100b JM |
1038 | 2014-06-26 Jason Merrill <jason@redhat.com> |
1039 | ||
1040 | * c-common.h (enum cxx_dialect): Add cxx1z. | |
1041 | * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New. | |
1042 | * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it. | |
1043 | ||
08eedf75 TJ |
1044 | 2014-06-26 Teresa Johnson <tejohnson@google.com> |
1045 | ||
1046 | * c-common.h (get_dump_info): Declare. | |
1047 | * c-gimplify.c (c_genericize): Use saved dump files. | |
1048 | * c-opts.c (c_common_parse_file): Begin and end dumps | |
1049 | once around parsing invocation. | |
1050 | (get_dump_info): New function. | |
1051 | ||
7b56b2f8 MP |
1052 | 2014-06-23 Marek Polacek <polacek@redhat.com> |
1053 | Andrew MacLeod <amacleod@redhat.com> | |
1054 | ||
1055 | PR c/61553 | |
1056 | * c-common.c (get_atomic_generic_size): Don't segfault if the | |
1057 | type doesn't have a size. | |
1058 | ||
0e37a2f3 MP |
1059 | 2014-06-20 Marek Polacek <polacek@redhat.com> |
1060 | ||
1061 | * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h". | |
1062 | (ubsan_walk_array_refs_r): New function. | |
1063 | (c_genericize): Instrument array bounds. | |
1064 | * c-ubsan.c: Include "internal-fn.h". | |
1065 | (ubsan_instrument_division): Mark instrumented arrays as having | |
1066 | side effects. Adjust ubsan_type_descriptor call. | |
1067 | (ubsan_instrument_shift): Likewise. | |
1068 | (ubsan_instrument_vla): Adjust ubsan_type_descriptor call. | |
1069 | (ubsan_instrument_bounds): New function. | |
1070 | (ubsan_array_ref_instrumented_p): New function. | |
1071 | (ubsan_maybe_instrument_array_ref): New function. | |
1072 | * c-ubsan.h (ubsan_instrument_bounds): Declare. | |
1073 | (ubsan_array_ref_instrumented_p): Declare. | |
1074 | (ubsan_maybe_instrument_array_ref): Declare. | |
1075 | ||
1076 | 2014-06-20 Hale Wang <hale.wang@arm.com> | |
dd6fe7d4 HW |
1077 | |
1078 | PR lto/61123 | |
1079 | * c.opt (fshort-enums): Add to LTO. | |
1080 | * c.opt (fshort-wchar): Likewise. | |
1081 | ||
5c3d09f7 MP |
1082 | 2014-06-16 Marek Polacek <polacek@redhat.com> |
1083 | ||
1084 | PR c/60439 | |
1085 | * c.opt (Wswitch-bool): Add Var. | |
1086 | ||
9cf32741 JJ |
1087 | 2014-06-12 Jakub Jelinek <jakub@redhat.com> |
1088 | ||
1089 | PR middle-end/61486 | |
1090 | * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in | |
1091 | #pragma omp target teams or | |
1092 | #pragma omp {,target }teams distribute simd. | |
1093 | ||
62984918 JM |
1094 | 2014-06-12 Jason Merrill <jason@redhat.com> |
1095 | ||
1096 | * c.opt (Wabi=, fabi-compat-version): New. | |
1097 | * c-opts.c (c_common_handle_option): Handle -Wabi=. | |
1098 | (c_common_post_options): Handle flag_abi_compat_version default. | |
1099 | Disallow -fabi-compat-version=1. | |
1100 | * c-common.h (abi_version_crosses): New. | |
1101 | ||
f961457f JH |
1102 | 2014-06-11 Jan Hubicka <hubicka@ucw.cz> |
1103 | ||
adfac8df | 1104 | * c-common.c (handle_section_attribute): Update handling for |
f961457f JH |
1105 | section names that are no longer trees. |
1106 | ||
92d28cbb JJ |
1107 | 2014-06-10 Jakub Jelinek <jakub@redhat.com> |
1108 | ||
1109 | PR fortran/60928 | |
1110 | * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK... | |
1111 | (omp_pragmas): ... back here. | |
1112 | ||
742938c9 MP |
1113 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
1114 | ||
1115 | PR c/49706 | |
1116 | * c-common.c (warn_logical_not_parentheses): New function. | |
1117 | * c-common.h (warn_logical_not_parentheses): Declare. | |
1118 | * c.opt (Wlogical-not-parentheses): New option. | |
1119 | ||
9d548dfb MP |
1120 | 2014-06-04 Marek Polacek <polacek@redhat.com> |
1121 | ||
1122 | PR c/30020 | |
1123 | * c-common.c (check_case_bounds): Add location parameter. | |
1124 | Use it. | |
1125 | (c_add_case_label): Pass loc to check_case_bounds. | |
1126 | ||
fedfecef MP |
1127 | 2014-06-03 Marek Polacek <polacek@redhat.com> |
1128 | ||
1129 | PR c/60439 | |
1130 | * c.opt (Wswitch-bool): New option. | |
1131 | ||
f6a7cffc TS |
1132 | 2014-05-22 Thomas Schwinge <thomas@codesourcery.com> |
1133 | ||
040d18b6 TS |
1134 | * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl): |
1135 | Remove prototypes. | |
1136 | (record_types_used_by_current_var_decl): Move prototype to where | |
1137 | it belongs. | |
1138 | ||
f6a7cffc TS |
1139 | * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6) |
1140 | (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8) | |
1141 | (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes. | |
1142 | ||
632f2871 RS |
1143 | 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com> |
1144 | ||
1145 | * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete. | |
1146 | * c-common.c (c_common_nodes_and_builtins): Don't initialize | |
1147 | void_zero_node. | |
1148 | * c-pretty-print.c (pp_c_void_constant): New function. | |
1149 | (c_pretty_printer::constant, c_pretty_printer::primary_expression) | |
1150 | (c_pretty_printer::expression): Handle VOID_CST. | |
1151 | * cilk.c (extract_free_variables): Likewise. | |
1152 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift) | |
1153 | (ubsan_instrument_vla): Use void_node instead of void_zero_node. | |
1154 | ||
766090c2 TS |
1155 | 2014-05-17 Trevor Saunders <tsaunders@mozilla.com> |
1156 | ||
1157 | * c-common.h (sorted_fields_type): Remove variable_size GTY attribute. | |
1158 | * c-pragma.c (push_alignment): Adjust. | |
1159 | (handle_pragma_push_options): Likewise. | |
1160 | ||
661a0813 MP |
1161 | 2014-05-09 Marek Polacek <polacek@redhat.com> |
1162 | ||
1163 | PR c/50459 | |
1164 | * c-common.c (check_user_alignment): Return -1 if alignment is error | |
1165 | node. | |
1166 | (handle_aligned_attribute): Don't call default_conversion on | |
1167 | FUNCTION_DECLs. | |
1168 | (handle_vector_size_attribute): Likewise. | |
1169 | (handle_tm_wrap_attribute): Handle case when wrap_decl is error node. | |
1170 | (handle_sentinel_attribute): Call default_conversion and allow even | |
1171 | integral types as an argument. | |
1172 | ||
2793eeab MP |
1173 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
1174 | ||
1175 | PR c/61053 | |
1176 | * c-common.c (min_align_of_type): New function factored out from... | |
1177 | (c_sizeof_or_alignof_type): ...here. | |
1178 | * c-common.h (min_align_of_type): Declare. | |
1179 | ||
f827930a MP |
1180 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
1181 | ||
1182 | PR c/61077 | |
1183 | * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified | |
1184 | parameter type of main. | |
1185 | ||
ca49b74e DD |
1186 | 2014-05-07 DJ Delorie <dj@redhat.com> |
1187 | ||
1188 | * c-cppbuiltin.c (print_bits_of_hex): New. | |
1189 | (builtin_define_type_minmax): Print values using hex so as not to | |
1190 | require a pre-computed list of string values. | |
1191 | ||
1d60af08 KZ |
1192 | 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com> |
1193 | Mike Stump <mikestump@comcast.net> | |
1194 | Richard Sandiford <rdsandiford@googlemail.com> | |
1195 | ||
1196 | * c-ada-spec.c: Include wide-int.h. | |
1197 | (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove. | |
1198 | (dump_generic_ada_node): Use wide-int interfaces. | |
1199 | * c-common.c: Include wide-int-print.h. | |
1200 | (shorten_compare): Use wide-int interfaces and tree_int_cst_lt. | |
1201 | (pointer_int_sum): Use wide-int interfaces. | |
1202 | (c_common_nodes_and_builtins): Use make_int_cst. | |
1203 | (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p. | |
1204 | (handle_alloc_size_attribute): Use wide-int interfaces. | |
1205 | (get_nonnull_operand): Likewise. | |
1206 | * c-format.c (get_constant): Use tree_fits_uhwi_p. | |
1207 | * c-lex.c: Include wide-int.h. | |
1208 | (narrowest_unsigned_type): Take a widest_int rather than two | |
1209 | HOST_WIDE_INTs. | |
1210 | (narrowest_signed_type): Likewise. | |
1211 | (interpret_integer): Update accordingly. Use wide-int interfaces. | |
1212 | (lex_charconst): Use wide-int interfaces. | |
1213 | * c-pretty-print.c: Include wide-int.h. | |
1214 | (pp_c_integer_constant): Use wide-int interfaces. | |
1215 | * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of | |
1216 | INT_CST_LT_UNSIGNED. | |
1217 | ||
b15458be RB |
1218 | 2014-05-06 Richard Biener <rguenther@suse.de> |
1219 | ||
1220 | * c-opts.c (c_common_post_options): For -freestanding, | |
1221 | -fno-hosted and -fno-builtin disable pattern recognition | |
1222 | if not enabled explicitely. | |
1223 | ||
6577374e MP |
1224 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
1225 | ||
1226 | * c.opt (Wsizeof-pointer-memaccess): Describe option. | |
1227 | ||
d00887e8 MP |
1228 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
1229 | ||
1230 | PR c/43245 | |
1231 | * c.opt (Wdiscarded-qualifiers): Add. | |
1232 | ||
f8ed5150 MP |
1233 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
1234 | ||
1235 | * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform | |
1236 | INT_MIN / -1 sanitization only for integer types. | |
1237 | ||
45484dcf MP |
1238 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
1239 | ||
1240 | PR c/18079 | |
1241 | * c-common.c (handle_noinline_attribute): Warn if the attribute | |
1242 | conflicts with always_inline attribute. | |
1243 | (handle_always_inline_attribute): Warn if the attribute conflicts | |
1244 | with noinline attribute. | |
1245 | ||
38e514c0 MP |
1246 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
1247 | ||
1248 | PR c/60156 | |
1249 | * c-common.c (check_main_parameter_types): Warn about variadic main. | |
1250 | ||
44875f92 MS |
1251 | 2014-04-24 Mike Stump <mikestump@comcast.net> |
1252 | ||
1253 | * c.opt (Wshadow-ivar): Default to on. | |
1254 | ||
dcaaa5a0 DP |
1255 | 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com> |
1256 | ||
1257 | * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add. | |
1258 | ||
c07d7c02 MP |
1259 | 2014-04-23 Marek Polacek <polacek@redhat.com> |
1260 | ||
1261 | * c-common.c (handle_tm_wrap_attribute): Tweak error message. | |
1262 | ||
1c33c9b7 JJ |
1263 | 2014-04-22 Jakub Jelinek <jakub@redhat.com> |
1264 | ||
1265 | PR sanitizer/60275 | |
1266 | * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap () | |
1267 | if flag_sanitize_undefined_trap_on_error. | |
1268 | (ubsan_instrument_division, ubsan_instrument_shift, | |
1269 | ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort () | |
1270 | if !flag_sanitize_recover. | |
1271 | ||
793c625f MG |
1272 | 2014-04-22 Marc Glisse <marc.glisse@inria.fr> |
1273 | ||
1274 | PR libstdc++/43622 | |
1275 | * c-common.c (registered_builtin_types): Make non-static. | |
1276 | * c-common.h (registered_builtin_types): Declare. | |
1277 | ||
b0f1bf36 RB |
1278 | 2014-04-14 Richard Biener <rguenther@suse.de> |
1279 | Marc Glisse <marc.glisse@inria.fr> | |
1280 | ||
1281 | PR c/60819 | |
1282 | * c-common.c (convert_vector_to_pointer_for_subscript): Properly | |
1283 | apply may-alias the scalar pointer type when applicable. | |
1284 | ||
3b07fa4a IZ |
1285 | 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com> |
1286 | ||
1287 | PR middle-end/60467 | |
1288 | * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL | |
1289 | as possible argument for Cilk_spawn. | |
1290 | ||
cbbd2b1c TB |
1291 | 2014-04-11 Tobias Burnus <burnus@net-b.de> |
1292 | ||
1293 | PR c/60194 | |
1294 | * c.opt (Wformat-signedness): Add | |
1295 | * c-format.c(check_format_types): Use it. | |
1296 | ||
6415bd5d JM |
1297 | 2014-04-11 Jason Merrill <jason@redhat.com> |
1298 | ||
1299 | PR c++/57926 | |
1300 | * c-common.c (sync_resolve_size, get_atomic_generic_size): Call | |
1301 | default_conversion for an array argument. | |
1302 | ||
6525783a MP |
1303 | 2014-04-08 Marek Polacek <polacek@redhat.com> |
1304 | ||
1305 | PR sanitizer/60745 | |
1306 | * c-ubsan.c: Include asan.h. | |
1307 | (ubsan_instrument_return): Call initialize_sanitizer_builtins. | |
1308 | ||
880a467b NS |
1309 | 2014-04-03 Nathan Sidwell <nathan@codesourcery.com> |
1310 | ||
1311 | * c.opt (Wnon-virtual-dtor): Auto set when Weffc++. | |
1312 | ||
7b59ff2d MP |
1313 | 2014-04-02 Marek Polacek <polacek@redhat.com> |
1314 | ||
1315 | * c-common.h (c_expand_expr): Remove declaration. | |
1316 | ||
8edbfaa6 JJ |
1317 | 2014-03-28 Jakub Jelinek <jakub@redhat.com> |
1318 | ||
1319 | PR c++/60689 | |
1320 | * c-common.c (add_atomic_size_parameter): When creating new | |
1321 | params vector, push the size argument first. | |
1322 | ||
07d72e1d JJ |
1323 | 2014-03-26 Jakub Jelinek <jakub@redhat.com> |
1324 | ||
1325 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, | |
1326 | ubsan_instrument_vla, ubsan_instrument_return): Adjust | |
1327 | ubsan_create_data callers. | |
1328 | ||
b35e0fa0 JJ |
1329 | 2014-03-22 Jakub Jelinek <jakub@redhat.com> |
1330 | ||
1331 | PR debug/60603 | |
1332 | * c-opts.c (c_finish_options): Restore cb_file_change call to | |
1333 | <built-in>. | |
1334 | ||
39a1ebb3 JJ |
1335 | 2014-03-13 Jakub Jelinek <jakub@redhat.com> |
1336 | ||
1337 | PR middle-end/36282 | |
1338 | * c-pragma.c (apply_pragma_weak): Only look at | |
1339 | TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if | |
1340 | DECL_ASSEMBLER_NAME_SET_P (decl). | |
1341 | (maybe_apply_pending_pragma_weaks): Exit early if | |
1342 | vec_safe_is_empty (pending_weaks) rather than only when | |
1343 | !pending_weaks. | |
1344 | (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P, | |
1345 | set assembler name back to NULL afterwards. | |
1346 | ||
a07f6ed2 JM |
1347 | 2014-03-11 Jason Merrill <jason@redhat.com> |
1348 | ||
1349 | * c.opt: Add -std=gnu++14. | |
1350 | ||
75b107f5 IB |
1351 | 2014-03-11 Ian Bolton <ian.bolton@arm.com> |
1352 | ||
1353 | * c-opts.c (c_common_post_options): Don't override | |
1354 | -ffp-contract=fast if unsafe-math-optimizations is on. | |
1355 | ||
f42c637e PM |
1356 | 2014-03-08 Paulo Matos <paulo@matos-sorge.com> |
1357 | ||
1358 | * c.opt: Enable LTO FE for fshort-double. | |
1359 | ||
70e24808 JM |
1360 | 2014-03-07 Jason Merrill <jason@redhat.com> |
1361 | ||
1362 | * c.opt: Add -std=c++14. | |
1363 | ||
3af9c5e9 MP |
1364 | 2014-03-06 Marek Polacek <polacek@redhat.com> |
1365 | ||
1366 | PR c/60197 | |
1367 | * cilk.c (contains_cilk_spawn_stmt): New function. | |
1368 | (contains_cilk_spawn_stmt_walker): Likewise. | |
1369 | (recognize_spawn): Give error on invalid use of _Cilk_spawn. | |
1370 | * c-common.h (contains_cilk_spawn_stmt): Add declaration. | |
1371 | ||
b3bdf019 JJ |
1372 | 2014-03-03 Jakub Jelinek <jakub@redhat.com> |
1373 | ||
1374 | * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD. | |
1375 | (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD | |
1376 | even when flag_preprocess_only. | |
1377 | ||
ca7e759d JM |
1378 | 2014-02-26 Jason Merrill <jason@redhat.com> |
1379 | ||
1380 | PR c++/59231 | |
1381 | PR c++/11586 | |
1382 | * c-common.c (shorten_compare): Don't check | |
1383 | c_inhibit_evaluation_warnings. | |
1384 | ||
28e41874 JJ |
1385 | 2014-02-19 Jakub Jelinek <jakub@redhat.com> |
1386 | ||
cca615af JJ |
1387 | PR c/37743 |
1388 | * c-common.c (c_common_nodes_and_builtins): When initializing | |
1389 | c_uint{16,32,64}_type_node, also set corresponding | |
1390 | uint{16,32,64}_type_node to the same value. | |
1391 | ||
28e41874 JJ |
1392 | PR c++/60267 |
1393 | * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma | |
1394 | for PRAGMA_IVDEP if flag_preprocess_only. | |
1395 | ||
c2bf53a1 JJ |
1396 | 2014-02-12 Jakub Jelinek <jakub@redhat.com> |
1397 | ||
1398 | PR c/60101 | |
1399 | * c-common.c (merge_tlist): If copy is true, call new_tlist, | |
1400 | if false, add ADD itself, rather than vice versa. | |
1401 | (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero | |
1402 | copy. For SAVE_EXPR, only call merge_tlist once. | |
1403 | ||
8fcbce72 JJ |
1404 | 2014-02-08 Jakub Jelinek <jakub@redhat.com> |
1405 | ||
1406 | PR middle-end/60092 | |
1407 | * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p | |
1408 | and tree_to_uhwi. | |
1409 | (handle_alloc_align_attribute, handle_assume_aligned_attribute): New | |
1410 | functions. | |
1411 | (c_common_attribute_table): Add alloc_align and assume_aligned | |
1412 | attributes. | |
1413 | ||
0a756a3f MP |
1414 | 2014-02-06 Marek Polacek <polacek@redhat.com> |
1415 | ||
1416 | PR c/60087 | |
1417 | * c-common.c (warn_for_sign_compare): Call warning_at with location | |
1418 | instead of warning. | |
1419 | ||
7ec4847a MP |
1420 | 2014-02-05 Marek Polacek <polacek@redhat.com> |
1421 | ||
1422 | PR c/53123 | |
1423 | * c-omp.c (c_finish_omp_atomic): Remove unreachable return | |
1424 | statement. | |
1425 | ||
66f20604 MP |
1426 | 2014-02-04 Marek Polacek <polacek@redhat.com> |
1427 | ||
1428 | PR c/60036 | |
1429 | * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or | |
1430 | SAVE_EXPR. | |
1431 | ||
5d77fb19 MG |
1432 | 2014-02-03 Marc Glisse <marc.glisse@inria.fr> |
1433 | ||
1434 | PR c++/53017 | |
1435 | PR c++/59211 | |
1436 | * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute, | |
1437 | handle_vector_size_attribute, handle_nonnull_attribute): Call | |
1438 | default_conversion on the attribute argument. | |
1439 | (handle_nonnull_attribute): Increment the argument number. | |
1440 | ||
81e5eca8 MP |
1441 | 2014-01-31 Marek Polacek <polacek@redhat.com> |
1442 | ||
1443 | PR c/59963 | |
1444 | * c-common.c (add_atomic_size_parameter): Pass vNULL to | |
1445 | build_function_call_vec. | |
1446 | (resolve_overloaded_builtin): Likewise. | |
1447 | * c-common.h (build_function_call_vec): Adjust declaration. | |
1448 | ||
68fca595 MP |
1449 | 2014-01-30 Marek Polacek <polacek@redhat.com> |
1450 | ||
1451 | PR c/59940 | |
1452 | * c-common.h (unsafe_conversion_p): Adjust declaration. | |
1453 | (warnings_for_convert_and_check): Likewise. | |
1454 | (convert_and_check): Likewise. | |
1455 | * c-common.c (unsafe_conversion_p): Add location parameter. Call | |
1456 | expansion_point_location_if_in_system_header on it. | |
1457 | (warnings_for_convert_and_check): Add location parameter. Call | |
1458 | expansion_point_location_if_in_system_header on it. Use it. | |
1459 | (convert_and_check): Add location parameter. Use it. | |
1460 | (conversion_warning): Likewise. | |
1461 | (c_add_case_label): Adjust convert_and_check calls. | |
1462 | (scalar_to_vector): Adjust unsafe_conversion_p calls. | |
1463 | ||
b72271b9 BI |
1464 | 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com> |
1465 | ||
1466 | * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with | |
1467 | flag_cilkplus. | |
1468 | * c-pragma.c (init_pragma): Likewise. | |
1469 | * c.opt: Likewise. | |
1470 | ||
393e8e8b MP |
1471 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
1472 | ||
1473 | PR c/59846 | |
1474 | * c-common.c (shorten_compare): Add location_t parameter. | |
1475 | * c-common.h (shorten_binary_op): Adjust declaration. | |
1476 | ||
f04dda30 MP |
1477 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
1478 | ||
1479 | PR c/58346 | |
1480 | * c-common.c (pointer_to_zero_sized_aggr_p): New function. | |
1481 | * c-common.h: Declare it. | |
1482 | ||
621955cb EB |
1483 | 2014-01-20 Eric Botcazou <ebotcazou@adacore.com> |
1484 | ||
1485 | * c-ada-spec.h (dump_ada_specs): Revert prototype change. | |
1486 | * c-ada-spec.c (dump_ads): Likewise. | |
1487 | (cpp_check): Likewise. | |
1488 | (dump_ada_specs): Likewise. | |
1489 | ||
1490 | 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com> | |
67bf2939 LA |
1491 | |
1492 | PR c++/49718 | |
1493 | * c-common.c (handle_no_instrument_function_attribute): Allow | |
1494 | no_instrument_function attribute in class member | |
1495 | definition/declaration. | |
1496 | ||
241f845a JJ |
1497 | 2014-01-15 Jakub Jelinek <jakub@redhat.com> |
1498 | ||
1499 | PR c/58943 | |
1500 | * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around | |
1501 | build_modify_expr with non-NOP_EXPR opcode. Handle return from it | |
1502 | being COMPOUND_EXPR. | |
1503 | (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first | |
1504 | operand a SAVE_EXPR and second MODIFY_EXPR. | |
1505 | ||
e83b8e2e JJ |
1506 | 2014-01-09 Jakub Jelinek <jakub@redhat.com> |
1507 | ||
1508 | PR target/58115 | |
1509 | * c-pch.c (c_common_write_pch): Call | |
1510 | prepare_target_option_nodes_for_pch. | |
1511 | ||
23a5b65a RS |
1512 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
1513 | ||
1514 | Update copyright years | |
1515 | ||
f9030485 RS |
1516 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
1517 | ||
1518 | * array-notation-common.c, c-cilkplus.c: Use the standard form for | |
1519 | the copyright notice. | |
1520 | ||
f2aa696b EB |
1521 | 2013-12-28 Eric Botcazou <ebotcazou@adacore.com> |
1522 | ||
1523 | * c-ada-spec.c (print_constructor): New function. | |
1524 | (print_destructor): Retrieve the origin of the destructor. | |
1525 | (print_ada_declaration): Revamp handling of constructors/destructors. | |
1526 | ||
1f26ac87 JM |
1527 | 2013-12-23 Stuart Hastings <stuart@apple.com> |
1528 | Bill Maddox <maddox@google.com> | |
1529 | Jason Merrill <jason@redhat.com> | |
1530 | ||
1531 | * c.opt: Add -fdeclone-ctor-dtor. | |
1532 | * c-opts.c (c_common_post_options): Default to on iff -Os. | |
1533 | ||
41958c28 BI |
1534 | 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com> |
1535 | ||
1536 | * c-common.c (c_common_attribute_table): Added "cilk simd function" | |
1537 | attribute. | |
1538 | * c-pragma.h (enum pragma_cilk_clause): Remove. | |
1539 | (enum pragma_omp_clause): Added the following fields: | |
1540 | PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK, | |
1541 | PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE, | |
1542 | PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE, | |
1543 | PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE, | |
1544 | PRAGMA_CILK_CLAUSE_UNIFORM. | |
1545 | ||
1546 | ||
12893402 BI |
1547 | 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com> |
1548 | ||
1549 | * cilk.c (cilk_outline): Made this function non-static. | |
1550 | (gimplify_cilk_spawn): Removed pre_p and post_p arguments. | |
1551 | (create_cilk_wrapper): Added a new parameter: a function pointer. | |
1552 | (c_install_body_w_frame_cleanup): Remove | |
1553 | (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case. | |
1554 | * c-common.h (cilk_outline): New prototype. | |
1555 | (gimplify_cilk_spawn): Removed two parameters. | |
1556 | (cilk_install_body_with_frame_cleanup): New prototype. | |
1557 | * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and | |
1558 | CILK_SPAWN_STMT case. | |
1559 | ||
085b42ed BS |
1560 | 2013-12-11 Bernd Schmidt <bernds@codesourcery.com> |
1561 | ||
2ce064c3 BS |
1562 | * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR. |
1563 | ||
085b42ed BS |
1564 | * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE. |
1565 | (int_array_type_node): Remove. | |
1566 | * c-common.c (c_common_nodes_and_builtins): Don't build it. | |
1567 | ||
9e36c9ed MP |
1568 | 2013-12-05 Marek Polacek <polacek@redhat.com> |
1569 | ||
1570 | PR c/52023 | |
1571 | * c-common.c (c_sizeof_or_alignof_type): Move a declaration into | |
1572 | [ADJUST_FIELD_ALIGN]. | |
1573 | ||
296674db JM |
1574 | 2013-12-04 Joseph Myers <joseph@codesourcery.com> |
1575 | ||
1576 | PR c/52023 | |
1577 | * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof | |
1578 | and check field alignment if set. | |
1579 | * c-common.h (c_sizeof_or_alignof_type): Update prototype. | |
1580 | (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type. | |
1581 | ||
31e071ae MP |
1582 | 2013-12-04 Jakub Jelinek <jakub@redhat.com> |
1583 | Marek Polacek <polacek@redhat.com> | |
1584 | ||
1585 | * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow | |
1586 | sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS. | |
1587 | ||
d7947e19 L |
1588 | 2013-11-29 H.J. Lu <hongjiu.lu@intel.com> |
1589 | ||
1590 | PR c/59309 | |
1591 | * cilk.c (gimplify_cilk_spawn): Properly handle function without | |
1592 | arguments. | |
1593 | ||
fad7652e JJ |
1594 | 2013-11-29 Jakub Jelinek <jakub@redhat.com> |
1595 | ||
1596 | PR c/59280 | |
1597 | * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE, | |
1598 | goto invalid. If it is error_mark_node, don't issue further | |
1599 | diagnostics. | |
1600 | ||
8b5e1202 SO |
1601 | 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com> |
1602 | ||
1603 | * c.opt (Wopenmp-simd): New. | |
1604 | ||
0a508bb6 JJ |
1605 | 2013-11-22 Jakub Jelinek <jakub@redhat.com> |
1606 | ||
1607 | * c-ubsan.h (ubsan_instrument_return): New prototype. | |
1608 | * c-ubsan.c (ubsan_instrument_return): New function. | |
1609 | ||
2fb9a547 AM |
1610 | 2013-11-22 Andrew MacLeod <amacleod@redhat.com> |
1611 | ||
1612 | * c-common.c: Add required include files from gimple.h. | |
1613 | * c-gimplify.c: Likewise | |
1614 | * cilk.c: Likewise | |
1615 | ||
8400e75e DM |
1616 | 2013-11-22 David Malcolm <dmalcolm@redhat.com> |
1617 | ||
1618 | * c-common.c (unsafe_conversion_p): Remove use of | |
1619 | EXPR_LOC_OR_HERE macro. | |
1620 | (conversion_warning): Likewise. | |
1621 | (warnings_for_convert_and_check): Likewise. | |
1622 | (warn_for_collisions_1): Likewise. | |
1623 | (shorten_compare): Likewise, and remove use of in_system_header | |
1624 | macro, using the location from the former. | |
1625 | * c-lex.c (dump_one_header): Remove use of input_filename macro. | |
1626 | (cb_def_pragma): Remove use of in_system_header macro. | |
1627 | (lex_string): Likewise. | |
1628 | * c-pragma.c (handle_pragma_float_const_decimal64): Likewise. | |
1629 | ||
eb1ce453 KZ |
1630 | 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com> |
1631 | Mike Stump <mikestump@comcast.net> | |
1632 | Richard Sandiford <rdsandiford@googlemail.com> | |
1633 | ||
1634 | * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi | |
1635 | instead of TREE_INT_CST_LOW, in cases where there is a protecting | |
1636 | tree_fits_shwi_p or tree_fits_uhwi_p. | |
1637 | (dump_generic_ada_node): Likewise. | |
1638 | * c-format.c (check_format_arg): Likewise. | |
1639 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
1640 | ||
6b3b8c27 KZ |
1641 | 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com> |
1642 | ||
1643 | * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi. | |
1644 | ||
49b0aa18 JC |
1645 | 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com> |
1646 | ||
1647 | PR c/53001 | |
1648 | * c-common.c (unsafe_conversion_p): Make this function | |
1649 | return an enumeration with more detail. | |
1650 | (conversion_warning): Use the new return type of | |
1651 | unsafe_conversion_p to separately warn either about conversions | |
1652 | that lower floating point number precision or about the other | |
1653 | kinds of conversions. | |
1654 | * c-common.h (enum conversion_safety): New enumeration. | |
1655 | (unsafe_conversion_p): switching return type to | |
1656 | conversion_safety enumeration. | |
1657 | * c.opt: Adding new warning -Wfloat-conversion and | |
1658 | enabling it with -Wconversion. | |
1659 | ||
b826515a BS |
1660 | 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net> |
1661 | ||
1662 | * c-opts.c: Include plugin.h. | |
1663 | (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE. | |
1664 | ||
b9a55b13 MP |
1665 | 2013-11-19 Marek Polacek <polacek@redhat.com> |
1666 | ||
1667 | * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data | |
1668 | call. | |
1669 | (ubsan_instrument_shift): Likewise. | |
1670 | (ubsan_instrument_vla): Likewise. | |
1671 | ||
7d362f6c RS |
1672 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
1673 | ||
1674 | * c-common.c (convert_vector_to_pointer_for_subscript): Remove | |
1675 | cast to unsigned type. | |
1676 | ||
386b1f1f RS |
1677 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
1678 | ||
1679 | * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than | |
1680 | tree_low_cst. | |
1681 | (complete_array_type): Update comment to refer to tree_to_[su]hwi | |
1682 | rather than tree_low_cst. | |
1683 | ||
ae7e9ddd RS |
1684 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
1685 | ||
1686 | * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with | |
1687 | tree_to_uhwi throughout. | |
1688 | ||
9439e9a1 RS |
1689 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
1690 | ||
1691 | * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace | |
1692 | tree_low_cst (..., 0) with tree_to_shwi throughout. | |
1693 | ||
cc269bb6 RS |
1694 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
1695 | ||
1696 | * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace | |
1697 | host_integerp (..., 1) with tree_fits_uhwi_p throughout. | |
1698 | ||
9541ffee RS |
1699 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
1700 | ||
1701 | * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace | |
1702 | host_integerp (..., 0) with tree_fits_shwi_p throughout. | |
1703 | ||
c02065fc AH |
1704 | 2013-11-15 Aldy Hernandez <aldyh@redhat.com> |
1705 | ||
1706 | * c-cilkplus.c: New file. | |
1707 | * c-common.c (readonly_error): Add location argument. | |
1708 | * c-common.h (readonly_error): Same. | |
1709 | (c_finish_cilk_clauses): Protoize. | |
1710 | (c_check_cilk_loop): Same. | |
1711 | c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes. | |
1712 | Do not fail on error_mark_node. | |
1713 | Abstract increment canonicalization to here... | |
1714 | (c_omp_for_incr_canonicalize_ptr): New. | |
1715 | c-pragma.c (init_pragma): Register "simd" pragma. | |
1716 | c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD. | |
1717 | (enum pragma_cilk_clause): New. | |
1718 | ||
9cc65f15 RS |
1719 | 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com> |
1720 | ||
1721 | * c-pretty-print.c (pp_c_character_constant): Remove unnecessary | |
1722 | wchar_type and host_integerp checks. | |
1723 | ||
18f429e2 AM |
1724 | 2013-11-14 Andrew MacLeod <amacleod@redhat.com> |
1725 | ||
1726 | * c-common.c: Likewise. | |
1727 | * c-gimplify.c: Likewise. | |
1728 | * cilk.c: Likewise. | |
1729 | ||
d8a2d370 DN |
1730 | 2013-11-14 Diego Novillo <dnovillo@google.com> |
1731 | ||
1732 | * c-common.c: Include fold-const.h. | |
1733 | Include stor-layout.h. | |
1734 | Include calls.h. | |
1735 | Include stringpool.h. | |
1736 | Include attribs.h. | |
1737 | Include varasm.h. | |
1738 | Include trans-mem.h. | |
1739 | * c-cppbuiltin.c: Include stor-layout.h. | |
1740 | Include stringpool.h. | |
1741 | * c-format.c: Include stringpool.h. | |
1742 | * c-lex.c: Include stringpool.h. | |
1743 | Include stor-layout.h. | |
1744 | * c-pragma.c: Include stringpool.h. | |
1745 | Include attribs.h. | |
1746 | Include varasm.h. | |
1747 | Include gcc-symtab.h. | |
1748 | * c-pretty-print.c: Include stor-layout.h. | |
1749 | Include attribs.h. | |
1750 | * cilk.c: Include stringpool.h. | |
1751 | Include calls.h. | |
1752 | ||
38b7bc7f JM |
1753 | 2013-11-13 Joseph Myers <joseph@codesourcery.com> |
1754 | ||
1755 | * c-common.h (enum rid): Add RID_AUTO_TYPE. | |
1756 | * c-common.c (c_common_reswords): Add __auto_type. | |
1757 | (keyword_begins_type_specifier): Handle RID_AUTO_TYPE. | |
1758 | ||
45b0be94 AM |
1759 | 2013-11-12 Andrew MacLeod <amacleod@redhat.com> |
1760 | ||
18f429e2 AM |
1761 | * c-common.c: Include gimplify.h. |
1762 | * c-gimplify.c: Likewise. | |
1763 | * cilk.c: Likewise. | |
1764 | * c-omp.c: Include gimple-expr.h instead of gimple.h. | |
1765 | * c-ubsan.c: Don't include gimple.h. | |
45b0be94 | 1766 | |
582d9b50 JM |
1767 | 2013-11-12 Joseph Myers <joseph@codesourcery.com> |
1768 | ||
1769 | * c-common.c (c_common_reswords): Add _Thread_local. | |
1770 | ||
6b28e197 JM |
1771 | 2013-11-09 Joseph Myers <joseph@codesourcery.com> |
1772 | ||
1773 | * c-common.c (atomic_size_supported_p): New function. | |
1774 | (resolve_overloaded_atomic_exchange) | |
1775 | (resolve_overloaded_atomic_compare_exchange) | |
1776 | (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): | |
1777 | Use it instead of comparing size with a local list of sizes. | |
1778 | ||
267bac10 JM |
1779 | 2013-11-07 Andrew MacLeod <amacleod@redhat.com> |
1780 | Joseph Myers <joseph@codesourcery.com> | |
1781 | ||
1782 | * c-common.h (enum rid): Add RID_ATOMIC. | |
1783 | * c-common.c (c_common_reswords): Add _Atomic. | |
1784 | (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument. | |
1785 | (keyword_is_type_qualifier): Accept RID_ATOMIC. | |
1786 | * c-format.c (check_format_types): Check for extra _Atomic | |
1787 | qualifiers in format argument. | |
1788 | * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier. | |
1789 | (pp_c_type_qualifier_list): Mention _Atomic in comment. | |
1790 | ||
5157b91e TB |
1791 | 2013-11-06 Tobias Burnus <burnus@net-b.de> |
1792 | ||
1793 | * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME. | |
1794 | ||
6dbe0958 JM |
1795 | 2013-11-06 Joseph Myers <joseph@codesourcery.com> |
1796 | ||
1797 | * c-opts.c (c_common_post_options): Set -ffp-contract=off in C | |
1798 | standards modes. | |
1799 | * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast | |
1800 | to mean lack of IEEE 754 support. | |
1801 | ||
e8ff5196 TB |
1802 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
1803 | ||
1804 | * c.opt (-Wdate-time): New option | |
1805 | * c-opts.c (sanitize_cpp_opts): Pass on to libcpp. | |
1806 | ||
254a0760 JM |
1807 | 2013-11-05 Joseph Myers <joseph@codesourcery.com> |
1808 | ||
1809 | * c-cppbuiltin.c (cpp_iec_559_value): Test | |
1810 | flag_excess_precision_cmdline not flag_excess_precision. | |
1811 | ||
6d7f7e0a TB |
1812 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
1813 | ||
1814 | * c.opt (fopenmp-simd): New option. | |
1815 | * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ... | |
1816 | (omp_pragmas): ... this new struct. | |
1817 | (c_pp_lookup_pragma): Also walk omp_pragmas. | |
1818 | (init_pragma): Init pragmas for -fopenmp-simd. | |
1819 | ||
55a7f02f MP |
1820 | 2013-11-04 Marek Polacek <polacek@redhat.com> |
1821 | ||
1822 | PR c++/58979 | |
1823 | * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case. | |
1824 | ||
9193fb05 JM |
1825 | 2013-11-04 Joseph Myers <joseph@codesourcery.com> |
1826 | ||
1827 | * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value): | |
1828 | New functions. | |
1829 | (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX. | |
1830 | ||
94159ecf EB |
1831 | 2013-11-04 Eric Botcazou <ebotcazou@adacore.com> |
1832 | ||
1833 | * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL. | |
1834 | (dump_ada_specs): Adjust prototype of second callback. | |
1835 | * c-ada-spec.c (cpp_check): New global variable. | |
1836 | (dump_ada_nodes): Remove cpp_check parameter and do not pass it down. | |
1837 | (print_generic_ada_decl): Likewise. | |
1838 | (has_static_fields): Change return type to bool and add guard. | |
1839 | (has_nontrivial_methods): New predicate. | |
1840 | (is_tagged_type): Change return type to bool. | |
1841 | (separate_class_package): Call has_nontrivial_methods. | |
1842 | (pp_ada_tree_identifier): Minor tweaks. | |
1843 | (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node. | |
1844 | (dump_ada_array_domains): Likewise. | |
1845 | (dump_ada_array_type): Likewise. | |
1846 | (dump_template_types): Remove cpp_check parameter and do not pass it to | |
1847 | dump_generic_ada_node. | |
1848 | (dump_ada_template): Likewise. | |
1849 | (dump_generic_ada_node): Remove cpp_check parameter and do not pass it | |
1850 | recursively. | |
1851 | (print_ada_methods): Change return type to integer. Remove cpp_check | |
1852 | parameter and do not pass it down. | |
1853 | (dump_nested_types): Remove cpp_check parameter and do not pass it to | |
1854 | dump_generic_ada_node. | |
1855 | (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before | |
1856 | accessing methods. | |
1857 | (print_ada_struct_decl): Remove cpp_check parameter and do not pass it | |
1858 | down. Use has_nontrivial_methods to recognize C++ classes. Use return | |
1859 | value of print_ada_methods. | |
1860 | (dump_ads): Rename cpp_check parameter to check and adjust prototype. | |
1861 | Set cpp_check to it before invoking dump_ada_nodes. | |
1862 | (dump_ada_specs): Likewise. | |
1863 | ||
b906f4ca MP |
1864 | 2013-11-03 Marek Polacek <polacek@redhat.com> |
1865 | ||
1866 | * c-ubsan.c: Don't include hash-table.h. | |
1867 | (ubsan_instrument_vla): New function. | |
1868 | * c-ubsan.h: Declare it. | |
1869 | ||
5e20cdc9 DM |
1870 | 2013-10-31 David Malcolm <dmalcolm@redhat.com> |
1871 | ||
1872 | Automated part of renaming of symtab_node_base to symtab_node. | |
1873 | ||
1874 | Patch autogenerated by rename_symtab.py from | |
1875 | https://github.com/davidmalcolm/gcc-refactoring-scripts | |
1876 | revision 58bb219cc090b2f4516a9297d868c245495ee622 | |
1877 | ||
1878 | * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename | |
1879 | symtab_node_base to symtab_node. | |
1880 | ||
7057e645 ESR |
1881 | 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net> |
1882 | ||
1883 | Implement C++14 digit separators. | |
1884 | * c-lex.c (interpret_float): Remove digit separators from scratch string | |
1885 | before building real literal. | |
1886 | ||
193ea7bc JJ |
1887 | 2013-10-30 Jakub Jelinek <jakub@redhat.com> |
1888 | ||
1889 | * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC. | |
1890 | ||
939b37da BI |
1891 | 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com> |
1892 | ||
1893 | * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync | |
1894 | fields. | |
1895 | (c_define_builtins): Called cilk_init_builtins if Cilk Plus is | |
1896 | enabled. | |
1897 | * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC. | |
1898 | (insert_cilk_frame): New prototype. | |
1899 | (cilk_init_builtins): Likewise. | |
1900 | (gimplify_cilk_spawn): Likewise. | |
1901 | (c_cilk_install_body_w_frame_cleanup): Likewise. | |
1902 | (cilk_detect_spawn_and_unwrap): Likewise. | |
1903 | (cilk_set_spawn_marker): Likewise. | |
1904 | (build_cilk_sync): Likewise. | |
1905 | (build_cilk_spawn): Likewise. | |
1906 | * cilk.c: New file. | |
1907 | ||
67348ccc DM |
1908 | 2013-10-29 David Malcolm <dmalcolm@redhat.com> |
1909 | ||
1910 | Patch autogenerated by refactor_symtab.py from | |
1911 | https://github.com/davidmalcolm/gcc-refactoring-scripts | |
1912 | revision 58bb219cc090b2f4516a9297d868c245495ee622 | |
1913 | ||
1914 | * c-gimplify.c (c_genericize): Update for conversion of symtab types | |
1915 | to a true class hierarchy. | |
1916 | * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise. | |
1917 | ||
d570872d RS |
1918 | 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com> |
1919 | ||
1920 | * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend. | |
1921 | ||
98906124 JL |
1922 | 2013-10-26 Jeff Law <law@redhat.com> |
1923 | ||
adfac8df JJ |
1924 | * c-common.c (c_define_builtins): Remove mudflap support. |
1925 | * c.opt: Ignore and warn for mudflap options. | |
98906124 | 1926 | |
d73749df | 1927 | 2013-10-24 Tobias Burnus <burnus@net-b.de> |
8170608b TB |
1928 | |
1929 | PR other/33426 | |
1930 | * c-pragma.c (init_pragma) Add #pragma ivdep handling. | |
1931 | * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP. | |
1932 | ||
3f04b1bb JM |
1933 | 2013-10-23 Jason Merrill <jason@redhat.com> |
1934 | ||
1935 | * c-format.c (gcc_cxxdiag_char_table): Add %X. | |
1936 | ||
acf0174b JJ |
1937 | 2013-10-11 Jakub Jelinek <jakub@redhat.com> |
1938 | ||
acd15a28 JJ |
1939 | * c-common.h (omp_clause_mask::operator !=): New method. |
1940 | * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0) | |
1941 | instead of if (mask & something) tests everywhere. | |
1942 | ||
acf0174b JJ |
1943 | * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to |
1944 | 201307 instead of 201107. | |
1945 | * c-common.c (DEF_FUNCTION_TYPE_8): Define. | |
1946 | (c_common_attribute_table): Add "omp declare target" and | |
1947 | "omp declare simd" attributes. | |
1948 | (handle_omp_declare_target_attribute, | |
1949 | handle_omp_declare_simd_attribute): New functions. | |
1950 | * c-omp.c: Include c-pragma.h. | |
1951 | (c_finish_omp_taskgroup): New function. | |
1952 | (c_finish_omp_atomic): Add swapped argument, if true, | |
1953 | build the operation first with rhs, lhs arguments and use NOP_EXPR | |
1954 | build_modify_expr. | |
1955 | (c_finish_omp_for): Add code argument, pass it down to make_code. | |
1956 | (c_omp_split_clauses): New function. | |
1957 | (c_split_parallel_clauses): Removed. | |
1958 | (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers, | |
1959 | c_omp_declare_simd_clauses_to_decls): New functions. | |
1960 | * c-common.h (omp_clause_mask): New type. | |
1961 | (OMP_CLAUSE_MASK_1): Define. | |
1962 | (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=, | |
1963 | omp_clause_mask::operator |=, omp_clause_mask::operator ~, | |
1964 | omp_clause_mask::operator |, omp_clause_mask::operator &, | |
1965 | omp_clause_mask::operator <<, omp_clause_mask::operator >>, | |
1966 | omp_clause_mask::operator ==): New methods. | |
1967 | (enum c_omp_clause_split): New. | |
1968 | (c_finish_omp_taskgroup): New prototype. | |
1969 | (c_finish_omp_atomic): Add swapped argument. | |
1970 | (c_finish_omp_for): Add code argument. | |
1971 | (c_omp_split_clauses): New prototype. | |
1972 | (c_split_parallel_clauses): Removed. | |
1973 | (c_omp_declare_simd_clauses_to_numbers, | |
1974 | c_omp_declare_simd_clauses_to_decls): New prototypes. | |
1975 | * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs. | |
1976 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL, | |
1977 | PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION, | |
1978 | PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD, | |
1979 | PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS. | |
1980 | Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS. | |
1981 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED, | |
1982 | PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE, | |
1983 | PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR, | |
1984 | PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH, | |
1985 | PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP, | |
1986 | PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS, | |
1987 | PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND, | |
1988 | PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS, | |
1989 | PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP, | |
1990 | PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and | |
1991 | PRAGMA_OMP_CLAUSE_UNIFORM. | |
1992 | ||
826cacfe MG |
1993 | 2013-10-09 Marc Glisse <marc.glisse@inria.fr> |
1994 | ||
1995 | PR tree-optimization/20318 | |
1996 | * c-common.c (handle_returns_nonnull_attribute): New function. | |
1997 | (c_common_attribute_table): Add returns_nonnull. | |
1998 | ||
2284b034 MG |
1999 | 2013-10-03 Marc Glisse <marc.glisse@inria.fr> |
2000 | ||
2001 | PR c++/19476 | |
2002 | * c.opt (fcheck-new): Move to common.opt. | |
2003 | ||
b56e9788 MP |
2004 | 2013-09-25 Marek Polacek <polacek@redhat.com> |
2005 | Jakub Jelinek <jakub@redhat.com> | |
2006 | ||
2007 | PR sanitizer/58413 | |
2008 | * c-ubsan.c (ubsan_instrument_shift): Don't instrument | |
2009 | an expression if we can prove it is correct. | |
2010 | (ubsan_instrument_division): Likewise. Remove unnecessary | |
2011 | check. | |
2012 | ||
ce6923c5 MP |
2013 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
2014 | ||
2015 | PR sanitizer/58411 | |
2016 | * c-common.c (handle_no_sanitize_undefined_attribute): New function. | |
2017 | Declare it. | |
2018 | (struct attribute_spec c_common_att): Add no_sanitize_undefined. | |
2019 | ||
fb5610fb IS |
2020 | 2013-09-14 Iain Sandoe <iain@codesourcery.com> |
2021 | ||
2022 | PR target/48094 | |
2023 | * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version, | |
2024 | fobjc-gc, freplace-objc-classes): Accept for LTO. | |
2025 | ||
88b0e79e JC |
2026 | 2013-09-13 Jacek Caban <jacek@codeweavers.com> |
2027 | ||
2028 | * c-target.def: New hook | |
2029 | ||
c9b0866a PC |
2030 | 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com> |
2031 | ||
2032 | PR c++/43452 | |
2033 | * c.opt (Wdelete-incomplete): Add. | |
2034 | ||
0af94e6f JR |
2035 | 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com> |
2036 | ||
2037 | * c-common.c (same_scalar_type_ignoring_signedness): Delete. | |
2038 | (vector_types_compatible_elements_p): New function. | |
2039 | * c-common.h: (same_scalar_type_ignoring_signedness): Delete | |
2040 | declaration. | |
2041 | (vector_types_compatible_elements_p): Declare. | |
2042 | ||
7c26172c GDR |
2043 | 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
2044 | ||
2045 | * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now | |
2046 | a virtual member function. | |
2047 | (pp_simple_type_specifier): Remove. | |
2048 | (pp_c_type_specifier): Likewise. | |
2049 | * c-pretty-print.c (c_pretty_printer::simple_type_specifier): | |
2050 | Rename from pp_c_type_specifier. Adjust. | |
2051 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
2052 | simple_type_specifier. | |
2053 | ||
20059c8b GDR |
2054 | 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
2055 | ||
2056 | * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual | |
2057 | member function. | |
2058 | (c_pretty_printer::storage_class_specifier): Likewise. | |
2059 | (c_pretty_printer::initializer): Likewise. | |
2060 | (pp_declaration): Remove. | |
2061 | (pp_declaration_specifiers): Likewise. | |
2062 | (pp_abstract_declarator): Likewise. | |
2063 | (pp_declarator): Likewise. | |
2064 | (pp_type_id): Likewise. | |
2065 | (pp_statement): Likewise. | |
2066 | (pp_constant): Likewise. | |
2067 | (pp_id_expression): Likewise. | |
2068 | (pp_primary_expression): Likewise. | |
2069 | (pp_unary_expression): Likewise. | |
2070 | (pp_multiplicative_expression): Likewise. | |
2071 | (pp_conditional_expression): Likewise. | |
2072 | (pp_assignment_expression): Likewise. | |
2073 | (pp_expression): Likewise. | |
2074 | (pp_c_type_id): Likewise. | |
2075 | (pp_c_storage_class_specifier): Likewise. | |
2076 | * c-pretty-print.c (pp_c_type_cast): Tidy. | |
2077 | (pp_c_pointer): Likewise. | |
2078 | (pp_c_type_specifier): Likewise. | |
2079 | (pp_c_parameter_type_list): Likewise. | |
2080 | (pp_c_function_definition): Likewise. | |
2081 | (pp_c_init_declarator): Likewise. | |
2082 | (pp_c_initializer_list): Likewise. | |
2083 | (pp_c_constructor_elts): Likewise. | |
2084 | (c_pretty_printer::direct_abstract_declarator): Likewise. | |
2085 | (c_pretty_printer::declaration_specifiers): Likewise. | |
2086 | (c_pretty_printer::primary_expression): Likewise. | |
2087 | (c_pretty_printer::postfix_expression): Likewise. | |
2088 | (c_pretty_printer::type_id): Rename from pp_c_type_id. | |
2089 | (c_pretty_printer::storage_class_specifier): Rename from | |
2090 | pp_c_storage_class_specifier. | |
2091 | (c_pretty_printer::initializer): Rename from pp_c_initializer. | |
2092 | (c_pretty_printer::c_pretty_printer): Do not assign to type_id, | |
2093 | storage_class_specifier, initializer, offset_list, flags. | |
2094 | ||
de5a5fa1 MP |
2095 | 2013-08-30 Marek Polacek <polacek@redhat.com> |
2096 | ||
2097 | * c-ubsan.c: New file. | |
2098 | * c-ubsan.h: New file. | |
2099 | ||
8f0e4d72 GDR |
2100 | 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net> |
2101 | ||
2102 | * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual | |
2103 | member function. | |
2104 | (c_pretty_printer::declaration_specifiers): Likewise. | |
2105 | (c_pretty_printer::declarator): Likewise. | |
2106 | (c_pretty_printer::abstract_declarator): Likewise. | |
2107 | (c_pretty_printer::direct_abstract_declarator): Likewise. | |
2108 | (c_pretty_printer::direct_declarator): Likewise. | |
2109 | (c_pretty_printer::function_specifier): Likewise. | |
2110 | (pp_declaration): Adjust. | |
2111 | (pp_declaration_specifiers): Likewise. | |
2112 | (pp_abstract_declarator): Likewise. | |
2113 | (pp_direct_declarator): Likewise. | |
2114 | (pp_function_specifier): Likewise. | |
2115 | (pp_direct_abstract_declarator): Remove as unused. | |
2116 | (pp_c_declaration): Remove. | |
2117 | (pp_c_declaration_specifiers): Likewise. | |
2118 | (pp_c_declarator): Likewise. | |
2119 | (pp_c_direct_declarator): Likewise. | |
2120 | (pp_c_function_specifier): Likewise. | |
2121 | (pp_c_direct_abstract_declarator): Likewise. | |
2122 | * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename | |
2123 | from pp_c_abstract_declarator. Adjust. | |
2124 | (c_pretty_printer::direct_abstract_declarator): Rename from | |
2125 | pp_c_direct_abstract_declarator. Adjust. | |
2126 | (c_pretty_printer::function_specifier): Rename from | |
2127 | pp_c_function_specifier. Adjust. | |
2128 | (c_pretty_printer::declaration_specifiers): Rename from | |
2129 | pp_c_declaration_specifiers. Adjust. | |
2130 | (c_pretty_printer::direct_declarator): Rename from | |
2131 | pp_c_direct_declarator. Adjust. | |
2132 | (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust. | |
2133 | (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust. | |
2134 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
2135 | declaration, declaration_specifiers, declarator, | |
2136 | direct_declarator, direct_abstract_declarator, function_specifier. | |
2137 | ||
00d34d3a GDR |
2138 | 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net> |
2139 | ||
2140 | * c-pretty-print.h (c_pretty_printer::unary_expression): Now a | |
2141 | virtual member function. | |
2142 | (c_pretty_printer::multiplicative_expression): Likewise. | |
2143 | (c_pretty_printer::conditional_expression): Likewise. | |
2144 | (c_pretty_printer::assignment_expression): Likewise. | |
2145 | (c_pretty_printer::expression): Likewise. | |
2146 | (pp_unary_expression): Adjust. | |
2147 | (pp_multiplicative_expression): Likewise. | |
2148 | (pp_assignment_expression): Likewise. | |
2149 | (pp_conditional_expression): Likewise. | |
2150 | (pp_expression): Likewise. | |
2151 | * c-pretty-print.c (c_pretty_printer::unary_expression): Rename | |
2152 | from pp_c_unary_expression. Adjust. | |
2153 | (c_pretty_printer::multiplicative_expression): Rename from | |
2154 | pp_c_multiplicative_expression. Adjust. | |
2155 | (c_pretty_printer::conditional_expression): Rename from | |
2156 | pp_c_conditional_expression. Adjust. | |
2157 | (c_pretty_printer::assignment_expression): Rename from | |
2158 | pp_c_assignment_expression. Adjust. | |
2159 | (c_pretty_printer::expression): Rename from pp_c_expression. Adjust. | |
2160 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
2161 | unary_expression, multiplicative_expression, | |
2162 | conditional_expression, expression. | |
2163 | ||
fb22178f GDR |
2164 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
2165 | ||
2166 | * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a | |
2167 | virtual member function. | |
2168 | (pp_postfix_expression): Adjust. | |
2169 | (pp_c_postfix_expression): Remove. | |
2170 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename | |
2171 | from pp_c_postfix_expression. Adjust. | |
2172 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
2173 | postfix_expression. | |
2174 | ||
7ecc2600 GDR |
2175 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
2176 | ||
2177 | * c-pretty-print.h (c_pretty_printer::primary_expression): Now a | |
2178 | virtua member function. | |
2179 | (pp_primary_expression): Adjust. | |
2180 | (pp_c_primary_expression): Remove. | |
2181 | * c-pretty-print.c (c_pretty_printer::primary_expression): Rename | |
2182 | from pp_c_primary_expression. Adjust. | |
2183 | (pp_c_initializer_list): Use pp_primary_expression. | |
2184 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
2185 | primary_expression. | |
2186 | ||
0691175f GDR |
2187 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
2188 | ||
2189 | * c-pretty-print.h (c_pretty_printer::translate_string): Declare. | |
2190 | * c-pretty-print.c (M_): Remove. | |
2191 | (c_pretty_printer::translate_string): Define. | |
2192 | (pp_c_type_specifier): Use it. | |
2193 | (pp_c_primary_expression): Likewise. | |
2194 | (pp_c_expression): Likewise. | |
2195 | ||
66dfe4c4 GDR |
2196 | 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net> |
2197 | ||
2198 | * c-pretty-print.h (c_pretty_printer::id_expression): Now a | |
2199 | virtual function. | |
2200 | (pp_c_id_expression): Remove. | |
2201 | (pp_id_expression): Adjust. | |
2202 | * c-pretty-print.c (c_pretty_printer::id_expression): Rename from | |
2203 | pp_c_id_expression. Adjust. | |
2204 | (pp_c_postfix_expression): Use pp_id_expression. | |
2205 | (c_pretty_printer::c_pretty_printer): Do not assign to id_expression. | |
2206 | ||
ca43e9d5 GDR |
2207 | 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net> |
2208 | ||
2209 | * c-pretty-print.h (c_pretty_printer::constant): Now a virtual | |
2210 | member function. | |
2211 | (pp_constant): Adjust. | |
2212 | (pp_c_constant): Remove. | |
2213 | * c-pretty-print.c (c_pretty_printer::constant): Rename from | |
2214 | pp_c_constant. Adjust. | |
2215 | (pp_c_constant) | |
2216 | (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant. | |
2217 | (c_pretty_printer::c_pretty_printer): Remove assignment to constant. | |
2218 | ||
da6ca2b5 GDR |
2219 | 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
2220 | ||
2221 | * c-pretty-print.h (pp_c_pretty_printer_init): Remove. | |
2222 | (c_pretty_printer::c_pretty_printer): Declare. | |
2223 | * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from | |
2224 | c_pretty_printer_init. Adjust. | |
2225 | (print_c_tree): Do not call c_pretty_printer_init. | |
2226 | * c-ada-spec.c (dump_ads): Remove call to pp_construct. | |
2227 | ||
65a372f4 AC |
2228 | 2013-08-09 Arnaud Charlet <charlet@adacore.com> |
2229 | ||
2230 | * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name | |
2231 | ||
fd9b0f32 PC |
2232 | 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com> |
2233 | ||
2234 | PR c++/58080 | |
2235 | * c-common.c (pointer_int_sum): Add bool parameter. | |
2236 | * c-common.h (pointer_int_sum): Adjust declaration. | |
2237 | ||
e0aec1e9 GDR |
2238 | 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net> |
2239 | ||
2240 | * c-pretty-print.c (print_c_tree): Simplify. Use non-static local | |
2241 | c_pretty_printer variable. | |
2242 | ||
b066401f GDR |
2243 | 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
2244 | ||
2245 | * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer. | |
2246 | (pp_base): Remove. | |
2247 | (pp_c_base): Likewise. Adjust users. | |
2248 | * c-pretty-print.c (pp_c_maybe_whitespace): Adjust. | |
2249 | (pp_c_whitespace): Do not call pp_base. | |
2250 | (pp_c_left_paren): Likewise. | |
2251 | (pp_c_right_paren): Likewise. | |
2252 | (pp_c_left_brace): Likewise. | |
2253 | (pp_c_right_brace): Likewise. | |
2254 | (pp_c_left_bracket): Likewise. | |
2255 | (pp_c_right_bracket): Likewise. | |
2256 | (pp_c_dot): Likewise. | |
2257 | (pp_c_ampersand): Likewise. | |
2258 | (pp_c_star): Likewise. | |
2259 | (pp_c_arrow): Likewise. | |
2260 | (pp_c_semicolon): Likewise. | |
2261 | (pp_c_complement): Likewise. | |
2262 | (pp_c_exclamation): Likewise. | |
2263 | (pp_c_direct_declarator): Likewise. | |
2264 | (pp_c_ws_string): Likewise. | |
2265 | (pp_c_identifier): Likewise. | |
2266 | (pp_c_statement): Likewise. | |
2267 | (print_c_tree): Likewise. | |
2268 | ||
65e5a578 ESR |
2269 | 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net> |
2270 | ||
2271 | PR c++/58072 | |
2272 | * c-common.c (c_parse_error): Catch user-defined literal tokens and | |
2273 | provide useful error strings. | |
2274 | ||
137a1a27 GDR |
2275 | 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
2276 | ||
2277 | * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty | |
2278 | printer functions instead of pp_string or operators and punctuators. | |
2279 | (dump_generic_ada_node): Likewise. | |
2280 | * c-pretty-print.c (pp_c_type_specifier): Likewise. | |
2281 | (pp_c_relational_expression): Likewise. | |
2282 | (pp_c_logical_or_expression): Likewise. | |
2283 | ||
07838b13 GDR |
2284 | 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
2285 | ||
2286 | * c-ada-spec.c (print_ada_macros): Use specialized pretty printer | |
2287 | functions instead of pp_character. | |
2288 | (pp_ada_tree_identifier): Likewise. | |
2289 | (dump_ada_double_name): Likewise. | |
2290 | (dump_ada_function_declaration): Likewise. | |
2291 | (dump_ada_array_domains): Likewise. | |
2292 | (dump_template_types): Likewise. | |
2293 | (dump_generic_ada_node): Likewise. | |
2294 | (print_ada_declaration): Likewise. | |
2295 | (print_ada_struct_decl): Likewise. | |
2296 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
2297 | ||
433cc7b0 TT |
2298 | 2013-07-23 Tom Tromey <tromey@redhat.com> |
2299 | ||
2300 | * c-common.h (enum rid) <RID_GENERIC>: New constant. | |
2301 | * c-common.c (c_common_reswords): Add _Generic. | |
2302 | ||
688010ba OB |
2303 | 2013-07-21 OndÅ\99ej BÃlka <neleai@seznam.cz> |
2304 | ||
2305 | * c-common.c: Fix typos. | |
2306 | * c-common.h: Likewise. | |
2307 | ||
2a99e5e6 LL |
2308 | 2013-07-13 Lubos Lunak <l.lunak@suse.cz> |
2309 | ||
2310 | PR c++/55203 | |
2311 | * c-common.c (c_common_attribute_table): Add warn_unused. | |
2312 | (handle_warn_unused_attribute): New. | |
2313 | ||
c26302d5 JJ |
2314 | 2013-07-10 Jakub Jelinek <jakub@redhat.com> |
2315 | ||
2316 | * c-ppoutput.c (scan_translation_unit): Call account_for_newlines | |
2317 | for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT. | |
2318 | ||
dfeadaa0 PC |
2319 | 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com> |
2320 | ||
2321 | PR c++/57869 | |
2322 | * c.opt: Add Wconditionally-supported. | |
2323 | ||
6a2fa4b2 GS |
2324 | 2013-07-08 Graham Stott <graham.stott@btinternet.com> |
2325 | ||
adfac8df | 2326 | * array-notation-common.c (length_mismatch_in_expr_p): Delete |
6a2fa4b2 GS |
2327 | unused variables l_length and l_node. |
2328 | ||
ecdbd01a | 2329 | 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com> |
40d3d530 JR |
2330 | |
2331 | PR c/57821 | |
2332 | * c-common.c (complete_array_type): Delay folding first index | |
2333 | like other indices. When folding, check for index overflow. | |
2334 | ||
bedc293e MG |
2335 | 2013-06-27 Marc Glisse <marc.glisse@inria.fr> |
2336 | ||
2337 | PR c++/57509 | |
2338 | * c-common.h (c_build_vec_perm_expr): New complain argument. | |
2339 | * c-common.c (c_build_vec_perm_expr): Likewise. | |
2340 | Use save_expr also in C++. | |
2341 | ||
604b2bfc GDR |
2342 | 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
2343 | ||
2344 | * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x. | |
2345 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
2346 | * c-opts.c (c_common_post_options): Likewise. | |
2347 | ||
dfeadaa0 | 2348 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
713b46fa BI |
2349 | |
2350 | * array-notation-common.c (length_mismatch_in_expr): Changed the | |
2351 | parameter type's from a dynamic array to a vec_tree. Also removed | |
2352 | the size parameters. | |
2353 | * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per | |
2354 | the change above. | |
2355 | ||
2ce86d2e BI |
2356 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2357 | ||
2358 | * c-common.h (struct cilkplus_an_parts): New structure. | |
2359 | (struct cilkplus_an_loop_parts): Likewise. | |
2360 | (cilkplus_extract_an_triplets): New prototype. | |
2361 | (fix_sec_implicit_args): Likewise. | |
2362 | * array-notation-common.c (cilkplus_extract_an_triplets): New function. | |
2363 | (fix_sec_implicit_args): Likewise. | |
604b2bfc | 2364 | |
07a6825b BI |
2365 | 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2366 | ||
2367 | * array-notation-common.c (find_inv_trees): Removed an unwanted | |
2368 | typecasting. | |
2369 | * c-common.h (struct inv_list::additional_tcodes): Changed type from | |
2370 | enum rid to enum tree_code. | |
2371 | ||
08346abd JH |
2372 | 2013-06-11 Jan Hubicka <jh@suse.cz> |
2373 | ||
2374 | * c-common.c (handle_alias_ifunc_attribute): Do not set | |
2375 | DECL_EXTERNAL for weakref variables. | |
2376 | * c-pragma.c (handle_pragma_weak): Make sure aliases | |
2377 | are not declared as external. | |
2378 | ||
d60f1706 BI |
2379 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2380 | ||
2381 | * array-notation-common.c (length_mismatch_in_expr_p): Moved this | |
2382 | function from c/c-array-notation.c. | |
2383 | (is_cilkplus_reduce_builtin): Likewise. | |
2384 | (find_rank): Likewise. | |
2385 | (extract_array_notation_exprs): Likewise. | |
2386 | (replace_array_notations): Likewise. | |
2387 | (find_inv_trees): Likewise. | |
2388 | (replace_inv_trees): Likewise. | |
2389 | (contains_array_notation_expr): Likewise. | |
2390 | (find_correct_array_notation_type): Likewise. | |
2391 | * c-common.h (struct inv_list): Moved this struct from the file | |
2392 | c/c-array-notation.c and added a new field called additional tcodes. | |
2393 | (length_mismatch_in_expr_p): New prototype. | |
2394 | (is_cilkplus_reduce_builtin): Likewise. | |
2395 | (find_rank): Likewise. | |
2396 | (extract_array_notation_exprs): Likewise. | |
2397 | (replace_array_notation): Likewise. | |
2398 | (find_inv_trees): Likewise. | |
2399 | (replace_inv_trees): Likewise. | |
2400 | (find_correct_array_notation_type): Likewise. | |
dfeadaa0 | 2401 | |
36536d79 BI |
2402 | 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2403 | ||
2404 | * c-common.c (c_define_builtins): When cilkplus is enabled, the | |
2405 | function array_notation_init_builtins is called. | |
2406 | (c_common_init_ts): Added ARRAY_NOTATION_REF as typed. | |
2407 | * c-common.def (ARRAY_NOTATION_REF): New tree. | |
2408 | * c-common.h (build_array_notation_expr): New function declaration. | |
2409 | (build_array_notation_ref): Likewise. | |
2410 | (extract_sec_implicit_index_arg): New extern declaration. | |
2411 | (is_sec_implicit_index_fn): Likewise. | |
2412 | (ARRAY_NOTATION_CHECK): New define. | |
2413 | (ARRAY_NOTATION_ARRAY): Likewise. | |
2414 | (ARRAY_NOTATION_START): Likewise. | |
2415 | (ARRAY_NOTATION_LENGTH): Likewise. | |
2416 | (ARRAY_NOTATION_STRIDE): Likewise. | |
2417 | * c-pretty-print.c (pp_c_postifix_expression): Added a new case for | |
2418 | ARRAY_NOTATION_REF. | |
2419 | (pp_c_expression): Likewise. | |
2420 | * c.opt (flag_enable_cilkplus): New flag. | |
2421 | * array-notation-common.c: New file. | |
2422 | ||
f7716d57 JJ |
2423 | 2013-05-14 Jakub Jelinek <jakub@redhat.com> |
2424 | ||
2425 | PR c++/57274 | |
2426 | * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR. | |
2427 | ||
a5e0cd1d MG |
2428 | 2013-05-10 Marc Glisse <marc.glisse@inria.fr> |
2429 | ||
2430 | * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for | |
2431 | vectors. | |
2432 | ||
f6bc1c4a HS |
2433 | 2013-05-07 Han Shen <shenhan@google.com> |
2434 | ||
2435 | * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3". | |
2436 | ||
3f12f6e9 SKS |
2437 | 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
2438 | ||
2439 | * c-common.c (check_user_alignment): Emit error for negative values. | |
2440 | ||
61949153 PC |
2441 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
2442 | ||
2443 | * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y. | |
2444 | ||
e93e18e9 PC |
2445 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
2446 | ||
2447 | * c-cppbuiltin.c (c_cpp_builtins): Do not define | |
2448 | __GXX_EXPERIMENTAL_CXX1Y__. | |
2449 | ||
44d90fe1 PC |
2450 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
2451 | Manuel Lopez-Ibanez <manu@gcc.gnu.org> | |
2452 | ||
2453 | * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented. | |
2454 | * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns | |
2455 | to simply use OPT_Wpointer_arith. | |
2456 | (c_sizeof_or_alignof_type): Likewise. | |
2457 | ||
13f39b2e PC |
2458 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
2459 | ||
2460 | * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__. | |
2461 | ||
4b84d650 JJ |
2462 | 2013-04-12 Jakub Jelinek <jakub@redhat.com> |
2463 | ||
2464 | * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table, | |
2465 | gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format | |
2466 | specifiers. | |
2467 | ||
fb037b5d SB |
2468 | 2013-04-07 Steven Bosscher <steven@gcc.gnu.org> |
2469 | ||
2470 | * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment. | |
2471 | ||
4e856798 PC |
2472 | 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com> |
2473 | ||
2474 | * c-common.c (pointer_int_sum): Remove dead code. | |
2475 | ||
4b1baac8 RS |
2476 | 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com> |
2477 | ||
2478 | PR middle-end/56524 | |
2479 | * c-common.c (handle_optimize_attribute): Don't call | |
2480 | save_optabs_if_changed. | |
2481 | ||
0b50e654 JJ |
2482 | 2013-03-05 Jakub Jelinek <jakub@redhat.com> |
2483 | ||
2484 | PR middle-end/56461 | |
2485 | * c-pch.c (pch_init): Free target_validity at the end. | |
2486 | ||
48c41403 JJ |
2487 | 2013-03-04 Jakub Jelinek <jakub@redhat.com> |
2488 | ||
2489 | * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags. | |
2490 | ||
e664c61c KS |
2491 | 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com> |
2492 | Jakub Jelinek <jakub@redhat.com> | |
2493 | ||
2494 | PR sanitizer/56454 | |
2495 | * c-common.c (handle_no_sanitize_address_attribute): New function. | |
2496 | (c_common_attribute_table): Add no_sanitize_address attribute. | |
2497 | (handle_no_address_safety_analysis_attribute): Add | |
2498 | no_sanitize_address attribute, not no_address_safety_analysis | |
2499 | attribute. | |
2500 | ||
a475fd3d | 2501 | 2013-02-18 Aldy Hernandez <aldyh@redhat.com> |
135204dd AH |
2502 | |
2503 | PR target/52555 | |
2504 | * c-common.c (handle_optimize_attribute): Call | |
2505 | save_optabs_if_changed. | |
2506 | ||
f6007d99 JJ |
2507 | 2013-02-18 Jakub Jelinek <jakub@redhat.com> |
2508 | Steven Bosscher <steven@gcc.gnu.org> | |
2509 | ||
2510 | PR pch/54117 | |
2511 | * c-opts.c (c_common_post_options): If debug info is enabled | |
2512 | and non-dwarf*, refuse to load PCH files and when writing PCH | |
2513 | file warn. | |
2514 | ||
cf35e2b1 JJ |
2515 | 2013-02-05 Jakub Jelinek <jakub@redhat.com> |
2516 | ||
2517 | PR middle-end/56167 | |
2518 | * c-common.c (handle_error_attribute): Fix condition. | |
2519 | ||
32887460 JJ |
2520 | 2013-01-30 Jakub Jelinek <jakub@redhat.com> |
2521 | ||
2522 | PR c++/55742 | |
2523 | * c-common.c (handle_target_attribute): Revert 2012-12-26 change. | |
2524 | ||
5af057d8 JM |
2525 | 2013-01-18 Jason Merrill <jason@redhat.com> |
2526 | ||
2527 | PR target/54908 | |
2528 | * c.opt (-fextern-tls-init): New. | |
2529 | * c-opts.c (c_common_post_options): Handle it. | |
2530 | ||
cc83c823 JJ |
2531 | 2013-01-09 Jakub Jelinek <jakub@redhat.com> |
2532 | ||
2533 | PR c/48418 | |
2534 | * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and | |
2535 | RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST | |
2536 | and is either negative or bigger or equal to type precision | |
2537 | of the first operand. | |
2538 | ||
a859517f MP |
2539 | 2012-12-03 Marek Polacek <polacek@redhat.com> |
2540 | ||
2541 | PR c/55570 | |
2542 | * c-common.c (check_user_alignment): Swap order of tests, | |
2543 | check TREE_CODE first. | |
2544 | ||
2d7aa578 ESR |
2545 | 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net> |
2546 | ||
2547 | PR c++/52654 | |
2548 | * c-common.h (overflow_type): New enum. | |
2549 | (build_userdef_literal): Add overflow_type argument. | |
2550 | (tree_userdef_literal): Add overflow_type. | |
2551 | (USERDEF_LITERAL_OVERFLOW): New access macro. | |
2552 | * c-common.c (build_userdef_literal): Add overflow_type | |
2553 | argument. | |
2554 | * c-lex.c (c_lex_with_flags): Add overflow_type to | |
2555 | build_userdef_literal calls. | |
2556 | (interpret_integer, interpret_float): Add overflow_type argument. | |
2557 | ||
cc3c4f62 RB |
2558 | 2012-11-28 Richard Biener <rguenther@suse.de> |
2559 | ||
2560 | PR c/35634 | |
2561 | * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions | |
2562 | here and use a type with proper overflow behavior for types that would | |
2563 | need to be promoted for the arithmetic. | |
2564 | ||
77bc5132 JJ |
2565 | 2012-11-23 Jakub Jelinek <jakub@redhat.com> |
2566 | ||
2567 | PR sanitizer/55435 | |
2568 | * c-common.c (handle_no_address_safety_analysis_attribute): New | |
2569 | function. | |
2570 | (c_common_attribute_table): Add no_address_safety_analysis. | |
2571 | ||
5dc99c46 SB |
2572 | 2012-11-16 Simon Baldwin <simonb@google.com> |
2573 | ||
2574 | * c.opt: Add f[no-]canonical-system-headers. | |
2575 | * c-opts.c (c_common_handle_option): Handle | |
2576 | OPT_fcanonical_system_headers. | |
2577 | ||
a4a0016d ESR |
2578 | 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net> |
2579 | ||
2580 | PR c++/54413 | |
2581 | * c-opts.c (c_common_handle_option): Set new flags. | |
2582 | * c.opt: Describe new flags. | |
2583 | ||
7dbb85a7 JM |
2584 | 2012-11-09 Jason Merrill <jason@redhat.com> |
2585 | ||
2586 | * c.opt (Wabi-tag): New. | |
2587 | ||
ad7bac31 AK |
2588 | 2012-11-09 Andi Kleen <ak@linux.intel.com> |
2589 | ||
2590 | PR 55139 | |
2591 | * c-common.c (get_atomic_generic_size): Mask with | |
2592 | MEMMODEL_MASK | |
2593 | ||
7332899a MLI |
2594 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2595 | ||
2596 | PR c/53063 | |
2597 | * c.opt (Wformat): Make it Alias Wformat=1. | |
2598 | (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral, | |
2599 | Wformat-security,Wformat-y2k,Wformat-zero-length): Use | |
2600 | LangEnabledBy. | |
2601 | (Wformat=): RejectNegative. Use LangEnabledBy. | |
2602 | (Wnonnull): Use LangEnabledBy. | |
2603 | * c-opts.c (c_common_handle_option): Do not handle Wformat here. | |
2604 | * c-format.c (set_Wformat): Delete. | |
2605 | (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_. | |
2606 | (maybe_read_dollar_number): Likewise. | |
2607 | (avoid_dollar_number): Likewise. | |
2608 | (finish_dollar_format_checking): Likewise. | |
2609 | (check_format_info): Likewise. | |
2610 | (check_format_info_main): Likewise. | |
2611 | (check_format_types): Likewise. | |
2612 | (format_type_warning): Likewise. | |
2613 | * c-common.c (int): Likewise. | |
2614 | (check_function_sentinel): Likewise. | |
2615 | * c-common.h (warn_format,set_Wformat): Do not declare here. | |
2616 | ||
34a180a6 MLI |
2617 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2618 | ||
2619 | PR c/53063 | |
2620 | * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare, | |
2621 | Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros): | |
2622 | Use LangEnabledBy. | |
2623 | (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from | |
2624 | common.opt. | |
2625 | (Wvariadic-macros): Init(1). | |
2626 | * c-opts.c (c_common_handle_option): Do not handle them | |
2627 | explicitly. | |
2628 | (c_common_post_options): Likewise. | |
2629 | (sanitize_cpp_opts): warn_unused_macros is now | |
2630 | cpp_warn_unused_macros. | |
2631 | (push_command_line_include): Likewise. | |
2632 | * c-common.c (warn_unknown_pragmas): Do not define. | |
2633 | * c-common.h (warn_unknown_pragmas): Do not declare. | |
2634 | ||
3f46d6a5 MLI |
2635 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2636 | ||
2637 | PR c/51294 | |
2638 | * c-common.c (conversion_warning): Handle conditional expressions. | |
2639 | ||
880661a4 JW |
2640 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
2641 | ||
2642 | PR c++/54930 | |
2643 | * c.opt (Wreturn_local_addr): Define new option. | |
2644 | ||
4514a96b JM |
2645 | 2012-10-25 Jason Merrill <jason@redhat.com> |
2646 | ||
f14edc1a JM |
2647 | * c.opt (Wvirtual-move-assign): New. |
2648 | ||
4514a96b JM |
2649 | * c.opt (Winherited-variadic-ctor): New. |
2650 | ||
93100c6b MG |
2651 | 2012-10-25 Marc Glisse <marc.glisse@inria.fr> |
2652 | ||
2653 | PR c++/54427 | |
2654 | * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR. | |
2655 | ||
1efcb8c6 JM |
2656 | 2012-10-23 Joseph Myers <joseph@codesourcery.com> |
2657 | ||
2658 | * c-common.h (pch_cpp_save_state): Declare. | |
2659 | * c-target.def (c_preinclude): New hook. | |
2660 | * c-opts.c (done_preinclude): New. | |
2661 | (push_command_line_include): Handle default preincluded header. | |
2662 | (cb_file_change): Call pch_cpp_save_state when calling | |
2663 | push_command_line_include. | |
2664 | * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved) | |
2665 | (pch_cpp_save_state): New. | |
2666 | (pch_init): Call pch_cpp_save_state conditionally, instead of | |
2667 | calling cpp_save_state. | |
2668 | ||
4a0ae68e MLI |
2669 | 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2670 | ||
2671 | PR c/53063 | |
2672 | PR c/40989 | |
2673 | * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit, | |
2674 | Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess, | |
2675 | Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point, | |
2676 | Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused, | |
2677 | Wvolatile-register-var): Add LangEnabledBy or EnabledBy. | |
2678 | * c-opts.c (c_common_handle_option): Remove explicit handling from | |
2679 | here. | |
2680 | (c_common_post_options): Likewise. | |
2681 | ||
67e4210b EB |
2682 | 2012-10-18 Eric Botcazou <ebotcazou@adacore.com> |
2683 | ||
2684 | * c-ada-spec.c (LOCATION_COL): Delete. | |
2685 | (compare_location): New function. | |
2686 | (compare_node): Use it. | |
2687 | (compare_comment): Likewise. | |
2688 | ||
65d4f2cd MLI |
2689 | 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2690 | ||
2691 | PR c/53063 | |
2692 | PR c/40989 | |
2693 | * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy. | |
2694 | * c-opts.c (c_common_handle_option): Do not set them here. Add | |
2695 | comment. | |
2696 | (c_common_post_options): Likewise. | |
2697 | ||
909881cb EB |
2698 | 2012-10-16 Eric Botcazou <ebotcazou@adacore.com> |
2699 | ||
2700 | * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define. | |
2701 | (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially. | |
2702 | Remove POINTER_TYPE handling, add large unsigned handling and use | |
2703 | ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers. | |
2704 | ||
3a785c97 JJ |
2705 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
2706 | ||
2707 | PR c/54381 | |
2708 | * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype. | |
2709 | * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3 | |
2710 | locs and array of 3 trees instead of just single loc and single | |
2711 | sizeof_arg tree. Handle __builtin___*_chk builtins too, and | |
2712 | also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins. | |
2713 | For *cmp* builtins that take two sources strings report warnings | |
2714 | about first and second source, not about destination and source. | |
2715 | ||
5e54f81d MG |
2716 | 2012-10-12 Marc Glisse <marc.glisse@inria.fr> |
2717 | ||
2718 | PR c++/53055 | |
2719 | * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New. | |
2720 | ||
f5b02f1e EB |
2721 | 2012-10-11 Eric Botcazou <ebotcazou@adacore.com> |
2722 | ||
2723 | * c-ada-spec.c (dump_ada_template): Bail out for template declarations | |
2724 | declaring something coming from another file. | |
2725 | ||
b46dbc6c AC |
2726 | 2012-10-10 Arnaud Charlet <charlet@adacore.com> |
2727 | ||
f5b02f1e | 2728 | PR ada/54845 |
b46dbc6c AC |
2729 | * c-ada-spec.c (print_ada_struct_decl): Increase buf size. |
2730 | ||
5d9de0d0 PC |
2731 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
2732 | ||
2733 | PR c++/54194 | |
2734 | * c-common.c (warn_about_parentheses): Add location_t parameter; | |
2735 | use EXPR_LOC_OR_LOC. | |
2736 | * c-common.h: Update declaration. | |
2737 | ||
a212e43f MG |
2738 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
2739 | ||
2740 | PR c++/54427 | |
2741 | * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support | |
2742 | more operations. Make error messages optional. | |
2743 | * c-common.h (enum stv_conv): Moved from c-typeck.c. | |
2744 | (scalar_to_vector): Declare. | |
2745 | ||
b1db7f91 JM |
2746 | 2012-10-08 Jason Merrill <jason@redhat.com> |
2747 | ||
2748 | * c-common.c (c_common_reswords): Add thread_local. | |
2749 | ||
e28d52cf DS |
2750 | 2012-10-08 Dodji Seketeli <dodji@redhat.com> |
2751 | ||
2752 | PR c++/53528 C++11 attribute support | |
2753 | * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare | |
2754 | new functions. | |
2755 | * c-common.c (check_cxx_fundamental_alignment_constraints): New | |
2756 | static function. | |
2757 | (handle_aligned_attribute): In choose strictest alignment | |
2758 | among many. Use new check_cxx_fundamental_alignment_constraints. | |
2759 | (handle_transparent_union_attribute): In c++11 attribute syntax, | |
2760 | don't look through typedefs. | |
2761 | ||
3b78de56 AC |
2762 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
2763 | ||
2764 | * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW. | |
2765 | * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition | |
2766 | out of dumpfile.h. | |
2767 | ||
6040bb5f DC |
2768 | 2012-09-25 Dehao Chen <dehao@google.com> |
2769 | ||
2770 | PR middle-end/54645 | |
3b78de56 | 2771 | * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data |
6040bb5f DC |
2772 | map when read in the pch. |
2773 | ||
0b07a57e AC |
2774 | 2012-09-18 Arnaud Charlet <charlet@adacore.com> |
2775 | ||
2776 | * c-ada-spec.c: Style fixes. | |
2777 | ||
da5182be TQ |
2778 | 2012-09-18 Thomas Quinot <quinot@adacore.com> |
2779 | ||
2780 | * c.opt (-fada-spec-parent): Define new command line switch. | |
2781 | * c-ada-spec.c (get_ada_package): When -fada-spec-parent | |
2782 | is specified, generate binding spec as a child of the specified unit. | |
2783 | ||
0ccb505d PC |
2784 | 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com> |
2785 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
2786 | ||
2787 | PR c++/53210 | |
2788 | * c.opt ([Winit-self]): Enabled by -Wall in C++. | |
2789 | ||
c583af79 AC |
2790 | 2012-08-23 Arnaud Charlet <charlet@adacore.com> |
2791 | ||
2792 | * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only | |
2793 | for pointers, and add missing Convention C pragma. | |
2794 | (print_ada_struct_decl): Add missing aliased keyword. | |
2795 | (dump_ads): Add pragma Ada_2005 and Style_Checks (Off). | |
2796 | ||
1a4049e7 JJ |
2797 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
2798 | ||
2799 | * c-common.c (sizeof_pointer_memaccess_warning): New function. | |
2800 | * c.opt (-Wsizeof-pointer-memaccess): Add new option. | |
2801 | * c-opts.c (c_common_handle_option): Enable it for -Wall. | |
2802 | * c-common.h (sizeof_pointer_memaccess_warning): Add prototype. | |
2803 | * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def. | |
2804 | ||
70b5e7dc RG |
2805 | 2012-08-10 Richard Guenther <rguenther@suse.de> |
2806 | ||
2807 | * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names. | |
2808 | ||
f8923f7e SB |
2809 | 2012-08-07 Steven Bosscher <steven@gcc.gnu.org> |
2810 | ||
2811 | * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush | |
2812 | instead of separate pp_newline and pp_flush. | |
2813 | (print_c_tree): Likewise. | |
2814 | ||
e45abe1f RH |
2815 | 2012-07-26 Richard Henderson <rth@redhat.com> |
2816 | ||
2817 | * c-common.c (handle_hot_attribute): Allow labels. | |
2818 | (handle_cold_attribute): Likewise. | |
2819 | ||
332f1d24 JJ |
2820 | 2012-07-20 Jakub Jelinek <jakub@redhat.com> |
2821 | ||
2822 | PR c++/28656 | |
2823 | * c-common.c (check_function_nonnull): Handle multiple nonnull | |
2824 | attributes properly. | |
2825 | ||
7ee2468b SB |
2826 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
2827 | ||
2828 | * c-gimplify.c: Include dumpfile.h instead of tree-dump.h. | |
2829 | * c-ada-spec.c: Likewise. | |
2830 | * c-dump.c (dump_stmt): Move to cp/dump.c, the only user. | |
2831 | ||
ee7b28eb SB |
2832 | 2012-07-14 Steven Bosscher <steven@gcc.gnu.org> |
2833 | ||
2834 | * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define. | |
2835 | Remove code conditional on it. | |
2836 | ||
6bdf3519 SB |
2837 | 2012-07-11 Steven Bosscher <steven@gcc.gnu.org> |
2838 | ||
2839 | * c-gimplify.c: Do not include basic-block.h. | |
2840 | * c-common.c: Do not include linfuncs.h. | |
2841 | ||
532aafad SB |
2842 | 2012-07-08 Steven Bosscher <steven@gcc.gnu.org> |
2843 | ||
2844 | * c-common.h: Include tree.h. | |
2845 | ||
8d0d1915 JM |
2846 | 2012-07-02 Jason Merrill <jason@redhat.com> |
2847 | ||
2848 | PR c++/53524 | |
2849 | * c-common.c (get_priority): Call default_conversion. | |
2850 | ||
fbc873ad UB |
2851 | 2012-07-01 Uros Bizjak <ubizjak@gmail.com> |
2852 | ||
2853 | * c-pch.c (c_common_write_pch): Remove unused variables. | |
2854 | ||
d4a10d0a SB |
2855 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
2856 | ||
2857 | * cppspec.c: Moved from gcc/ to here. | |
2858 | ||
6f3a2e23 KT |
2859 | 2012-06-27 Kai Tietz <ktietz@redhat.com> |
2860 | ||
2861 | PR preprocessor/37215 | |
2862 | * c-ppoutput.c (preprocess_file): Check for nonempty buffer. | |
2863 | ||
8ca92d04 SB |
2864 | 2012-06-21 Steven Bosscher <steven@gcc.gnu.org> |
2865 | ||
2866 | * c-common.h (c_common_print_pch_checksum): Remove. | |
2867 | * c-pch.c: Do not include output.h. | |
2868 | (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME. | |
2869 | (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined. | |
2870 | (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined. | |
2871 | (struct c_pch_header): Remove. | |
2872 | (get_ident): Update gpch version. | |
2873 | (pch_init): Do not print executable_checksum to asm_out_file. | |
2874 | Do not fail if there is no asm_out_file to read back from. Set | |
2875 | asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined. | |
2876 | (c_common_write_pch): Verify that nothing was written to asm_out_file | |
2877 | since pch_init was called. Do not write a c_pch_header, and do not | |
2878 | copy from asm_out_file to the PCH. | |
2879 | (c_common_read_pch): Do not read a c_pch_header, and do not restore | |
2880 | the content of asm_out_file from the PCH. | |
2881 | (c_common_print_pch_checksum): Remove. | |
2882 | * c-opts.c (c_common_init): Print out executable_checksum directly. | |
2883 | ||
70f42967 SB |
2884 | 2012-06-19 Steven Bosscher <steven@gcc.gnu.org> |
2885 | ||
2886 | * c-target.def (objc_declare_unresolved_class_reference, | |
2887 | objc_declare_class_definition): Add new hooks. | |
2888 | ||
a8781821 SB |
2889 | 2012-06-19 Steven Bosscher <steven@gcc.gnu.org> |
2890 | ||
2891 | * c-lex.c: Do not include output.h. | |
2892 | (cb_ident): Try to put out .ident with targetm.asm_out.output_ident. | |
2893 | Remove uses of ASM_OUTPUT_IDENT. | |
2894 | ||
9e1a8dd1 RR |
2895 | 2012-06-15 Marc Glisse <marc.glisse@inria.fr> |
2896 | ||
2897 | PR c++/51033 | |
2898 | * c-common.h (c_build_vec_perm_expr): Move decl here. | |
2899 | * c-common.c (c_build_vec_perm_expr): Move definition | |
2900 | here. | |
2901 | ||
6f07a821 SB |
2902 | 2012-06-06 Steven Bosscher <steven@gcc.gnu.org> |
2903 | ||
2904 | * c.opt (fconserve-space): Turn into a no-op. | |
2905 | ||
9faeb493 | 2906 | 2012-06-04 Sterling Augustine <saugustine@google.com> |
c265f413 SA |
2907 | |
2908 | * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator. | |
2909 | * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at | |
2910 | both the start and end of the function. | |
2911 | ||
a4b7d13c SB |
2912 | 2012-06-04 Steven Bosscher <steven@gcc.gnu.org> |
2913 | ||
2914 | * c-common.c: Do not include output.h. | |
2915 | * c-pragma.c: Likewise. | |
2916 | ||
c265f413 SA |
2917 | 2012-06-04 Steven Bosscher <steven@gcc.gnu.org> |
2918 | ||
2919 | * error.c (dump_decl): Check pp_c_flag_gnu_v3. | |
2920 | (decl_as_dwarf_string, lang_decl_dwarf_name): New functions. | |
2921 | (lang_decl_name): Handle namespace decls. | |
2922 | ||
be7a421e SB |
2923 | 2012-05-31 Steven Bosscher <steven@gcc.gnu.org> |
2924 | ||
2925 | * c-ada-spec.c: Do not include output.h. | |
2926 | * c-semantics.c: Likewise. | |
2927 | ||
65de6659 JM |
2928 | 2012-05-29 Joseph Myers <joseph@codesourcery.com> |
2929 | ||
2930 | * c-common.c: Fix typo. | |
2931 | ||
ca5f4331 MM |
2932 | 2012-05-29 Michael Matz <matz@suse.de> |
2933 | ||
2934 | * c-common.h (c_expand_decl): Remove prototype. | |
2935 | ||
4f7f7aca MLI |
2936 | 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2937 | ||
2938 | * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall). | |
2939 | * c-opts.c (c_common_handle_option): Remove code handling | |
2940 | warn_missing_braces. | |
2941 | ||
4a792f9b PC |
2942 | 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com> |
2943 | ||
2944 | PR c++/25137 | |
2945 | * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable | |
2946 | -Wmissing_braces. | |
2947 | ||
650dc14a DS |
2948 | 2012-05-22 Dodji Seketeli <dodji@redhat.com> |
2949 | ||
2950 | PR c++/53322 | |
2951 | * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused). | |
2952 | ||
9b095bf1 MLI |
2953 | 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2954 | ||
2955 | * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here. | |
2956 | * c-opts.c (c_common_handle_option): Do not handle explicitly | |
2957 | Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors. | |
2958 | ||
0b2c4be5 DS |
2959 | 2012-05-16 Dodji Seketeli <dodji@redhat.com> |
2960 | ||
2961 | PR preprocessor/7263 | |
2962 | * c-lex.c (c_lex_with_flags): Pass a virtual location to the call | |
2963 | to cpp_classify_number. For diagnostics, use the precise location | |
2964 | instead of the global input_location. | |
2965 | ||
a1bde5af PC |
2966 | 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
2967 | ||
d02924ef | 2968 | PR c++/11856 |
a1bde5af PC |
2969 | * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings. |
2970 | ||
d1ede5f4 BS |
2971 | 2012-05-14 Bernd Schmidt <bernds@codesourcery.com> |
2972 | ||
a1bde5af | 2973 | * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary. |
d1ede5f4 | 2974 | |
f2bc201f MLI |
2975 | 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2976 | ||
2977 | PR 53063 | |
2978 | * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init, | |
2979 | Wreorder): Use LangEnabledBy. | |
2980 | * c-opts.c (c_common_handle_option): Do not enable them | |
2981 | explicitly. Call lang-specific generated functions. | |
2982 | (c_common_post_options): Do not set them here. | |
2983 | ||
95744782 MLI |
2984 | 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2985 | ||
2986 | * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers, | |
2987 | Wmissing-field-initializers,Wmissing-parameter-type, | |
2988 | Wold-style-declaration,Woverride-init): Use EnabledBy. | |
2989 | * c-opts.c (c_common_post_options): Do not set here explicitly. | |
2990 | ||
7d5a5747 MLI |
2991 | 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2992 | ||
2993 | PR 53063 | |
2994 | * c-opts.c (c_common_handle_option): Use handle_generated_option | |
2995 | to enable sub-options. | |
2996 | ||
5a3c9cf2 PC |
2997 | 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com> |
2998 | ||
2999 | PR c++/53158 | |
3000 | * c-common.c (warnings_for_convert_and_check): Use warning_at. | |
3001 | ||
3ac8781c RG |
3002 | 2012-05-10 Richard Guenther <rguenther@suse.de> |
3003 | ||
3004 | * c-common.c (c_sizeof_or_alignof_type): Remove assert and | |
3005 | adjust commentary about TYPE_IS_SIZETYPE types. | |
3006 | ||
1e537948 MLI |
3007 | 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3008 | ||
3009 | PR c++/53261 | |
3010 | * c-common.c (warn_logical_operator): Check that argument of | |
3011 | integer_zerop is not NULL. | |
3012 | ||
f2c4a785 MLI |
3013 | 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3014 | ||
3015 | PR c/43772 | |
3016 | * c-common.c (warn_logical_operator): Do not warn if either side | |
3017 | is already true or false. | |
3018 | ||
50f305ca MLI |
3019 | 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3020 | ||
3021 | PR c/51712 | |
3022 | * c-common.c (expr_original_type): New. | |
3023 | (shorten_compare): Do not warn for enumeration types. | |
3024 | ||
0c3641b0 MLI |
3025 | 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3026 | ||
3027 | * c.opt (fpermissive): Add Var(flag_permissive). | |
3028 | ||
7edaa4d2 MG |
3029 | 2012-04-30 Marc Glisse <marc.glisse@inria.fr> |
3030 | ||
3031 | PR c++/51033 | |
3032 | * c-common.c (convert_vector_to_pointer_for_subscript): New function. | |
3033 | * c-common.h (convert_vector_to_pointer_for_subscript): Declare it. | |
3034 | ||
b9c8da34 DS |
3035 | 2012-04-30 Dodji Seketeli <dodji@redhat.com> |
3036 | ||
3037 | Add -Wvarargs option | |
3038 | * c.opt (Wvarargs): Define new option. | |
3039 | ||
e6c69da0 MLI |
3040 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3041 | ||
3042 | * c-common.c (check_function_arguments): Replace | |
3043 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
3044 | ||
90137d8f MLI |
3045 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3046 | ||
3047 | * c.opt (Wsuggest-attribute=format): New. Alias of | |
3048 | Wmissing-format-attribute. | |
3049 | * c-format.c (decode_format_type): Replace | |
3050 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
3051 | (check_function_format): Likewise. | |
3052 | ||
9faeb493 | 3053 | 2012-04-27 Ollie Wild <aaw@google.com> |
7f5f5f98 OW |
3054 | |
3055 | * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping. | |
3056 | * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix. | |
3057 | * c.opt: Add Wliteral-suffix. | |
3058 | ||
c1771a20 MLI |
3059 | 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3060 | ||
3061 | PR c/44774 | |
3062 | * c.opt (Wpedantic): New. | |
3063 | (pedantic): Alias Wpedantic. | |
3064 | * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic. | |
3065 | (c_common_post_options): Likewise. | |
3066 | (sanitize_cpp_opts): Likewise. | |
3067 | * c-lex.c (interpret_float): Likewise. | |
3068 | * c-format.c (check_format_types): Likewise. | |
3069 | * c-common.c (pointer_int_sum): Likewise. | |
3070 | (c_sizeof_or_alignof_type): Likewise. | |
3071 | (c_add_case_label): Likewise. | |
3072 | (c_do_switch_warnings): Likewise. | |
3073 | * c-pragma.c (handle_pragma_float_const_decimal64): Likewise. | |
3074 | ||
04b391c1 JM |
3075 | 2012-04-15 Jason Merrill <jason@redhat.com> |
3076 | ||
3077 | PR c++/52818 | |
3078 | * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99. | |
3079 | (C_STD_NAME): Distinguish between C++98 and C++11. | |
3080 | ||
ac868f29 EB |
3081 | 2012-04-11 Eric Botcazou <ebotcazou@adacore.com> |
3082 | ||
3083 | PR target/52624 | |
3084 | * c-common.h (uint16_type_node): Rename into... | |
3085 | (c_uint16_type_node): ...this. | |
3086 | * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming. | |
3087 | * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise. | |
3088 | ||
fd4116f4 MLI |
3089 | 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3090 | ||
3091 | * c-common.c (warn_if_unused_value): Move definition to here. | |
3092 | * c-common.h (warn_if_unused_value): Move declaration to here. | |
3093 | ||
573ac65e WB |
3094 | 2012-03-23 William Bader <williambader@hotmail.com> |
3095 | ||
3096 | * c-lex.c (c_lex_with_flags): Avoid declarations after stmts. | |
3097 | ||
552b8185 JM |
3098 | 2012-03-20 Jason Merrill <jason@redhat.com> |
3099 | ||
3100 | * c-common.h (enum cxx_dialect): Add cxx1y. | |
3101 | * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect | |
3102 | test. | |
3103 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
3104 | * c-opts.c (c_common_post_options): Likewise. | |
3105 | (set_std_cxx1y): New. | |
3106 | (c_common_handle_option): Call it. | |
3107 | * c.opt (-std=c++1y, -std=gnu++1y): New flags. | |
3108 | ||
04398fa8 PC |
3109 | 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com> |
3110 | ||
3111 | PR c++/14710 | |
3112 | * c.opt ([Wuseless-cast]): Add. | |
3113 | ||
d2a12ae7 RG |
3114 | 2012-03-16 Richard Guenther <rguenther@suse.de> |
3115 | ||
3116 | * c-pretty-print.c (pp_c_initializer_list): Adjust. | |
3117 | ||
a12bf402 MLI |
3118 | 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3119 | ||
3120 | PR c++/44783 | |
3121 | * c.opt (ftemplate-backtrace-limit) Add. | |
3122 | ||
5c30094f RO |
3123 | 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3124 | ||
3125 | * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix | |
3126 | handling. | |
3127 | * c-pragma.c (handle_pragma_extern_prefix): Remove. | |
3128 | (init_pragma): Don't register extern_prefix. | |
3129 | ||
21fa2faf RG |
3130 | 2012-03-12 Richard Guenther <rguenther@suse.de> |
3131 | ||
3132 | * c-common.c (c_common_get_narrower): Use c_common_type_for_size. | |
3133 | (builtin_type_for_size): Likewise. | |
3134 | ||
e3793c6f JJ |
3135 | 2012-02-13 Jakub Jelinek <jakub@redhat.com> |
3136 | ||
3137 | PR c++/52215 | |
3138 | * c-common.c (sync_resolve_params): Don't decide whether to convert | |
3139 | or not based on TYPE_SIZE comparison, convert whenever arg_type | |
3140 | is unsigned INTEGER_TYPE. | |
3141 | ||
93286335 PC |
3142 | 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com> |
3143 | ||
3144 | PR c/52118 | |
3145 | * c.opt ([Wunused-local-typedefs]): Fix description. | |
3146 | ||
7a421706 MS |
3147 | 2012-01-24 Mike Stump <mikestump@comcast.net> |
3148 | ||
3149 | * c-common.c (c_common_type_for_mode): Match signed/unsigned types | |
3150 | exactly. | |
3151 | ||
ba9b1f11 RG |
3152 | 2012-01-18 Richard Guenther <rguenther@suse.de> |
3153 | ||
3154 | * c-opts.c (c_common_post_options): Reset LTO flags if | |
3155 | we are about to generate a PCH. | |
3156 | ||
465406be PC |
3157 | 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com> |
3158 | ||
3159 | PR c++/51777 | |
3160 | * c-pretty-print.c (pp_c_integer_constant): For unsigned constants | |
3161 | use pp_unsigned_wide_integer. | |
3162 | ||
aee15221 RG |
3163 | 2012-01-10 Richard Guenther <rguenther@suse.de> |
3164 | ||
3165 | PR middle-end/51806 | |
3166 | * c-opts.c (c_common_handle_option): Move -Werror handling | |
3167 | to language independent code. | |
3168 | ||
5720c0dc RG |
3169 | 2012-01-05 Richard Guenther <rguenther@suse.de> |
3170 | ||
3171 | PR middle-end/51764 | |
3172 | * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here | |
3173 | from common.opt. | |
3174 | ||
73ac190a PC |
3175 | 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com> |
3176 | ||
3177 | PR c++/51316 | |
3178 | * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof | |
3179 | of array types with an unknown bound. | |
3180 | ||
48b0b196 JM |
3181 | 2011-12-20 Joseph Myers <joseph@codesourcery.com> |
3182 | ||
3183 | * c-common.c (flag_isoc99): Update comment to refer to C11. | |
3184 | (flag_isoc1x): Change to flag_isoc11. | |
3185 | * c-common.h (flag_isoc99): Update comment to refer to C11. | |
3186 | (flag_isoc1x): Change to flag_isoc11. | |
3187 | * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to | |
3188 | C11. | |
3189 | * c-opts.c (set_std_c1x): Change to set_std_c11. | |
3190 | (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11. | |
3191 | Call set_std_c11. | |
3192 | (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11. | |
3193 | (set_std_c1): Use CLK_STDC11 and CLK_GNUC11. | |
3194 | * c.opt (std=c1x): Change to std=c11. Document as non-draft | |
3195 | standard. | |
3196 | (std=c1x, std=iso9899:2011): Add as aliases of std=c11. | |
3197 | (std=gnu1x): Change to std=gnu11. Refer to non-draft standard. | |
3198 | (std=gnu1x): Make alias of std=gnu11. | |
3199 | ||
d58d6eb5 JM |
3200 | 2011-12-19 Jason Merrill <jason@redhat.com> |
3201 | ||
3202 | PR c++/51228 | |
3203 | * c-common.c (handle_transparent_union_attribute): Check the first | |
3204 | field if the type is complete. | |
3205 | ||
b3908fcc JW |
3206 | 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com> |
3207 | ||
3208 | PR libstdc++/51365 | |
3209 | * c-common.c (RID_IS_FINAL): Add. | |
3210 | * c-common.h (RID_IS_FINAL): Add. | |
3211 | ||
fea3ca91 IS |
3212 | 2011-11-30 Iain Sandoe <iains@gcc.gnu.org> |
3213 | ||
3214 | * c.opt (fgnu-runtime): Provide full description. | |
3215 | (fnext-runtime): Likewise. | |
3216 | * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove. | |
3217 | ||
62bad7cd AM |
3218 | 2011-11-28 Andrew MacLeod <amacleod@redhat.com> |
3219 | ||
3220 | * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic | |
3221 | predefines in one place. Add LOCK_FREE predefines. | |
3222 | (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to | |
3223 | new func. | |
3224 | ||
c466c4ff AM |
3225 | 2011-11-24 Andrew MacLeod <amacleod@redhat.com> |
3226 | ||
3227 | PR c/51256 | |
9faeb493 | 3228 | * c-common.c (get_atomic_generic_size): Check for various error |
c466c4ff | 3229 | conditions |
9faeb493 UB |
3230 | (resolve_overloaded_atomic_exchange, |
3231 | resolve_overloaded_atomic_compare_exchange, | |
c466c4ff AM |
3232 | resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return |
3233 | error_mark_node for error conditions. | |
9faeb493 | 3234 | |
a5952633 RG |
3235 | 2011-11-08 Richard Guenther <rguenther@suse.de> |
3236 | ||
3237 | PR middle-end/51010 | |
3238 | c-family/ | |
3239 | ||
0a35513e AH |
3240 | 2011-11-07 Richard Henderson <rth@redhat.com> |
3241 | Aldy Hernandez <aldyh@redhat.com> | |
3242 | Torvald Riegel <triegel@redhat.com> | |
3243 | ||
3244 | Merged from transactional-memory. | |
3245 | ||
3246 | * c-common.c (handle_tm_wrap_attribute, | |
3247 | handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New. | |
3248 | (struct c_common_reswords): Added __transaction* keywords. | |
3249 | (struct c_common_attribute_table): Added transaction* and tm_regparm | |
3250 | attributes. | |
3251 | * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT* | |
3252 | masks. | |
3253 | (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr, | |
3254 | find_tm_attribute): Declare. | |
3255 | ||
6d87092d JM |
3256 | 2011-11-07 Jason Merrill <jason@redhat.com> |
3257 | ||
3258 | PR c++/35688 | |
3259 | * c-common.c, c-common.h: Revert yesterday's changes. | |
3260 | ||
8e7860a1 JM |
3261 | 2011-11-06 Jason Merrill <jason@redhat.com> |
3262 | ||
3263 | PR c++/35688 | |
3264 | * c-common.c (decl_has_visibility_attr): Split out from... | |
3265 | (c_determine_visibility): ...here. | |
3266 | * c-common.h: Declare it. | |
3267 | ||
d19fa6b5 JM |
3268 | 2011-11-06 Joseph Myers <joseph@codesourcery.com> |
3269 | ||
3270 | * c-common.c (c_common_reswords): Add _Alignas and _Alignof. | |
3271 | (c_sizeof_or_alignof_type): Diagnose alignof applied to a function | |
3272 | type. | |
3273 | (check_user_alignment): New. Split out of | |
3274 | handle_aligned_attribute. Disallow integer constants with | |
3275 | noninteger types. Conditionally allow zero. | |
3276 | (handle_aligned_attribute): Use check_user_alignment. | |
3277 | * c-common.h (RID_ALIGNAS, check_user_alignment): New. | |
3278 | ||
86951993 AM |
3279 | 2011-11-06 Andrew MacLeod <amacleod@redhat.com> |
3280 | Richard Henderson <rth@redhat.com> | |
3281 | ||
3282 | Merged from cxx-mem-model. | |
3283 | ||
3284 | * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns. | |
9faeb493 | 3285 | * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak |
86951993 AM |
3286 | parameters that are the same type size. |
3287 | (get_atomic_generic_size): New. Find size of generic | |
3288 | atomic function parameters and do typechecking. | |
3289 | (add_atomic_size_parameter): New. Insert size into parameter list. | |
3290 | (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to | |
3291 | either __atomic_exchange_n or external library call. | |
9faeb493 | 3292 | (resolve_overloaded_atomic_compare_exchange): Restructure |
86951993 | 3293 | __atomic_compare_exchange to either _n variant or external library call. |
9faeb493 | 3294 | (resolve_overloaded_atomic_load): Restructure __atomic_load to either |
86951993 AM |
3295 | __atomic_load_n or an external library call. |
3296 | (resolve_overloaded_atomic_store): Restructure __atomic_store to either | |
3297 | __atomic_store_n or an external library call. | |
3298 | (resolve_overloaded_builtin): Handle new __atomic builtins. | |
3299 | ||
cf9e9959 EB |
3300 | 2011-11-04 Eric Botcazou <ebotcazou@adacore.com> |
3301 | ||
3302 | PR c++/50608 | |
3303 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1. | |
3304 | (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust. | |
3305 | <INDIRECT_REF>: Return the argument. | |
3306 | <ARRAY_REF>: Remove special code for negative offset. | |
3307 | Call fold_build_pointer_plus instead of size_binop. | |
3308 | (fold_offsetof): Remove STOP_REF argument and adjust. | |
3309 | * c-common.h (fold_offsetof_1): Declare. | |
3310 | (fold_offsetof): Remove STOP_REF argument. | |
3311 | ||
25339f10 JM |
3312 | 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com> |
3313 | ||
3314 | PR c++/50810 | |
3315 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
3316 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
3317 | Wnarrowing for C++0x and C++98. | |
3318 | * c.opt ([Wnarrowing]): Update. | |
3319 | ||
89401152 PC |
3320 | 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com> |
3321 | ||
3322 | PR c++/44277 | |
3323 | * c.opt: Add Wzero-as-null-pointer-constant. | |
3324 | ||
97e3ad20 JM |
3325 | 2011-10-31 Jason Merrill <jason@redhat.com> |
3326 | ||
15694fdd JM |
3327 | * c.opt (-fdeduce-init-list): Off by default. |
3328 | ||
97e3ad20 JM |
3329 | PR c++/50920 |
3330 | * c-common.h (cxx_dialect): Add cxx11 and cxx03. | |
3331 | * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03, | |
3332 | and -Wc++11-compat. | |
3333 | * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x. | |
3334 | ||
fb9120e3 RAV |
3335 | 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov> |
3336 | ||
3337 | PR c++/30066 | |
3338 | * c.opt (fvisibility-inlines-hidden): Description change. | |
3339 | ||
3ce4f9e4 ESR |
3340 | 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net> |
3341 | ||
3342 | Implement C++11 user-defined literals. | |
3343 | * c-common.c (build_userdef_literal): New. | |
3344 | * c-common.def: New tree code. | |
3345 | * c-common.h (tree_userdef_literal): New tree struct and accessors. | |
3346 | * c-lex.c (interpret_float): Add suffix parm. | |
3347 | (c_lex_with_flags): Build literal tokens. | |
3348 | ||
5f53c243 PC |
3349 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
3350 | ||
3351 | PR c++/50841 | |
3352 | Revert: | |
3353 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> | |
3354 | ||
3355 | PR c++/50810 | |
3356 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
3357 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
3358 | Wnarrowing for C++0x and C++98. | |
3359 | * c.opt ([Wnarrowing]): Update. | |
3360 | ||
263734e1 PC |
3361 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
3362 | ||
3363 | PR c++/50810 | |
3364 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
3365 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
3366 | Wnarrowing for C++0x and C++98. | |
3367 | * c.opt ([Wnarrowing]): Update. | |
3368 | ||
d2e312d7 PC |
3369 | 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com> |
3370 | ||
3371 | PR c++/45385 | |
3372 | * c-common.c (conversion_warning): Remove code looking for | |
3373 | artificial operands. | |
3374 | ||
d17687f6 DS |
3375 | 2011-10-18 Dodji Seketeli <dodji@redhat.com> |
3376 | ||
3377 | PR bootstrap/50760 | |
3378 | * c-lex.c (fe_file_change): Use LINEMAP_SYSP when | |
9faeb493 | 3379 | !NO_IMPLICIT_EXTERN_C. |
d17687f6 | 3380 | |
fc8396e9 PC |
3381 | 2011-10-17 Michael Spertus <mike_spertus@symantec.com> |
3382 | ||
3383 | * c-common.c (c_common_reswords): Add __bases, | |
3384 | __direct_bases. | |
3385 | * c-common.h: Add RID_BASES and RID_DIRECT_BASES. | |
3386 | ||
3387 | 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com> | |
3388 | ||
3389 | PR c++/50757 | |
3390 | * c.opt ([Wnonnull]): Add C++ and Objective-C++. | |
3391 | ||
847e697a TT |
3392 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
3393 | Dodji Seketeli <dodji@redhat.com> | |
3394 | ||
3395 | * c.opt (fdebug-cpp): New option. | |
3396 | * c-opts.c (c_common_handle_option): Handle the option. | |
3397 | * c-ppoutput.c (maybe_print_line_1): New static function. Takes an | |
3398 | output stream in parameter. Factorized from ... | |
3399 | (maybe_print_line): ... this. Dump location debug information when | |
3400 | -fdebug-cpp is in effect. | |
3401 | (print_line_1): New static function. Takes an output stream in | |
3402 | parameter. Factorized from ... | |
3403 | (print_line): ... here. Dump location information when -fdebug-cpp | |
3404 | is in effect. | |
3405 | (scan_translation_unit): Dump location information when | |
3406 | -fdebug-cpp is in effect. | |
3407 | ||
92582b75 TT |
3408 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
3409 | Dodji Seketeli <dodji@redhat.com> | |
3410 | ||
3411 | * c.opt (ftrack-macro-expansion): New option. Handle it with and | |
3412 | without argument. | |
3413 | * c-opts.c (c_common_handle_option)<case | |
3414 | OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New | |
3415 | cases. Handle -ftrack-macro-expansion with and without argument. | |
3416 | ||
46427374 TT |
3417 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
3418 | Dodji Seketeli <dodji@redhat.com> | |
3419 | ||
3420 | * c-ppoutput.c (scan_translation_unit, maybe_print_line) | |
3421 | (print_line, cb_define, do_line_change): Adjust to avoid touching | |
3422 | the internals of struct line_map. Use the public API instead. | |
3423 | * c-pch.c (c_common_read_pch): Likewise. | |
3424 | * c-lex.c (fe_file_change): Likewise. | |
3425 | ||
fc8396e9 PC |
3426 | 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com> |
3427 | ||
3428 | PR c++/17212 | |
3429 | * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++. | |
3430 | ||
3431 | 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com> | |
3432 | ||
3433 | PR c++/33067 | |
3434 | * c-pretty-print.c (pp_c_floating_constant): Output | |
3435 | max_digits10 (in the ISO C++ WG N1822 sense) decimal digits. | |
3436 | ||
e79983f4 MM |
3437 | 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com> |
3438 | ||
3439 | * c-common.c (def_builtin_1): Delete old interface with two | |
3440 | parallel arrays to hold standard builtin declarations, and replace | |
3441 | it with a function based interface that can support creating | |
3442 | builtins on the fly in the future. Change all uses, and poison | |
3443 | the old names. Make sure 0 is not a legitimate builtin index. | |
3444 | * c-omp.c (c_finish_omp_barrier): Ditto. | |
3445 | (c_finish_omp_taskwait): Ditto. | |
3446 | (c_finish_omp_flush): Ditto. | |
3447 | ||
6637388f TG |
3448 | 2011-10-11 Tristan Gingold <gingold@adacore.com> |
3449 | ||
3450 | * c.opt: (fallow-parameterless-variadic-functions): New. | |
3451 | ||
3797cb21 DS |
3452 | 2011-09-08 Dodji Seketeli <dodji@redhat.com> |
3453 | ||
3454 | PR c++/33255 - Support -Wunused-local-typedefs warning | |
3455 | * c-common.h (struct c_language_function::local_typedefs): New | |
3456 | field. | |
9faeb493 UB |
3457 | (record_locally_defined_typedef, maybe_record_typedef_use) |
3458 | (maybe_warn_unused_local_typedefs): Declare new functions. | |
3797cb21 | 3459 | * c-common.c (record_locally_defined_typedef) |
9faeb493 UB |
3460 | (maybe_record_typedef_use) |
3461 | (maybe_warn_unused_local_typedefs): Define new functions. | |
3797cb21 DS |
3462 | * c.opt: Declare new -Wunused-local-typedefs flag. |
3463 | ||
693ddb1b EB |
3464 | 2011-09-06 Eric Botcazou <ebotcazou@adacore.com> |
3465 | ||
3466 | PR middle-end/50266 | |
3467 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like | |
3468 | computations. | |
3469 | ||
830c740f RG |
3470 | 2011-09-05 Richard Guenther <rguenther@suse.de> |
3471 | ||
3472 | * c-common.c (complete_array_type): Use ssize_int (-1) instead | |
3473 | of integer_minus_one_node for empty array upper bounds. | |
3474 | ||
892a371f DS |
3475 | 2011-08-28 Dodji Seketeli <dodji@redhat.com> |
3476 | ||
3477 | * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as | |
3478 | it's the first time it's being called on this main TU. | |
3479 | ||
0e3fdb48 RB |
3480 | 2011-08-24 Richard Guenther <rguenther@suse.de> |
3481 | ||
3482 | PR c/49396 | |
3483 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional. | |
3484 | ||
3485 | 2011-08-22 Gabriel Charette <gchare@google.com> | |
e3dfef44 GC |
3486 | |
3487 | * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens | |
3488 | defined in cpp_init_builtins and c_cpp_builtins. | |
3489 | ||
d4a83c10 JM |
3490 | 2011-08-19 Joseph Myers <joseph@codesourcery.com> |
3491 | ||
3492 | * c-common.c (c_common_reswords): Add __builtin_complex. | |
3493 | * c-common.h (RID_BUILTIN_COMPLEX): New. | |
3494 | ||
bbceee64 JM |
3495 | 2011-08-18 Joseph Myers <joseph@codesourcery.com> |
3496 | ||
3497 | * c-common.c (c_common_reswords): Add _Noreturn. | |
3498 | (keyword_is_function_specifier): Handle RID_NORETURN. | |
3499 | * c-common.h (RID_NORETURN): New. | |
3500 | ||
0e3a99ae AS |
3501 | 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
3502 | ||
3503 | * c-common.c (unsafe_conversion_p): New function. Check if it is | |
3504 | unsafe to convert an expression to the type. | |
3505 | (conversion_warning): Adjust, use unsafe_conversion_p. | |
3506 | * c-common.h (unsafe_conversion_p): New function declaration. | |
3507 | ||
20906c66 JJ |
3508 | 2011-08-02 Jakub Jelinek <jakub@redhat.com> |
3509 | ||
3510 | * c-common.h (c_finish_omp_atomic): Adjust prototype. | |
3511 | (c_finish_omp_taskyield): New prototype. | |
3512 | * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1 | |
3513 | arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and | |
3514 | OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1 | |
3515 | or RHS1 have side-effects, evaluate those too in the right spot, | |
3516 | if it is a decl and LHS is also a decl, error out if they | |
3517 | aren't the same. | |
3518 | (c_finish_omp_taskyield): New function. | |
3519 | * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107. | |
3520 | * c-pragma.c (omp_pragmas): Add taskyield. | |
3521 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD. | |
3522 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and | |
3523 | PRAGMA_OMP_CLAUSE_MERGEABLE. | |
3524 | ||
770e5a2e DS |
3525 | 2011-07-25 Dodji Seketeli <dodji@redhat.com> |
3526 | ||
3527 | * c-common.h (set_underlying_type): Remove parm name from | |
3528 | declaration. | |
3529 | ||
1baae426 RG |
3530 | 2011-07-25 Romain Geissler <romain.geissler@gmail.com> |
3531 | ||
3532 | * c-pretty-print.h: Search c-common.h in c-family. | |
9faeb493 | 3533 | |
fcb21722 JM |
3534 | 2011-07-22 Jason Merrill <jason@redhat.com> |
3535 | ||
76f86d00 JM |
3536 | PR c++/49793 |
3537 | * c.opt (Wnarrowing): New. | |
3538 | ||
3a636414 JM |
3539 | PR c++/30112 |
3540 | * c-common.h: Declare c_linkage_bindings. | |
3541 | * c-pragma.c (handle_pragma_redefine_extname): Use it. | |
3542 | ||
fcb21722 JM |
3543 | PR c++/49813 |
3544 | * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99. | |
3545 | * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well | |
3546 | as flag_isoc99 for 'restrict'. | |
3547 | (pp_c_specifier_qualifier_list): Likewise for _Complex. | |
3548 | ||
02614448 ILT |
3549 | 2011-07-21 Ian Lance Taylor <iant@google.com> |
3550 | ||
3551 | PR middle-end/49705 | |
3552 | * c-common.c (c_disable_warnings): New static function. | |
3553 | (c_enable_warnings): New static function. | |
3554 | (c_fully_fold_internal): Change local unused_p to bool. Call | |
3555 | c_disable_warnings and c_enable_warnings rather than change | |
3556 | c_inhibit_evaluation_warnings. | |
3557 | ||
34429675 JM |
3558 | 2011-07-20 Jason Merrill <jason@redhat.com> |
3559 | ||
3560 | PR c++/6709 (DR 743) | |
3561 | PR c++/42603 (DR 950) | |
3562 | * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h. | |
3563 | (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise. | |
3564 | (CPP_DECLTYPE): New. | |
3565 | * c-common.c (c_parse_error): Handle CPP_DECLTYPE. | |
3566 | ||
5d49b6a7 RG |
3567 | 2011-07-19 Richard Guenther <rguenther@suse.de> |
3568 | ||
3569 | * c-common.c (pointer_int_sum): Use fold_build_pointer_plus. | |
3570 | * c-omp.c (c_finish_omp_for): Likewise. | |
3571 | ||
e84a58ff EB |
3572 | 2011-07-12 Eric Botcazou <ebotcazou@adacore.com> |
3573 | ||
3574 | * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop | |
3575 | body on the next line. | |
3576 | ||
329af3c7 JM |
3577 | 2011-07-08 Jason Merrill <jason@redhat.com> |
3578 | ||
4063e61b JM |
3579 | PR c++/45437 |
3580 | * c-omp.c (check_omp_for_incr_expr): Handle preevaluation. | |
3581 | ||
329af3c7 JM |
3582 | PR c++/49673 |
3583 | * c-common.c (c_apply_type_quals_to_decl): Don't check | |
3584 | TYPE_NEEDS_CONSTRUCTING. | |
3585 | ||
1a072294 RG |
3586 | 2011-07-06 Richard Guenther <rguenther@suse.de> |
3587 | ||
3588 | * c-common.c (c_common_nodes_and_builtins): | |
3589 | Merge calls to build_common_tree_nodes and build_common_tree_nodes_2. | |
3590 | ||
fce5dddd RG |
3591 | 2011-07-05 Richard Guenther <rguenther@suse.de> |
3592 | ||
3593 | * c-common.c (c_common_nodes_and_builtins): Build all common | |
3594 | tree nodes first. | |
3595 | ||
45d439ac JJ |
3596 | 2011-06-27 Jakub Jelinek <jakub@redhat.com> |
3597 | ||
56300785 JJ |
3598 | * c-common.h (c_tree_chain_next): New static inline function. |
3599 | ||
45d439ac JJ |
3600 | * c-common.c (check_builtin_function_arguments): Handle |
3601 | BUILT_IN_ASSUME_ALIGNED. | |
3602 | ||
e0a8ecf2 AM |
3603 | 2011-06-21 Andrew MacLeod <amacleod@redhat.com> |
3604 | ||
3605 | * c-common.c: Add sync_ or SYNC__ to builtin names. | |
3606 | * c-omp.c: Add sync_ or SYNC__ to builtin names. | |
dfb43cd5 PV |
3607 | |
3608 | 2011-06-20 Pierre Vittet <piervit@pvittet.com> | |
3609 | ||
3610 | * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New | |
3611 | handler. | |
3612 | (gen_pragma_handler): New union. | |
3613 | (internal_pragma_handler): New type. | |
3614 | (c_register_pragma_with_data) | |
3615 | (c_register_pragma_with_expansion_and_data): New functions. | |
3616 | ||
3617 | * c-pragma.c (registered_pragmas, c_register_pragma_1) | |
3618 | (c_register_pragma, c_register_pragma_with_expansion) | |
3619 | (c_invoke_pragma_handler): Changed to work with | |
3620 | internal_pragma_handler. | |
3621 | (c_register_pragma_with_data) | |
3622 | (c_register_pragma_with_expansion_and_data): New functions. | |
3623 | ||
677f3fa8 JM |
3624 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> |
3625 | ||
3626 | * c-common.c: Include common/common-target.h. | |
3627 | (handle_section_attribute): Use | |
3628 | targetm_common.have_named_sections. | |
3629 | * c-cppbuiltin.c: Include common/common-target.h. | |
3630 | (c_cpp_builtins): Use targetm_common.except_unwind_info. | |
3631 | ||
d7fc8c14 RG |
3632 | 2011-06-10 Richard Guenther <rguenther@suse.de> |
3633 | ||
3634 | * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier | |
3635 | to print a IDENTIFIER_NODE. | |
3636 | ||
10e48e39 RO |
3637 | 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3638 | Joseph Myers <joseph@codesourcery.com> | |
3639 | ||
3640 | * c.opt (fbuilding-libgcc): New option. | |
3641 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
3642 | __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc. | |
3643 | ||
6976ae51 JM |
3644 | 2011-06-07 Jason Merrill <jason@redhat.com> |
3645 | ||
3ff60975 JM |
3646 | * c-common.c (max_tinst_depth): Lower default to 900. |
3647 | ||
6976ae51 JM |
3648 | * c-format.c (gcc_cxxdiag_char_table): Add 'S' format. |
3649 | ||
009db074 RG |
3650 | 2011-06-07 Richard Guenther <rguenther@suse.de> |
3651 | ||
3652 | * c-common.c (c_common_nodes_and_builtins): Do not set | |
3653 | size_type_node or call set_sizetype. | |
3654 | ||
b4592b92 DS |
3655 | 2011-06-07 Dodji Seketeli <dodji@redhat.com> |
3656 | ||
3657 | PR debug/49130 | |
3658 | * c-pretty-print.c (pp_c_integer_constant): Consider the canonical | |
9faeb493 | 3659 | type when using pointer comparison to compare types. |
b4592b92 | 3660 | |
014ab419 JW |
3661 | 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com> |
3662 | ||
3663 | * c.opt: Add -Wdelete-non-virtual-dtor. | |
3664 | * c-opts.c (c_common_handle_option): Include it in -Wall. | |
3665 | ||
4f60111f NF |
3666 | 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org> |
3667 | ||
3668 | PR bootstrap/49190 | |
3669 | ||
3670 | Revert: | |
3671 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> | |
3672 | ||
3673 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
3674 | not tree_common. | |
3675 | ||
4cc4f2f4 JJ |
3676 | 2011-05-27 Jakub Jelinek <jakub@redhat.com> |
3677 | ||
3678 | PR c++/49165 | |
3679 | * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For | |
3680 | C++ don't call c_common_truthvalue_conversion on void type arms. | |
3681 | ||
38e01f9e NF |
3682 | 2011-05-27 Nathan Froyd <froydnj@codesourcery.com> |
3683 | ||
3684 | * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC. | |
3685 | (stmt_list_stack): Define. | |
3686 | (cur_stmt_list): Adjust for new type of x_cur_stmt_list. | |
3687 | * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise. | |
3688 | ||
92e948a8 NF |
3689 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
3690 | ||
3691 | * c-common.c (warning_candidate_p): Check for BLOCKs. | |
3692 | ||
a2fc3e63 NF |
3693 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
3694 | ||
3695 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
3696 | not tree_common. | |
3697 | ||
0957c029 JJ |
3698 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
3699 | ||
3700 | * c-common.c (def_fn_type): Remove extra va_end. | |
3701 | ||
828fb3ba JM |
3702 | 2011-05-23 Jason Merrill <jason@redhat.com> |
3703 | ||
3704 | PR c++/48106 | |
3705 | * c-common.c (c_common_get_narrower): New. | |
3706 | (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it. | |
3707 | ||
dde05067 NF |
3708 | 2011-05-23 Nathan Froyd <froydnj@codesourcery.com> |
3709 | ||
3710 | * c-common.h (check_function_arguments): Tweak prototype of | |
3711 | check_function_arguments. | |
3712 | * c-common.c (check_function_arguments): Likewise. Adjust | |
3713 | calls to check_function_nonnull, check_function_format, and | |
3714 | check_function_sentinel. | |
3715 | (check_function_sentinel): Take a FUNCTION_TYPE rather than | |
3716 | separate attributes and typelist arguments. Use | |
3717 | FOREACH_FUNCTION_ARGS to iterate over argument types. | |
3718 | ||
3c0d13bf PC |
3719 | 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
3720 | ||
3721 | * c-common.c (c_common_reswords): Reorder. | |
3722 | * c-common.h (rid): Likewise. | |
3723 | ||
8242dd04 NF |
3724 | 2011-05-10 Nathan Froyd <froydnj@codesourcery.com> |
3725 | ||
3726 | * c-common.c (def_fn_type): Don't call build_function_type, call | |
3727 | build_function_type_array or build_varargs_function_type_array | |
3728 | instead. | |
3729 | (c_common_nodes_and_builtins): Likewise. | |
3730 | ||
3d528853 NF |
3731 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
3732 | ||
3733 | * c-common.c (c_add_case_label): Omit the loc argument to | |
3734 | build_case_label. | |
3735 | * c-common.h (build_case_label): Remove. | |
3736 | * c-semantics.c (build_case_label): Remove. | |
3737 | ||
a04a722b JM |
3738 | 2011-05-05 Joseph Myers <joseph@codesourcery.com> |
3739 | ||
3740 | * c-objc.h (objc_start_method_definition): Update prototype. | |
3741 | * stub-objc.c (objc_start_method_definition): Add extra parameter. | |
3742 | ||
e19a18d4 NF |
3743 | 2011-05-04 Nathan Froyd <froydnj@codesourcery.com> |
3744 | ||
3745 | * c-common.c (check_main_parameter_types): Reindent. Don't use | |
3746 | TYPE_ARG_TYPES directly. | |
3747 | (handle_nonnull_attribute): Likewise. | |
3748 | (sync_resolve_params): Likewise. | |
3749 | * c-format.c (handle_format_arg_attribute): Likewise. Adjust call | |
3750 | to check_format_string. | |
3751 | (handle_format_attribute): Likewise. | |
3752 | (check_format_string): Take a function type to examine instead of | |
3753 | a type list. Use a function_arg_iterator to step through argument | |
3754 | types. | |
3755 | ||
c62c040f RG |
3756 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
3757 | ||
3758 | * c-common.c (fix_string_type): Use size_int for index type bounds. | |
3759 | (start_fname_decls): Do not pass NULL to build_int_cst. | |
3760 | (c_init_attributes): Likewise. | |
3761 | * c-lex.c (c_lex_with_flags): Likewise. | |
3762 | ||
c12ff9d8 JM |
3763 | 2011-04-27 Jason Merrill <jason@redhat.com> |
3764 | ||
3765 | * c-common.c (make_tree_vector_from_list): New. | |
3766 | * c-common.h: Declare it. | |
3767 | ||
304dfbe3 RG |
3768 | 2011-04-26 Richard Guenther <rguenther@suse.de> |
3769 | ||
3770 | PR preprocessor/48248 | |
3771 | * c-ppoutput.c (maybe_print_line): Always optimize newlines | |
3772 | for output size with -P. | |
3773 | ||
3c0d13bf PC |
3774 | 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com> |
3775 | ||
3776 | * c-common.c (struct c_common_resword): Add __underlying_type. | |
3777 | * c-common.h (enum rid): Add RID_UNDERLYING_TYPE. | |
3778 | ||
04695783 JM |
3779 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
3780 | ||
3781 | * c-format.c (init_dollar_format_checking): Remove useless | |
3782 | if-before-free. | |
3783 | ||
0dc33c3c NP |
3784 | 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com> |
3785 | ||
3786 | * c-objc.h (objc_get_interface_ivars): Removed. | |
3c0d13bf | 3787 | (objc_detect_field_duplicates): New. |
0dc33c3c | 3788 | * stub-objc.c: Likewise. |
3c0d13bf | 3789 | |
c59633d9 NP |
3790 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
3791 | ||
3792 | * stub-objc.c (objc_declare_protocols): Renamed to | |
3793 | objc_declare_protocol. | |
3794 | * c-objc.h: Likewise. | |
3c0d13bf | 3795 | |
32dabdaf NP |
3796 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
3797 | ||
3798 | * stub-objc.c (objc_declare_class): Updated argument name. | |
3799 | ||
81f653d6 NF |
3800 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
3801 | ||
3802 | * c-common.h (c_common_init_ts): Declare. | |
3803 | * c-common.c (c_common_init_ts): Define. | |
3804 | ||
eb345401 NP |
3805 | 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com> |
3806 | ||
3807 | * c-objc.h (objc_build_message_expr): Updated prototype. | |
3808 | * stub-objc.c (objc_build_message_expr): Likewise. | |
9faeb493 | 3809 | |
a358e188 MJ |
3810 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
3811 | ||
3812 | * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead | |
3813 | of cgraph_node. | |
3814 | ||
e6313a78 RG |
3815 | 2011-04-11 Richard Guenther <rguenther@suse.de> |
3816 | ||
3817 | * c-common.c (complete_array_type): Build a range type of | |
3818 | proper type. | |
3819 | ||
dcf0c47e NF |
3820 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
3821 | ||
3822 | * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES. | |
3823 | (handle_type_generic_attribute): Likewise. | |
3824 | ||
1ee44b26 JM |
3825 | 2011-04-07 Jason Merrill <jason@redhat.com> |
3826 | ||
3827 | PR c++/48450 | |
3828 | * c-common.c (c_common_truthvalue_conversion): Don't ignore | |
3829 | conversion from C++0x scoped enum. | |
3830 | ||
acce4e77 JM |
3831 | 2011-04-06 Joseph Myers <joseph@codesourcery.com> |
3832 | ||
3833 | * c-target-def.h: New file. | |
3834 | * c-target.def: New file. | |
3835 | * c-target.h: New file. | |
3836 | * c-common.c (targetcm): Don't define here. | |
3837 | * c-common.h (default_handle_c_option): Declare. | |
3838 | * c-format.c: Include c-target.h instead of target.h. | |
3839 | * c-opts.c: Include c-target.h instead of target.h. Explicitly | |
3840 | include tm.h. | |
3841 | (default_handle_c_option): Move from targhooks.c. | |
3842 | ||
e2eefb55 JJ |
3843 | 2011-03-29 Jakub Jelinek <jakub@redhat.com> |
3844 | ||
3845 | PR preprocessor/48248 | |
3846 | * c-ppoutput.c (print): Add src_file field. | |
3847 | (init_pp_output): Initialize it. | |
3848 | (maybe_print_line): Don't optimize by adding up to 8 newlines | |
3849 | if map->to_file and print.src_file are different file. | |
3850 | (print_line): Update print.src_file. | |
3851 | ||
ba78087b KT |
3852 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
3853 | ||
3854 | * c-ada-spec.c (compare_comment): Use filename_cmp | |
3855 | instead of strcmp for filename. | |
3856 | ||
0edf1bb2 JL |
3857 | 2011-03-25 Jeff Law <law@redhat.com> |
3858 | ||
adfac8df | 3859 | * c-common.c (def_fn_type): Add missing va_end. |
0edf1bb2 | 3860 | |
c7dc8804 JM |
3861 | 2011-03-25 Jason Merrill <jason@redhat.com> |
3862 | ||
3863 | * c.opt: Add -std=c++03. | |
3864 | ||
d1d879b1 EB |
3865 | 2011-03-22 Eric Botcazou <ebotcazou@adacore.com> |
3866 | ||
3867 | * c-ada-spec.c (dump_ada_template): Skip non-class instances. | |
3868 | ||
62d784f7 KT |
3869 | 2011-03-17 Kai Tietz |
3870 | ||
3871 | PR target/12171 | |
5050afdf KT |
3872 | * c-pretty-print.c (pp_c_specifier_qualifier_list): |
3873 | Display allowed attributes for function pointer types. | |
3874 | (pp_c_attributes_display): New function to display | |
3875 | attributes having affects_type_identity flag set to true. | |
3876 | * c-pretty-print.h (pp_c_attributes_display): New prototype. | |
3877 | ||
62d784f7 KT |
3878 | * c-common.c (c_common_attribute_table): |
3879 | Add new element. | |
3880 | (c_common_format_attribute_table): Likewise. | |
3881 | ||
82d37118 JM |
3882 | 2011-03-18 Jason Merrill <jason@redhat.com> |
3883 | ||
49a000c3 JM |
3884 | * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth). |
3885 | * c-common.h: Don't declare it here. | |
3886 | * c-common.c: Or define it here. | |
3887 | * c-opts.c (c_common_handle_option): Or set it here. | |
3888 | ||
82d37118 JM |
3889 | PR c++/35315 |
3890 | * c-common.c (handle_transparent_union_attribute): Don't | |
3891 | make a duplicate type in C++. | |
3892 | ||
17bc631c JM |
3893 | 2011-03-15 Jason Merrill <jason@redhat.com> |
3894 | ||
3895 | * c-common.c (max_constexpr_depth): New. | |
3896 | * c-common.h: Declare it. | |
3897 | * c-opts.c (c_common_handle_option): Set it. | |
3898 | * c.opt (fconstexpr-depth): New option. | |
3899 | ||
1b9b91a6 JM |
3900 | 2011-03-11 Jason Merrill <jason@redhat.com> |
3901 | ||
f231b5ff JM |
3902 | * c-common.c (attribute_takes_identifier_p): Add missing const. |
3903 | ||
1b9b91a6 JM |
3904 | PR c++/46803 |
3905 | * c-common.c (attribute_takes_identifier_p): Assume that an | |
3906 | unknown attribute takes an identifier. | |
3907 | ||
a19e4d44 NF |
3908 | 2011-03-07 Nathan Froyd <froydnj@codesourcery.com> |
3909 | ||
3910 | PR c/47786 | |
3911 | * c-common.c (c_type_hash): Call list_length instead of iterating | |
3912 | through DECL_CHAIN. Rename 'i' to 'n_elements'. | |
3913 | ||
982d62f6 JJ |
3914 | 2011-02-19 Jakub Jelinek <jakub@redhat.com> |
3915 | ||
3916 | PR c/47809 | |
3917 | * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR. | |
3918 | ||
0a256240 NP |
3919 | 2011-02-17 Iain Sandoe <iains@gcc.gnu.org> |
3920 | ||
3921 | * c.opt (fobjc-abi-version=) New. | |
3922 | (fobjc-nilcheck): New. | |
3923 | ||
ba9e6dd5 NF |
3924 | 2011-02-03 Nathan Froyd <froydnj@codesourcery.com> |
3925 | ||
3926 | PR c++/46890 | |
3927 | * c-common.h (keyword_is_decl_specifier): Declare. | |
3928 | * c-common.c (keyword_is_decl_specifier): Define. | |
3929 | (keyword_is_function_specifier): New function. | |
3930 | ||
7273813a JJ |
3931 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
3932 | ||
3933 | PR c/47473 | |
3934 | * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure | |
3935 | EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of | |
3936 | REAL_TYPE. | |
3937 | ||
908ef79b AC |
3938 | 2011-01-26 Arnaud Charlet <charlet@adacore.com> |
3939 | ||
3940 | * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type. | |
3941 | ||
237e9384 JJ |
3942 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
3943 | ||
3944 | PR pch/47430 | |
3945 | * c-opts.c (c_common_post_options): Call c_common_no_more_pch | |
3946 | after init_c_lex if pch_file is set. | |
3947 | ||
47ea1edf DK |
3948 | 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com> |
3949 | ||
d4dba752 | 3950 | PR c++/43601 |
47ea1edf DK |
3951 | * c.opt (-fkeep-inline-dllexport): New switch. |
3952 | ||
2aa9c6ae RG |
3953 | 2011-01-12 Richard Guenther <rguenther@suse.de> |
3954 | ||
3955 | PR middle-end/32511 | |
3956 | * c-common.c (handle_weak_attribute): Warn instead of error | |
3957 | on declaring an inline function weak. | |
3958 | ||
7bd11157 TT |
3959 | 2011-01-05 Tom Tromey <tromey@redhat.com> |
3960 | ||
3961 | * c-common.h (lvalue_error): Update. | |
3962 | * c-common.c (lvalue_error): Add 'loc' argument. Call error_at, | |
3963 | not error. | |
3964 | ||
0e66e494 | 3965 | 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com> |
9faeb493 | 3966 | |
b4f588c4 NP |
3967 | PR objc/47075 |
3968 | * c-objc.h (objc_finish_message_expr): Added argument to | |
3969 | prototype. | |
3970 | ||
f4da8dce NF |
3971 | 2010-12-22 Nathan Froyd <froydnj@codesourcery.com> |
3972 | ||
3973 | * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute): | |
3974 | Use prototype_p. | |
3975 | ||
46270f14 NP |
3976 | 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com> |
3977 | ||
3978 | * c-objc.h (objc_maybe_warn_exceptions): New. | |
9faeb493 | 3979 | * stub-objc.c (objc_maybe_warn_exceptions): New. |
46270f14 | 3980 | |
4816c593 NF |
3981 | 2010-12-10 Nathan Froyd <froydnj@codesourcery.com> |
3982 | ||
3983 | * c-common.h (readonly_error): Declare. | |
3984 | * c-common.c (readonly_error): Define. | |
3985 | ||
7a6daeb0 NF |
3986 | 2010-12-09 Nathan Froyd <froydnj@codesourcery.com> |
3987 | ||
3988 | * c-common.h (invalid_indirection_error): Declare. | |
3989 | * c-common.c (invalid_indirection_error): Define. | |
3990 | ||
892f6119 RG |
3991 | 2010-12-03 Richard Guenther <rguenther@suse.de> |
3992 | ||
3993 | PR c/46745 | |
3994 | * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF. | |
3995 | (pp_c_unary_expression): Likewise. | |
3996 | (pp_c_expression): Likewise. | |
3997 | ||
6c39e757 NP |
3998 | 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com> |
3999 | ||
4000 | * c-common.h (objc_finish_function): New. | |
4001 | (objc_non_volatilized_type): Removed. | |
4002 | (objc_type_quals_match): Removed. | |
4003 | * stub-objc.c (objc_finish_function): New. | |
4004 | (objc_non_volatilized_type): Removed. | |
4005 | (objc_type_quals_match): Removed. | |
9faeb493 | 4006 | |
7c475d11 JM |
4007 | 2010-11-30 Joseph Myers <joseph@codesourcery.com> |
4008 | ||
4009 | * c-common.h (parse_optimize_options): Declare. | |
4010 | * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c, | |
4011 | c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h. | |
4012 | ||
71f3e391 JM |
4013 | 2010-11-29 Joseph Myers <joseph@codesourcery.com> |
4014 | ||
4015 | * c-opts.c (check_deps_environment_vars): Use getenv instead of | |
4016 | GET_ENVIRONMENT. | |
4017 | * c-pch.c (O_BINARY): Don't define here. | |
4018 | * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>. | |
4019 | ||
d5fabb58 JM |
4020 | 2010-11-25 Joseph Myers <joseph@codesourcery.com> |
4021 | ||
4022 | * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to | |
4023 | targetm.except_unwind_info. | |
4024 | ||
299404a1 JM |
4025 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
4026 | ||
4027 | * c-opts.c (c_common_handle_option): Pass location to | |
4028 | set_struct_debug_option. | |
4029 | ||
c98cd5bf JM |
4030 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
4031 | ||
4032 | * c-common.c (visibility_options): Move from ../opts.c. | |
4033 | * c-common.h (struct visibility_flags, visibility_options): | |
4034 | Declare here. | |
4035 | * c-opts.c (finish_options): Rename to c_finish_options. | |
4036 | (c_common_init): Update call to finish_options. | |
4037 | ||
a9546771 NP |
4038 | 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com> |
4039 | ||
4040 | PR objc/34033 | |
4041 | * c-lex.c (lex_string): Check that each string in an Objective-C | |
4042 | string concat sequence starts with either one or zero '@', and | |
4043 | that there are no spurious '@' signs at the end. | |
4044 | ||
24a57808 JM |
4045 | 2010-11-20 Joseph Myers <joseph@codesourcery.com> |
4046 | ||
4047 | * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK, | |
4048 | HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and | |
4049 | HANDLE_PRAGMA_VISIBILITY. | |
4050 | * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK, | |
4051 | HANDLE_PRAGMA_VISIBILITY): Don't define. | |
4052 | (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test. | |
4053 | ||
a9aa2c3a NF |
4054 | 2010-11-20 Nathan Froyd <froydnj@codesourcery.com> |
4055 | ||
4056 | PR c++/16189 | |
4057 | PR c++/36888 | |
4058 | PR c++/45331 | |
4059 | * c-common.h (keyword_begins_type_specifier): Declare. | |
4060 | (keyword_is_storage_class_specifier): Declare. | |
4061 | (keyword_is_type_qualifier): Declare. | |
4062 | * c-common.c (keyword_begins_type_specifier): New function. | |
4063 | (keyword_is_storage_class_specifier): New function. | |
4064 | (keyword_is_type_qualifier): Declare. | |
4065 | ||
5386338c JM |
4066 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
4067 | ||
4068 | PR c/46547 | |
4069 | * c-common.c (in_late_binary_op): Define. | |
4070 | (c_common_truthvalue_conversion): Check in_late_binary_op before | |
4071 | calling c_save_expr. | |
4072 | * c-common.h (in_late_binary_op): Declare. | |
4073 | ||
69ccdddb JM |
4074 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
4075 | ||
4076 | * c-opts.c (c_common_handle_option): Update calls to | |
4077 | set_struct_debug_option. | |
4078 | ||
6b192a09 NP |
4079 | 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com> |
4080 | ||
4081 | * c-common.h (objc_declare_protocols): Added additional argument. | |
4082 | * stub-objc.c (objc_declare_protocol): Same change. | |
9faeb493 | 4083 | |
fb52b50a NF |
4084 | 2010-11-18 Nathan Froyd <froydnj@codesourcery.com> |
4085 | ||
4086 | PR c/33193 | |
4087 | * c-common.h (build_real_imag_expr): Declare. | |
4088 | * c-semantics.c (build_real_imag_expr): Define. | |
4089 | ||
b37421c6 JM |
4090 | 2010-11-17 Joseph Myers <joseph@codesourcery.com> |
4091 | ||
4092 | * c-opts.c (c_common_parse_file): Take no arguments. | |
4093 | * c-common.h (c_common_parse_file): Update prototype. | |
4094 | ||
07078664 JJ |
4095 | 2010-11-16 Jakub Jelinek <jakub@redhat.com> |
4096 | ||
4097 | PR c++/46401 | |
4098 | * c-common.c (warning_candidate_p): Don't track non-const calls | |
4099 | or STRING_CSTs. | |
4100 | ||
c6a13190 ILT |
4101 | 2010-11-15 Ian Lance Taylor <iant@google.com> |
4102 | ||
4103 | * c-lex.c (init_c_lex): Set macro debug callbacks if | |
4104 | flag_dump_go_spec is set. | |
4105 | ||
925e8657 NP |
4106 | 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com> |
4107 | ||
4108 | * c-common.h (objc_build_incr_expr_for_property_ref): New. | |
4109 | * stub-objc.c (objc_build_incr_expr_for_property_ref): New. | |
4110 | ||
bb0a9581 NF |
4111 | 2010-11-15 Nathan Froyd <froydnj@codesourcery.com> |
4112 | ||
4113 | PR preprocessor/45038 | |
4114 | * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++ | |
4115 | dialects. | |
4116 | ||
c5fa0890 JM |
4117 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
4118 | ||
4119 | * c-common.h (c_family_lang_mask): Declare. | |
4120 | * c-opts.c (c_family_lang_mask): Make extern. | |
4121 | * c-pragma.c (handle_pragma_diagnostic): Use | |
4122 | control_warning_option. | |
4123 | ||
a4d8c676 JM |
4124 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
4125 | ||
4126 | * c-common.c (parse_optimize_options): Update call to | |
4127 | decode_options. | |
4128 | * c-common.h (c_common_handle_option): Update prototype. | |
4129 | * c-opts.c (c_common_handle_option): Take location_t parameter and | |
4130 | pass it to other functions. | |
4131 | ||
f954bd2c JM |
4132 | 2010-11-11 Joseph Myers <joseph@codesourcery.com> |
4133 | ||
4134 | * c-opts.c (warning_as_error_callback): Remove. | |
4135 | (c_common_initialize_diagnostics): Don't call | |
4136 | register_warning_as_error_callback. | |
4137 | (c_common_handle_option): Handle -Werror=normalized= here. | |
4138 | ||
d8a07487 JM |
4139 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
4140 | ||
4141 | * c-common.c (handle_mode_attribute): Use %' and word "signedness" | |
4142 | in diagnostic. | |
4143 | * c-opts.c (c_common_parse_file): Start diagnostics with lowercase | |
4144 | letter. | |
4145 | * c-pragma.c (handle_pragma_target, handle_pragma_optimize): | |
4146 | Remove trailing '.' from diagnostics. | |
4147 | * c.opt (Wwrite-strings_: Avoid '`' in help text. | |
4148 | ||
d5478783 JM |
4149 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
4150 | ||
4151 | * c-common.c (parse_optimize_options): Pass global_dc to | |
4152 | decode_options. | |
4153 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
4154 | set_Wstrict_aliasing. | |
4155 | * c.opt (v): Don't mark Common or document here. | |
4156 | ||
91ebb981 IS |
4157 | 2010-11-06 Iain Sandoe <iains@gcc.gnu.org> |
4158 | ||
4159 | PR target/44981 | |
4160 | * c-format.c (format_type): New type gcc_objc_string_format_type. | |
4161 | (valid_stringptr_type_p): New. | |
4162 | (handle_format_arg_attribute): Use valid_stringptr_type_p (). | |
9faeb493 | 4163 | (check_format_string): Pass expected type, use |
91ebb981 IS |
4164 | valid_stringptr_type_p (), check that the format string types are |
4165 | consistent with the format specification. | |
4166 | (decode_format_attr): Warn if NSString is used outside objective-c. | |
4167 | (format_types_orig): Add NSString. | |
4168 | (format_name): New. | |
4169 | (format_flags): New. | |
4170 | (check_format_arg): Handle format strings requiring an external parser. | |
4171 | first_target_format_type: New variable. | |
4172 | (handle_format_attribute): Set up first_target_format_type, pass the | |
4173 | expected format arg string type to check_format_string(). | |
4174 | * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag. | |
4175 | * stub-objc.c (objc_string_ref_type_p): New. | |
4176 | (objc_check_format_arg): New. | |
4177 | ||
bede2adc NP |
4178 | 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com> |
4179 | ||
9faeb493 | 4180 | Fixed using the Objective-C 2.0 dot-syntax with class names. |
bede2adc NP |
4181 | * c-common.h (objc_build_class_component_ref): New. |
4182 | * stub-objc.c (objc_build_class_component_ref): New. | |
4183 | ||
9a179d01 NP |
4184 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
4185 | ||
4186 | * c.opt (Wproperty-assign-default): New option. | |
4187 | ||
22d8d616 NP |
4188 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
4189 | ||
4190 | Implemented -fobjc-std=objc1 flag. | |
4191 | * c.opt (fobjc-std=objc1): New option. | |
4192 | ||
2debdb4f NP |
4193 | 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com> |
4194 | ||
4195 | Implemented format and noreturn attributes for Objective-C methods. | |
4196 | * c-common.c (handle_noreturn_attribute): Recognize 'noreturn' | |
4197 | attribute for Objective-C methods. | |
4198 | ||
ec52b111 JM |
4199 | 2010-10-31 Jason Merrill <jason@redhat.com> |
4200 | ||
4201 | * c-common.c (conversion_warning, warn_for_collisions_1): Use | |
4202 | EXPR_LOC_OR_HERE. | |
4203 | ||
46a88c12 NP |
4204 | 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com> |
4205 | ||
4206 | Implemented Objective-C 2.0 @property, @synthesize and @dynamic. | |
4207 | * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR. | |
4208 | (objc_add_property_declaration): Removed arguments for copies and | |
4209 | ivar. | |
4210 | (objc_build_getter_call): Renamed to | |
4211 | objc_maybe_build_component_ref. | |
4212 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
4213 | (objc_is_property_ref): New. | |
4214 | * c-common.c (c_common_reswords): Removed copies and ivar. | |
4215 | * stub-objc.c (objc_add_property_declaration): Removed arguments | |
4216 | for copies and ivar. | |
4217 | (objc_build_getter_call): Renamed to | |
4218 | objc_maybe_build_component_ref. | |
4219 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
4220 | (objc_is_property_ref): New. | |
9faeb493 | 4221 | |
1e4bf85b AC |
4222 | 2010-10-29 Arnaud Charlet <charlet@adacore.com> |
4223 | Matthew Gingell <gingell@adacore.com> | |
4224 | ||
4225 | * c-ada-spec.c (separate_class_package): New function. | |
4226 | (pp_ada_tree_identifier): Prefix references to C++ classes with the | |
4227 | name of their enclosing package. | |
4228 | (print_ada_declaration): Use separate_class_package. | |
4229 | ||
81f0bab2 JM |
4230 | 2010-10-27 Jason Merrill <jason@redhat.com> |
4231 | ||
2b08f2c5 JM |
4232 | * c-common.c (c_common_reswords): Add __is_literal_type. |
4233 | * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE. | |
4234 | ||
81f0bab2 JM |
4235 | * c-common.c (check_case_value): Remove special C++ code. |
4236 | ||
200290f2 NP |
4237 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
4238 | ||
4239 | * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN, | |
4240 | RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR | |
4241 | and RID_LAST_PATTR. | |
4242 | (objc_add_property_declaration): Added additional arguments. | |
4243 | (objc_property_attribute_kind): Removed. | |
4244 | (objc_set_property_attr): Removed. | |
4245 | * c-common.c (c_common_reswords): Added readwrite, assign, retain, | |
4246 | copy and nonatomic. | |
4247 | * stub-objc.c (objc_add_property_declaration): Added additional | |
4248 | arguments. | |
4249 | (objc_set_property_attr): Removed. | |
9faeb493 | 4250 | |
f614132b NP |
4251 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
4252 | ||
4253 | * c-common.h (objc_add_property_variable): Renamed to | |
4254 | objc_add_property_declaration. Added location argument. | |
4255 | * stub-objc.c (objc_add_property_variable): Same change. | |
4256 | ||
b8a18805 NP |
4257 | 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com> |
4258 | ||
4259 | * c-common.h (objc_maybe_printable_name): New. | |
4260 | * stub-objc.c (objc_maybe_printable_name): New. | |
4261 | ||
30cd1c5d AS |
4262 | 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
4263 | Andrew Pinski <pinskia@gmail.com> | |
4264 | ||
4265 | * c-common.h (c_common_mark_addressable_vec): Declare. | |
4266 | * c-common.c (c_common_mark_addressable_vec): New function. | |
4267 | ||
249a82c4 NP |
4268 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
4269 | ||
4270 | * c-common.h (objc_set_method_type): Removed. | |
4271 | (objc_add_method_declaration): Added boolean argument. | |
4272 | (objc_start_method_definition): Same change. | |
4273 | (objc_build_method_signature): Same change. | |
4274 | * stub-objc.c (objc_set_method_type): Removed. | |
4275 | (objc_add_method_declaration): Added boolean argument. | |
4276 | (objc_start_method_definition): Same change. | |
4277 | (objc_build_method_signature): Same change. | |
4278 | ||
977e30bc NP |
4279 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
4280 | ||
4281 | * c-common.h (finish_file): Removed. | |
4282 | (objc_write_global_declarations): New. | |
4283 | * c-opts.c (c_common_parse_file): Do not call finish_file. | |
4284 | * stub-objc.c (objc_write_global_declarations): New. | |
9faeb493 | 4285 | |
da57d1b9 NP |
4286 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
4287 | ||
4288 | Implemented parsing @synthesize and @dynamic for | |
4289 | Objective-C/Objective-C++. | |
4290 | * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC. | |
4291 | (objc_add_synthesize_declaration): New. | |
4292 | (objc_add_dynamic_declaration): New. | |
4293 | * c-common.c (c_common_reswords): Add synthesize and dynamic. | |
4294 | * stub-objc.c (objc_add_synthesize_declaration): New. | |
4295 | (objc_add_dynamic_declaration): New. | |
9faeb493 | 4296 | |
0069111f MM |
4297 | 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com> |
4298 | ||
4299 | PR target/46041 | |
4300 | * c-cppbuiltin.c (mode_has_fma): Move function here from | |
4301 | builtins.c. Don't use the fma optab, instead just use the | |
4302 | HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when | |
4303 | using -save-temps. | |
4304 | ||
e426b47b NP |
4305 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
4306 | ||
4307 | Merge from 'apple/trunk' branch on FSF servers. | |
0069111f | 4308 | |
e426b47b NP |
4309 | 2005-11-08 Fariborz Jahanian <fjahanian@apple.com> |
4310 | ||
9faeb493 | 4311 | Radar 4330422 |
e426b47b NP |
4312 | * c-common.h (objc_non_volatilized_type): New declaration |
4313 | * stub-objc.c (objc_non_volatilized_type): New stub. | |
4314 | ||
90fbfdc3 NP |
4315 | 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> |
4316 | ||
e426b47b | 4317 | Merge from 'apple/trunk' branch on FSF servers. |
90fbfdc3 NP |
4318 | |
4319 | 2006-03-27 Fariborz Jahanian <fjahanian@apple.com> | |
4320 | ||
9faeb493 | 4321 | Radar 4133425 |
90fbfdc3 | 4322 | * c-common.h (objc_diagnose_private_ivar): New decl. |
0069111f | 4323 | * stub-objc.c (objc_diagnose_private_ivar): New stub. |
90fbfdc3 | 4324 | |
c37d8c30 IS |
4325 | 2010-10-17 Iain Sandoe <iains@gcc.gnu.org> |
4326 | ||
4327 | * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE. | |
4328 | * c-common.h (enum rid): Add RID_AT_PACKAGE. | |
4329 | (objc_ivar_visibility_kind): New enum. | |
4330 | (objc_set_visibility): Adjust prototype to use visibility enum. | |
0069111f | 4331 | * stub-objc.c (objc_set_visibility): Adjust stub to use |
c37d8c30 IS |
4332 | visibility enum. |
4333 | ||
1b1562a5 MM |
4334 | 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com> |
4335 | ||
4336 | * c-cppbuiltin.c (builtin_define_float_constants): Emit | |
4337 | __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine | |
4338 | has the appropriate fma builtins. | |
4339 | (c_cpp_builtins): Adjust call to builtin_define_float_constants. | |
4340 | ||
668ea4b1 IS |
4341 | 2010-10-14 Iain Sandoe <iains@gcc.gnu.org> |
4342 | ||
1b1562a5 | 4343 | merge from FSF apple 'trunk' branch. |
668ea4b1 | 4344 | 2006 Fariborz Jahanian <fjahanian@apple.com> |
1b1562a5 | 4345 | |
668ea4b1 IS |
4346 | Radars 4436866, 4505126, 4506903, 4517826 |
4347 | * c-common.c (c_common_resword): Define @property and its attributes. | |
4348 | * c-common.h: Define property attribute enum entries. | |
4349 | (OBJC_IS_PATTR_KEYWORD): New. | |
4350 | (objc_property_attribute_kind): New enum. | |
4351 | Declare objc_set_property_attr (), objc_add_property_variable (), | |
4352 | objc_build_getter_call () and objc_build_setter_call (). | |
4353 | * stub-objc.c (objc_set_property_attr): New stub. | |
4354 | (objc_add_property_variable): Likewise. | |
4355 | (objc_build_getter_call): Likewise. | |
4356 | (objc_build_setter_call) Likewise. | |
1b1562a5 | 4357 | |
a1178b30 IS |
4358 | 2010-10-13 Iain Sandoe <iains@gcc.gnu.org> |
4359 | ||
1b1562a5 | 4360 | merge from FSF apple 'trunk' branch. |
a1178b30 IS |
4361 | 2006-04-26 Fariborz Jahanian <fjahanian@apple.com> |
4362 | ||
4363 | Radar 3803157 (method attributes) | |
4364 | * c-common.c (handle_deprecated_attribute): Recognize | |
4365 | objc methods as valid declarations. | |
4366 | * c-common.h: Declare objc_method_decl (). | |
1b1562a5 | 4367 | * stub-objc.c (objc_method_decl): New stub. |
a1178b30 | 4368 | |
a75bfaa6 JM |
4369 | 2010-10-08 Joseph Myers <joseph@codesourcery.com> |
4370 | ||
4371 | * c-common.c (parse_optimize_options): Call | |
4372 | decode_cmdline_options_to_array_default_mask before | |
4373 | decode_options. Update arguments to decode_options. | |
4374 | * c-common.h (c_common_init_options_struct): Declare. | |
4375 | * c-opts.c (c_common_init_options_struct): New. Split out from | |
4376 | c_common_init_options. | |
4377 | ||
f05b9d93 NP |
4378 | 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com> |
4379 | ||
4380 | Implemented fast enumeration for Objective-C. | |
4381 | * c-common.h (objc_finish_foreach_loop): New. | |
4382 | * stub-objc.c (objc_finish_foreach_loop): New. | |
4383 | ||
1ebe4b4f JM |
4384 | 2010-10-05 Joseph Myers <joseph@codesourcery.com> |
4385 | ||
4386 | * c-common.h (struct diagnostic_context): Don't declare here. | |
4387 | (c_common_initialize_diagnostics): Declare using | |
4388 | diagnostic_context typedef. | |
4389 | * c-opts.c (c_common_handle_option): Pass global_dc to | |
4390 | handle_generated_option. | |
4391 | ||
d4d24ba4 JM |
4392 | 2010-10-04 Joseph Myers <joseph@codesourcery.com> |
4393 | ||
4394 | * c-opts.c (c_common_handle_option): Pass &global_options_set to | |
4395 | handle_generated_option. | |
4396 | ||
478a1c5b ILT |
4397 | 2010-10-03 Ian Lance Taylor <iant@google.com> |
4398 | ||
4399 | * c.opt (-fplan9-extensions): New option. | |
4400 | ||
82a1c2fe FXC |
4401 | 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
4402 | ||
4403 | * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision): | |
4404 | Remove. | |
4405 | (c_cpp_builtins): Call functions from cppbuiltin.c instead | |
4406 | of duplicating code. | |
4407 | ||
92902b1b IS |
4408 | 2010-09-30 Iain Sandoe <iains@gcc.gnu.org> |
4409 | ||
4410 | * c-common.c: Add two new entries for @optional | |
4411 | and @required keywords. | |
4412 | ||
4413 | merge from FSF 'apple/trunk' branch. | |
4414 | 2006-01-30 Fariborz Jahanian <fjahanian@apple.com> | |
4415 | ||
4416 | Radar 4386773 | |
4417 | * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new | |
4418 | objective-c keywords. | |
4419 | (objc_set_method_opt): New declaration. | |
4420 | * stub-objc.c (objc_set_method_opt): New stub. | |
9faeb493 | 4421 | |
46625112 JM |
4422 | 2010-09-30 Joseph Myers <joseph@codesourcery.com> |
4423 | ||
4424 | * c-common.c (handle_optimize_attribute): Pass &global_options to | |
4425 | cl_optimization_save and cl_optimization_restore. | |
4426 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
4427 | handle_generated_option. | |
4428 | * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var. | |
4429 | (handle_pragma_pop_options, handle_pragma_reset_options): Pass | |
4430 | &global_options to cl_optimization_restore. | |
4431 | ||
49b91f05 NP |
4432 | 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com> |
4433 | ||
4434 | * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME | |
4435 | Objective-C/Objective-C++ keywords. | |
4436 | ||
13ed556f | 4437 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
a6341d57 | 4438 | |
9faeb493 UB |
4439 | Merge from 'apple/trunk' branch on FSF servers. |
4440 | ||
a6341d57 NP |
4441 | 2005-10-04 Fariborz Jahanian <fjahanian@apple.com> |
4442 | ||
4443 | Radar 4281748 | |
4444 | * c-common.h (objc_check_global_decl): New declaration. | |
4445 | * stub-objc.c (objc_check_global_decl): New stub. | |
4446 | ||
f0036cca JM |
4447 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
4448 | ||
4449 | * c.opt: Don't use VarExists. | |
4450 | ||
e3339d0f JM |
4451 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
4452 | ||
4453 | * c-common.c (c_cpp_error): Update names of diagnostic_context | |
4454 | members. | |
4455 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of | |
4456 | cl_optimization members. | |
4457 | * c-opts.c (warning_as_error_callback, c_common_handle_option, | |
4458 | sanitize_cpp_opts, finish_options): Update names of cpp_options | |
4459 | members. | |
4460 | ||
1973201f NP |
4461 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
4462 | ||
4463 | * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments. | |
4464 | (objc_is_reserved_word): Removed. | |
4465 | * c-common.c: Updated comments. | |
4466 | * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of | |
4467 | objc_is_reserved_word. | |
4468 | * stub-objc.c (objc_is_reserved_word): Removed. | |
4469 | ||
f7e71da5 IS |
4470 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
4471 | ||
9faeb493 | 4472 | * c-common.h (objc_add_method_declaration): Adjust prototype to |
f7e71da5 IS |
4473 | include attributes. |
4474 | (objc_start_method_definition): Likewise. | |
4475 | (objc_build_keyword_decl): Likewise. | |
4476 | * stub-objc.c:(objc_add_method_declaration): Handle attributes. | |
4477 | (objc_start_method_definition): Likewise. | |
4478 | (objc_build_keyword_decl): Likewise. | |
4479 | ||
c165dca7 IS |
4480 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
4481 | ||
4482 | * c-common.h (objc_start_class_interface): Adjust prototype. | |
4483 | (objc_start_category_interface): Likewise. | |
4484 | (objc_start_protocol): Likewise. | |
4485 | * stub-objc.c (objc_start_protocol): Adjust for extra argument. | |
4486 | (objc_start_class_interface): Likewise. | |
4487 | (objc_start_category_interface): Likewise. | |
4488 | ||
7458026b ILT |
4489 | 2010-09-27 Ian Lance Taylor <iant@google.com> |
4490 | ||
4491 | * c-common.c (c_common_attribute_table): Add no_split_stack. | |
4492 | (handle_no_split_stack_attribute): New static function. | |
4493 | ||
b581b85b NP |
4494 | 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com> |
4495 | ||
9faeb493 | 4496 | Merge from 'apple/trunk' branch on FSF servers. |
b581b85b NP |
4497 | |
4498 | 2005-12-15 Fariborz Jahanian <fjahanian@apple.com> | |
4499 | ||
9faeb493 | 4500 | Radar 4229905 |
b581b85b NP |
4501 | * c-common.h (objc_have_common_type): New declaration. |
4502 | * stub-objc.c (objc_have_common_type): New stub. | |
4503 | ||
4504 | 2005-06-22 Ziemowit Laski <zlaski@apple.com> | |
4505 | ||
4506 | Radar 4154928 | |
4507 | * c-common.h (objc_common_type): New prototype. | |
9faeb493 | 4508 | * stub-objc.c (objc_common_type): New stub. |
b581b85b | 4509 | |
46a4da10 JH |
4510 | 2010-09-24 Jan Hubicka <jh@suse.cz> |
4511 | ||
4512 | * c-common.c (handle_leaf_attribute): New function. | |
4513 | (struct attribute_spec c_common_att): Add leaf. | |
4514 | ||
e200444e JM |
4515 | 2010-09-22 Joseph Myers <joseph@codesourcery.com> |
4516 | ||
4517 | * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments, | |
4518 | -comments-in-macros, -define-macro, -define-macro=, -dependencies, | |
4519 | -dump, -dump=, -imacros, -imacros=, -include, -include=, | |
4520 | -include-barrier, -include-directory, -include-directory=, | |
4521 | -include-directory-after, -include-directory-after=, | |
4522 | -include-prefix, -include-prefix=, -include-with-prefix, | |
4523 | -include-with-prefix=, -include-with-prefix-after, | |
4524 | -include-with-prefix-after=, -include-with-prefix-before, | |
4525 | -include-with-prefix-before=, -no-integrated-cpp, | |
4526 | -no-line-commands, -no-standard-includes, -no-warnings, -output, | |
4527 | -output=, -pedantic, -pedantic-errors, -preprocess, | |
4528 | -print-missing-file-dependencies, -trace-includes, -traditional, | |
4529 | -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=, | |
4530 | -user-dependencies, -verbose, -write-dependencies, | |
4531 | -write-user-dependencies, no-integrated-cpp, traditional): New. | |
4532 | ||
29a80ea6 NP |
4533 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> |
4534 | ||
4535 | PR objc/23710 | |
ac1fc2fc NP |
4536 | * c-common.h (objc_start_method_definition): Return bool instead |
4537 | of void. | |
4538 | * stub-objc.c (objc_start_method_definition): Return bool instead | |
4539 | of void. | |
4540 | ||
4541 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> | |
4542 | ||
4543 | PR objc/25965 | |
4544 | * c-common.h (objc_get_interface_ivars): New declaration. | |
4545 | * stub-objc.c (objc_get_interface_ivars): New stub. | |
29a80ea6 | 4546 | |
de621752 ILT |
4547 | 2010-09-15 Ian Lance Taylor <iant@google.com> |
4548 | ||
4549 | * c-common.c (parse_optimize_options): Do not capitalize warning | |
06730c5d | 4550 | messages. Remove period at end of warning message. |
de621752 | 4551 | |
ba885ec5 NS |
4552 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
4553 | ||
4554 | * c-common.c (handle_alias_ifunc_attribute): New, broken out of ... | |
4555 | (handle_alias_attribute): ... here. | |
4556 | (handle_ifunc_attribute): New. | |
4557 | ||
c5ee1358 MM |
4558 | 2010-09-06 Mark Mitchell <mark@codesourcery.com> |
4559 | ||
4560 | * c-common.h (do_warn_double_promotion): Declare. | |
4561 | * c-common.c (do_warn_double_promotion): Define. | |
4562 | ||
0a0b3574 MM |
4563 | 2010-09-05 Mark Mitchell <mark@codesourcery.com> |
4564 | ||
4565 | * c.opt (Wdouble-promotion): New. | |
4566 | ||
d1779886 JM |
4567 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
4568 | ||
4569 | * c.opt (falt-external-templates, fhuge-objects, fvtable-gc, | |
4570 | fvtable-thunks, fxref): Mark no longer supported in help text. | |
4571 | ||
2d2bd949 JM |
4572 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
4573 | ||
4574 | * c.opt (Wimport, fall-virtual, falt-external-templates, | |
4575 | fdefault-inline, fenum-int-equiv, fexternal-templates, | |
4576 | fguiding-decls, fhonor-std, fhuge-objects, flabels-ok, | |
4577 | fname-mangling-version-, fnew-abi, fnonnull-objects, | |
4578 | foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable, | |
4579 | fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as | |
4580 | applicable. | |
4581 | (fhandle-exceptions): Mark with Alias and Warn. | |
4582 | * c-opts.c (c_common_handle_option): Don't handle options marked | |
4583 | as ignored. | |
4584 | ||
5de8299c JM |
4585 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
4586 | ||
4587 | * c.opt (Wcomments, Werror-implicit-function-declaration, | |
4588 | ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x, | |
4589 | std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as | |
4590 | aliases. | |
4591 | * c-common.c (option_codes): Use OPT_Wcomment instead of | |
4592 | OPT_Wcomments. | |
4593 | * c-opts.c (warning_as_error_callback, c_common_handle_option): | |
4594 | Don't handle options marked as aliases. | |
4595 | ||
0ceb0201 RG |
4596 | 2010-08-25 Richard Guenther <rguenther@suse.de> |
4597 | ||
4598 | * c-common.c (c_common_get_alias_set): Remove special | |
4599 | handling for pointers. | |
4600 | ||
ac47786e NF |
4601 | 2010-08-20 Nathan Froyd <froydnj@codesourcery.com> |
4602 | ||
4603 | * c-common.c: Use FOR_EACH_VEC_ELT. | |
4604 | * c-gimplify.c: Likewise. | |
4605 | * c-pragma.c: Likewise. | |
4606 | ||
c878765b JM |
4607 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
4608 | ||
4609 | * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of | |
4610 | RejectDriver. | |
4611 | (MMDX): Change back to MMD. Mark NoDriverArg instead of | |
4612 | RejectDriver. | |
4613 | * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD | |
4614 | instead of OPT_MDX and OPT_MMDX. | |
4615 | ||
603349bf JM |
4616 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
4617 | ||
4618 | * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver. | |
4619 | ||
644fa7ac JM |
4620 | 2010-08-12 Joseph Myers <joseph@codesourcery.com> |
4621 | ||
4622 | * c.opt (MD, MMD): Change to MDX and MMDX. | |
4623 | * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX. | |
4624 | ||
481e1176 JM |
4625 | 2010-08-11 Joseph Myers <joseph@codesourcery.com> |
4626 | ||
4627 | * c-opts.c (c_common_handle_option): Call handle_generated_option | |
4628 | instead of handle_option. | |
4629 | ||
ac8dc9f7 NF |
4630 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
4631 | ||
4632 | * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push. | |
4633 | (maybe_apply_renaming_pragma): Delete unneeded declarations. | |
4634 | ||
4f8c876d NF |
4635 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
4636 | ||
4637 | * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it. | |
4638 | (pending_redefine_extname): Change type to a VEC. | |
4639 | (add_to_renaming_pragma_list): Update for new type of | |
4640 | pending_redefine_extname. | |
ac8dc9f7 | 4641 | (maybe_apply_renaming_pragma): Likewise. |
4f8c876d | 4642 | |
3b0c690e AC |
4643 | 2010-08-04 Arnaud Charlet <charlet@adacore.com> |
4644 | ||
4645 | * c-ada-spec.c (dump_ada_template): Mark underlying instance type as | |
4646 | visited. | |
4647 | (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to | |
4648 | decide whether a type has already been declared/seen. | |
4649 | Do not go to the original type. | |
4650 | (dump_nested_types): New parameter forward. | |
4651 | Generate forward declaration if needed and mark type as visited. | |
4652 | (print_ada_declaration): Call dump_nested_types if not already done. | |
4653 | Mark types as visited. | |
4654 | ||
1890bccc JM |
4655 | 2010-08-03 Joseph Myers <joseph@codesourcery.com> |
4656 | ||
4657 | * c.opt (-print-pch-checksum): Remove option. | |
4658 | * c-opts.c (c_common_handle_option): Don't handle | |
4659 | OPT_print_pch_checksum. | |
4660 | ||
5f20c657 JM |
4661 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
4662 | ||
4663 | * c-common.h (c_common_handle_option): Update prototype and return | |
4664 | value type. | |
4665 | * c-opts.c (c_common_handle_option): Update prototype and return | |
4666 | value type. Update calls to handle_option and | |
4667 | enable_warning_as_error. | |
4668 | ||
f551f80c JJ |
4669 | 2010-07-27 Jakub Jelinek <jakub@redhat.com> |
4670 | ||
4671 | PR c/45079 | |
4672 | * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR. | |
4673 | ||
61ff2bdc JM |
4674 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
4675 | ||
4676 | * c-common.h (c_common_missing_argument): Remove. | |
4677 | * c-opts.c (c_common_missing_argument): Remove. | |
4678 | * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=, | |
4679 | idirafter, imacros, include, isysroot, isystem, iquote): Add | |
4680 | MissingArgError. | |
4681 | * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. | |
4682 | ||
7a9bf9a4 JM |
4683 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
4684 | ||
4685 | * c-common.h (c_common_option_lang_mask, | |
4686 | c_common_initialize_diagnostics, c_common_complain_wrong_lang_p): | |
4687 | New. | |
4688 | (c_common_init_options): Update prototype. | |
4689 | * c-opts.c (c_common_option_lang_mask): New. | |
4690 | (c_common_initialize_diagnostics): Split out of | |
4691 | c_common_init_options. | |
4692 | (accept_all_c_family_options, c_common_complain_wrong_lang_p): | |
4693 | New. | |
4694 | (c_common_init_options): Update prototype. Use decoded options in | |
4695 | search for -lang-asm. | |
4696 | ||
910ad8de NF |
4697 | 2010-07-15 Nathan Froyd <froydnj@codesourcery.com> |
4698 | ||
4699 | * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN. | |
4700 | * c-format.c: Likewise. | |
4701 | ||
718f9c0f MLI |
4702 | 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org> |
4703 | ||
4704 | * c-common.h: Include diagnostic-core.h. Error if already | |
4705 | included. | |
4706 | * c-semantics.c: Do not define GCC_DIAG_STYLE here. | |
4707 | ||
4d451982 MLI |
4708 | 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
4709 | ||
adfac8df | 4710 | * c-common.c (IN_GCC_FRONTEND): Do not undef. |
4d451982 MLI |
4711 | Do not include expr.h |
4712 | (vector_mode_valid_p): Move here. | |
4713 | ||
119fe915 SB |
4714 | 2010-06-21 DJ Delorie <dj@redhat.com> |
4715 | ||
4716 | * c-pragma.c (handle_pragma_diagnostic): Add push/pop, | |
4717 | allow these pragmas anywhere. | |
4718 | ||
4719 | 2010-06-14 Jakub Jelinek <jakub@redhat.com> | |
4720 | ||
4721 | PR bootstrap/44509 | |
4722 | * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h. | |
4723 | (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers. | |
4724 | (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use | |
4725 | ggc_strdup instead of xstrdup. | |
4726 | ||
4727 | 2010-06-10 Jakub Jelinek <jakub@redhat.com> | |
4728 | ||
4729 | * c-cppbuiltin.c: Include cpp-id-data.h. | |
4730 | (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables. | |
4731 | (lazy_hex_fp_value): New function. | |
4732 | (builtin_define_with_hex_fp_value): Provide definitions lazily. | |
4733 | ||
6662d794 MLI |
4734 | 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
4735 | ||
4736 | * c-gimplify.c: Do not include tree-flow.h | |
4737 | ||
38f8b050 JR |
4738 | 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com> |
4739 | ||
4740 | PR other/44034 | |
4741 | * c-common.c: Rename targetm member: | |
4742 | targetm.enum_va_list -> targetm.enum_va_list_p | |
4743 | ||
9589f23e AS |
4744 | 2010-06-28 Anatoly Sokolov <aesok@post.ru> |
4745 | ||
4746 | * c-common.c (shorten_compare): Adjust call to force_fit_type_double. | |
4747 | ||
3b06d379 SB |
4748 | 2010-06-28 Steven Bosscher <steven@gcc.gnu.org> |
4749 | ||
4750 | * c-cppbuiltin.c: Do not include except.h. | |
4751 | ||
d166d4c3 AK |
4752 | 2010-06-24 Andi Kleen <ak@linux.intel.com> |
4753 | ||
9faeb493 UB |
4754 | * c-common.c (warn_for_omitted_condop): New. |
4755 | * c-common.h (warn_for_omitted_condop): Add prototype. | |
d166d4c3 | 4756 | |
70cb8be6 JM |
4757 | 2010-06-21 Joseph Myers <joseph@codesourcery.com> |
4758 | ||
4759 | * c.opt (lang-objc): Remove. | |
4760 | * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc. | |
4761 | ||
a4c97feb JR |
4762 | 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com> |
4763 | ||
4764 | * c-opts.c: Include "tm_p.h". | |
4765 | ||
6e2f1956 JM |
4766 | 2010-06-20 Joseph Myers <joseph@codesourcery.com> |
4767 | ||
4768 | * c-common.c (parse_optimize_options): Update call to | |
4769 | decode_options. | |
4770 | ||
bc87224e NF |
4771 | 2010-06-18 Nathan Froyd <froydnj@codesourcery.com> |
4772 | ||
4773 | * c-common.c (record_types_used_by_current_var_decl): Adjust for | |
4774 | new type of types_used_by_cur_var_decl. | |
4775 | ||
b49cf425 JR |
4776 | 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com> |
4777 | ||
4778 | PR bootstrap/44512 | |
4779 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast | |
4780 | for C++ standard compliance. | |
4781 | ||
59f9c2ed JM |
4782 | 2010-06-16 Jason Merrill <jason@redhat.com> |
4783 | ||
4784 | * c.opt: Add -Wnoexcept. | |
4785 | ||
33766b66 RG |
4786 | 2010-06-16 Richard Guenther <rguenther@suse.de> |
4787 | ||
4788 | PR c/44555 | |
4789 | * c-common.c (c_common_truthvalue_conversion): Remove | |
4790 | premature and wrong optimization concering ADDR_EXPRs. | |
4791 | ||
eff7e30c AC |
4792 | 2010-06-15 Arnaud Charlet <charlet@adacore.com> |
4793 | ||
4794 | * c-ada-spec.c (dump_sloc): Remove column info. | |
4795 | (is_simple_enum): New function. | |
4796 | (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada | |
4797 | enum types when relevant. | |
4798 | ||
6312e84d MLI |
4799 | 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
4800 | ||
9faeb493 | 4801 | * c-common.c (conversion_warning): Warn at expression |
6312e84d MLI |
4802 | location. |
4803 | ||
1cb42611 JM |
4804 | 2010-06-10 Joseph Myers <joseph@codesourcery.com> |
4805 | ||
4806 | * c-opts.c (c_common_handle_option): Don't handle | |
4807 | OPT_fshow_column. | |
4808 | ||
a9429e29 LB |
4809 | 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
4810 | ||
4811 | * c-pragma.c (push_alignment): Use typed GC allocation. | |
4812 | (handle_pragma_push_options): Likewise. | |
4813 | ||
4814 | * c-common.c (parse_optimize_options): Likewise. | |
4815 | ||
4816 | * c-common.h (struct sorted_fields_type): Add variable_size GTY | |
4817 | option. | |
4818 | ||
5498f011 JM |
4819 | 2010-06-07 Joseph Myers <joseph@codesourcery.com> |
4820 | ||
4821 | * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin, | |
4822 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
4823 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
4824 | flag_signed_bitfields, warn_strict_null_sentinel, | |
4825 | flag_nil_receivers, flag_zero_link, flag_replace_objc_classes, | |
4826 | flag_gen_declaration, flag_no_gnu_keywords, | |
4827 | flag_implement_inlines, flag_implicit_templates, | |
4828 | flag_implicit_inline_templates, flag_optional_diags, | |
4829 | flag_elide_constructors, flag_default_inline, flag_rtti, | |
4830 | flag_conserve_space, flag_access_control, flag_check_new, | |
4831 | flag_new_for_scope, flag_weak, flag_working_directory, | |
4832 | flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr, | |
4833 | flag_enforce_eh_specs, flag_threadsafe_statics, | |
4834 | flag_pretty_templates): Remove. | |
4835 | * c-common.h (flag_preprocess_only, flag_nil_receivers, | |
4836 | flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link, | |
4837 | flag_replace_objc_classes, flag_undef, flag_no_builtin, | |
4838 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
4839 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
4840 | flag_const_strings, flag_signed_bitfields, flag_gen_declaration, | |
4841 | flag_no_gnu_keywords, flag_implement_inlines, | |
4842 | flag_implicit_templates, flag_implicit_inline_templates, | |
4843 | flag_optional_diags, flag_elide_constructors, flag_default_inline, | |
4844 | flag_rtti, flag_conserve_space, flag_access_control, | |
4845 | flag_check_new, flag_new_for_scope, flag_weak, | |
4846 | flag_working_directory, flag_use_cxa_atexit, | |
4847 | flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs, | |
4848 | flag_threadsafe_statics, flag_pretty_templates, | |
4849 | warn_strict_null_sentinel): Remove. | |
4850 | * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm, | |
4851 | fbuiltin, fcheck-new, fconserve-space, felide-constructors, | |
4852 | fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines, | |
4853 | fimplicit-inline-templates, fimplicit-templates, | |
4854 | flax-vector-conversions, fms-extensions, fnil-receivers, | |
4855 | fnonansi-builtins, fpretty-templates, freplace-objc-classes, | |
4856 | frtti, fshort-double, fshort-enums, fshort-wchar, | |
4857 | fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics, | |
4858 | funsigned-bitfields, funsigned-char, fuse-cxa-atexit, | |
4859 | fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link, | |
4860 | gen-decls, undef): Use Var. | |
4861 | (fdefault-inline, foptional-diags): Document as doing nothing. | |
4862 | * c-opts.c (c_common_handle_option): Remove cases for options now | |
4863 | using Var. Mark ignored options as such. | |
4864 | ||
39dabefd SB |
4865 | 2010-06-05 Steven Bosscher <steven@gcc.gnu.org> |
4866 | ||
9faeb493 | 4867 | * c-common.c: Moved to here from parent directory. |
39dabefd SB |
4868 | * c-common.def: Likewise. |
4869 | * c-common.h: Likewise. | |
4870 | * c-cppbuiltin.c: Likewise. | |
4871 | * c-dump.c: Likewise. | |
4872 | * c-format.c: Likewise. | |
4873 | * c-format.h : Likewise. | |
4874 | * c-gimplify.c: Likewise. | |
4875 | * c-lex.c: Likewise. | |
4876 | * c-omp.c: Likewise. | |
4877 | * c.opt: Likewise. | |
4878 | * c-opts.c: Likewise. | |
4879 | * c-pch.c: Likewise. | |
4880 | * c-ppoutput.c: Likewise. | |
4881 | * c-pragma.c: Likewise. | |
4882 | * c-pragma.h: Likewise. | |
4883 | * c-pretty-print.c: Likewise. | |
4884 | * c-pretty-print.h: Likewise. | |
4885 | * c-semantics.c: Likewise. | |
4886 | * stub-objc.c: Likewise. | |
4887 | ||
4888 | * c-common.c: Include gt-c-family-c-common.h. | |
4889 | * c-pragma.c: Include gt-c-family-c-pragma.h. | |
4890 | \f | |
5624e564 | 4891 | Copyright (C) 2010-2015 Free Software Foundation, Inc. |
39dabefd SB |
4892 | |
4893 | Copying and distribution of this file, with or without modification, | |
4894 | are permitted in any medium without royalty provided the copyright | |
4895 | notice and this notice are preserved. |