]>
Commit | Line | Data |
---|---|---|
7c834436 | 1 | 2013-01-09 Jakub Jelinek <jakub@redhat.com> |
2 | ||
3 | PR c/48418 | |
4 | * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and | |
5 | RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST | |
6 | and is either negative or bigger or equal to type precision | |
7 | of the first operand. | |
8 | ||
5abaa10a | 9 | 2012-12-03 Marek Polacek <polacek@redhat.com> |
10 | ||
11 | PR c/55570 | |
12 | * c-common.c (check_user_alignment): Swap order of tests, | |
13 | check TREE_CODE first. | |
14 | ||
324ca377 | 15 | 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net> |
16 | ||
17 | PR c++/52654 | |
18 | * c-common.h (overflow_type): New enum. | |
19 | (build_userdef_literal): Add overflow_type argument. | |
20 | (tree_userdef_literal): Add overflow_type. | |
21 | (USERDEF_LITERAL_OVERFLOW): New access macro. | |
22 | * c-common.c (build_userdef_literal): Add overflow_type | |
23 | argument. | |
24 | * c-lex.c (c_lex_with_flags): Add overflow_type to | |
25 | build_userdef_literal calls. | |
26 | (interpret_integer, interpret_float): Add overflow_type argument. | |
27 | ||
b4c4a429 | 28 | 2012-11-28 Richard Biener <rguenther@suse.de> |
29 | ||
30 | PR c/35634 | |
31 | * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions | |
32 | here and use a type with proper overflow behavior for types that would | |
33 | need to be promoted for the arithmetic. | |
34 | ||
d413ffdd | 35 | 2012-11-23 Jakub Jelinek <jakub@redhat.com> |
36 | ||
37 | PR sanitizer/55435 | |
38 | * c-common.c (handle_no_address_safety_analysis_attribute): New | |
39 | function. | |
40 | (c_common_attribute_table): Add no_address_safety_analysis. | |
41 | ||
52bc861d | 42 | 2012-11-16 Simon Baldwin <simonb@google.com> |
43 | ||
44 | * c.opt: Add f[no-]canonical-system-headers. | |
45 | * c-opts.c (c_common_handle_option): Handle | |
46 | OPT_fcanonical_system_headers. | |
47 | ||
2dd00636 | 48 | 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net> |
49 | ||
50 | PR c++/54413 | |
51 | * c-opts.c (c_common_handle_option): Set new flags. | |
52 | * c.opt: Describe new flags. | |
53 | ||
d4701f6c | 54 | 2012-11-09 Jason Merrill <jason@redhat.com> |
55 | ||
56 | * c.opt (Wabi-tag): New. | |
57 | ||
72d65da9 | 58 | 2012-11-09 Andi Kleen <ak@linux.intel.com> |
59 | ||
60 | PR 55139 | |
61 | * c-common.c (get_atomic_generic_size): Mask with | |
62 | MEMMODEL_MASK | |
63 | ||
77a357e3 | 64 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
65 | ||
66 | PR c/53063 | |
67 | * c.opt (Wformat): Make it Alias Wformat=1. | |
68 | (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral, | |
69 | Wformat-security,Wformat-y2k,Wformat-zero-length): Use | |
70 | LangEnabledBy. | |
71 | (Wformat=): RejectNegative. Use LangEnabledBy. | |
72 | (Wnonnull): Use LangEnabledBy. | |
73 | * c-opts.c (c_common_handle_option): Do not handle Wformat here. | |
74 | * c-format.c (set_Wformat): Delete. | |
75 | (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_. | |
76 | (maybe_read_dollar_number): Likewise. | |
77 | (avoid_dollar_number): Likewise. | |
78 | (finish_dollar_format_checking): Likewise. | |
79 | (check_format_info): Likewise. | |
80 | (check_format_info_main): Likewise. | |
81 | (check_format_types): Likewise. | |
82 | (format_type_warning): Likewise. | |
83 | * c-common.c (int): Likewise. | |
84 | (check_function_sentinel): Likewise. | |
85 | * c-common.h (warn_format,set_Wformat): Do not declare here. | |
86 | ||
45efa6b9 | 87 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
88 | ||
89 | PR c/53063 | |
90 | * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare, | |
91 | Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros): | |
92 | Use LangEnabledBy. | |
93 | (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from | |
94 | common.opt. | |
95 | (Wvariadic-macros): Init(1). | |
96 | * c-opts.c (c_common_handle_option): Do not handle them | |
97 | explicitly. | |
98 | (c_common_post_options): Likewise. | |
99 | (sanitize_cpp_opts): warn_unused_macros is now | |
100 | cpp_warn_unused_macros. | |
101 | (push_command_line_include): Likewise. | |
102 | * c-common.c (warn_unknown_pragmas): Do not define. | |
103 | * c-common.h (warn_unknown_pragmas): Do not declare. | |
104 | ||
0e4e775a | 105 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
106 | ||
107 | PR c/51294 | |
108 | * c-common.c (conversion_warning): Handle conditional expressions. | |
109 | ||
8b447d3f | 110 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
111 | ||
112 | PR c++/54930 | |
113 | * c.opt (Wreturn_local_addr): Define new option. | |
114 | ||
f4a61754 | 115 | 2012-10-25 Jason Merrill <jason@redhat.com> |
116 | ||
ecb10e6a | 117 | * c.opt (Wvirtual-move-assign): New. |
118 | ||
f4a61754 | 119 | * c.opt (Winherited-variadic-ctor): New. |
120 | ||
7b463b19 | 121 | 2012-10-25 Marc Glisse <marc.glisse@inria.fr> |
122 | ||
123 | PR c++/54427 | |
124 | * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR. | |
125 | ||
6adc88f8 | 126 | 2012-10-23 Joseph Myers <joseph@codesourcery.com> |
127 | ||
128 | * c-common.h (pch_cpp_save_state): Declare. | |
129 | * c-target.def (c_preinclude): New hook. | |
130 | * c-opts.c (done_preinclude): New. | |
131 | (push_command_line_include): Handle default preincluded header. | |
132 | (cb_file_change): Call pch_cpp_save_state when calling | |
133 | push_command_line_include. | |
134 | * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved) | |
135 | (pch_cpp_save_state): New. | |
136 | (pch_init): Call pch_cpp_save_state conditionally, instead of | |
137 | calling cpp_save_state. | |
138 | ||
fa816b0b | 139 | 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
140 | ||
141 | PR c/53063 | |
142 | PR c/40989 | |
143 | * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit, | |
144 | Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess, | |
145 | Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point, | |
146 | Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused, | |
147 | Wvolatile-register-var): Add LangEnabledBy or EnabledBy. | |
148 | * c-opts.c (c_common_handle_option): Remove explicit handling from | |
149 | here. | |
150 | (c_common_post_options): Likewise. | |
151 | ||
d214ccee | 152 | 2012-10-18 Eric Botcazou <ebotcazou@adacore.com> |
153 | ||
154 | * c-ada-spec.c (LOCATION_COL): Delete. | |
155 | (compare_location): New function. | |
156 | (compare_node): Use it. | |
157 | (compare_comment): Likewise. | |
158 | ||
77b27208 | 159 | 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org> |
160 | ||
161 | PR c/53063 | |
162 | PR c/40989 | |
163 | * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy. | |
164 | * c-opts.c (c_common_handle_option): Do not set them here. Add | |
165 | comment. | |
166 | (c_common_post_options): Likewise. | |
167 | ||
cc02ca4d | 168 | 2012-10-16 Eric Botcazou <ebotcazou@adacore.com> |
169 | ||
170 | * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define. | |
171 | (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially. | |
172 | Remove POINTER_TYPE handling, add large unsigned handling and use | |
173 | ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers. | |
174 | ||
57f872a2 | 175 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
176 | ||
177 | PR c/54381 | |
178 | * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype. | |
179 | * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3 | |
180 | locs and array of 3 trees instead of just single loc and single | |
181 | sizeof_arg tree. Handle __builtin___*_chk builtins too, and | |
182 | also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins. | |
183 | For *cmp* builtins that take two sources strings report warnings | |
184 | about first and second source, not about destination and source. | |
185 | ||
7354ad2e | 186 | 2012-10-12 Marc Glisse <marc.glisse@inria.fr> |
187 | ||
188 | PR c++/53055 | |
189 | * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New. | |
190 | ||
1ac7f120 | 191 | 2012-10-11 Eric Botcazou <ebotcazou@adacore.com> |
192 | ||
193 | * c-ada-spec.c (dump_ada_template): Bail out for template declarations | |
194 | declaring something coming from another file. | |
195 | ||
1e0cc9e3 | 196 | 2012-10-10 Arnaud Charlet <charlet@adacore.com> |
197 | ||
1ac7f120 | 198 | PR ada/54845 |
1e0cc9e3 | 199 | * c-ada-spec.c (print_ada_struct_decl): Increase buf size. |
200 | ||
b0e7825e | 201 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
202 | ||
203 | PR c++/54194 | |
204 | * c-common.c (warn_about_parentheses): Add location_t parameter; | |
205 | use EXPR_LOC_OR_LOC. | |
206 | * c-common.h: Update declaration. | |
207 | ||
41ed701a | 208 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
209 | ||
210 | PR c++/54427 | |
211 | * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support | |
212 | more operations. Make error messages optional. | |
213 | * c-common.h (enum stv_conv): Moved from c-typeck.c. | |
214 | (scalar_to_vector): Declare. | |
215 | ||
3740094c | 216 | 2012-10-08 Jason Merrill <jason@redhat.com> |
217 | ||
218 | * c-common.c (c_common_reswords): Add thread_local. | |
219 | ||
ffcdbf9c | 220 | 2012-10-08 Dodji Seketeli <dodji@redhat.com> |
221 | ||
222 | PR c++/53528 C++11 attribute support | |
223 | * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare | |
224 | new functions. | |
225 | * c-common.c (check_cxx_fundamental_alignment_constraints): New | |
226 | static function. | |
227 | (handle_aligned_attribute): In choose strictest alignment | |
228 | among many. Use new check_cxx_fundamental_alignment_constraints. | |
229 | (handle_transparent_union_attribute): In c++11 attribute syntax, | |
230 | don't look through typedefs. | |
231 | ||
ef34afc1 | 232 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
233 | ||
234 | * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW. | |
235 | * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition | |
236 | out of dumpfile.h. | |
237 | ||
f1ff4562 | 238 | 2012-09-25 Dehao Chen <dehao@google.com> |
239 | ||
240 | PR middle-end/54645 | |
ef34afc1 | 241 | * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data |
f1ff4562 | 242 | map when read in the pch. |
243 | ||
735538a1 | 244 | 2012-09-18 Arnaud Charlet <charlet@adacore.com> |
245 | ||
246 | * c-ada-spec.c: Style fixes. | |
247 | ||
9120cdc8 | 248 | 2012-09-18 Thomas Quinot <quinot@adacore.com> |
249 | ||
250 | * c.opt (-fada-spec-parent): Define new command line switch. | |
251 | * c-ada-spec.c (get_ada_package): When -fada-spec-parent | |
252 | is specified, generate binding spec as a child of the specified unit. | |
253 | ||
8eba82c2 | 254 | 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com> |
255 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
256 | ||
257 | PR c++/53210 | |
258 | * c.opt ([Winit-self]): Enabled by -Wall in C++. | |
259 | ||
38682990 | 260 | 2012-08-23 Arnaud Charlet <charlet@adacore.com> |
261 | ||
262 | * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only | |
263 | for pointers, and add missing Convention C pragma. | |
264 | (print_ada_struct_decl): Add missing aliased keyword. | |
265 | (dump_ads): Add pragma Ada_2005 and Style_Checks (Off). | |
266 | ||
f003f5dc | 267 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
268 | ||
269 | * c-common.c (sizeof_pointer_memaccess_warning): New function. | |
270 | * c.opt (-Wsizeof-pointer-memaccess): Add new option. | |
271 | * c-opts.c (c_common_handle_option): Enable it for -Wall. | |
272 | * c-common.h (sizeof_pointer_memaccess_warning): Add prototype. | |
273 | * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def. | |
274 | ||
ec11736b | 275 | 2012-08-10 Richard Guenther <rguenther@suse.de> |
276 | ||
277 | * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names. | |
278 | ||
5f7f600e | 279 | 2012-08-07 Steven Bosscher <steven@gcc.gnu.org> |
280 | ||
281 | * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush | |
282 | instead of separate pp_newline and pp_flush. | |
283 | (print_c_tree): Likewise. | |
284 | ||
758a38ab | 285 | 2012-07-26 Richard Henderson <rth@redhat.com> |
286 | ||
287 | * c-common.c (handle_hot_attribute): Allow labels. | |
288 | (handle_cold_attribute): Likewise. | |
289 | ||
9ca77b08 | 290 | 2012-07-20 Jakub Jelinek <jakub@redhat.com> |
291 | ||
292 | PR c++/28656 | |
293 | * c-common.c (check_function_nonnull): Handle multiple nonnull | |
294 | attributes properly. | |
295 | ||
b9ed1410 | 296 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
297 | ||
298 | * c-gimplify.c: Include dumpfile.h instead of tree-dump.h. | |
299 | * c-ada-spec.c: Likewise. | |
300 | * c-dump.c (dump_stmt): Move to cp/dump.c, the only user. | |
301 | ||
c2a65b90 | 302 | 2012-07-14 Steven Bosscher <steven@gcc.gnu.org> |
303 | ||
304 | * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define. | |
305 | Remove code conditional on it. | |
306 | ||
88c5a1d1 | 307 | 2012-07-11 Steven Bosscher <steven@gcc.gnu.org> |
308 | ||
309 | * c-gimplify.c: Do not include basic-block.h. | |
310 | * c-common.c: Do not include linfuncs.h. | |
311 | ||
4a020a8c | 312 | 2012-07-08 Steven Bosscher <steven@gcc.gnu.org> |
313 | ||
314 | * c-common.h: Include tree.h. | |
315 | ||
c28ddc97 | 316 | 2012-07-02 Jason Merrill <jason@redhat.com> |
317 | ||
318 | PR c++/53524 | |
319 | * c-common.c (get_priority): Call default_conversion. | |
320 | ||
405ed67f | 321 | 2012-07-01 Uros Bizjak <ubizjak@gmail.com> |
322 | ||
323 | * c-pch.c (c_common_write_pch): Remove unused variables. | |
324 | ||
e53d55e7 | 325 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
326 | ||
327 | * cppspec.c: Moved from gcc/ to here. | |
328 | ||
3d9c25ec | 329 | 2012-06-27 Kai Tietz <ktietz@redhat.com> |
330 | ||
331 | PR preprocessor/37215 | |
332 | * c-ppoutput.c (preprocess_file): Check for nonempty buffer. | |
333 | ||
3169c57a | 334 | 2012-06-21 Steven Bosscher <steven@gcc.gnu.org> |
335 | ||
336 | * c-common.h (c_common_print_pch_checksum): Remove. | |
337 | * c-pch.c: Do not include output.h. | |
338 | (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME. | |
339 | (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined. | |
340 | (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined. | |
341 | (struct c_pch_header): Remove. | |
342 | (get_ident): Update gpch version. | |
343 | (pch_init): Do not print executable_checksum to asm_out_file. | |
344 | Do not fail if there is no asm_out_file to read back from. Set | |
345 | asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined. | |
346 | (c_common_write_pch): Verify that nothing was written to asm_out_file | |
347 | since pch_init was called. Do not write a c_pch_header, and do not | |
348 | copy from asm_out_file to the PCH. | |
349 | (c_common_read_pch): Do not read a c_pch_header, and do not restore | |
350 | the content of asm_out_file from the PCH. | |
351 | (c_common_print_pch_checksum): Remove. | |
352 | * c-opts.c (c_common_init): Print out executable_checksum directly. | |
353 | ||
ff6624bc | 354 | 2012-06-19 Steven Bosscher <steven@gcc.gnu.org> |
355 | ||
356 | * c-target.def (objc_declare_unresolved_class_reference, | |
357 | objc_declare_class_definition): Add new hooks. | |
358 | ||
367b1459 | 359 | 2012-06-19 Steven Bosscher <steven@gcc.gnu.org> |
360 | ||
361 | * c-lex.c: Do not include output.h. | |
362 | (cb_ident): Try to put out .ident with targetm.asm_out.output_ident. | |
363 | Remove uses of ASM_OUTPUT_IDENT. | |
364 | ||
bf0cb017 | 365 | 2012-06-15 Marc Glisse <marc.glisse@inria.fr> |
366 | ||
367 | PR c++/51033 | |
368 | * c-common.h (c_build_vec_perm_expr): Move decl here. | |
369 | * c-common.c (c_build_vec_perm_expr): Move definition | |
370 | here. | |
371 | ||
b37a3600 | 372 | 2012-06-06 Steven Bosscher <steven@gcc.gnu.org> |
373 | ||
374 | * c.opt (fconserve-space): Turn into a no-op. | |
375 | ||
19931eea | 376 | 2012-06-04 Sterling Augustine <saugustine@google.com> |
5f9e7dd5 | 377 | |
378 | * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator. | |
379 | * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at | |
380 | both the start and end of the function. | |
381 | ||
dff12c10 | 382 | 2012-06-04 Steven Bosscher <steven@gcc.gnu.org> |
383 | ||
384 | * c-common.c: Do not include output.h. | |
385 | * c-pragma.c: Likewise. | |
386 | ||
5f9e7dd5 | 387 | 2012-06-04 Steven Bosscher <steven@gcc.gnu.org> |
388 | ||
389 | * error.c (dump_decl): Check pp_c_flag_gnu_v3. | |
390 | (decl_as_dwarf_string, lang_decl_dwarf_name): New functions. | |
391 | (lang_decl_name): Handle namespace decls. | |
392 | ||
b5369b7d | 393 | 2012-05-31 Steven Bosscher <steven@gcc.gnu.org> |
394 | ||
395 | * c-ada-spec.c: Do not include output.h. | |
396 | * c-semantics.c: Likewise. | |
397 | ||
8032877c | 398 | 2012-05-29 Joseph Myers <joseph@codesourcery.com> |
399 | ||
400 | * c-common.c: Fix typo. | |
401 | ||
7843e4bc | 402 | 2012-05-29 Michael Matz <matz@suse.de> |
403 | ||
404 | * c-common.h (c_expand_decl): Remove prototype. | |
405 | ||
8cf857d4 | 406 | 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
407 | ||
408 | * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall). | |
409 | * c-opts.c (c_common_handle_option): Remove code handling | |
410 | warn_missing_braces. | |
411 | ||
8b64dc3c | 412 | 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com> |
413 | ||
414 | PR c++/25137 | |
415 | * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable | |
416 | -Wmissing_braces. | |
417 | ||
43cbde16 | 418 | 2012-05-22 Dodji Seketeli <dodji@redhat.com> |
419 | ||
420 | PR c++/53322 | |
421 | * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused). | |
422 | ||
db490cb6 | 423 | 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org> |
424 | ||
425 | * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here. | |
426 | * c-opts.c (c_common_handle_option): Do not handle explicitly | |
427 | Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors. | |
428 | ||
a60f3e81 | 429 | 2012-05-16 Dodji Seketeli <dodji@redhat.com> |
430 | ||
431 | PR preprocessor/7263 | |
432 | * c-lex.c (c_lex_with_flags): Pass a virtual location to the call | |
433 | to cpp_classify_number. For diagnostics, use the precise location | |
434 | instead of the global input_location. | |
435 | ||
82e6ef7c | 436 | 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
437 | ||
cd4797ff | 438 | PR c++/11856 |
82e6ef7c | 439 | * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings. |
440 | ||
258a168d | 441 | 2012-05-14 Bernd Schmidt <bernds@codesourcery.com> |
442 | ||
82e6ef7c | 443 | * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary. |
258a168d | 444 | |
d3b7ee7c | 445 | 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org> |
446 | ||
447 | PR 53063 | |
448 | * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init, | |
449 | Wreorder): Use LangEnabledBy. | |
450 | * c-opts.c (c_common_handle_option): Do not enable them | |
451 | explicitly. Call lang-specific generated functions. | |
452 | (c_common_post_options): Do not set them here. | |
453 | ||
70059cea | 454 | 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org> |
455 | ||
456 | * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers, | |
457 | Wmissing-field-initializers,Wmissing-parameter-type, | |
458 | Wold-style-declaration,Woverride-init): Use EnabledBy. | |
459 | * c-opts.c (c_common_post_options): Do not set here explicitly. | |
460 | ||
fbb6fbd8 | 461 | 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
462 | ||
463 | PR 53063 | |
464 | * c-opts.c (c_common_handle_option): Use handle_generated_option | |
465 | to enable sub-options. | |
466 | ||
61f69bc9 | 467 | 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com> |
468 | ||
469 | PR c++/53158 | |
470 | * c-common.c (warnings_for_convert_and_check): Use warning_at. | |
471 | ||
5a1fe2db | 472 | 2012-05-10 Richard Guenther <rguenther@suse.de> |
473 | ||
474 | * c-common.c (c_sizeof_or_alignof_type): Remove assert and | |
475 | adjust commentary about TYPE_IS_SIZETYPE types. | |
476 | ||
d42e7c5a | 477 | 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
478 | ||
479 | PR c++/53261 | |
480 | * c-common.c (warn_logical_operator): Check that argument of | |
481 | integer_zerop is not NULL. | |
482 | ||
686369e8 | 483 | 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org> |
484 | ||
485 | PR c/43772 | |
486 | * c-common.c (warn_logical_operator): Do not warn if either side | |
487 | is already true or false. | |
488 | ||
03fe1dc2 | 489 | 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org> |
490 | ||
491 | PR c/51712 | |
492 | * c-common.c (expr_original_type): New. | |
493 | (shorten_compare): Do not warn for enumeration types. | |
494 | ||
bba5a206 | 495 | 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
496 | ||
497 | * c.opt (fpermissive): Add Var(flag_permissive). | |
498 | ||
7059d45d | 499 | 2012-04-30 Marc Glisse <marc.glisse@inria.fr> |
500 | ||
501 | PR c++/51033 | |
502 | * c-common.c (convert_vector_to_pointer_for_subscript): New function. | |
503 | * c-common.h (convert_vector_to_pointer_for_subscript): Declare it. | |
504 | ||
7edb1062 | 505 | 2012-04-30 Dodji Seketeli <dodji@redhat.com> |
506 | ||
507 | Add -Wvarargs option | |
508 | * c.opt (Wvarargs): Define new option. | |
509 | ||
068bea1e | 510 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
511 | ||
512 | * c-common.c (check_function_arguments): Replace | |
513 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
514 | ||
b86527d8 | 515 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
516 | ||
517 | * c.opt (Wsuggest-attribute=format): New. Alias of | |
518 | Wmissing-format-attribute. | |
519 | * c-format.c (decode_format_type): Replace | |
520 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
521 | (check_function_format): Likewise. | |
522 | ||
19931eea | 523 | 2012-04-27 Ollie Wild <aaw@google.com> |
76d340ac | 524 | |
525 | * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping. | |
526 | * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix. | |
527 | * c.opt: Add Wliteral-suffix. | |
528 | ||
29438999 | 529 | 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
530 | ||
531 | PR c/44774 | |
532 | * c.opt (Wpedantic): New. | |
533 | (pedantic): Alias Wpedantic. | |
534 | * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic. | |
535 | (c_common_post_options): Likewise. | |
536 | (sanitize_cpp_opts): Likewise. | |
537 | * c-lex.c (interpret_float): Likewise. | |
538 | * c-format.c (check_format_types): Likewise. | |
539 | * c-common.c (pointer_int_sum): Likewise. | |
540 | (c_sizeof_or_alignof_type): Likewise. | |
541 | (c_add_case_label): Likewise. | |
542 | (c_do_switch_warnings): Likewise. | |
543 | * c-pragma.c (handle_pragma_float_const_decimal64): Likewise. | |
544 | ||
4f9d6b8b | 545 | 2012-04-15 Jason Merrill <jason@redhat.com> |
546 | ||
547 | PR c++/52818 | |
548 | * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99. | |
549 | (C_STD_NAME): Distinguish between C++98 and C++11. | |
550 | ||
74bdbe96 | 551 | 2012-04-11 Eric Botcazou <ebotcazou@adacore.com> |
552 | ||
553 | PR target/52624 | |
554 | * c-common.h (uint16_type_node): Rename into... | |
555 | (c_uint16_type_node): ...this. | |
556 | * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming. | |
557 | * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise. | |
558 | ||
3d177e8c | 559 | 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org> |
560 | ||
561 | * c-common.c (warn_if_unused_value): Move definition to here. | |
562 | * c-common.h (warn_if_unused_value): Move declaration to here. | |
563 | ||
6a9a958f | 564 | 2012-03-23 William Bader <williambader@hotmail.com> |
565 | ||
566 | * c-lex.c (c_lex_with_flags): Avoid declarations after stmts. | |
567 | ||
543efdbe | 568 | 2012-03-20 Jason Merrill <jason@redhat.com> |
569 | ||
570 | * c-common.h (enum cxx_dialect): Add cxx1y. | |
571 | * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect | |
572 | test. | |
573 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
574 | * c-opts.c (c_common_post_options): Likewise. | |
575 | (set_std_cxx1y): New. | |
576 | (c_common_handle_option): Call it. | |
577 | * c.opt (-std=c++1y, -std=gnu++1y): New flags. | |
578 | ||
62206d34 | 579 | 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com> |
580 | ||
581 | PR c++/14710 | |
582 | * c.opt ([Wuseless-cast]): Add. | |
583 | ||
fadf62f4 | 584 | 2012-03-16 Richard Guenther <rguenther@suse.de> |
585 | ||
586 | * c-pretty-print.c (pp_c_initializer_list): Adjust. | |
587 | ||
249faa35 | 588 | 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
589 | ||
590 | PR c++/44783 | |
591 | * c.opt (ftemplate-backtrace-limit) Add. | |
592 | ||
126b6848 | 593 | 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
594 | ||
595 | * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix | |
596 | handling. | |
597 | * c-pragma.c (handle_pragma_extern_prefix): Remove. | |
598 | (init_pragma): Don't register extern_prefix. | |
599 | ||
a51edb4c | 600 | 2012-03-12 Richard Guenther <rguenther@suse.de> |
601 | ||
602 | * c-common.c (c_common_get_narrower): Use c_common_type_for_size. | |
603 | (builtin_type_for_size): Likewise. | |
604 | ||
0f6a7cb7 | 605 | 2012-02-13 Jakub Jelinek <jakub@redhat.com> |
606 | ||
607 | PR c++/52215 | |
608 | * c-common.c (sync_resolve_params): Don't decide whether to convert | |
609 | or not based on TYPE_SIZE comparison, convert whenever arg_type | |
610 | is unsigned INTEGER_TYPE. | |
611 | ||
0779e32c | 612 | 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com> |
613 | ||
614 | PR c/52118 | |
615 | * c.opt ([Wunused-local-typedefs]): Fix description. | |
616 | ||
baec58e1 | 617 | 2012-01-24 Mike Stump <mikestump@comcast.net> |
618 | ||
619 | * c-common.c (c_common_type_for_mode): Match signed/unsigned types | |
620 | exactly. | |
621 | ||
c779d8cc | 622 | 2012-01-18 Richard Guenther <rguenther@suse.de> |
623 | ||
624 | * c-opts.c (c_common_post_options): Reset LTO flags if | |
625 | we are about to generate a PCH. | |
626 | ||
ee917d24 | 627 | 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com> |
628 | ||
629 | PR c++/51777 | |
630 | * c-pretty-print.c (pp_c_integer_constant): For unsigned constants | |
631 | use pp_unsigned_wide_integer. | |
632 | ||
90e2341f | 633 | 2012-01-10 Richard Guenther <rguenther@suse.de> |
634 | ||
635 | PR middle-end/51806 | |
636 | * c-opts.c (c_common_handle_option): Move -Werror handling | |
637 | to language independent code. | |
638 | ||
9ea022ce | 639 | 2012-01-05 Richard Guenther <rguenther@suse.de> |
640 | ||
641 | PR middle-end/51764 | |
642 | * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here | |
643 | from common.opt. | |
644 | ||
3df19e1b | 645 | 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com> |
646 | ||
647 | PR c++/51316 | |
648 | * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof | |
649 | of array types with an unknown bound. | |
650 | ||
32074525 | 651 | 2011-12-20 Joseph Myers <joseph@codesourcery.com> |
652 | ||
653 | * c-common.c (flag_isoc99): Update comment to refer to C11. | |
654 | (flag_isoc1x): Change to flag_isoc11. | |
655 | * c-common.h (flag_isoc99): Update comment to refer to C11. | |
656 | (flag_isoc1x): Change to flag_isoc11. | |
657 | * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to | |
658 | C11. | |
659 | * c-opts.c (set_std_c1x): Change to set_std_c11. | |
660 | (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11. | |
661 | Call set_std_c11. | |
662 | (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11. | |
663 | (set_std_c1): Use CLK_STDC11 and CLK_GNUC11. | |
664 | * c.opt (std=c1x): Change to std=c11. Document as non-draft | |
665 | standard. | |
666 | (std=c1x, std=iso9899:2011): Add as aliases of std=c11. | |
667 | (std=gnu1x): Change to std=gnu11. Refer to non-draft standard. | |
668 | (std=gnu1x): Make alias of std=gnu11. | |
669 | ||
fca86134 | 670 | 2011-12-19 Jason Merrill <jason@redhat.com> |
671 | ||
672 | PR c++/51228 | |
673 | * c-common.c (handle_transparent_union_attribute): Check the first | |
674 | field if the type is complete. | |
675 | ||
aa4313eb | 676 | 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com> |
677 | ||
678 | PR libstdc++/51365 | |
679 | * c-common.c (RID_IS_FINAL): Add. | |
680 | * c-common.h (RID_IS_FINAL): Add. | |
681 | ||
3f3d5ad4 | 682 | 2011-11-30 Iain Sandoe <iains@gcc.gnu.org> |
683 | ||
684 | * c.opt (fgnu-runtime): Provide full description. | |
685 | (fnext-runtime): Likewise. | |
686 | * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove. | |
687 | ||
c4606d19 | 688 | 2011-11-28 Andrew MacLeod <amacleod@redhat.com> |
689 | ||
690 | * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic | |
691 | predefines in one place. Add LOCK_FREE predefines. | |
692 | (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to | |
693 | new func. | |
694 | ||
1d581089 | 695 | 2011-11-24 Andrew MacLeod <amacleod@redhat.com> |
696 | ||
697 | PR c/51256 | |
19931eea | 698 | * c-common.c (get_atomic_generic_size): Check for various error |
1d581089 | 699 | conditions |
19931eea | 700 | (resolve_overloaded_atomic_exchange, |
701 | resolve_overloaded_atomic_compare_exchange, | |
1d581089 | 702 | resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return |
703 | error_mark_node for error conditions. | |
19931eea | 704 | |
6aa221fa | 705 | 2011-11-08 Richard Guenther <rguenther@suse.de> |
706 | ||
707 | PR middle-end/51010 | |
708 | c-family/ | |
709 | ||
4c0315d0 | 710 | 2011-11-07 Richard Henderson <rth@redhat.com> |
711 | Aldy Hernandez <aldyh@redhat.com> | |
712 | Torvald Riegel <triegel@redhat.com> | |
713 | ||
714 | Merged from transactional-memory. | |
715 | ||
716 | * c-common.c (handle_tm_wrap_attribute, | |
717 | handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New. | |
718 | (struct c_common_reswords): Added __transaction* keywords. | |
719 | (struct c_common_attribute_table): Added transaction* and tm_regparm | |
720 | attributes. | |
721 | * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT* | |
722 | masks. | |
723 | (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr, | |
724 | find_tm_attribute): Declare. | |
725 | ||
920f5a70 | 726 | 2011-11-07 Jason Merrill <jason@redhat.com> |
727 | ||
728 | PR c++/35688 | |
729 | * c-common.c, c-common.h: Revert yesterday's changes. | |
730 | ||
b4f861b4 | 731 | 2011-11-06 Jason Merrill <jason@redhat.com> |
732 | ||
733 | PR c++/35688 | |
734 | * c-common.c (decl_has_visibility_attr): Split out from... | |
735 | (c_determine_visibility): ...here. | |
736 | * c-common.h: Declare it. | |
737 | ||
83e25171 | 738 | 2011-11-06 Joseph Myers <joseph@codesourcery.com> |
739 | ||
740 | * c-common.c (c_common_reswords): Add _Alignas and _Alignof. | |
741 | (c_sizeof_or_alignof_type): Diagnose alignof applied to a function | |
742 | type. | |
743 | (check_user_alignment): New. Split out of | |
744 | handle_aligned_attribute. Disallow integer constants with | |
745 | noninteger types. Conditionally allow zero. | |
746 | (handle_aligned_attribute): Use check_user_alignment. | |
747 | * c-common.h (RID_ALIGNAS, check_user_alignment): New. | |
748 | ||
1cd6e20d | 749 | 2011-11-06 Andrew MacLeod <amacleod@redhat.com> |
750 | Richard Henderson <rth@redhat.com> | |
751 | ||
752 | Merged from cxx-mem-model. | |
753 | ||
754 | * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns. | |
19931eea | 755 | * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak |
1cd6e20d | 756 | parameters that are the same type size. |
757 | (get_atomic_generic_size): New. Find size of generic | |
758 | atomic function parameters and do typechecking. | |
759 | (add_atomic_size_parameter): New. Insert size into parameter list. | |
760 | (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to | |
761 | either __atomic_exchange_n or external library call. | |
19931eea | 762 | (resolve_overloaded_atomic_compare_exchange): Restructure |
1cd6e20d | 763 | __atomic_compare_exchange to either _n variant or external library call. |
19931eea | 764 | (resolve_overloaded_atomic_load): Restructure __atomic_load to either |
1cd6e20d | 765 | __atomic_load_n or an external library call. |
766 | (resolve_overloaded_atomic_store): Restructure __atomic_store to either | |
767 | __atomic_store_n or an external library call. | |
768 | (resolve_overloaded_builtin): Handle new __atomic builtins. | |
769 | ||
7549df0d | 770 | 2011-11-04 Eric Botcazou <ebotcazou@adacore.com> |
771 | ||
772 | PR c++/50608 | |
773 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1. | |
774 | (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust. | |
775 | <INDIRECT_REF>: Return the argument. | |
776 | <ARRAY_REF>: Remove special code for negative offset. | |
777 | Call fold_build_pointer_plus instead of size_binop. | |
778 | (fold_offsetof): Remove STOP_REF argument and adjust. | |
779 | * c-common.h (fold_offsetof_1): Declare. | |
780 | (fold_offsetof): Remove STOP_REF argument. | |
781 | ||
7e783eb3 | 782 | 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com> |
783 | ||
784 | PR c++/50810 | |
785 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
786 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
787 | Wnarrowing for C++0x and C++98. | |
788 | * c.opt ([Wnarrowing]): Update. | |
789 | ||
8fe701f5 | 790 | 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com> |
791 | ||
792 | PR c++/44277 | |
793 | * c.opt: Add Wzero-as-null-pointer-constant. | |
794 | ||
0d84dc2d | 795 | 2011-10-31 Jason Merrill <jason@redhat.com> |
796 | ||
67031f52 | 797 | * c.opt (-fdeduce-init-list): Off by default. |
798 | ||
0d84dc2d | 799 | PR c++/50920 |
800 | * c-common.h (cxx_dialect): Add cxx11 and cxx03. | |
801 | * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03, | |
802 | and -Wc++11-compat. | |
803 | * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x. | |
804 | ||
66f24c41 | 805 | 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov> |
806 | ||
807 | PR c++/30066 | |
808 | * c.opt (fvisibility-inlines-hidden): Description change. | |
809 | ||
244db24d | 810 | 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net> |
811 | ||
812 | Implement C++11 user-defined literals. | |
813 | * c-common.c (build_userdef_literal): New. | |
814 | * c-common.def: New tree code. | |
815 | * c-common.h (tree_userdef_literal): New tree struct and accessors. | |
816 | * c-lex.c (interpret_float): Add suffix parm. | |
817 | (c_lex_with_flags): Build literal tokens. | |
818 | ||
235be70f | 819 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
820 | ||
821 | PR c++/50841 | |
822 | Revert: | |
823 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> | |
824 | ||
825 | PR c++/50810 | |
826 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
827 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
828 | Wnarrowing for C++0x and C++98. | |
829 | * c.opt ([Wnarrowing]): Update. | |
830 | ||
4fe0fb1c | 831 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
832 | ||
833 | PR c++/50810 | |
834 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
835 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
836 | Wnarrowing for C++0x and C++98. | |
837 | * c.opt ([Wnarrowing]): Update. | |
838 | ||
5f7504f9 | 839 | 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com> |
840 | ||
841 | PR c++/45385 | |
842 | * c-common.c (conversion_warning): Remove code looking for | |
843 | artificial operands. | |
844 | ||
2a688977 | 845 | 2011-10-18 Dodji Seketeli <dodji@redhat.com> |
846 | ||
847 | PR bootstrap/50760 | |
848 | * c-lex.c (fe_file_change): Use LINEMAP_SYSP when | |
19931eea | 849 | !NO_IMPLICIT_EXTERN_C. |
2a688977 | 850 | |
326e3391 | 851 | 2011-10-17 Michael Spertus <mike_spertus@symantec.com> |
852 | ||
853 | * c-common.c (c_common_reswords): Add __bases, | |
854 | __direct_bases. | |
855 | * c-common.h: Add RID_BASES and RID_DIRECT_BASES. | |
856 | ||
857 | 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com> | |
858 | ||
859 | PR c++/50757 | |
860 | * c.opt ([Wnonnull]): Add C++ and Objective-C++. | |
861 | ||
62db153a | 862 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
863 | Dodji Seketeli <dodji@redhat.com> | |
864 | ||
865 | * c.opt (fdebug-cpp): New option. | |
866 | * c-opts.c (c_common_handle_option): Handle the option. | |
867 | * c-ppoutput.c (maybe_print_line_1): New static function. Takes an | |
868 | output stream in parameter. Factorized from ... | |
869 | (maybe_print_line): ... this. Dump location debug information when | |
870 | -fdebug-cpp is in effect. | |
871 | (print_line_1): New static function. Takes an output stream in | |
872 | parameter. Factorized from ... | |
873 | (print_line): ... here. Dump location information when -fdebug-cpp | |
874 | is in effect. | |
875 | (scan_translation_unit): Dump location information when | |
876 | -fdebug-cpp is in effect. | |
877 | ||
ce70f433 | 878 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
879 | Dodji Seketeli <dodji@redhat.com> | |
880 | ||
881 | * c.opt (ftrack-macro-expansion): New option. Handle it with and | |
882 | without argument. | |
883 | * c-opts.c (c_common_handle_option)<case | |
884 | OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New | |
885 | cases. Handle -ftrack-macro-expansion with and without argument. | |
886 | ||
97bfb9ef | 887 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
888 | Dodji Seketeli <dodji@redhat.com> | |
889 | ||
890 | * c-ppoutput.c (scan_translation_unit, maybe_print_line) | |
891 | (print_line, cb_define, do_line_change): Adjust to avoid touching | |
892 | the internals of struct line_map. Use the public API instead. | |
893 | * c-pch.c (c_common_read_pch): Likewise. | |
894 | * c-lex.c (fe_file_change): Likewise. | |
895 | ||
326e3391 | 896 | 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com> |
897 | ||
898 | PR c++/17212 | |
899 | * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++. | |
900 | ||
901 | 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com> | |
902 | ||
903 | PR c++/33067 | |
904 | * c-pretty-print.c (pp_c_floating_constant): Output | |
905 | max_digits10 (in the ISO C++ WG N1822 sense) decimal digits. | |
906 | ||
b9a16870 | 907 | 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com> |
908 | ||
909 | * c-common.c (def_builtin_1): Delete old interface with two | |
910 | parallel arrays to hold standard builtin declarations, and replace | |
911 | it with a function based interface that can support creating | |
912 | builtins on the fly in the future. Change all uses, and poison | |
913 | the old names. Make sure 0 is not a legitimate builtin index. | |
914 | * c-omp.c (c_finish_omp_barrier): Ditto. | |
915 | (c_finish_omp_taskwait): Ditto. | |
916 | (c_finish_omp_flush): Ditto. | |
917 | ||
c7964868 | 918 | 2011-10-11 Tristan Gingold <gingold@adacore.com> |
919 | ||
920 | * c.opt: (fallow-parameterless-variadic-functions): New. | |
921 | ||
a4e3ffad | 922 | 2011-09-08 Dodji Seketeli <dodji@redhat.com> |
923 | ||
924 | PR c++/33255 - Support -Wunused-local-typedefs warning | |
925 | * c-common.h (struct c_language_function::local_typedefs): New | |
926 | field. | |
19931eea | 927 | (record_locally_defined_typedef, maybe_record_typedef_use) |
928 | (maybe_warn_unused_local_typedefs): Declare new functions. | |
a4e3ffad | 929 | * c-common.c (record_locally_defined_typedef) |
19931eea | 930 | (maybe_record_typedef_use) |
931 | (maybe_warn_unused_local_typedefs): Define new functions. | |
a4e3ffad | 932 | * c.opt: Declare new -Wunused-local-typedefs flag. |
933 | ||
737a23cc | 934 | 2011-09-06 Eric Botcazou <ebotcazou@adacore.com> |
935 | ||
936 | PR middle-end/50266 | |
937 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like | |
938 | computations. | |
939 | ||
7542c3b4 | 940 | 2011-09-05 Richard Guenther <rguenther@suse.de> |
941 | ||
942 | * c-common.c (complete_array_type): Use ssize_int (-1) instead | |
943 | of integer_minus_one_node for empty array upper bounds. | |
944 | ||
1dc92c59 | 945 | 2011-08-28 Dodji Seketeli <dodji@redhat.com> |
946 | ||
947 | * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as | |
948 | it's the first time it's being called on this main TU. | |
949 | ||
2bdf2b6e | 950 | 2011-08-24 Richard Guenther <rguenther@suse.de> |
951 | ||
952 | PR c/49396 | |
953 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional. | |
954 | ||
955 | 2011-08-22 Gabriel Charette <gchare@google.com> | |
6ea2c7a3 | 956 | |
957 | * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens | |
958 | defined in cpp_init_builtins and c_cpp_builtins. | |
959 | ||
bff4ad11 | 960 | 2011-08-19 Joseph Myers <joseph@codesourcery.com> |
961 | ||
962 | * c-common.c (c_common_reswords): Add __builtin_complex. | |
963 | * c-common.h (RID_BUILTIN_COMPLEX): New. | |
964 | ||
985c6e3a | 965 | 2011-08-18 Joseph Myers <joseph@codesourcery.com> |
966 | ||
967 | * c-common.c (c_common_reswords): Add _Noreturn. | |
968 | (keyword_is_function_specifier): Handle RID_NORETURN. | |
969 | * c-common.h (RID_NORETURN): New. | |
970 | ||
7dfa155b | 971 | 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
972 | ||
973 | * c-common.c (unsafe_conversion_p): New function. Check if it is | |
974 | unsafe to convert an expression to the type. | |
975 | (conversion_warning): Adjust, use unsafe_conversion_p. | |
976 | * c-common.h (unsafe_conversion_p): New function declaration. | |
977 | ||
2169f33b | 978 | 2011-08-02 Jakub Jelinek <jakub@redhat.com> |
979 | ||
980 | * c-common.h (c_finish_omp_atomic): Adjust prototype. | |
981 | (c_finish_omp_taskyield): New prototype. | |
982 | * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1 | |
983 | arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and | |
984 | OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1 | |
985 | or RHS1 have side-effects, evaluate those too in the right spot, | |
986 | if it is a decl and LHS is also a decl, error out if they | |
987 | aren't the same. | |
988 | (c_finish_omp_taskyield): New function. | |
989 | * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107. | |
990 | * c-pragma.c (omp_pragmas): Add taskyield. | |
991 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD. | |
992 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and | |
993 | PRAGMA_OMP_CLAUSE_MERGEABLE. | |
994 | ||
ab77850e | 995 | 2011-07-25 Dodji Seketeli <dodji@redhat.com> |
996 | ||
997 | * c-common.h (set_underlying_type): Remove parm name from | |
998 | declaration. | |
999 | ||
6ee97920 | 1000 | 2011-07-25 Romain Geissler <romain.geissler@gmail.com> |
1001 | ||
1002 | * c-pretty-print.h: Search c-common.h in c-family. | |
19931eea | 1003 | |
dc251364 | 1004 | 2011-07-22 Jason Merrill <jason@redhat.com> |
1005 | ||
1a2a35f0 | 1006 | PR c++/49793 |
1007 | * c.opt (Wnarrowing): New. | |
1008 | ||
27282252 | 1009 | PR c++/30112 |
1010 | * c-common.h: Declare c_linkage_bindings. | |
1011 | * c-pragma.c (handle_pragma_redefine_extname): Use it. | |
1012 | ||
dc251364 | 1013 | PR c++/49813 |
1014 | * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99. | |
1015 | * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well | |
1016 | as flag_isoc99 for 'restrict'. | |
1017 | (pp_c_specifier_qualifier_list): Likewise for _Complex. | |
1018 | ||
fc501191 | 1019 | 2011-07-21 Ian Lance Taylor <iant@google.com> |
1020 | ||
1021 | PR middle-end/49705 | |
1022 | * c-common.c (c_disable_warnings): New static function. | |
1023 | (c_enable_warnings): New static function. | |
1024 | (c_fully_fold_internal): Change local unused_p to bool. Call | |
1025 | c_disable_warnings and c_enable_warnings rather than change | |
1026 | c_inhibit_evaluation_warnings. | |
1027 | ||
07b8f133 | 1028 | 2011-07-20 Jason Merrill <jason@redhat.com> |
1029 | ||
1030 | PR c++/6709 (DR 743) | |
1031 | PR c++/42603 (DR 950) | |
1032 | * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h. | |
1033 | (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise. | |
1034 | (CPP_DECLTYPE): New. | |
1035 | * c-common.c (c_parse_error): Handle CPP_DECLTYPE. | |
1036 | ||
2cc66f2a | 1037 | 2011-07-19 Richard Guenther <rguenther@suse.de> |
1038 | ||
1039 | * c-common.c (pointer_int_sum): Use fold_build_pointer_plus. | |
1040 | * c-omp.c (c_finish_omp_for): Likewise. | |
1041 | ||
3c802a1e | 1042 | 2011-07-12 Eric Botcazou <ebotcazou@adacore.com> |
1043 | ||
1044 | * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop | |
1045 | body on the next line. | |
1046 | ||
98a33d9f | 1047 | 2011-07-08 Jason Merrill <jason@redhat.com> |
1048 | ||
3115bda0 | 1049 | PR c++/45437 |
1050 | * c-omp.c (check_omp_for_incr_expr): Handle preevaluation. | |
1051 | ||
98a33d9f | 1052 | PR c++/49673 |
1053 | * c-common.c (c_apply_type_quals_to_decl): Don't check | |
1054 | TYPE_NEEDS_CONSTRUCTING. | |
1055 | ||
c38a75b7 | 1056 | 2011-07-06 Richard Guenther <rguenther@suse.de> |
1057 | ||
1058 | * c-common.c (c_common_nodes_and_builtins): | |
1059 | Merge calls to build_common_tree_nodes and build_common_tree_nodes_2. | |
1060 | ||
e593356b | 1061 | 2011-07-05 Richard Guenther <rguenther@suse.de> |
1062 | ||
1063 | * c-common.c (c_common_nodes_and_builtins): Build all common | |
1064 | tree nodes first. | |
1065 | ||
fca0886c | 1066 | 2011-06-27 Jakub Jelinek <jakub@redhat.com> |
1067 | ||
a68f7a8d | 1068 | * c-common.h (c_tree_chain_next): New static inline function. |
1069 | ||
fca0886c | 1070 | * c-common.c (check_builtin_function_arguments): Handle |
1071 | BUILT_IN_ASSUME_ALIGNED. | |
1072 | ||
2797f13a | 1073 | 2011-06-21 Andrew MacLeod <amacleod@redhat.com> |
1074 | ||
1075 | * c-common.c: Add sync_ or SYNC__ to builtin names. | |
1076 | * c-omp.c: Add sync_ or SYNC__ to builtin names. | |
9cad95b7 | 1077 | |
1078 | 2011-06-20 Pierre Vittet <piervit@pvittet.com> | |
1079 | ||
1080 | * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New | |
1081 | handler. | |
1082 | (gen_pragma_handler): New union. | |
1083 | (internal_pragma_handler): New type. | |
1084 | (c_register_pragma_with_data) | |
1085 | (c_register_pragma_with_expansion_and_data): New functions. | |
1086 | ||
1087 | * c-pragma.c (registered_pragmas, c_register_pragma_1) | |
1088 | (c_register_pragma, c_register_pragma_with_expansion) | |
1089 | (c_invoke_pragma_handler): Changed to work with | |
1090 | internal_pragma_handler. | |
1091 | (c_register_pragma_with_data) | |
1092 | (c_register_pragma_with_expansion_and_data): New functions. | |
1093 | ||
218e3e4e | 1094 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> |
1095 | ||
1096 | * c-common.c: Include common/common-target.h. | |
1097 | (handle_section_attribute): Use | |
1098 | targetm_common.have_named_sections. | |
1099 | * c-cppbuiltin.c: Include common/common-target.h. | |
1100 | (c_cpp_builtins): Use targetm_common.except_unwind_info. | |
1101 | ||
41e53ed2 | 1102 | 2011-06-10 Richard Guenther <rguenther@suse.de> |
1103 | ||
1104 | * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier | |
1105 | to print a IDENTIFIER_NODE. | |
1106 | ||
a6f06169 | 1107 | 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1108 | Joseph Myers <joseph@codesourcery.com> | |
1109 | ||
1110 | * c.opt (fbuilding-libgcc): New option. | |
1111 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
1112 | __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc. | |
1113 | ||
1ea9269b | 1114 | 2011-06-07 Jason Merrill <jason@redhat.com> |
1115 | ||
8ce59854 | 1116 | * c-common.c (max_tinst_depth): Lower default to 900. |
1117 | ||
1ea9269b | 1118 | * c-format.c (gcc_cxxdiag_char_table): Add 'S' format. |
1119 | ||
1af0124d | 1120 | 2011-06-07 Richard Guenther <rguenther@suse.de> |
1121 | ||
1122 | * c-common.c (c_common_nodes_and_builtins): Do not set | |
1123 | size_type_node or call set_sizetype. | |
1124 | ||
0e9a4c01 | 1125 | 2011-06-07 Dodji Seketeli <dodji@redhat.com> |
1126 | ||
1127 | PR debug/49130 | |
1128 | * c-pretty-print.c (pp_c_integer_constant): Consider the canonical | |
19931eea | 1129 | type when using pointer comparison to compare types. |
0e9a4c01 | 1130 | |
90b40725 | 1131 | 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com> |
1132 | ||
1133 | * c.opt: Add -Wdelete-non-virtual-dtor. | |
1134 | * c-opts.c (c_common_handle_option): Include it in -Wall. | |
1135 | ||
fc9c9e87 | 1136 | 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org> |
1137 | ||
1138 | PR bootstrap/49190 | |
1139 | ||
1140 | Revert: | |
1141 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> | |
1142 | ||
1143 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
1144 | not tree_common. | |
1145 | ||
d0389adc | 1146 | 2011-05-27 Jakub Jelinek <jakub@redhat.com> |
1147 | ||
1148 | PR c++/49165 | |
1149 | * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For | |
1150 | C++ don't call c_common_truthvalue_conversion on void type arms. | |
1151 | ||
cacfdc02 | 1152 | 2011-05-27 Nathan Froyd <froydnj@codesourcery.com> |
1153 | ||
1154 | * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC. | |
1155 | (stmt_list_stack): Define. | |
1156 | (cur_stmt_list): Adjust for new type of x_cur_stmt_list. | |
1157 | * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise. | |
1158 | ||
027fc6ef | 1159 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
1160 | ||
1161 | * c-common.c (warning_candidate_p): Check for BLOCKs. | |
1162 | ||
f21317a1 | 1163 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
1164 | ||
1165 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
1166 | not tree_common. | |
1167 | ||
789e953d | 1168 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
1169 | ||
1170 | * c-common.c (def_fn_type): Remove extra va_end. | |
1171 | ||
7f506bca | 1172 | 2011-05-23 Jason Merrill <jason@redhat.com> |
1173 | ||
1174 | PR c++/48106 | |
1175 | * c-common.c (c_common_get_narrower): New. | |
1176 | (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it. | |
1177 | ||
774e9d58 | 1178 | 2011-05-23 Nathan Froyd <froydnj@codesourcery.com> |
1179 | ||
1180 | * c-common.h (check_function_arguments): Tweak prototype of | |
1181 | check_function_arguments. | |
1182 | * c-common.c (check_function_arguments): Likewise. Adjust | |
1183 | calls to check_function_nonnull, check_function_format, and | |
1184 | check_function_sentinel. | |
1185 | (check_function_sentinel): Take a FUNCTION_TYPE rather than | |
1186 | separate attributes and typelist arguments. Use | |
1187 | FOREACH_FUNCTION_ARGS to iterate over argument types. | |
1188 | ||
23407dc9 | 1189 | 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
1190 | ||
1191 | * c-common.c (c_common_reswords): Reorder. | |
1192 | * c-common.h (rid): Likewise. | |
1193 | ||
3a939d12 | 1194 | 2011-05-10 Nathan Froyd <froydnj@codesourcery.com> |
1195 | ||
1196 | * c-common.c (def_fn_type): Don't call build_function_type, call | |
1197 | build_function_type_array or build_varargs_function_type_array | |
1198 | instead. | |
1199 | (c_common_nodes_and_builtins): Likewise. | |
1200 | ||
b6e3dd65 | 1201 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
1202 | ||
1203 | * c-common.c (c_add_case_label): Omit the loc argument to | |
1204 | build_case_label. | |
1205 | * c-common.h (build_case_label): Remove. | |
1206 | * c-semantics.c (build_case_label): Remove. | |
1207 | ||
4232a958 | 1208 | 2011-05-05 Joseph Myers <joseph@codesourcery.com> |
1209 | ||
1210 | * c-objc.h (objc_start_method_definition): Update prototype. | |
1211 | * stub-objc.c (objc_start_method_definition): Add extra parameter. | |
1212 | ||
d0af78c5 | 1213 | 2011-05-04 Nathan Froyd <froydnj@codesourcery.com> |
1214 | ||
1215 | * c-common.c (check_main_parameter_types): Reindent. Don't use | |
1216 | TYPE_ARG_TYPES directly. | |
1217 | (handle_nonnull_attribute): Likewise. | |
1218 | (sync_resolve_params): Likewise. | |
1219 | * c-format.c (handle_format_arg_attribute): Likewise. Adjust call | |
1220 | to check_format_string. | |
1221 | (handle_format_attribute): Likewise. | |
1222 | (check_format_string): Take a function type to examine instead of | |
1223 | a type list. Use a function_arg_iterator to step through argument | |
1224 | types. | |
1225 | ||
ceb7b692 | 1226 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
1227 | ||
1228 | * c-common.c (fix_string_type): Use size_int for index type bounds. | |
1229 | (start_fname_decls): Do not pass NULL to build_int_cst. | |
1230 | (c_init_attributes): Likewise. | |
1231 | * c-lex.c (c_lex_with_flags): Likewise. | |
1232 | ||
c66c81be | 1233 | 2011-04-27 Jason Merrill <jason@redhat.com> |
1234 | ||
1235 | * c-common.c (make_tree_vector_from_list): New. | |
1236 | * c-common.h: Declare it. | |
1237 | ||
16930c72 | 1238 | 2011-04-26 Richard Guenther <rguenther@suse.de> |
1239 | ||
1240 | PR preprocessor/48248 | |
1241 | * c-ppoutput.c (maybe_print_line): Always optimize newlines | |
1242 | for output size with -P. | |
1243 | ||
23407dc9 | 1244 | 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com> |
1245 | ||
1246 | * c-common.c (struct c_common_resword): Add __underlying_type. | |
1247 | * c-common.h (enum rid): Add RID_UNDERLYING_TYPE. | |
1248 | ||
dd045aee | 1249 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
1250 | ||
1251 | * c-format.c (init_dollar_format_checking): Remove useless | |
1252 | if-before-free. | |
1253 | ||
394dd737 | 1254 | 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com> |
1255 | ||
1256 | * c-objc.h (objc_get_interface_ivars): Removed. | |
23407dc9 | 1257 | (objc_detect_field_duplicates): New. |
394dd737 | 1258 | * stub-objc.c: Likewise. |
23407dc9 | 1259 | |
a758bf7d | 1260 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
1261 | ||
1262 | * stub-objc.c (objc_declare_protocols): Renamed to | |
1263 | objc_declare_protocol. | |
1264 | * c-objc.h: Likewise. | |
23407dc9 | 1265 | |
29d7200d | 1266 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
1267 | ||
1268 | * stub-objc.c (objc_declare_class): Updated argument name. | |
1269 | ||
9b88d08d | 1270 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
1271 | ||
1272 | * c-common.h (c_common_init_ts): Declare. | |
1273 | * c-common.c (c_common_init_ts): Define. | |
1274 | ||
4185cf58 | 1275 | 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com> |
1276 | ||
1277 | * c-objc.h (objc_build_message_expr): Updated prototype. | |
1278 | * stub-objc.c (objc_build_message_expr): Likewise. | |
19931eea | 1279 | |
5a90471f | 1280 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
1281 | ||
1282 | * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead | |
1283 | of cgraph_node. | |
1284 | ||
783bb57e | 1285 | 2011-04-11 Richard Guenther <rguenther@suse.de> |
1286 | ||
1287 | * c-common.c (complete_array_type): Build a range type of | |
1288 | proper type. | |
1289 | ||
c33080b9 | 1290 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
1291 | ||
1292 | * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES. | |
1293 | (handle_type_generic_attribute): Likewise. | |
1294 | ||
f8913d47 | 1295 | 2011-04-07 Jason Merrill <jason@redhat.com> |
1296 | ||
1297 | PR c++/48450 | |
1298 | * c-common.c (c_common_truthvalue_conversion): Don't ignore | |
1299 | conversion from C++0x scoped enum. | |
1300 | ||
c94b1d0e | 1301 | 2011-04-06 Joseph Myers <joseph@codesourcery.com> |
1302 | ||
1303 | * c-target-def.h: New file. | |
1304 | * c-target.def: New file. | |
1305 | * c-target.h: New file. | |
1306 | * c-common.c (targetcm): Don't define here. | |
1307 | * c-common.h (default_handle_c_option): Declare. | |
1308 | * c-format.c: Include c-target.h instead of target.h. | |
1309 | * c-opts.c: Include c-target.h instead of target.h. Explicitly | |
1310 | include tm.h. | |
1311 | (default_handle_c_option): Move from targhooks.c. | |
1312 | ||
acb10f41 | 1313 | 2011-03-29 Jakub Jelinek <jakub@redhat.com> |
1314 | ||
1315 | PR preprocessor/48248 | |
1316 | * c-ppoutput.c (print): Add src_file field. | |
1317 | (init_pp_output): Initialize it. | |
1318 | (maybe_print_line): Don't optimize by adding up to 8 newlines | |
1319 | if map->to_file and print.src_file are different file. | |
1320 | (print_line): Update print.src_file. | |
1321 | ||
82715bcd | 1322 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
1323 | ||
1324 | * c-ada-spec.c (compare_comment): Use filename_cmp | |
1325 | instead of strcmp for filename. | |
1326 | ||
451c8e2f | 1327 | 2011-03-25 Jeff Law <law@redhat.com> |
1328 | ||
1329 | * c-family/c-common.c (def_fn_type): Add missing va_end. | |
1330 | ||
3c47771c | 1331 | 2011-03-25 Jason Merrill <jason@redhat.com> |
1332 | ||
1333 | * c.opt: Add -std=c++03. | |
1334 | ||
97e6200f | 1335 | 2011-03-22 Eric Botcazou <ebotcazou@adacore.com> |
1336 | ||
1337 | * c-ada-spec.c (dump_ada_template): Skip non-class instances. | |
1338 | ||
ac86af5d | 1339 | 2011-03-17 Kai Tietz |
1340 | ||
1341 | PR target/12171 | |
ee212425 | 1342 | * c-pretty-print.c (pp_c_specifier_qualifier_list): |
1343 | Display allowed attributes for function pointer types. | |
1344 | (pp_c_attributes_display): New function to display | |
1345 | attributes having affects_type_identity flag set to true. | |
1346 | * c-pretty-print.h (pp_c_attributes_display): New prototype. | |
1347 | ||
ac86af5d | 1348 | * c-common.c (c_common_attribute_table): |
1349 | Add new element. | |
1350 | (c_common_format_attribute_table): Likewise. | |
1351 | ||
914d1151 | 1352 | 2011-03-18 Jason Merrill <jason@redhat.com> |
1353 | ||
69788bdf | 1354 | * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth). |
1355 | * c-common.h: Don't declare it here. | |
1356 | * c-common.c: Or define it here. | |
1357 | * c-opts.c (c_common_handle_option): Or set it here. | |
1358 | ||
914d1151 | 1359 | PR c++/35315 |
1360 | * c-common.c (handle_transparent_union_attribute): Don't | |
1361 | make a duplicate type in C++. | |
1362 | ||
54cf6eed | 1363 | 2011-03-15 Jason Merrill <jason@redhat.com> |
1364 | ||
1365 | * c-common.c (max_constexpr_depth): New. | |
1366 | * c-common.h: Declare it. | |
1367 | * c-opts.c (c_common_handle_option): Set it. | |
1368 | * c.opt (fconstexpr-depth): New option. | |
1369 | ||
02cb1060 | 1370 | 2011-03-11 Jason Merrill <jason@redhat.com> |
1371 | ||
9bf1c74e | 1372 | * c-common.c (attribute_takes_identifier_p): Add missing const. |
1373 | ||
02cb1060 | 1374 | PR c++/46803 |
1375 | * c-common.c (attribute_takes_identifier_p): Assume that an | |
1376 | unknown attribute takes an identifier. | |
1377 | ||
ecf2703d | 1378 | 2011-03-07 Nathan Froyd <froydnj@codesourcery.com> |
1379 | ||
1380 | PR c/47786 | |
1381 | * c-common.c (c_type_hash): Call list_length instead of iterating | |
1382 | through DECL_CHAIN. Rename 'i' to 'n_elements'. | |
1383 | ||
2b19dfe4 | 1384 | 2011-02-19 Jakub Jelinek <jakub@redhat.com> |
1385 | ||
1386 | PR c/47809 | |
1387 | * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR. | |
1388 | ||
29cf2335 | 1389 | 2011-02-17 Iain Sandoe <iains@gcc.gnu.org> |
1390 | ||
1391 | * c.opt (fobjc-abi-version=) New. | |
1392 | (fobjc-nilcheck): New. | |
1393 | ||
fad3f658 | 1394 | 2011-02-03 Nathan Froyd <froydnj@codesourcery.com> |
1395 | ||
1396 | PR c++/46890 | |
1397 | * c-common.h (keyword_is_decl_specifier): Declare. | |
1398 | * c-common.c (keyword_is_decl_specifier): Define. | |
1399 | (keyword_is_function_specifier): New function. | |
1400 | ||
a12319b3 | 1401 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
1402 | ||
1403 | PR c/47473 | |
1404 | * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure | |
1405 | EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of | |
1406 | REAL_TYPE. | |
1407 | ||
5c128dc8 | 1408 | 2011-01-26 Arnaud Charlet <charlet@adacore.com> |
1409 | ||
1410 | * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type. | |
1411 | ||
8d67b0c7 | 1412 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
1413 | ||
1414 | PR pch/47430 | |
1415 | * c-opts.c (c_common_post_options): Call c_common_no_more_pch | |
1416 | after init_c_lex if pch_file is set. | |
1417 | ||
0675168d | 1418 | 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com> |
1419 | ||
e8911163 | 1420 | PR c++/43601 |
0675168d | 1421 | * c.opt (-fkeep-inline-dllexport): New switch. |
1422 | ||
0725e25c | 1423 | 2011-01-12 Richard Guenther <rguenther@suse.de> |
1424 | ||
1425 | PR middle-end/32511 | |
1426 | * c-common.c (handle_weak_attribute): Warn instead of error | |
1427 | on declaring an inline function weak. | |
1428 | ||
fdd84b77 | 1429 | 2011-01-05 Tom Tromey <tromey@redhat.com> |
1430 | ||
1431 | * c-common.h (lvalue_error): Update. | |
1432 | * c-common.c (lvalue_error): Add 'loc' argument. Call error_at, | |
1433 | not error. | |
1434 | ||
e6e73d14 | 1435 | 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com> |
19931eea | 1436 | |
d67e8485 | 1437 | PR objc/47075 |
1438 | * c-objc.h (objc_finish_message_expr): Added argument to | |
1439 | prototype. | |
1440 | ||
a36cf284 | 1441 | 2010-12-22 Nathan Froyd <froydnj@codesourcery.com> |
1442 | ||
1443 | * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute): | |
1444 | Use prototype_p. | |
1445 | ||
33b3681f | 1446 | 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com> |
1447 | ||
1448 | * c-objc.h (objc_maybe_warn_exceptions): New. | |
19931eea | 1449 | * stub-objc.c (objc_maybe_warn_exceptions): New. |
33b3681f | 1450 | |
a1f90215 | 1451 | 2010-12-10 Nathan Froyd <froydnj@codesourcery.com> |
1452 | ||
1453 | * c-common.h (readonly_error): Declare. | |
1454 | * c-common.c (readonly_error): Define. | |
1455 | ||
b1bbc8e5 | 1456 | 2010-12-09 Nathan Froyd <froydnj@codesourcery.com> |
1457 | ||
1458 | * c-common.h (invalid_indirection_error): Declare. | |
1459 | * c-common.c (invalid_indirection_error): Define. | |
1460 | ||
b0d55af9 | 1461 | 2010-12-03 Richard Guenther <rguenther@suse.de> |
1462 | ||
1463 | PR c/46745 | |
1464 | * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF. | |
1465 | (pp_c_unary_expression): Likewise. | |
1466 | (pp_c_expression): Likewise. | |
1467 | ||
d7489d8d | 1468 | 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com> |
1469 | ||
1470 | * c-common.h (objc_finish_function): New. | |
1471 | (objc_non_volatilized_type): Removed. | |
1472 | (objc_type_quals_match): Removed. | |
1473 | * stub-objc.c (objc_finish_function): New. | |
1474 | (objc_non_volatilized_type): Removed. | |
1475 | (objc_type_quals_match): Removed. | |
19931eea | 1476 | |
92468061 | 1477 | 2010-11-30 Joseph Myers <joseph@codesourcery.com> |
1478 | ||
1479 | * c-common.h (parse_optimize_options): Declare. | |
1480 | * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c, | |
1481 | c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h. | |
1482 | ||
967958e4 | 1483 | 2010-11-29 Joseph Myers <joseph@codesourcery.com> |
1484 | ||
1485 | * c-opts.c (check_deps_environment_vars): Use getenv instead of | |
1486 | GET_ENVIRONMENT. | |
1487 | * c-pch.c (O_BINARY): Don't define here. | |
1488 | * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>. | |
1489 | ||
b213bf24 | 1490 | 2010-11-25 Joseph Myers <joseph@codesourcery.com> |
1491 | ||
1492 | * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to | |
1493 | targetm.except_unwind_info. | |
1494 | ||
9faf44d6 | 1495 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
1496 | ||
1497 | * c-opts.c (c_common_handle_option): Pass location to | |
1498 | set_struct_debug_option. | |
1499 | ||
79396169 | 1500 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
1501 | ||
1502 | * c-common.c (visibility_options): Move from ../opts.c. | |
1503 | * c-common.h (struct visibility_flags, visibility_options): | |
1504 | Declare here. | |
1505 | * c-opts.c (finish_options): Rename to c_finish_options. | |
1506 | (c_common_init): Update call to finish_options. | |
1507 | ||
b4aa4123 | 1508 | 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com> |
1509 | ||
1510 | PR objc/34033 | |
1511 | * c-lex.c (lex_string): Check that each string in an Objective-C | |
1512 | string concat sequence starts with either one or zero '@', and | |
1513 | that there are no spurious '@' signs at the end. | |
1514 | ||
3e0e49f2 | 1515 | 2010-11-20 Joseph Myers <joseph@codesourcery.com> |
1516 | ||
1517 | * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK, | |
1518 | HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and | |
1519 | HANDLE_PRAGMA_VISIBILITY. | |
1520 | * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK, | |
1521 | HANDLE_PRAGMA_VISIBILITY): Don't define. | |
1522 | (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test. | |
1523 | ||
a9ffdd35 | 1524 | 2010-11-20 Nathan Froyd <froydnj@codesourcery.com> |
1525 | ||
1526 | PR c++/16189 | |
1527 | PR c++/36888 | |
1528 | PR c++/45331 | |
1529 | * c-common.h (keyword_begins_type_specifier): Declare. | |
1530 | (keyword_is_storage_class_specifier): Declare. | |
1531 | (keyword_is_type_qualifier): Declare. | |
1532 | * c-common.c (keyword_begins_type_specifier): New function. | |
1533 | (keyword_is_storage_class_specifier): New function. | |
1534 | (keyword_is_type_qualifier): Declare. | |
1535 | ||
93be21c0 | 1536 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
1537 | ||
1538 | PR c/46547 | |
1539 | * c-common.c (in_late_binary_op): Define. | |
1540 | (c_common_truthvalue_conversion): Check in_late_binary_op before | |
1541 | calling c_save_expr. | |
1542 | * c-common.h (in_late_binary_op): Declare. | |
1543 | ||
d7175aef | 1544 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
1545 | ||
1546 | * c-opts.c (c_common_handle_option): Update calls to | |
1547 | set_struct_debug_option. | |
1548 | ||
c213e196 | 1549 | 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com> |
1550 | ||
1551 | * c-common.h (objc_declare_protocols): Added additional argument. | |
1552 | * stub-objc.c (objc_declare_protocol): Same change. | |
19931eea | 1553 | |
0b5fc5d6 | 1554 | 2010-11-18 Nathan Froyd <froydnj@codesourcery.com> |
1555 | ||
1556 | PR c/33193 | |
1557 | * c-common.h (build_real_imag_expr): Declare. | |
1558 | * c-semantics.c (build_real_imag_expr): Define. | |
1559 | ||
b8ba44e7 | 1560 | 2010-11-17 Joseph Myers <joseph@codesourcery.com> |
1561 | ||
1562 | * c-opts.c (c_common_parse_file): Take no arguments. | |
1563 | * c-common.h (c_common_parse_file): Update prototype. | |
1564 | ||
6ef8d12f | 1565 | 2010-11-16 Jakub Jelinek <jakub@redhat.com> |
1566 | ||
1567 | PR c++/46401 | |
1568 | * c-common.c (warning_candidate_p): Don't track non-const calls | |
1569 | or STRING_CSTs. | |
1570 | ||
929d2a90 | 1571 | 2010-11-15 Ian Lance Taylor <iant@google.com> |
1572 | ||
1573 | * c-lex.c (init_c_lex): Set macro debug callbacks if | |
1574 | flag_dump_go_spec is set. | |
1575 | ||
e4a7640a | 1576 | 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com> |
1577 | ||
1578 | * c-common.h (objc_build_incr_expr_for_property_ref): New. | |
1579 | * stub-objc.c (objc_build_incr_expr_for_property_ref): New. | |
1580 | ||
597d2d81 | 1581 | 2010-11-15 Nathan Froyd <froydnj@codesourcery.com> |
1582 | ||
1583 | PR preprocessor/45038 | |
1584 | * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++ | |
1585 | dialects. | |
1586 | ||
c123f04d | 1587 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
1588 | ||
1589 | * c-common.h (c_family_lang_mask): Declare. | |
1590 | * c-opts.c (c_family_lang_mask): Make extern. | |
1591 | * c-pragma.c (handle_pragma_diagnostic): Use | |
1592 | control_warning_option. | |
1593 | ||
3c6c0e40 | 1594 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
1595 | ||
1596 | * c-common.c (parse_optimize_options): Update call to | |
1597 | decode_options. | |
1598 | * c-common.h (c_common_handle_option): Update prototype. | |
1599 | * c-opts.c (c_common_handle_option): Take location_t parameter and | |
1600 | pass it to other functions. | |
1601 | ||
19ec5c9e | 1602 | 2010-11-11 Joseph Myers <joseph@codesourcery.com> |
1603 | ||
1604 | * c-opts.c (warning_as_error_callback): Remove. | |
1605 | (c_common_initialize_diagnostics): Don't call | |
1606 | register_warning_as_error_callback. | |
1607 | (c_common_handle_option): Handle -Werror=normalized= here. | |
1608 | ||
bf776685 | 1609 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
1610 | ||
1611 | * c-common.c (handle_mode_attribute): Use %' and word "signedness" | |
1612 | in diagnostic. | |
1613 | * c-opts.c (c_common_parse_file): Start diagnostics with lowercase | |
1614 | letter. | |
1615 | * c-pragma.c (handle_pragma_target, handle_pragma_optimize): | |
1616 | Remove trailing '.' from diagnostics. | |
1617 | * c.opt (Wwrite-strings_: Avoid '`' in help text. | |
1618 | ||
6bd9d862 | 1619 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
1620 | ||
1621 | * c-common.c (parse_optimize_options): Pass global_dc to | |
1622 | decode_options. | |
1623 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
1624 | set_Wstrict_aliasing. | |
1625 | * c.opt (v): Don't mark Common or document here. | |
1626 | ||
1f6616ee | 1627 | 2010-11-06 Iain Sandoe <iains@gcc.gnu.org> |
1628 | ||
1629 | PR target/44981 | |
1630 | * c-format.c (format_type): New type gcc_objc_string_format_type. | |
1631 | (valid_stringptr_type_p): New. | |
1632 | (handle_format_arg_attribute): Use valid_stringptr_type_p (). | |
19931eea | 1633 | (check_format_string): Pass expected type, use |
1f6616ee | 1634 | valid_stringptr_type_p (), check that the format string types are |
1635 | consistent with the format specification. | |
1636 | (decode_format_attr): Warn if NSString is used outside objective-c. | |
1637 | (format_types_orig): Add NSString. | |
1638 | (format_name): New. | |
1639 | (format_flags): New. | |
1640 | (check_format_arg): Handle format strings requiring an external parser. | |
1641 | first_target_format_type: New variable. | |
1642 | (handle_format_attribute): Set up first_target_format_type, pass the | |
1643 | expected format arg string type to check_format_string(). | |
1644 | * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag. | |
1645 | * stub-objc.c (objc_string_ref_type_p): New. | |
1646 | (objc_check_format_arg): New. | |
1647 | ||
b0d0931f | 1648 | 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com> |
1649 | ||
19931eea | 1650 | Fixed using the Objective-C 2.0 dot-syntax with class names. |
b0d0931f | 1651 | * c-common.h (objc_build_class_component_ref): New. |
1652 | * stub-objc.c (objc_build_class_component_ref): New. | |
1653 | ||
f26877d5 | 1654 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
1655 | ||
1656 | * c.opt (Wproperty-assign-default): New option. | |
1657 | ||
1ef143b6 | 1658 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
1659 | ||
1660 | Implemented -fobjc-std=objc1 flag. | |
1661 | * c.opt (fobjc-std=objc1): New option. | |
1662 | ||
8c582e4f | 1663 | 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com> |
1664 | ||
1665 | Implemented format and noreturn attributes for Objective-C methods. | |
1666 | * c-common.c (handle_noreturn_attribute): Recognize 'noreturn' | |
1667 | attribute for Objective-C methods. | |
1668 | ||
8637f1db | 1669 | 2010-10-31 Jason Merrill <jason@redhat.com> |
1670 | ||
1671 | * c-common.c (conversion_warning, warn_for_collisions_1): Use | |
1672 | EXPR_LOC_OR_HERE. | |
1673 | ||
9d9f5bb3 | 1674 | 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com> |
1675 | ||
1676 | Implemented Objective-C 2.0 @property, @synthesize and @dynamic. | |
1677 | * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR. | |
1678 | (objc_add_property_declaration): Removed arguments for copies and | |
1679 | ivar. | |
1680 | (objc_build_getter_call): Renamed to | |
1681 | objc_maybe_build_component_ref. | |
1682 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
1683 | (objc_is_property_ref): New. | |
1684 | * c-common.c (c_common_reswords): Removed copies and ivar. | |
1685 | * stub-objc.c (objc_add_property_declaration): Removed arguments | |
1686 | for copies and ivar. | |
1687 | (objc_build_getter_call): Renamed to | |
1688 | objc_maybe_build_component_ref. | |
1689 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
1690 | (objc_is_property_ref): New. | |
19931eea | 1691 | |
56f907a0 | 1692 | 2010-10-29 Arnaud Charlet <charlet@adacore.com> |
1693 | Matthew Gingell <gingell@adacore.com> | |
1694 | ||
1695 | * c-ada-spec.c (separate_class_package): New function. | |
1696 | (pp_ada_tree_identifier): Prefix references to C++ classes with the | |
1697 | name of their enclosing package. | |
1698 | (print_ada_declaration): Use separate_class_package. | |
1699 | ||
b5fa273e | 1700 | 2010-10-27 Jason Merrill <jason@redhat.com> |
1701 | ||
5290e253 | 1702 | * c-common.c (c_common_reswords): Add __is_literal_type. |
1703 | * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE. | |
1704 | ||
b5fa273e | 1705 | * c-common.c (check_case_value): Remove special C++ code. |
1706 | ||
7590f0e5 | 1707 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
1708 | ||
1709 | * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN, | |
1710 | RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR | |
1711 | and RID_LAST_PATTR. | |
1712 | (objc_add_property_declaration): Added additional arguments. | |
1713 | (objc_property_attribute_kind): Removed. | |
1714 | (objc_set_property_attr): Removed. | |
1715 | * c-common.c (c_common_reswords): Added readwrite, assign, retain, | |
1716 | copy and nonatomic. | |
1717 | * stub-objc.c (objc_add_property_declaration): Added additional | |
1718 | arguments. | |
1719 | (objc_set_property_attr): Removed. | |
19931eea | 1720 | |
1d894bcf | 1721 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
1722 | ||
1723 | * c-common.h (objc_add_property_variable): Renamed to | |
1724 | objc_add_property_declaration. Added location argument. | |
1725 | * stub-objc.c (objc_add_property_variable): Same change. | |
1726 | ||
e23bf1fb | 1727 | 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com> |
1728 | ||
1729 | * c-common.h (objc_maybe_printable_name): New. | |
1730 | * stub-objc.c (objc_maybe_printable_name): New. | |
1731 | ||
93426222 | 1732 | 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
1733 | Andrew Pinski <pinskia@gmail.com> | |
1734 | ||
1735 | * c-common.h (c_common_mark_addressable_vec): Declare. | |
1736 | * c-common.c (c_common_mark_addressable_vec): New function. | |
1737 | ||
45b2b110 | 1738 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
1739 | ||
1740 | * c-common.h (objc_set_method_type): Removed. | |
1741 | (objc_add_method_declaration): Added boolean argument. | |
1742 | (objc_start_method_definition): Same change. | |
1743 | (objc_build_method_signature): Same change. | |
1744 | * stub-objc.c (objc_set_method_type): Removed. | |
1745 | (objc_add_method_declaration): Added boolean argument. | |
1746 | (objc_start_method_definition): Same change. | |
1747 | (objc_build_method_signature): Same change. | |
1748 | ||
64cd9619 | 1749 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
1750 | ||
1751 | * c-common.h (finish_file): Removed. | |
1752 | (objc_write_global_declarations): New. | |
1753 | * c-opts.c (c_common_parse_file): Do not call finish_file. | |
1754 | * stub-objc.c (objc_write_global_declarations): New. | |
19931eea | 1755 | |
e1f293c0 | 1756 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
1757 | ||
1758 | Implemented parsing @synthesize and @dynamic for | |
1759 | Objective-C/Objective-C++. | |
1760 | * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC. | |
1761 | (objc_add_synthesize_declaration): New. | |
1762 | (objc_add_dynamic_declaration): New. | |
1763 | * c-common.c (c_common_reswords): Add synthesize and dynamic. | |
1764 | * stub-objc.c (objc_add_synthesize_declaration): New. | |
1765 | (objc_add_dynamic_declaration): New. | |
19931eea | 1766 | |
ef97a312 | 1767 | 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com> |
1768 | ||
1769 | PR target/46041 | |
1770 | * c-cppbuiltin.c (mode_has_fma): Move function here from | |
1771 | builtins.c. Don't use the fma optab, instead just use the | |
1772 | HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when | |
1773 | using -save-temps. | |
1774 | ||
69b07042 | 1775 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
1776 | ||
1777 | Merge from 'apple/trunk' branch on FSF servers. | |
ef97a312 | 1778 | |
69b07042 | 1779 | 2005-11-08 Fariborz Jahanian <fjahanian@apple.com> |
1780 | ||
19931eea | 1781 | Radar 4330422 |
69b07042 | 1782 | * c-common.h (objc_non_volatilized_type): New declaration |
1783 | * stub-objc.c (objc_non_volatilized_type): New stub. | |
1784 | ||
f15f2e56 | 1785 | 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> |
1786 | ||
69b07042 | 1787 | Merge from 'apple/trunk' branch on FSF servers. |
f15f2e56 | 1788 | |
1789 | 2006-03-27 Fariborz Jahanian <fjahanian@apple.com> | |
1790 | ||
19931eea | 1791 | Radar 4133425 |
f15f2e56 | 1792 | * c-common.h (objc_diagnose_private_ivar): New decl. |
ef97a312 | 1793 | * stub-objc.c (objc_diagnose_private_ivar): New stub. |
f15f2e56 | 1794 | |
4a8875ed | 1795 | 2010-10-17 Iain Sandoe <iains@gcc.gnu.org> |
1796 | ||
1797 | * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE. | |
1798 | * c-common.h (enum rid): Add RID_AT_PACKAGE. | |
1799 | (objc_ivar_visibility_kind): New enum. | |
1800 | (objc_set_visibility): Adjust prototype to use visibility enum. | |
ef97a312 | 1801 | * stub-objc.c (objc_set_visibility): Adjust stub to use |
4a8875ed | 1802 | visibility enum. |
1803 | ||
7e0713b1 | 1804 | 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com> |
1805 | ||
1806 | * c-cppbuiltin.c (builtin_define_float_constants): Emit | |
1807 | __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine | |
1808 | has the appropriate fma builtins. | |
1809 | (c_cpp_builtins): Adjust call to builtin_define_float_constants. | |
1810 | ||
86c110ac | 1811 | 2010-10-14 Iain Sandoe <iains@gcc.gnu.org> |
1812 | ||
7e0713b1 | 1813 | merge from FSF apple 'trunk' branch. |
86c110ac | 1814 | 2006 Fariborz Jahanian <fjahanian@apple.com> |
7e0713b1 | 1815 | |
86c110ac | 1816 | Radars 4436866, 4505126, 4506903, 4517826 |
1817 | * c-common.c (c_common_resword): Define @property and its attributes. | |
1818 | * c-common.h: Define property attribute enum entries. | |
1819 | (OBJC_IS_PATTR_KEYWORD): New. | |
1820 | (objc_property_attribute_kind): New enum. | |
1821 | Declare objc_set_property_attr (), objc_add_property_variable (), | |
1822 | objc_build_getter_call () and objc_build_setter_call (). | |
1823 | * stub-objc.c (objc_set_property_attr): New stub. | |
1824 | (objc_add_property_variable): Likewise. | |
1825 | (objc_build_getter_call): Likewise. | |
1826 | (objc_build_setter_call) Likewise. | |
7e0713b1 | 1827 | |
40c8d1dd | 1828 | 2010-10-13 Iain Sandoe <iains@gcc.gnu.org> |
1829 | ||
7e0713b1 | 1830 | merge from FSF apple 'trunk' branch. |
40c8d1dd | 1831 | 2006-04-26 Fariborz Jahanian <fjahanian@apple.com> |
1832 | ||
1833 | Radar 3803157 (method attributes) | |
1834 | * c-common.c (handle_deprecated_attribute): Recognize | |
1835 | objc methods as valid declarations. | |
1836 | * c-common.h: Declare objc_method_decl (). | |
7e0713b1 | 1837 | * stub-objc.c (objc_method_decl): New stub. |
40c8d1dd | 1838 | |
f3f006ad | 1839 | 2010-10-08 Joseph Myers <joseph@codesourcery.com> |
1840 | ||
1841 | * c-common.c (parse_optimize_options): Call | |
1842 | decode_cmdline_options_to_array_default_mask before | |
1843 | decode_options. Update arguments to decode_options. | |
1844 | * c-common.h (c_common_init_options_struct): Declare. | |
1845 | * c-opts.c (c_common_init_options_struct): New. Split out from | |
1846 | c_common_init_options. | |
1847 | ||
0a65c3bb | 1848 | 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com> |
1849 | ||
1850 | Implemented fast enumeration for Objective-C. | |
1851 | * c-common.h (objc_finish_foreach_loop): New. | |
1852 | * stub-objc.c (objc_finish_foreach_loop): New. | |
1853 | ||
24ca3b4e | 1854 | 2010-10-05 Joseph Myers <joseph@codesourcery.com> |
1855 | ||
1856 | * c-common.h (struct diagnostic_context): Don't declare here. | |
1857 | (c_common_initialize_diagnostics): Declare using | |
1858 | diagnostic_context typedef. | |
1859 | * c-opts.c (c_common_handle_option): Pass global_dc to | |
1860 | handle_generated_option. | |
1861 | ||
f83b64ca | 1862 | 2010-10-04 Joseph Myers <joseph@codesourcery.com> |
1863 | ||
1864 | * c-opts.c (c_common_handle_option): Pass &global_options_set to | |
1865 | handle_generated_option. | |
1866 | ||
2fdec027 | 1867 | 2010-10-03 Ian Lance Taylor <iant@google.com> |
1868 | ||
1869 | * c.opt (-fplan9-extensions): New option. | |
1870 | ||
41acdfa4 | 1871 | 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
1872 | ||
1873 | * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision): | |
1874 | Remove. | |
1875 | (c_cpp_builtins): Call functions from cppbuiltin.c instead | |
1876 | of duplicating code. | |
1877 | ||
069761fb | 1878 | 2010-09-30 Iain Sandoe <iains@gcc.gnu.org> |
1879 | ||
1880 | * c-common.c: Add two new entries for @optional | |
1881 | and @required keywords. | |
1882 | ||
1883 | merge from FSF 'apple/trunk' branch. | |
1884 | 2006-01-30 Fariborz Jahanian <fjahanian@apple.com> | |
1885 | ||
1886 | Radar 4386773 | |
1887 | * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new | |
1888 | objective-c keywords. | |
1889 | (objc_set_method_opt): New declaration. | |
1890 | * stub-objc.c (objc_set_method_opt): New stub. | |
19931eea | 1891 | |
2c5d2e39 | 1892 | 2010-09-30 Joseph Myers <joseph@codesourcery.com> |
1893 | ||
1894 | * c-common.c (handle_optimize_attribute): Pass &global_options to | |
1895 | cl_optimization_save and cl_optimization_restore. | |
1896 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
1897 | handle_generated_option. | |
1898 | * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var. | |
1899 | (handle_pragma_pop_options, handle_pragma_reset_options): Pass | |
1900 | &global_options to cl_optimization_restore. | |
1901 | ||
e5c75ac3 | 1902 | 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com> |
1903 | ||
1904 | * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME | |
1905 | Objective-C/Objective-C++ keywords. | |
1906 | ||
3511333e | 1907 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
e147d6aa | 1908 | |
19931eea | 1909 | Merge from 'apple/trunk' branch on FSF servers. |
1910 | ||
e147d6aa | 1911 | 2005-10-04 Fariborz Jahanian <fjahanian@apple.com> |
1912 | ||
1913 | Radar 4281748 | |
1914 | * c-common.h (objc_check_global_decl): New declaration. | |
1915 | * stub-objc.c (objc_check_global_decl): New stub. | |
1916 | ||
5461e683 | 1917 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
1918 | ||
1919 | * c.opt: Don't use VarExists. | |
1920 | ||
5ae82d58 | 1921 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
1922 | ||
1923 | * c-common.c (c_cpp_error): Update names of diagnostic_context | |
1924 | members. | |
1925 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of | |
1926 | cl_optimization members. | |
1927 | * c-opts.c (warning_as_error_callback, c_common_handle_option, | |
1928 | sanitize_cpp_opts, finish_options): Update names of cpp_options | |
1929 | members. | |
1930 | ||
b27e241e | 1931 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
1932 | ||
1933 | * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments. | |
1934 | (objc_is_reserved_word): Removed. | |
1935 | * c-common.c: Updated comments. | |
1936 | * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of | |
1937 | objc_is_reserved_word. | |
1938 | * stub-objc.c (objc_is_reserved_word): Removed. | |
1939 | ||
03fc2271 | 1940 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
1941 | ||
19931eea | 1942 | * c-common.h (objc_add_method_declaration): Adjust prototype to |
03fc2271 | 1943 | include attributes. |
1944 | (objc_start_method_definition): Likewise. | |
1945 | (objc_build_keyword_decl): Likewise. | |
1946 | * stub-objc.c:(objc_add_method_declaration): Handle attributes. | |
1947 | (objc_start_method_definition): Likewise. | |
1948 | (objc_build_keyword_decl): Likewise. | |
1949 | ||
a336eb4b | 1950 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
1951 | ||
1952 | * c-common.h (objc_start_class_interface): Adjust prototype. | |
1953 | (objc_start_category_interface): Likewise. | |
1954 | (objc_start_protocol): Likewise. | |
1955 | * stub-objc.c (objc_start_protocol): Adjust for extra argument. | |
1956 | (objc_start_class_interface): Likewise. | |
1957 | (objc_start_category_interface): Likewise. | |
1958 | ||
48b14f50 | 1959 | 2010-09-27 Ian Lance Taylor <iant@google.com> |
1960 | ||
1961 | * c-common.c (c_common_attribute_table): Add no_split_stack. | |
1962 | (handle_no_split_stack_attribute): New static function. | |
1963 | ||
4abfc532 | 1964 | 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com> |
1965 | ||
19931eea | 1966 | Merge from 'apple/trunk' branch on FSF servers. |
4abfc532 | 1967 | |
1968 | 2005-12-15 Fariborz Jahanian <fjahanian@apple.com> | |
1969 | ||
19931eea | 1970 | Radar 4229905 |
4abfc532 | 1971 | * c-common.h (objc_have_common_type): New declaration. |
1972 | * stub-objc.c (objc_have_common_type): New stub. | |
1973 | ||
1974 | 2005-06-22 Ziemowit Laski <zlaski@apple.com> | |
1975 | ||
1976 | Radar 4154928 | |
1977 | * c-common.h (objc_common_type): New prototype. | |
19931eea | 1978 | * stub-objc.c (objc_common_type): New stub. |
4abfc532 | 1979 | |
7bd95dfd | 1980 | 2010-09-24 Jan Hubicka <jh@suse.cz> |
1981 | ||
1982 | * c-common.c (handle_leaf_attribute): New function. | |
1983 | (struct attribute_spec c_common_att): Add leaf. | |
1984 | ||
5789e05b | 1985 | 2010-09-22 Joseph Myers <joseph@codesourcery.com> |
1986 | ||
1987 | * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments, | |
1988 | -comments-in-macros, -define-macro, -define-macro=, -dependencies, | |
1989 | -dump, -dump=, -imacros, -imacros=, -include, -include=, | |
1990 | -include-barrier, -include-directory, -include-directory=, | |
1991 | -include-directory-after, -include-directory-after=, | |
1992 | -include-prefix, -include-prefix=, -include-with-prefix, | |
1993 | -include-with-prefix=, -include-with-prefix-after, | |
1994 | -include-with-prefix-after=, -include-with-prefix-before, | |
1995 | -include-with-prefix-before=, -no-integrated-cpp, | |
1996 | -no-line-commands, -no-standard-includes, -no-warnings, -output, | |
1997 | -output=, -pedantic, -pedantic-errors, -preprocess, | |
1998 | -print-missing-file-dependencies, -trace-includes, -traditional, | |
1999 | -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=, | |
2000 | -user-dependencies, -verbose, -write-dependencies, | |
2001 | -write-user-dependencies, no-integrated-cpp, traditional): New. | |
2002 | ||
e6fb54ba | 2003 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> |
2004 | ||
2005 | PR objc/23710 | |
9b60f3b0 | 2006 | * c-common.h (objc_start_method_definition): Return bool instead |
2007 | of void. | |
2008 | * stub-objc.c (objc_start_method_definition): Return bool instead | |
2009 | of void. | |
2010 | ||
2011 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> | |
2012 | ||
2013 | PR objc/25965 | |
2014 | * c-common.h (objc_get_interface_ivars): New declaration. | |
2015 | * stub-objc.c (objc_get_interface_ivars): New stub. | |
e6fb54ba | 2016 | |
e44b0a1f | 2017 | 2010-09-15 Ian Lance Taylor <iant@google.com> |
2018 | ||
2019 | * c-common.c (parse_optimize_options): Do not capitalize warning | |
ebd7c4c1 | 2020 | messages. Remove period at end of warning message. |
e44b0a1f | 2021 | |
85c0a25c | 2022 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
2023 | ||
2024 | * c-common.c (handle_alias_ifunc_attribute): New, broken out of ... | |
2025 | (handle_alias_attribute): ... here. | |
2026 | (handle_ifunc_attribute): New. | |
2027 | ||
5ba33bf4 | 2028 | 2010-09-06 Mark Mitchell <mark@codesourcery.com> |
2029 | ||
2030 | * c-common.h (do_warn_double_promotion): Declare. | |
2031 | * c-common.c (do_warn_double_promotion): Define. | |
2032 | ||
c920faa3 | 2033 | 2010-09-05 Mark Mitchell <mark@codesourcery.com> |
2034 | ||
2035 | * c.opt (Wdouble-promotion): New. | |
2036 | ||
9604e070 | 2037 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
2038 | ||
2039 | * c.opt (falt-external-templates, fhuge-objects, fvtable-gc, | |
2040 | fvtable-thunks, fxref): Mark no longer supported in help text. | |
2041 | ||
3b0273a1 | 2042 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
2043 | ||
2044 | * c.opt (Wimport, fall-virtual, falt-external-templates, | |
2045 | fdefault-inline, fenum-int-equiv, fexternal-templates, | |
2046 | fguiding-decls, fhonor-std, fhuge-objects, flabels-ok, | |
2047 | fname-mangling-version-, fnew-abi, fnonnull-objects, | |
2048 | foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable, | |
2049 | fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as | |
2050 | applicable. | |
2051 | (fhandle-exceptions): Mark with Alias and Warn. | |
2052 | * c-opts.c (c_common_handle_option): Don't handle options marked | |
2053 | as ignored. | |
2054 | ||
67089c6b | 2055 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
2056 | ||
2057 | * c.opt (Wcomments, Werror-implicit-function-declaration, | |
2058 | ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x, | |
2059 | std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as | |
2060 | aliases. | |
2061 | * c-common.c (option_codes): Use OPT_Wcomment instead of | |
2062 | OPT_Wcomments. | |
2063 | * c-opts.c (warning_as_error_callback, c_common_handle_option): | |
2064 | Don't handle options marked as aliases. | |
2065 | ||
2af087f2 | 2066 | 2010-08-25 Richard Guenther <rguenther@suse.de> |
2067 | ||
2068 | * c-common.c (c_common_get_alias_set): Remove special | |
2069 | handling for pointers. | |
2070 | ||
48148244 | 2071 | 2010-08-20 Nathan Froyd <froydnj@codesourcery.com> |
2072 | ||
2073 | * c-common.c: Use FOR_EACH_VEC_ELT. | |
2074 | * c-gimplify.c: Likewise. | |
2075 | * c-pragma.c: Likewise. | |
2076 | ||
89c69892 | 2077 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
2078 | ||
2079 | * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of | |
2080 | RejectDriver. | |
2081 | (MMDX): Change back to MMD. Mark NoDriverArg instead of | |
2082 | RejectDriver. | |
2083 | * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD | |
2084 | instead of OPT_MDX and OPT_MMDX. | |
2085 | ||
e28aa114 | 2086 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
2087 | ||
2088 | * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver. | |
2089 | ||
99b66d21 | 2090 | 2010-08-12 Joseph Myers <joseph@codesourcery.com> |
2091 | ||
2092 | * c.opt (MD, MMD): Change to MDX and MMDX. | |
2093 | * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX. | |
2094 | ||
666f4bf0 | 2095 | 2010-08-11 Joseph Myers <joseph@codesourcery.com> |
2096 | ||
2097 | * c-opts.c (c_common_handle_option): Call handle_generated_option | |
2098 | instead of handle_option. | |
2099 | ||
5ec815f6 | 2100 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
2101 | ||
2102 | * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push. | |
2103 | (maybe_apply_renaming_pragma): Delete unneeded declarations. | |
2104 | ||
d13143cf | 2105 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
2106 | ||
2107 | * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it. | |
2108 | (pending_redefine_extname): Change type to a VEC. | |
2109 | (add_to_renaming_pragma_list): Update for new type of | |
2110 | pending_redefine_extname. | |
5ec815f6 | 2111 | (maybe_apply_renaming_pragma): Likewise. |
d13143cf | 2112 | |
2008c983 | 2113 | 2010-08-04 Arnaud Charlet <charlet@adacore.com> |
2114 | ||
2115 | * c-ada-spec.c (dump_ada_template): Mark underlying instance type as | |
2116 | visited. | |
2117 | (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to | |
2118 | decide whether a type has already been declared/seen. | |
2119 | Do not go to the original type. | |
2120 | (dump_nested_types): New parameter forward. | |
2121 | Generate forward declaration if needed and mark type as visited. | |
2122 | (print_ada_declaration): Call dump_nested_types if not already done. | |
2123 | Mark types as visited. | |
2124 | ||
9b091a73 | 2125 | 2010-08-03 Joseph Myers <joseph@codesourcery.com> |
2126 | ||
2127 | * c.opt (-print-pch-checksum): Remove option. | |
2128 | * c-opts.c (c_common_handle_option): Don't handle | |
2129 | OPT_print_pch_checksum. | |
2130 | ||
b78351e5 | 2131 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
2132 | ||
2133 | * c-common.h (c_common_handle_option): Update prototype and return | |
2134 | value type. | |
2135 | * c-opts.c (c_common_handle_option): Update prototype and return | |
2136 | value type. Update calls to handle_option and | |
2137 | enable_warning_as_error. | |
2138 | ||
34416a90 | 2139 | 2010-07-27 Jakub Jelinek <jakub@redhat.com> |
2140 | ||
2141 | PR c/45079 | |
2142 | * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR. | |
2143 | ||
fecf9011 | 2144 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
2145 | ||
2146 | * c-common.h (c_common_missing_argument): Remove. | |
2147 | * c-opts.c (c_common_missing_argument): Remove. | |
2148 | * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=, | |
2149 | idirafter, imacros, include, isysroot, isystem, iquote): Add | |
2150 | MissingArgError. | |
2151 | * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. | |
2152 | ||
e88d34f6 | 2153 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
2154 | ||
2155 | * c-common.h (c_common_option_lang_mask, | |
2156 | c_common_initialize_diagnostics, c_common_complain_wrong_lang_p): | |
2157 | New. | |
2158 | (c_common_init_options): Update prototype. | |
2159 | * c-opts.c (c_common_option_lang_mask): New. | |
2160 | (c_common_initialize_diagnostics): Split out of | |
2161 | c_common_init_options. | |
2162 | (accept_all_c_family_options, c_common_complain_wrong_lang_p): | |
2163 | New. | |
2164 | (c_common_init_options): Update prototype. Use decoded options in | |
2165 | search for -lang-asm. | |
2166 | ||
1767a056 | 2167 | 2010-07-15 Nathan Froyd <froydnj@codesourcery.com> |
2168 | ||
2169 | * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN. | |
2170 | * c-format.c: Likewise. | |
2171 | ||
0b205f4c | 2172 | 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2173 | ||
2174 | * c-common.h: Include diagnostic-core.h. Error if already | |
2175 | included. | |
2176 | * c-semantics.c: Do not define GCC_DIAG_STYLE here. | |
2177 | ||
1c58e3f1 | 2178 | 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2179 | ||
2180 | * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef. | |
2181 | Do not include expr.h | |
2182 | (vector_mode_valid_p): Move here. | |
2183 | ||
33cc157c | 2184 | 2010-06-21 DJ Delorie <dj@redhat.com> |
2185 | ||
2186 | * c-pragma.c (handle_pragma_diagnostic): Add push/pop, | |
2187 | allow these pragmas anywhere. | |
2188 | ||
2189 | 2010-06-14 Jakub Jelinek <jakub@redhat.com> | |
2190 | ||
2191 | PR bootstrap/44509 | |
2192 | * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h. | |
2193 | (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers. | |
2194 | (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use | |
2195 | ggc_strdup instead of xstrdup. | |
2196 | ||
2197 | 2010-06-10 Jakub Jelinek <jakub@redhat.com> | |
2198 | ||
2199 | * c-cppbuiltin.c: Include cpp-id-data.h. | |
2200 | (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables. | |
2201 | (lazy_hex_fp_value): New function. | |
2202 | (builtin_define_with_hex_fp_value): Provide definitions lazily. | |
2203 | ||
9b40bfbf | 2204 | 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2205 | ||
2206 | * c-gimplify.c: Do not include tree-flow.h | |
2207 | ||
202d6e5f | 2208 | 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com> |
2209 | ||
2210 | PR other/44034 | |
2211 | * c-common.c: Rename targetm member: | |
2212 | targetm.enum_va_list -> targetm.enum_va_list_p | |
2213 | ||
d3237426 | 2214 | 2010-06-28 Anatoly Sokolov <aesok@post.ru> |
2215 | ||
2216 | * c-common.c (shorten_compare): Adjust call to force_fit_type_double. | |
2217 | ||
596981c8 | 2218 | 2010-06-28 Steven Bosscher <steven@gcc.gnu.org> |
2219 | ||
2220 | * c-cppbuiltin.c: Do not include except.h. | |
2221 | ||
b9bdfa0b | 2222 | 2010-06-24 Andi Kleen <ak@linux.intel.com> |
2223 | ||
19931eea | 2224 | * c-common.c (warn_for_omitted_condop): New. |
2225 | * c-common.h (warn_for_omitted_condop): Add prototype. | |
b9bdfa0b | 2226 | |
55ad092d | 2227 | 2010-06-21 Joseph Myers <joseph@codesourcery.com> |
2228 | ||
2229 | * c.opt (lang-objc): Remove. | |
2230 | * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc. | |
2231 | ||
9e7c2572 | 2232 | 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com> |
2233 | ||
2234 | * c-opts.c: Include "tm_p.h". | |
2235 | ||
615ef0bb | 2236 | 2010-06-20 Joseph Myers <joseph@codesourcery.com> |
2237 | ||
2238 | * c-common.c (parse_optimize_options): Update call to | |
2239 | decode_options. | |
2240 | ||
aef48c9a | 2241 | 2010-06-18 Nathan Froyd <froydnj@codesourcery.com> |
2242 | ||
2243 | * c-common.c (record_types_used_by_current_var_decl): Adjust for | |
2244 | new type of types_used_by_cur_var_decl. | |
2245 | ||
d74003b4 | 2246 | 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com> |
2247 | ||
2248 | PR bootstrap/44512 | |
2249 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast | |
2250 | for C++ standard compliance. | |
2251 | ||
1194d077 | 2252 | 2010-06-16 Jason Merrill <jason@redhat.com> |
2253 | ||
2254 | * c.opt: Add -Wnoexcept. | |
2255 | ||
d473d901 | 2256 | 2010-06-16 Richard Guenther <rguenther@suse.de> |
2257 | ||
2258 | PR c/44555 | |
2259 | * c-common.c (c_common_truthvalue_conversion): Remove | |
2260 | premature and wrong optimization concering ADDR_EXPRs. | |
2261 | ||
b62dbfd3 | 2262 | 2010-06-15 Arnaud Charlet <charlet@adacore.com> |
2263 | ||
2264 | * c-ada-spec.c (dump_sloc): Remove column info. | |
2265 | (is_simple_enum): New function. | |
2266 | (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada | |
2267 | enum types when relevant. | |
2268 | ||
200dd99c | 2269 | 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2270 | ||
19931eea | 2271 | * c-common.c (conversion_warning): Warn at expression |
200dd99c | 2272 | location. |
2273 | ||
abf6a617 | 2274 | 2010-06-10 Joseph Myers <joseph@codesourcery.com> |
2275 | ||
2276 | * c-opts.c (c_common_handle_option): Don't handle | |
2277 | OPT_fshow_column. | |
2278 | ||
ba72912a | 2279 | 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
2280 | ||
2281 | * c-pragma.c (push_alignment): Use typed GC allocation. | |
2282 | (handle_pragma_push_options): Likewise. | |
2283 | ||
2284 | * c-common.c (parse_optimize_options): Likewise. | |
2285 | ||
2286 | * c-common.h (struct sorted_fields_type): Add variable_size GTY | |
2287 | option. | |
2288 | ||
4aafe913 | 2289 | 2010-06-07 Joseph Myers <joseph@codesourcery.com> |
2290 | ||
2291 | * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin, | |
2292 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
2293 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
2294 | flag_signed_bitfields, warn_strict_null_sentinel, | |
2295 | flag_nil_receivers, flag_zero_link, flag_replace_objc_classes, | |
2296 | flag_gen_declaration, flag_no_gnu_keywords, | |
2297 | flag_implement_inlines, flag_implicit_templates, | |
2298 | flag_implicit_inline_templates, flag_optional_diags, | |
2299 | flag_elide_constructors, flag_default_inline, flag_rtti, | |
2300 | flag_conserve_space, flag_access_control, flag_check_new, | |
2301 | flag_new_for_scope, flag_weak, flag_working_directory, | |
2302 | flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr, | |
2303 | flag_enforce_eh_specs, flag_threadsafe_statics, | |
2304 | flag_pretty_templates): Remove. | |
2305 | * c-common.h (flag_preprocess_only, flag_nil_receivers, | |
2306 | flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link, | |
2307 | flag_replace_objc_classes, flag_undef, flag_no_builtin, | |
2308 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
2309 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
2310 | flag_const_strings, flag_signed_bitfields, flag_gen_declaration, | |
2311 | flag_no_gnu_keywords, flag_implement_inlines, | |
2312 | flag_implicit_templates, flag_implicit_inline_templates, | |
2313 | flag_optional_diags, flag_elide_constructors, flag_default_inline, | |
2314 | flag_rtti, flag_conserve_space, flag_access_control, | |
2315 | flag_check_new, flag_new_for_scope, flag_weak, | |
2316 | flag_working_directory, flag_use_cxa_atexit, | |
2317 | flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs, | |
2318 | flag_threadsafe_statics, flag_pretty_templates, | |
2319 | warn_strict_null_sentinel): Remove. | |
2320 | * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm, | |
2321 | fbuiltin, fcheck-new, fconserve-space, felide-constructors, | |
2322 | fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines, | |
2323 | fimplicit-inline-templates, fimplicit-templates, | |
2324 | flax-vector-conversions, fms-extensions, fnil-receivers, | |
2325 | fnonansi-builtins, fpretty-templates, freplace-objc-classes, | |
2326 | frtti, fshort-double, fshort-enums, fshort-wchar, | |
2327 | fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics, | |
2328 | funsigned-bitfields, funsigned-char, fuse-cxa-atexit, | |
2329 | fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link, | |
2330 | gen-decls, undef): Use Var. | |
2331 | (fdefault-inline, foptional-diags): Document as doing nothing. | |
2332 | * c-opts.c (c_common_handle_option): Remove cases for options now | |
2333 | using Var. Mark ignored options as such. | |
2334 | ||
7bedc3a0 | 2335 | 2010-06-05 Steven Bosscher <steven@gcc.gnu.org> |
2336 | ||
19931eea | 2337 | * c-common.c: Moved to here from parent directory. |
7bedc3a0 | 2338 | * c-common.def: Likewise. |
2339 | * c-common.h: Likewise. | |
2340 | * c-cppbuiltin.c: Likewise. | |
2341 | * c-dump.c: Likewise. | |
2342 | * c-format.c: Likewise. | |
2343 | * c-format.h : Likewise. | |
2344 | * c-gimplify.c: Likewise. | |
2345 | * c-lex.c: Likewise. | |
2346 | * c-omp.c: Likewise. | |
2347 | * c.opt: Likewise. | |
2348 | * c-opts.c: Likewise. | |
2349 | * c-pch.c: Likewise. | |
2350 | * c-ppoutput.c: Likewise. | |
2351 | * c-pragma.c: Likewise. | |
2352 | * c-pragma.h: Likewise. | |
2353 | * c-pretty-print.c: Likewise. | |
2354 | * c-pretty-print.h: Likewise. | |
2355 | * c-semantics.c: Likewise. | |
2356 | * stub-objc.c: Likewise. | |
2357 | ||
2358 | * c-common.c: Include gt-c-family-c-common.h. | |
2359 | * c-pragma.c: Include gt-c-family-c-pragma.h. | |
2360 | \f | |
711789cc | 2361 | Copyright (C) 2010-2013 Free Software Foundation, Inc. |
7bedc3a0 | 2362 | |
2363 | Copying and distribution of this file, with or without modification, | |
2364 | are permitted in any medium without royalty provided the copyright | |
2365 | notice and this notice are preserved. |