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