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