]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c/ChangeLog
re PR go/61620 (FAIL: go.test/test/fixedbugs/bug242.go execution, -O2 -g)
[thirdparty/gcc.git] / gcc / c / ChangeLog
CommitLineData
52ec0ea3
MP
12014-07-01 Marek Polacek <polacek@redhat.com>
2
3 * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
4 instead of 0 to WARN_FOR_ASSIGNMENT.
5
d5c3d343
MP
62014-07-01 Marek Polacek <polacek@redhat.com>
7
8 PR c/58286
9 * c-typeck.c (convert_for_assignment): Pass
10 OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
11
6a7253a4
MP
122014-06-30 Marek Polacek <polacek@redhat.com>
13
14 * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
15 has no_sanitize_undefined attribute.
16
5e88a8f4
IZ
172014-06-30 Igor Zamyatin <igor.zamyatin@intel.com>
18
19 PR middle-end/57541
20 * c-array-notation.c (fix_builtin_array_notation_fn):
21 Check for 0 arguments in builtin call. Check that bultin argument is
22 correct.
23 * c-parser.c (c_parser_array_notation): Check for incorrect initial
24 index.
25
9698b078
SH
262014-06-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
27
28 * c-parser.c (c_parser_declaration_or_fndef): Discard all type
29 qualifiers in __auto_type for atomic types.
30 (c_parser_typeof_specifier): Discard all type qualifiers in
31 __typeof__ for atomic types.
32
6e07c515
MP
332014-06-25 Marek Polacek <polacek@redhat.com>
34
35 PR c/61162
36 * c-parser.c (c_parser_statement_after_labels): Pass the location of
37 the return expression to c_finish_return.
38
da6f124d
JJ
392014-06-25 Jakub Jelinek <jakub@redhat.com>
40
41 * c-typeck.c (c_finish_omp_clauses): Make sure
42 OMP_CLAUSE_LINEAR_STEP has correct type.
43
c203e8a7
TS
442014-06-24 Trevor Saunders <tsaunders@mozilla.com>
45
46 * c-decl.c: Adjust.
47
56ad0e38
JJ
482014-06-24 Jakub Jelinek <jakub@redhat.com>
49
50 * c-parser.c (c_parser_omp_for_loop): For
51 #pragma omp parallel for simd move lastprivate clause from parallel
52 to for rather than simd.
53
47c2554f
MP
542014-06-23 Marek Polacek <polacek@redhat.com>
55
56 * c-typeck.c (parser_build_binary_op): Don't call
57 warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
58
56363ffd
JH
592014-06-15 Jan Hubicka <hubicka@ucw.cz>
60
61 * c-parser.c (c_parser_omp_threadprivate): Likewise.
62 * c-decl.c (merge_decls): Likewise.
63
d7ff7ae5
MP
642014-06-09 Marek Polacek <polacek@redhat.com>
65
66 PR c/36446
67 * c-typeck.c (error_init): Call inform instead of error_at.
68 (pedwarn_init): Call inform instead of pedwarn.
69 (warning_init): Call inform instead of warning_at.
70
24d047a3
JH
712014-06-07 Jan Hubicka <hubicka@ucw.cz>
72
73 * c-decl.c (merge_decls): Use set_decl_section_name.
74 (duplicate_decls): Remove node if it exists.
75
9bac5cbb
G
762014-06-05 S. Gilles <sgilles@terpmail.umd.edu>
77
78 PR c/53119
79 * c-typeck.c (push_init_level, process_init_element,
80 pop_init_level): Correct check for zero initialization, move
81 missing brace warning to respect zero initialization.
82
8ffcdea8
MP
832014-06-05 Marek Polacek <polacek@redhat.com>
84
85 PR c/56724
86 * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
87
742938c9
MP
882014-06-05 Marek Polacek <polacek@redhat.com>
89
90 PR c/49706
91 * c-typeck.c (parser_build_binary_op): Warn when logical not is used
92 on the left hand side operand of a comparison.
93
6447c55d
MP
942014-06-05 Marek Polacek <polacek@redhat.com>
95
96 PR c/48062
97 * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
98 Print note only if the warning was printed.
99
9dc7743c
IZ
1002014-06-04 Igor Zamyatin <igor.zamyatin@intel.com>
101
102 PR c/58942
103 * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
104 with a pointer.
105
fedfecef
MP
1062014-06-03 Marek Polacek <polacek@redhat.com>
107
108 PR c/60439
109 * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
110 c_start_case.
111 * c-tree.h (c_start_case): Update.
112 * c-typeck.c (c_start_case): Add new boolean parameter. Warn if
113 switch condition has boolean value.
114
9b2b7279
AM
1152014-06-02 Andrew MacLeod <amacleod@redhat.com>
116
117 * c-decl.c: Include builtins.h.
118 * c-parser.c: Likewise.
119
5c1bc275
MP
1202014-05-27 Marek Polacek <polacek@redhat.com>
121
122 PR c/56724
123 * c-typeck.c (convert_arguments): Get location of a parameter. Change
124 error and warning calls to error_at and warning_at. Pass location of
125 a parameter to it. Call warning_at with OPT_Wtraditional_conversion.
126 (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
127 WARN_FOR_QUALIFIERS. Pass expr_loc to those.
128
97563bc8
IZ
1292014-05-26 Igor Zamyatin <igor.zamyatin@intel.com>
130
131 PR c/61191
132 * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
133 function parameters.
134
aede2c10
JH
1352014-05-23 Jan Hubicka <hubicka@ucw.cz>
136
137 * c-decl.c (merge_decls): Preserve symtab node pointers.
138 (duplicate_decls): Free new decl.
139
edbba2ce
TS
1402014-05-23 Thomas Schwinge <thomas@codesourcery.com>
141
f3316c6d
TS
142 * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
143 initialization.
144
edbba2ce
TS
145 * c-parser.c (c_parser_omp_target): Return bool values.
146
68c81f24
TS
1472014-05-22 Thomas Schwinge <thomas@codesourcery.com>
148
149 * c-parser.c (c_parser_omp_clause_thread_limit): Rename
150 num_teams_loc variable to num_thread_limit_loc.
151
632f2871
RS
1522014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
153
154 * c-array-notation.c (expand_array_notations): Use void_node
155 instead of void_zero_node.
156
766090c2
TS
1572014-05-17 Trevor Saunders <tsaunders@mozilla.com>
158
159 * c-decl.c (finish_struct): Adjust.
160 (finish_enum): Likewise.
161 (bind): Adjust.
162 (record_inline_static): Likewise.
163 (push_scope): Likewise.
164 (make_label): Likewise.
165 (lookup_label_for_goto): Likewise.
166 (finish_struct): Likewise.
167 (finish_enum): Likewise.
168 (store_parm_decls): Likewise.
169 (c_push_function_context): Likewise.
170 * c-lang.h: Remove usage of variable_size gty attribute.
171 * c-parser.c (c_parse_init): Adjust.
172 (c_parse_file): Likewise.
173
2b107f6b
MP
1742014-05-13 Marek Polacek <polacek@redhat.com>
175
176 PR c/61162
177 * c-typeck.c (convert_for_assignment): Pass location to
178 WARN_FOR_ASSIGNMENT instead of input_location.
179
d033409e
MP
1802014-05-10 Marek Polacek <polacek@redhat.com>
181
182 * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
183 maybe_warn_string_init.
184 (c_parser_postfix_expression_after_paren_type): Pass type_loc to
185 maybe_warn_string_init.
186 * c-tree.h (maybe_warn_string_init): Update declaration.
187 * c-typeck.c (maybe_warn_string_init): Add location parameter.
188 Call pedwarn_init with loc instead of with input_location.
189 (digest_init): Pass init_loc to maybe_warn_string_init.
190 (pop_init_level): Call pedwarn_init with loc instead of with
191 input_location.
192 (set_init_index): Likewise.
193 (process_init_element): Likewise.
194
ea58ef42
MP
1952014-05-09 Marek Polacek <polacek@redhat.com>
196
197 PR c/61096
198 * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
199 (c_parser_initelt): Pass location to set_init_label. Pass array index
200 location to set_init_index.
201 * c-tree.h (push_init_level): Update declaration.
202 (pop_init_level): Likewise.
203 (set_init_index): Likewise.
204 (set_init_label): Likewise.
205 * c-typeck.c (error_init): Add location parameter. Call error_at
206 instead of error.
207 (digest_init): Pass init_loc to error_init.
208 (really_start_incremental_init):
209 (push_init_level): Add location parameter. Pass loc to pop_init_level
210 and error_init.
211 (pop_init_level): Likewise.
212 (set_designator): Add location parameter. Pass loc to pop_init_level,
213 push_init_level, and error_init.
214 (set_init_index): Add location parameter. Pass loc to error_init and
215 set_designator.
216 (set_init_label): Likewise.
217 (output_init_element): Pass loc to error_init.
218 (process_init_element): Pass loc to error_init, pop_init_level,
219 pedwarn_init, and push_init_level.
220
661a0813
MP
2212014-05-09 Marek Polacek <polacek@redhat.com>
222
223 PR c/50459
224 * c-parser.c (c_parser_attributes): Parse the arguments as an
225 expression-list if the attribute takes identifier.
226
2793eeab
MP
2272014-05-08 Marek Polacek <polacek@redhat.com>
228
229 PR c/61053
230 * c-decl.c (grokdeclarator): Use min_align_of_type instead of
231 TYPE_ALIGN_UNIT.
232
f827930a
MP
2332014-05-08 Marek Polacek <polacek@redhat.com>
234
235 PR c/61077
236 * c-decl.c (start_function): Warn for _Atomic-qualified return type
237 of main.
238
1d60af08
KZ
2392014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
240 Mike Stump <mikestump@comcast.net>
241 Richard Sandiford <rdsandiford@googlemail.com>
242
243 * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
244 (finish_enum): Use wide-int interfaces.
245 * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
246 * c-typeck.c (build_c_cast): Likewise.
247 (set_nonincremental_init_from_string): Likewise.
248 (c_tree_equal): Likewise.
249
a0e24419
MP
2502014-05-02 Marek Polacek <polacek@redhat.com>
251
252 PR c/25801
253 * c-typeck.c (c_size_in_bytes): Update comment. Don't call error.
254 Return size_one_node when the type is not complete.
255 (pointer_diff): Remove comment.
256 (build_unary_op): Improve error messages.
257
19fc9faa
MP
2582014-05-02 Marek Polacek <polacek@redhat.com>
259
260 * c-typeck.c (c_finish_return): Separate warning_at calls.
261
63bc4e87
MP
2622014-05-02 Marek Polacek <polacek@redhat.com>
263
264 * c-tree.h (error_init): Remove declaration.
265 (pedwarn_init): Likewise.
266 * c-typeck.c (error_init): Make static and move above.
267 (pedwarn_init): Likewise.
268 (warning_init): Move above.
269 (maybe_warn_string_init): Likewise.
270
4bd2511b
JL
2712014-05-01 Jeff Law <law@redhat.com>
272
273 Revert:
274
275 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
276 * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
277 avoid goto.
278
6a358dcb
MP
2792014-05-02 Marek Polacek <polacek@redhat.com>
280
281 PR c/60784
282 * c-typeck.c (push_init_level): Set constructor_designated to
283 p->designated for structures.
284
ae5ebda4
MP
2852014-05-01 Marek Polacek <polacek@redhat.com>
286
287 PR c/60915
288 * c-parser.c (c_parser_declaration_or_fndef): Give better error if
289 function-definition has an attribute after the declarator.
290
96b40f8d
MP
2912014-05-01 Marek Polacek <polacek@redhat.com>
292
293 PR c/60257
294 * c-typeck.c (warning_init): Add location_t parameter. Call
295 warning_at instead of warning.
296 (push_init_level): Pass input_location to warning_init.
297 (add_pending_init): Add location_t parameter. Pass loc to
298 warning_init.
299 (set_nonincremental_init): Pass input_location to add_pending_init.
300 (set_nonincremental_init_from_string): Likewise.
301 (output_init_element): Pass loc to warning_init and to
302 add_pending_init.
303
32e00768
MP
3042014-05-01 Marek Polacek <polacek@redhat.com>
305
306 PR c/43395
307 * c-typeck.c (c_finish_return): Distinguish between label and variable
308 when warning about returning local address.
309
c9379ce2
MP
3102014-05-01 Marek Polacek <polacek@redhat.com>
311
312 PR c/29467
313 * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
314 in C89 mode.
315
d00887e8
MP
3162014-05-01 Marek Polacek <polacek@redhat.com>
317
318 PR c/43245
319 * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
320 instead of 0 to WARN_FOR_QUALIFIERS.
321
5436fa2e
MP
3222014-05-01 Marek Polacek <polacek@redhat.com>
323
324 PR c/56989
325 * c-typeck.c (default_conversion): Use better location for
326 error call.
327
f8ed5150
MP
3282014-04-30 Marek Polacek <polacek@redhat.com>
329
330 * c-typeck.c (build_binary_op): Call ubsan_instrument_division
331 also when SANITIZE_FLOAT_DIVIDE is on.
332
8337d1db
MP
3332014-04-30 Marek Polacek <polacek@redhat.com>
334
335 PR c/60139
336 * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
337 and pedwarn_init. Use loc insted of input_location.
338
c4bdc42f
MP
3392014-04-30 Marek Polacek <polacek@redhat.com>
340
341 PR c/60351
342 * c-typeck.c (build_binary_op): Use location when warning about
343 shift count.
344
45484dcf
MP
3452014-04-25 Marek Polacek <polacek@redhat.com>
346
347 PR c/18079
348 * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
349 always_inline/noinline and hot/cold attributes.
350
34cf811f
MP
3512014-04-25 Marek Polacek <polacek@redhat.com>
352
353 PR c/60114
354 * c-parser.c (c_parser_initelt): Pass input_location to
355 process_init_element.
356 (c_parser_initval): Pass loc to process_init_element.
357 * c-tree.h (process_init_element): Adjust declaration.
358 * c-typeck.c (push_init_level): Pass input_location to
359 process_init_element.
360 (pop_init_level): Likewise.
361 (set_designator): Likewise.
362 (output_init_element): Add location_t parameter. Pass loc to
363 digest_init.
364 (output_pending_init_elements): Pass input_location to
365 output_init_element.
366 (process_init_element): Add location_t parameter. Pass loc to
367 output_init_element.
368
42056eac
JJ
3692014-04-24 Jakub Jelinek <jakub@redhat.com>
370
371 * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
372 atomic-clause, allow comma in between atomic-clause and
373 seq_cst.
374
e162a134
JJ
3752014-04-22 Jakub Jelinek <jakub@redhat.com>
376
377 PR c/59073
378 * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
379 fails, don't set OM_PARALLEL_COMBINED and return NULL.
380
2f6babac
IZ
3812014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
382
383 PR middle-end/60469
384 * c-array-notation.c (fix_builtin_array_notation_fn): Use
385 create_tmp_var instead build_decl for creating temps.
386 (build_array_notation_expr): Likewise.
387 (fix_conditional_array_notations_1): Likewise.
388 (fix_array_notation_expr): Likewise.
389 (fix_array_notation_call_expr): Likewise.
390
8edbfaa6
JJ
3912014-03-28 Jakub Jelinek <jakub@redhat.com>
392
393 PR c++/60689
394 * c-tree.h (c_build_function_call_vec): New prototype.
395 * c-typeck.c (build_function_call_vec): Don't call
396 resolve_overloaded_builtin here.
397 (c_build_function_call_vec): New wrapper function around
398 build_function_call_vec. Call resolve_overloaded_builtin here.
399 (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
400 Call c_build_function_call_vec instead of build_function_call_vec.
401 * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
402 * c-decl.c (finish_decl): Likewise.
403
7485aeea
MLI
4042014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
405
406 PR c/55383
407 * c-typeck.c: Use correct format string in cast-qual warning
408
b17a8b07
TS
4092014-03-07 Thomas Schwinge <thomas@codesourcery.com>
410
411 * c-decl.c (c_decl_attributes): Use
412 lang_hooks.types.omp_mappable_type.
413 * c-typeck.c (c_finish_omp_clauses): Likewise.
414
3af9c5e9
MP
4152014-03-06 Marek Polacek <polacek@redhat.com>
416
417 PR c/60197
418 * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
419 of checking tree code.
420
1c9f5f33
PK
4212014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
422
423 * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
424 (c_parser_parameter_declaration): Likewise.
425
cc28fc7f
MP
4262014-02-19 Marek Polacek <polacek@redhat.com>
427
428 PR c/60195
429 * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
430 Call mark_exp_read on exp.value.
431 (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set
432 TREE_ADDRESSABLE on old instead of val.
433 (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
434
b581c05c
PK
4352014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
436
437 * c-parser.c (c_parser_get_builtin_args): Replace calls to
438 C_EXPR_APPEND by vec_safe_push.
439 * c-tree.h (C_EXPR_APPEND): Remove.
440
81e5eca8
MP
4412014-01-31 Marek Polacek <polacek@redhat.com>
442
443 PR c/59963
444 * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
445 build_function_call_vec.
446 (build_function_call): Likewise.
447 (build_atomic_assign): Likewise.
448 (build_function_call_vec): Add arg_loc parameter. Use it.
449 (convert_arguments): Likewise.
450 (convert_for_assignment): Rename rhs_loc to expr_loc.
451 * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
452 (c_parser_objc_keywordexpr): Likewise.
453 (c_parser_postfix_expression_after_primary): Call
454 build_function_call_vec with expr_loc rather than op_loc.
455 Call c_parser_expr_list to fill arg_loc. Pass arg_loc to
456 build_function_call_vec.
457 (c_parser_expr_list): Add locations parameter. Fill it with locations
458 of function arguments.
459 * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
460
68fca595
MP
4612014-01-30 Marek Polacek <polacek@redhat.com>
462
463 PR c/59940
464 * c-typeck.c (build_function_call_vec): Use loc parameter.
465 (convert_arguments): Add location parameter. Use it.
466 (ep_convert_and_check): Likewise.
467 (build_atomic_assign): Adjust convert_for_assignment call.
468 (build_modify_expr): Likewise.
469 (digest_init): Likewise.
470 (c_finish_return): Likewise.
471 (build_conditional_expr): Adjust ep_convert_and_check calls.
472 (convert_for_assignment): Add rhs_loc parameter. Use it.
473 (build_binary_op): Adjust convert_and_check and ep_convert_and_check
474 calls.
475
fa337f3a
RB
4762014-01-30 Richard Biener <rguenther@suse.de>
477
478 PR c/59905
479 * c-typeck.c (build_function_call_vec): Do not replace calls
480 to a function via an incompatible type with a runtime abort.
481
b72271b9
BI
4822014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
483
484 * c-parser.c (c_parser_declaration_or_fndef): Replaced
485 flag_enable_cilkplus with flag_cilkplus.
486 (c_parser_direct_declarator_inner): Likewise.
487 (c_parser_attribute_any_word): Likewise.
488 (c_parser_attributes): Likewise.
489 (c_parser_compound_statement): Likewise.
490 (c_parser_statement_after_labels): Likewise.
491 (c_parser_if_statement): Likewise.
492 (c_parser_switch_statement): Likewise.
493 (c_parser_do_statement): Likewise.
494 (c_parser_for_statement): Likewise.
495 (c_parser_unary_expression): Likewise.
496 (c_parser_postfix_expression): Likewise.
497 (c_parser_postfix_expression_after_primary): Likewise.
498 (c_parser_postfix_expression_after_primary): Likewise.
499 (c_parser_omp_clause_name): Likewise.
500 (c_finish_omp_declare_simd): Likewise.
501 (c_parser_cilk_verify_simd): Likewise.
502 * c-typeck.c (build_array_ref): Likewise.
503 (build_function_call_vec): Likewise.
504 (convert_arguments): Likewise.
505 (build_compound_expr): Likewise.
506 (c_finish_return): Likewise.
507 (c_finish_if_stmt): Likewise.
508 (c_finish_loop): Likewise.
509 (build_binary_op): Likewise.
510
393e8e8b
MP
5112014-01-23 Marek Polacek <polacek@redhat.com>
512
513 PR c/59846
514 * c-typeck.c (parser_build_binary_op): Use location instead of
515 input_location.
516 (build_binary_op): Pass location to shorten_compare.
517
f04dda30
MP
5182014-01-23 Marek Polacek <polacek@redhat.com>
519
520 PR c/58346
521 * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
522 an empty aggregate.
523
789eadcd
MP
5242014-01-23 Marek Polacek <polacek@redhat.com>
525
526 PR c/59871
527 * c-typeck.c (build_compound_expr): Warn even for right-hand operand
528 of a comma expression.
529 (emit_side_effect_warnings): Likewise.
530
40f14e9f
BI
5312014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
532
533 PR c/59825
534 * c-array-notation.c (expand_array_notation_exprs): Rewrote this
535 function to use walk_tree and moved a lot of its functionality to
536 expand_array_notations.
537 (expand_array_notations): New function.
538
74558dd9
BI
5392014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
540
541 * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
542 attribute an attribute without value.
543
652fea39
JJ
5442014-01-23 Jakub Jelinek <jakub@redhat.com>
545
546 PR middle-end/58809
547 * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
548 BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
549
f34f1c87
MP
5502014-01-22 Marek Polacek <polacek@redhat.com>
551
552 PR c/59891
553 * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
554 of remove_c_maybe_const_expr on op1 and op2.
555
241f845a
JJ
5562014-01-15 Jakub Jelinek <jakub@redhat.com>
557
558 PR c/58943
559 * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
560 effects, preevaluate rhs using SAVE_EXPR first.
561
9a74f20c
BI
5622014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com>
563
564 PR c++/59631
565 * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
566 statements with if-elseif statements.
567
96066ce1
MP
5682014-01-06 Marek Polacek <polacek@redhat.com>
569
570 PR c/57773
571 * c-decl.c (check_bitfield_type_and_width): Warn for implementation
572 defined bit-field types only in ISO C.
573
23a5b65a
RS
5742014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
575
576 Update copyright years
577
f9030485
RS
5782014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
579
580 * c-array-notation.c: Use the standard form for the copyright notice.
581
41958c28
BI
5822013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
583
584 * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
585 (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
586 field in parser is not empty. If not-empty, call the function
587 c_parser_finish_omp_declare_simd.
588 (c_parser_cilk_clause_vectorlength): Modified function to be shared
589 between SIMD-enabled functions and #pragma simd. Added new parameter.
590 (c_parser_cilk_all_clauses): Modified the usage of the function
591 c_parser_cilk_clause_vectorlength as mentioned above.
592 (c_parser_cilk_simd_fn_vector_attrs): New function.
593 (c_finish_cilk_simd_fn_tokens): Likewise.
594 (is_cilkplus_vector_p): Likewise.
595 (c_parser_omp_clause_name): Added checking for "vectorlength,"
596 "nomask," and "mask" strings in clause name.
597 (c_parser_omp_all_clauses): Added 3 new case statements:
598 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
599 PRAGMA_CILK_CLAUSE_NOMASK.
600 (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a
601 check for vector attribute and if so call the function
602 c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled,
603 called the function c_finish_cilk_simd_fn_tokens.
604 (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
605 parser field is non-empty. If so, parse them as you would parse
606 the omp declare simd pragma.
607 (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
608 Added a check when step is a parameter and flag it as error.
609 (CILK_SIMD_FN_CLAUSE_MASK): New #define.
610 (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
611 pragma_omp_clause.
612
cef0fd0e
TS
6132013-12-17 Thomas Schwinge <thomas@codesourcery.com>
614
615 * c-parser.c (c_parser_omp_parallel): Fix description.
616
12893402
BI
6172013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
618
619 * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
620 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
621 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
622 * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
623
296674db
JM
6242013-12-04 Joseph Myers <joseph@codesourcery.com>
625
626 PR c/52023
627 * c-parser.c (c_parser_alignas_specifier): Use
628 c_sizeof_or_alignof_type instead of c_alignof.
629 (c_parser_alignof_expression): Likewise, with min_alignof
630 parameter depending on alignof spelling used.
631
edd28054
MP
6322013-12-04 Marek Polacek <polacek@redhat.com>
633
634 PR c/54113
635 * c-decl.c (start_function): Don't warn for missing prototype for
636 inline functions.
637
da0fc454
MP
6382013-12-03 Marek Polacek <polacek@redhat.com>
639
640 PR c/59351
641 * c-decl.c (build_compound_literal): Allow compound literals with
642 empty initial value.
643
4c2ecab0
JM
6442013-12-02 Joseph Myers <joseph@codesourcery.com>
645
646 PR c/58235
647 * c-typeck.c (build_modify_expr): Diagnose assignment to
648 expression with array type.
649
340baef7
JM
6502013-11-29 Joseph Myers <joseph@codesourcery.com>
651
652 PR c/42262
653 * c-typeck.c (process_init_element): Do not treat a string as
654 initializing a whole array when used with a designator for an
655 individual element.
656
6763b9f7
JM
6572013-11-29 Joseph Myers <joseph@codesourcery.com>
658
659 PR c/57574
660 * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
661 an inline function following a static declaration.
662
e7bd1de1
JJ
6632013-11-28 Jakub Jelinek <jakub@redhat.com>
664
665 PR c/59310
666 * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
667 to p_name before calling c_parser_omp_teams instead of after.
668 (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
669 argument. Remove unused p_name variable.
670
0136f8f0
AH
6712013-11-27 Aldy Hernandez <aldyh@redhat.com>
672 Jakub Jelinek <jakub@redhat.com>
673
674 * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
675 external_scope is NULL.
676
241b71bb
TV
6772013-11-27 Tom de Vries <tom@codesourcery.com>
678 Marc Glisse <marc.glisse@inria.fr>
679
680 PR c++/59032
681 * c-typeck.c (build_unary_op): Allow vector increment and decrement.
682
2fb9a547
AM
6832013-11-22 Andrew MacLeod <amacleod@redhat.com>
684
685 * c-typeck.c: Add required include files from gimple.h.
686
8400e75e
DM
6872013-11-22 David Malcolm <dmalcolm@redhat.com>
688
689 * c-decl.c (define_label, shadow_tag_warned)
690 (check_bitfield_type_and_width, grokdeclarator, grokparms,
691 store_parm_decls_newstyle, store_parm_decls_oldstyle)
692 (declspecs_add_type): Remove use of in_system_header macro.
693 * c-parser.c (c_parser_unary_expression): Likewise.
694 * c-typeck.c (store_init_value, process_init_element)
695 (c_start_case): Likewise.
696
697 * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
698 macro.
699
700 * c-parser.c (c_parser_set_source_position_from_token): Remove
701 reference to in_system_header from comment.
702
386b1f1f
RS
7032013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
704
705 * c-decl.c (grokdeclarator): Update comment to refer to
706 tree_to_[su]hwi rather than tree_low_cst.
707
ae7e9ddd
RS
7082013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
709
710 * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
711 tree_to_uhwi throughout.
712
9439e9a1
RS
7132013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
714
715 * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
716 throughout.
717
9541ffee
RS
7182013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
719
720 * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
721 throughout.
722
c02065fc
AH
7232013-11-15 Aldy Hernandez <aldyh@redhat.com>
724
725 * c-parser.c (c_parser_cilk_simd): New.
726 (c_parser_cilk_verify_simd): New.
727 (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
728 (c_parser_omp_for_loop): Add case for NE_EXPR.
729 Set c_break_label for CILK_SIMD.
730 (c_parser_cilk_clause_vectorlength): New.
731 (c_parser_cilk_clause_linear): New.
732 (c_parser_cilk_clause_name): New.
733 (c_parser_cilk_all_clauses): New.
734 * c-typeck.c (build_unary_op): Pass location argument to
735 readonly_error.
736 (build_modify_expr): Same.
737 (build_asm_expr): Same.
738 (c_finish_bc_stmt): Error on break/continue in loops.
739
18f429e2
AM
7402013-11-14 Andrew MacLeod <amacleod@redhat.com>
741
742 * c-typeck.c: Include only gimplify.h and gimple.h as needed.
743
d8a2d370
DN
7442013-11-14 Diego Novillo <dnovillo@google.com>
745
746 * c-decl.c: Include print-tree.h.
747 Include stor-layout.h.
748 Include varasm.h.
749 Include attribs.h.
750 Include stringpool.h.
751 * c-lang.c: Include fold-const.h.
752 * c-parser.c: Include stringpool.h.
753 Include attribs.h.
754 Include stor-layout.h.
755 Include varasm.h.
756 Include trans-mem.h.
757 * c-typeck.c: Include stor-layout.h.
758 Include trans-mem.h.
759 Include varasm.h.
760 Include stmt.h.
761
38b7bc7f
JM
7622013-11-13 Joseph Myers <joseph@codesourcery.com>
763
764 * c-tree.h (c_typespec_keyword): Add cts_auto_type.
765 * c-decl.c (declspecs_add_type, finish_declspecs): Handle
766 __auto_type.
767 * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
768 (c_parser_attribute_any_word, c_parser_objc_selector): Handle
769 RID_AUTO_TYPE.
770 (c_parser_declspecs): Take argument AUTO_TYPE_OK.
771 (c_parser_declaration_or_fndef, c_parser_struct_declaration)
772 (c_parser_declarator, c_parser_direct_declarator_inner)
773 (c_parser_parameter_declaration, c_parser_type_name): All callers
774 changed.
775 (c_parser_declaration_or_fndef): Handle declarations with type
776 determined from the initializer.
777
45b0be94
AM
7782013-11-12 Andrew MacLeod <amacleod@redhat.com>
779
18f429e2 780 * c-typeck.c: Include gimplify.h.
45b0be94 781
582d9b50
JM
7822013-11-12 Joseph Myers <joseph@codesourcery.com>
783
784 * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
785 * c-parser.c (c_parser_declspecs): Mention _Thread_local in
786 comment.
787 * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
788 or _Thread_local as appropriate in diagnostics.
789 (build_null_declspecs): Initialize ret->thread_gnu_p.
790 (declspecs_add_scspec): Handle either __thread or _Thread_local
791 for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if
792 pedantic. Do not disallow _Thread_local extern and _Thread_local
793 static.
794
267bac10
JM
7952013-11-07 Joseph Myers <joseph@codesourcery.com>
796 Andrew MacLeod <amacleod@redhat.com>
797
798 * c-aux-info.c (gen_type): Handle atomic qualifier.
799 * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
800 qualifiers when compating types.
801 (shadow_tag_warned): Handle atomic_p in declspecs.
802 (quals_from_declspecs): Likewise.
803 (start_decl): Use c_type_promotes_to when promoting argument
804 types.
805 (grokdeclarator): Handle _Atomic.
806 (get_parm_info): Diagnose any qualifier on "void" as only
807 parameter.
808 (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
809 comparing types. Use c_type_promotes_to when promoting argument
810 types.
811 (finish_function): Use c_type_promotes_to when promoting argument
812 types.
813 (build_null_declspecs): Handle atomic_p in declspecs.
814 (declspecs_add_qual): Handle RID_ATOMIC.
815 * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
816 (c_token_starts_declspecs): Handle RID_ATOMIC.
817 (c_parser_declspecs): Handle atomic type specifiers and
818 qualifiers.
819 (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
820 from types of expressions with atomic type.
821 (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
822 (c_parser_attribute_any_word): Handle RID_ATOMIC.
823 (c_parser_initializer, c_parser_initelt, c_parser_initval)
824 (c_parser_statement_after_labels, c_parser_switch_statement)
825 (c_parser_for_statement, c_parser_expr_no_commas)
826 (c_parser_conditional_expression, c_parser_binary_expression)
827 (c_parser_cast_expression, c_parser_unary_expression)
828 (c_parser_postfix_expression)
829 (c_parser_postfix_expression_after_primary, c_parser_expression):
830 Use convert_lvalue_to_rvalue.
831 (c_parser_expression_conv, c_parser_expr_list): Document
832 conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue.
833 (c_parser_objc_synchronized_statement): Use
834 convert_lvalue_to_rvalue.
835 (c_parser_objc_selector): Handle RID_ATOMIC.
836 (c_parser_objc_receiver, c_parser_array_notation): Use
837 convert_lvalue_to_rvalue.
838 * c-tree.h (ctsk_typeof): Adjust comment to mention use for
839 _Atomic (type-name).
840 (struct c_declspecs): Add atomic_p field.
841 (convert_lvalue_to_rvalue): Declare.
842 * c-typeck.c (c_type_promotes_to): Promote atomic types to
843 corresponding atomic types.
844 (qualify_type): Don't add _Atomic qualifiers from second argument.
845 (comp_target_types): Do not allow _Atomic mismatches.
846 (type_lists_compatible_p): Do not remove atomic qualifiers when
847 comparing types.
848 (really_atomic_lvalue, convert_lvalue_to_rvalue)
849 (build_atomic_assign): New functions.
850 (build_unary_op): Use build_atomic_assign for atomic increment and
851 decrement.
852 (build_conditional_expr): Do not treat _Atomic void as a qualified
853 version of void.
854 (build_modify_expr): Use build_atomic_assign for atomic LHS.
855 (find_anonymous_field_with_type, convert_to_anonymous_field)
856 (convert_for_assignment): Do not remove atomic qualifiers when
857 comparing types.
858 (digest_init): Do not accept initialization of arrays of atomic
859 elements by string constants.
860 (build_asm_expr): Use convert_lvalue_to_rvalue.
861 (build_binary_op): Do not treat _Atomic void as a qualified
862 version of void.
863
0c249d4b
DD
8642013-11-06 DJ Delorie <dj@redhat.com>
865
866 * c-decl.c (locate_old_decl): If a previous conflicting decl is
867 both explicit and builtin, print the location of the explicit one.
868
6d7f7e0a
TB
8692013-11-05 Tobias Burnus <burnus@net-b.de>
870
871 * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
872 c_parser_omp_distribute, c_parser_omp_teams,
873 c_parser_omp_target, c_parser_omp_declare): Handle
874 -fopenmp-simd.
875
b906f4ca
MP
8762013-11-03 Marek Polacek <polacek@redhat.com>
877
878 * c-decl.c (grokdeclarator): Add VLA instrumentation.
879
ee1d5a02
JJ
8802013-11-01 Jakub Jelinek <jakub@redhat.com>
881
882 * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
883 check_dup_generic at the end, unless remove is true.
884 (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
885 remove = true;.
886 (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
887
5a9785fb
JJ
8882013-10-31 Jakub Jelinek <jakub@redhat.com>
889
890 * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
891 with decl that is not pointer nor array.
892
939b37da
BI
8932013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
894
895 * c-decl.c (finish_function): Added a call for insert_cilk_frame when
896 a spawning function is found.
897 * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
898 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
899 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
900 * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
901 case.
902 (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
903 * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
904 expr.
905 (c_finish_return): Added a check to reject _Cilk_spawn in return
906 expression.
907 (build_cilk_spawn): New function.
908 (build_cilk_sync): Likewise.
909 * Makefile.in (c-decl.o): Added cilk.h in dependency list.
910
d4af74d4
TB
9112013-10-27 Tobias Burnus <burnus@net-b.de>
912
913 PR other/33426
914 * c-parser.c (c_parser_while_statement, c_parser_while_statement,
915 c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
916 (c_parser_statement_after_labels): Update calls.
917
d73749df 9182013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
919
920 PR other/33426
921 * c-parser.c (c_parser_pragma, c_parser_for_statement):
922 Handle PRAGMA_IVDEP.
923 (c_parser_statement_after_labels): Update call.
924
f28aa681
MP
9252013-10-24 Marek Polacek <polacek@redhat.com>
926
927 * c-parser.c (c_parser_struct_declaration): Add a comment.
928 (c_parser_declarator): Don't allow _Alignas here.
929
0645c1a2
AM
9302013-10-17 Andrew MacLeod <amacleod@redhat.com>
931
932 * c-parser.c: Include omp-low.h.
933 * c-typeck.c: Likewise.
934
568a31f2
MP
9352013-10-17 Marek Polacek <polacek@redhat.com>
936
937 PR c/58267
938 * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
939 Document syntax of the array-declarator.
940 (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
941 are not permitted.
942 (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
943 (c_parser_struct_declaration): Likewise.
944 (c_parser_declarator): Likewise.
945 (c_parser_direct_declarator_inner): Likewise.
946 (c_parser_parameter_declaration): Likewise.
947 (c_parser_type_name): Likewise.
948
acf0174b
JJ
9492013-10-11 Jakub Jelinek <jakub@redhat.com>
950
951 * c-lang.h (current_omp_declare_target_attribute): New extern
952 decl.
953 * c-parser.c: Include c-lang.h.
954 (struct c_parser): Change tokens to c_token *.
955 Add tokens_buf field. Change tokens_avail type to unsigned int.
956 (c_parser_consume_token): If parser->tokens isn't
957 &parser->tokens_buf[0], increment parser->tokens.
958 (c_parser_consume_pragma): Likewise.
959 (enum pragma_context): Add pragma_struct and pragma_param.
960 (c_parser_external_declaration): Adjust
961 c_parser_declaration_or_fndef caller.
962 (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
963 argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
964 Adjust recursive call.
965 (c_parser_struct_or_union_specifier): Use pragma_struct instead
966 of pragma_external.
967 (c_parser_parameter_declaration): Use pragma_param instead of
968 pragma_external.
969 (c_parser_compound_statement_nostart, c_parser_label,
970 c_parser_for_statement): Adjust
971 c_parser_declaration_or_fndef callers.
972 (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
973 it through to c_parser_conditional_expression.
974 (c_parser_conditional_expression): Add omp_atomic_lhs argument,
975 pass it through to c_parser_binary_expression. Adjust recursive
976 call.
977 (c_parser_binary_expression): Remove prec argument, add
978 omp_atomic_lhs argument instead. Always start from PREC_NONE, if
979 omp_atomic_lhs is non-NULL and one of the arguments of toplevel
980 binop matches it, use build2 instead of parser_build_binary_op.
981 (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
982 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
983 PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
984 Handle pragma_struct and pragma_param the same as pragma_external.
985 (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
986 (c_parser_omp_variable_list): Parse array sections for
987 OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
988 (c_parser_omp_clause_collapse): Fully fold collapse expression.
989 (c_parser_omp_clause_reduction): Handle user defined reductions.
990 (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
991 c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
992 c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
993 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
994 c_parser_omp_clause_depend, c_parser_omp_clause_map,
995 c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
996 c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
997 c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
998 (c_parser_omp_all_clauses): Add finish_p argument. Don't call
999 c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses.
1000 (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
1001 present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms.
1002 (c_parser_omp_for_loop): Add CODE argument, pass it through
1003 to c_finish_omp_for. Change last argument to cclauses,
1004 and adjust uses to grab parallel clauses from the array of all
1005 the split clauses. Adjust c_parser_binary_expression,
1006 c_parser_declaration_or_fndef and c_finish_omp_for callers.
1007 (omp_split_clauses): New function.
1008 (c_parser_omp_simd): New function.
1009 (c_parser_omp_for): Add p_name, mask and cclauses arguments.
1010 Allow the function to be called also when parsing combined constructs,
1011 and call c_parser_omp_simd when parsing for simd.
1012 (c_parser_omp_sections_scope): If section-sequence doesn't start with
1013 #pragma omp section, require exactly one structured-block instead of
1014 sequence of statements.
1015 (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
1016 Allow the function to be called also when parsing combined constructs.
1017 (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
1018 Allow the function to be called also when parsing combined
1019 constructs.
1020 (c_parser_omp_taskgroup, c_parser_omp_cancel,
1021 c_parser_omp_cancellation_point, c_parser_omp_distribute,
1022 c_parser_omp_teams, c_parser_omp_target_data,
1023 c_parser_omp_target_update, c_parser_omp_target,
1024 c_parser_omp_declare_simd, c_finish_omp_declare_simd,
1025 c_parser_omp_declare_target, c_parser_omp_end_declare_target,
1026 c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
1027 (c_parser_omp_construct): Add p_name and mask vars. Handle
1028 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
1029 PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel
1030 and c_parser_omp_sections callers.
1031 (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
1032 (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
1033 OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
1034 (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND.
1035 (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add
1036 OMP_CLAUSE_DEPEND.
1037 (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
1038 OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
1039 OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
1040 OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
1041 OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
1042 * c-typeck.c: Include tree-inline.h.
1043 (c_finish_omp_cancel, c_finish_omp_cancellation_point,
1044 handle_omp_array_sections_1, handle_omp_array_sections,
1045 c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
1046 (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
1047 user defined reductions.
1048 (c_tree_equal): New function.
1049 * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
1050 c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
1051 c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
1052 c_check_omp_declare_reduction_r): New prototypes.
1053 * c-decl.c (current_omp_declare_target_attribute): New variable.
1054 (c_decl_attributes): New function.
1055 (start_decl, start_function): Use it instead of decl_attributes.
1056 (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
1057 c_omp_reduction_decl, c_omp_reduction_lookup,
1058 c_check_omp_declare_reduction_r): New functions.
1059
0a6c2227
TT
10602013-09-25 Tom Tromey <tromey@redhat.com>
1061
1062 * Make-lang.in (c/gccspec.o): Remove.
1063 (CFLAGS-c/gccspec.o): New variable.
1064 (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
1065 (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
1066 (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
1067
f3bc55f0
TT
10682013-09-25 Tom Tromey <tromey@redhat.com>
1069
1070 * Make-lang.in (c/gccspec.o): Don't use subshell.
1071
a24d975c
MP
10722013-09-18 Marek Polacek <polacek@redhat.com>
1073
1074 PR sanitize/58443
1075 * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
1076 Remove unnecessary check.
1077
ce6923c5
MP
10782013-09-18 Marek Polacek <polacek@redhat.com>
1079
1080 PR sanitizer/58411
1081 * c-typeck.c (build_binary_op): Don't sanitize function if it has the
1082 no_sanitize_undefined attribute.
1083
a1e51df9
KT
10842013-09-13 Kai Tietz <ktietz@redhat.com>
1085
1086 PR target/57848
1087 * c-decl.c (c_builtin_function_ext_scope): Remove
1088 wrong assumption that it is never called on prexisting
1089 symbol.
1090
0af94e6f
JR
10912013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1092
1093 * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
1094
20059c8b
GDR
10952013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1096
1097 * c-objc-common.c (c_tree_printer): Tidy.
1098
de5a5fa1
MP
10992013-08-30 Marek Polacek <polacek@redhat.com>
1100
1101 * c-typeck.c (build_binary_op): Add division by zero and shift
1102 instrumentation.
1103
2531a1d9 11042013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
0fdd4508 1105 Joseph Myers <joseph@codesourcery.com>
2531a1d9 1106
6e2bcc98 1107 PR c/35649
2531a1d9
JR
1108 * c-typeck.c (c_common_type): Prefer double_type_node over
1109 other REAL_TYPE types with the same precision.
1110 (convert_arguments): Likewise.
1111
025311c4
GDR
11122013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
1113
1114 * c-objc-common.c (c_tree_printer): Document the nature of the cast.
1115 (c_initialize_diagnostics): Call a destructor for the early printer.
1116
da6ca2b5
GDR
11172013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1118
1119 * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
1120 printer initialization.
1121
318cda85 11222013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com>
da6ca2b5 1123
318cda85
BI
1124 PR c/57490
1125 * c-array-notation.c (fix_conditional_array_notations_1): Added a
1126 check for truth values.
1127 (expand_array_notation_exprs): Added truth values case. Removed an
1128 unwanted else. Added for-loop to walk through subtrees in default
1129 case.
1130
b066401f
GDR
11312013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1132
1133 * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
1134
fb48aadc
JM
11352013-07-23 Joseph Myers <joseph@codesourcery.com>
1136
1137 * c-parser.c (struct c_generic_association): Fix typo.
1138
433cc7b0
TT
11392013-07-23 Tom Tromey <tromey@redhat.com>
1140 Joseph Myers <joseph@codesourcery.com>
1141
1142 * c-parser.c (struct c_generic_association): New.
1143 (c_generic_association_d): New typedef.
1144 (c_parser_generic_selection): New function.
1145 (c_parser_postfix_expression): Handle RID_GENERIC.
1146
26d40c3d
JM
11472013-07-13 Jason Merrill <jason@redhat.com>
1148
1149 PR c++/57793
1150 * c-decl.c (finish_struct): Check for too-large class.
1151
ecdbd01a 11522013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
1153
1154 PR c/57821
1155 * c-typeck.c (set_init_index): When folding, check for index overflow.
1156
1141ed3f
BI
11572013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1158
1159 * c-parser.c (c_parser_array_notation): Removed rejection of array
1160 notations in an array of function pointers.
1161
713b46fa
BI
11622013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1163
1164 * c-array-notation.c (make_triplet_val_inv): New function.
1165 (create_cmp_incr): Likewise.
1166 (create_array_refs): Likewise.
1167 (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
1168 Also modularized common parts between functions and called the function.
1169 (build_array_notation_expr): Likewise.
1170 (fix_conditional_array_notations_1): Likewise.
1171 (fix_array_notation_expr): Likewise.
1172 (fix_array_notation_call_expr): Likewise.
1173
92f20202
MP
11742013-06-18 Marek Polacek <polacek@redhat.com>
1175
1176 PR c/57630
1177 * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
1178
73a23b06
BI
11792013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com>
1180
1181 * c-array-notation.c (build_array_notation_expr): Reject array notation
1182 mismatch between LHS and RHS even inside a call_expr. Also, removed
1183 a couple while statements that were dead code.
1184
00b8517d
BI
11852013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com>
1186
1187 * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
1188 excessive precision expressions in function parameters. Also removed
1189 couple unwanted while statements.
1190
1509bdda
BI
11912013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1192
1193 * c-array-notation.c (expand_array_notation_exprs): Added
1194 ARRAY_NOTATION_REF case.
1195
d60f1706
BI
11962013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1197
1198 * c-array-notation.c (length_mismatch_in_expr_p): Moved this
1199 function to c-family/array-notation-common.c.
1200 (is_cilkplus_reduce_builtin): Likewise.
1201 (find_rank): Likewise.
1202 (extract_array_notation_exprs): Likewise.
1203 (replace_array_notations): Likewise.
1204 (find_inv_trees): Likewise.
1205 (replace_inv_trees): Likewise.
1206 (contains_array_notation_expr): Likewise.
1207 (find_correct_array_notation_type): Likewise.
1208 (replace_invariant_exprs): Initialized additional_tcodes to NULL.
1209 (struct inv_list): Moved this to c-family/array-notation-common.c.
1210 * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
1211
6d6efbb3
BI
12122013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com>
1213
1214 * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
1215 reduction functions outside the for-loop. Added a check if the fundecl
1216 is non-NULL. Finally, removed an unwanted if-statement, and made the
1217 body unconditional.
1218
25c22937
BI
12192013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
1220
1221 * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
1222 condition of the if-statement matches the rank of else-block and then-
1223 block when array notations are used.
1224 * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
1225 expression after the entire function body is parsed.
1226 (c_parser_expr_no_commas): Delayed creating array notation expressions
1227 to the end of function parsing.
1228 * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
1229 whole if-statement instead of just the condition.
1230 (expand_array_notation_exprs): Added MODIFY_EXPR case.
1231
edd25645
BI
12322013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
1233
1234 PR c/57474
1235 * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
1236 array to NULL_TREE if they are unused. Also added a check for the
1237 field to be NULL before its fields are used in future.
1238
065ce7f1
RO
12392013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1240
1241 PR bootstrap/57450
1242 * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
1243 (build_array_notation_expr): Likewise.
1244
36536d79
BI
12452013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1246
1247 * c-typeck.c (build_array_ref): Added a check to see if array's
1248 index is greater than one. If true, then emit an error.
1249 (build_function_call_vec): Exclude error reporting and checking
1250 for builtin array-notation functions.
1251 (convert_arguments): Likewise.
1252 (c_finish_return): Added a check for array notations as a return
1253 expression. If true, then emit an error.
1254 (c_finish_loop): Added a check for array notations in a loop
1255 condition. If true then emit an error.
1256 (lvalue_p): Added a ARRAY_NOTATION_REF case.
1257 (build_binary_op): Added a check for array notation expr inside
1258 op1 and op0. If present, we call another function to find correct
1259 type.
1260 * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
1261 * c-parser.c (c_parser_compound_statement): Check if array
1262 notation code is used in tree, if so, then transform them into
1263 appropriate C code.
1264 (c_parser_expr_no_commas): Check if array notation is used in LHS
1265 or RHS, if so, then build array notation expression instead of
1266 regular modify.
1267 (c_parser_postfix_expression_after_primary): Added a check for
1268 colon(s) after square braces, if so then handle it like an array
1269 notation. Also, break up array notations in unary op if found.
1270 (c_parser_direct_declarator_inner): Added a check for array
1271 notation.
1272 (c_parser_compound_statement): Added a check for array notation in
1273 a stmt. If one is present, then expand array notation expr.
1274 (c_parser_if_statement): Likewise.
1275 (c_parser_switch_statement): Added a check for array notations in
1276 a switch statement's condition. If true, then output an error.
1277 (c_parser_while_statement): Similarly, but for a while.
1278 (c_parser_do_statement): Similarly, but for a do-while.
1279 (c_parser_for_statement): Similarly, but for a for-loop.
1280 (c_parser_unary_expression): Check if array notation is used in a
1281 pre-increment or pre-decrement expression. If true, then expand
1282 them.
1283 (c_parser_array_notation): New function.
1284 * c-array-notation.c: New file.
1285 * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
1286
cd192ccc
MS
12872013-05-23 Mike Stump <mikestump@comcast.net>
1288
1289 * c-typeck.c (convert_for_assignment): Handle references to memory
1290 spaces better.
1291
427b248d
JM
12922013-05-16 Jason Merrill <jason@redhat.com>
1293
1294 * Make-lang.in (cc1$(exeext)): Use link mutex.
1295
44d90fe1
PC
12962013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1297
1298 * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
1299 to simply use OPT_Wpointer_arith.
1300 (build_unary_op): Likewise.
1301
4e7d7b3d
JJ
13022013-04-03 Jakub Jelinek <jakub@redhat.com>
1303
1304 PR c/19449
1305 * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
1306 argument. If set, or it temporarily for parsing of the first
1307 argument into force_folding_builtin_constant_p.
1308 (c_parser_postfix_expression): Adjust callers.
1309
839b422f
RB
13102013-03-21 Richard Biener <rguenther@suse.de>
1311
1312 * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
1313 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
1314
2ee028f1
MP
13152013-02-12 Marek Polacek <polacek@redhat.com>
1316
1317 PR c/44938
1318 * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
1319 origtypes to NULL.
1320
8824edff
JJ
13212013-01-24 Jakub Jelinek <jakub@redhat.com>
1322
1323 PR c/56078
1324 * c-typeck.c (set_nonincremental_init_from_string): If
1325 constructor_max_index is NULL, treat it as if tree_int_cst_lt
1326 returned false.
1327 (process_init_element): Likewise.
1328
eadd3d0d
JJ
13292012-12-20 Jakub Jelinek <jakub@redhat.com>
1330
1331 PR c++/55619
1332 * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
1333 argument, don't call default_function_array_conversion
1334 nor c_fully_fold here.
1335 (c_parser_asm_statement): Adjust callers.
1336 * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
1337 and outputs here, and call default_function_array_conversion
1338 on inputs that don't need to be addressable.
1339
f8a93a2e
JJ
13402012-12-18 Jakub Jelinek <jakub@redhat.com>
1341
1342 PR c/39464
1343 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
1344 warning require that both c_common_unsigned_type as well as
1345 c_common_signed_type is the same for both mvl and mvr types.
1346
9771b263
DN
13472012-11-16 Diego Novillo <dnovillo@google.com>
1348
1349 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
1350
1351 * c-common.c: Use new vec API in vec.h.
1352 * c-common.h: Likewise.
1353 * c-gimplify.c: Likewise.
1354 * c-pragma.c: Likewise.
1355 * c-pretty-print.c: Likewise.
1356 * c-pretty-print.h: Likewise.
1357 * c-semantics.c: Likewise.
1358 * c-decl.c: Likewise.
1359 * c-parser.c: Likewise.
1360 * c-tree.h: Likewise.
1361 * c-typeck.c: Likewise.
1362
880661a4
JW
13632012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1364
1365 PR c++/54930
1366 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
1367
077d1abe
MLI
13682012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1369
1370 PR c/53066
1371 * c-decl.c (warn_if_shadowing): Do not warn if a variable
1372 shadows a function, unless the variable is a function or a
1373 pointer-to-function.
1374
3a785c97
JJ
13752012-10-12 Jakub Jelinek <jakub@redhat.com>
1376
1377 PR c/54381
1378 * c-parser.c (struct c_tree_loc_pair): Removed.
1379 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
1380 add location_t * and tree * arguments, fill in array of 3
1381 sizeof_arg trees and corresponding locs.
1382 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
1383 c_parser_expr_list callers.
1384 (c_parser_postfix_expression_after_primary): Likewise. Pass
1385 array of 3 sizeof_arg trees and locs (corresponding to first
1386 3 arguments) to sizeof_pointer_memaccess_warning.
1387
703c8606
LC
13882012-10-09 Lawrence Crowl <crowl@google.com>
1389
1390 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
1391 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
1392 hash table.
1393
5d9de0d0
PC
13942012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1395
1396 PR c++/54194
1397 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
1398 call.
1399
a212e43f
MG
14002012-10-09 Marc Glisse <marc.glisse@inria.fr>
1401
1402 PR c++/54427
1403 * c-typeck.c: Include c-common.h.
1404 (enum stv_conv): Moved to c-common.h.
1405 (scalar_to_vector): Moved to c-common.c.
1406 (build_binary_op): Adapt to scalar_to_vector's new prototype.
1407 * Make-lang.in: c-typeck.c depends on c-common.h.
1408
3b78de56
AC
14092012-10-04 Arnaud Charlet <charlet@adacore.com>
1410
1411 * c-decl.c (c_write_global_declarations): Fix handling of
1412 -fdump-ada-spec*.
1413
78c60e3d
SS
14142012-09-30 Sharad Singhai <singhai@google.com>
1415
1416 * c-decl.c (c_write_global_declarations): Use a different method
1417 to determine if the dump has ben initialized.
1418
9f33203d
JM
14192012-09-14 Joseph Myers <joseph@codesourcery.com>
1420
1421 PR c/54552
1422 * c-typeck.c (c_cast_expr): When casting to a type requiring
1423 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
1424 c_fully_fold first.
1425
a27d595d
JM
14262012-09-14 Joseph Myers <joseph@codesourcery.com>
1427
1428 PR c/54103
1429 * c-typeck.c (build_unary_op): Pass original argument of
1430 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
1431 any C_MAYBE_CONST_EXPR, if it has integer operands.
1432 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
1433 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
1434 to c_objc_common_truthvalue_conversion, then remove any
1435 C_MAYBE_CONST_EXPR, if they have integer operands. Use
1436 c_objc_common_truthvalue_conversion not
1437 c_common_truthvalue_conversion.
1438 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
1439 call note_integer_operands for arguments with integer operands
1440 that are not integer constants.
1441
9feb29df
JJ
14422012-09-13 Jakub Jelinek <jakub@redhat.com>
1443
1444 PR c/54559
1445 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
1446 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
1447
d409320c
JJ
14482012-08-31 Jakub Jelinek <jakub@redhat.com>
1449
1450 PR c/54428
1451 * c-convert.c (convert): Don't call fold_convert_loc if
1452 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
1453 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
1454 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
1455
6265d07c
JJ
14562012-08-24 Jakub Jelinek <jakub@redhat.com>
1457
1458 PR c/54355
1459 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
1460 for nested and empty_ok arguments in the call to
1461 c_parser_declaration_or_fndef.
1462
1a4049e7
JJ
14632012-08-17 Jakub Jelinek <jakub@redhat.com>
1464
1465 * c-tree.h (c_last_sizeof_arg): Declare.
1466 * c-parser.c (struct c_tree_loc_pair): New type.
1467 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
1468 non-NULL.
1469 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
1470 (c_parser_postfix_expression_after_primary): Likewise. Call
1471 sizeof_pointer_memaccess_warning if needed.
1472 (sizeof_ptr_memacc_comptypes): New function.
1473 * c-typeck.c (c_last_sizeof_arg): New global variable.
1474 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
1475
0229aee9
UB
14762012-07-24 Uros Bizjak <ubizjak@gmail.com>
1477
1478 * c-lang.h (lang_decl): Add variable_size GTY option.
1479
7ee2468b
SB
14802012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1481
1482 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
1483 * Make-lang.in: Fix dependencies.
1484
d4a10d0a
SB
14852012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1486
1487 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
1488 and add language Makefile hooks.
1489 * config-lang.in: New file.
1490 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
1491 add the required "normal" config-lang.in rules.
1492 * c-lang.h: Moved from gcc/ to here.
1493 * c-tree.h: Likewise.
1494 * c-objc-common.c: Likewise.
1495 * c-objc-common.h: Likewise.
1496 * c-typeck.c: Likewise.
1497 * c-convert.c: Likewise.
1498 * c-lang.c: Likewise.
1499 * c-aux-info.c: Likewise.
1500 * c-errors.c: Likewise.
1501 * gccspec.c: Likewise.
1502 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
1503 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
1504\f
23a5b65a 1505Copyright (C) 2012-2014 Free Software Foundation, Inc.
d4a10d0a
SB
1506
1507Copying and distribution of this file, with or without modification,
1508are permitted in any medium without royalty provided the copyright
1509notice and this notice are preserved.