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