1 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3 * function.h (struct rtl_data): Strengthen field
4 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
5 * rtl.h (remove_node_from_expr_list): Strengthen second param from
6 rtx * to rtx_expr_list **.
8 * cfgbuild.c (make_edges): In loop over
9 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
10 rtx_expr_list *, and use methods of the latter class to clarify
12 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
13 rtx_expr_list *, and use methods of the latter class to clarify
15 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
16 * reload1.c (set_initial_label_offsets): Likewise for local "x".
17 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
18 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
19 to rtx_expr_list *. Use methods of the latter class to clarify
22 2014-08-27 David Malcolm <dmalcolm@redhat.com>
24 * function.h (struct expr_status): Strengthen field
25 "x_forced_labels" from rtx to rtx_expr_list *.
27 * cfgbuild.c (make_edges): Split local "x" into two locals,
28 strengthening one from rtx to rtx_expr_list *, and using methods
30 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
31 loop over forced_labels, introduce strengthen it from rtx to
32 rtx_expr_list *, using methods to clarify the code.
33 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
34 to rtx_expr_list *, using methods of said class to clarify the
36 * reload1.c (set_initial_label_offsets): Split local "x" into two
37 per-loop variables, strengthening the first from rtx to
38 rtx_expr_list * and using methods.
40 2014-08-27 David Malcolm <dmalcolm@redhat.com>
42 * coretypes.h (class rtx_expr_list): Add forward declaration.
43 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
44 * gengenrtl.c (special_rtx): Add EXPR_LIST.
45 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
46 invariant: GET_CODE (X) == EXPR_LIST.
47 (is_a_helper <rtx_expr_list *>::test): New.
48 (rtx_expr_list::next): New.
49 (rtx_expr_list::element): New.
50 (gen_rtx_EXPR_LIST): New.
52 2014-08-27 David Malcolm <dmalcolm@redhat.com>
54 * varasm.c (mark_constants): Convert a GET_CODE check into a
55 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
56 Use methods of rtx_sequence to clarify the code.
58 2014-08-27 David Malcolm <dmalcolm@redhat.com>
60 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
61 local "seq" via a checked cast, and use methods of rtx_sequence
64 2014-08-27 David Malcolm <dmalcolm@redhat.com>
66 * resource.c (mark_referenced_resources): Strengthen local
67 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
68 using methods of rtx_sequence to clarify the code.
69 (find_dead_or_set_registers): Within the switch statement, convert
70 a GET_CODE check to a dyn_cast, introducing local "seq". Within
71 the JUMP_P handling, introduce another local "seq", adding a
72 checked cast to rtx_sequence *. In both cases, use methods of
73 rtx_sequence to clarify the code.
74 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
75 via a checked cast, and use methods of rtx_sequence to simplify
78 2014-08-27 David Malcolm <dmalcolm@redhat.com>
80 * reorg.c (redundant_insn): In two places in the function, replace
81 a check of GET_CODE with a dyn_cast, introducing local "seq", and
82 usings methods of rtx_sequence to clarify the code.
84 2014-08-27 David Malcolm <dmalcolm@redhat.com>
86 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
87 local "seq" with a checked cast, and use methods of rtx_sequence
90 2014-08-27 David Malcolm <dmalcolm@redhat.com>
92 * function.c (contains): Introduce local "seq" for PATTERN (insn),
93 with a checked cast, in the region for where we know it's a
94 SEQUENCE. Use methods of rtx_sequence.
96 2014-08-27 David Malcolm <dmalcolm@redhat.com>
98 * final.c (get_attr_length_1): Replace GET_CODE check with a
99 dyn_cast, introducing local "seq" and the use of methods of
101 (shorten_branches): Likewise, introducing local "body_seq".
102 Strengthen local "inner_insn" from rtx to rtx_insn *.
103 (reemit_insn_block_notes): Replace GET_CODE check with a
104 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
105 Use methods of rtx_sequence.
106 (final_scan_insn): Likewise, introducing local "seq" for when
107 "body" is known to be a SEQUENCE, using its methods.
109 2014-08-27 David Malcolm <dmalcolm@redhat.com>
111 * except.c (can_throw_external): Strengthen local "seq" from rtx
112 to rtx_sequence *. Use methods of rtx_sequence.
113 (insn_nothrow_p): Likewise.
115 2014-08-27 David Malcolm <dmalcolm@redhat.com>
117 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
118 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
119 Use methods of rtx_sequence.
120 (scan_trace): Likewise for local "pat".
122 2014-08-27 David Malcolm <dmalcolm@redhat.com>
124 * coretypes.h (class rtx_sequence): Add forward declaration.
125 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
126 invariant: GET_CODE (X) == SEQUENCE.
127 (is_a_helper <rtx_sequence *>::test): New.
128 (is_a_helper <const rtx_sequence *>::test): New.
129 (rtx_sequence::len): New.
130 (rtx_sequence::element): New.
131 (rtx_sequence::insn): New.
133 2014-08-27 David Malcolm <dmalcolm@redhat.com>
135 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
137 (alloc_INSN_LIST): Strengthen return type from rtx to
139 (copy_INSN_LIST): Likewise for return type and param.
140 (concat_INSN_LIST): Likewise for both params and return type.
141 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
142 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
143 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
144 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
146 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
147 "implicit_sets", "control_uses", "clobbers" from rtx to
149 (struct deps_desc): Likewise for fields "pending_read_insns",
150 "pending_write_insns", "pending_jump_insns",
151 "last_pending_memory_flush", "last_function_call",
152 "last_function_call_may_noreturn", "sched_before_next_call",
153 "sched_before_next_jump".
154 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
155 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
157 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
158 from rtx to rtx_insn_list *.
159 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
162 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
164 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
166 (queue_insn): Likewise for local "link".
167 (struct haifa_saved_data): Strengthen field "insn_queue" from
168 rtx * to rtx_insn_list **.
169 (save_backtrack_point): Update allocation of save->insn_queue to
170 reflect the strengthening of elements from rtx to rtx_insn_list *.
171 (queue_to_ready): Strengthen local "link" from rtx to
172 rtx_insn_list *; use methods "next" and "insn" when traversing the
174 (early_queue_to_ready): Likewise for locals "link", "next_link",
176 (schedule_block): Update allocation of insn_queue to reflect the
177 strengthening of elements from rtx to rtx_insn_list *. Strengthen
178 local "link" from rtx to rtx_insn_list *, and use methods when
180 (add_to_speculative_block): Strengthen locals "twins" and
181 "next_node" from rtx to rtx_insn_list *, and use methods when
182 working with them. Strengthen local "twin" from rtx to
183 rtx_insn *, eliminating a checked cast.
184 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
185 from rtx to rtx_insn_list *, and use methods when working with
188 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
189 from rtx to rtx_insn_list *, adding a checked cast.
190 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
192 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
193 "newlink" from rtx to rtx_insn_list *. Strengthen local
194 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
195 from rtx to rtx_insn *.
196 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
197 from rtx to rtx_insn_list *. Use methods of the latter class.
198 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
199 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
200 (remove_free_INSN_LIST_node): Strengthen return type and local
201 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
202 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
203 rtx_insn_list *, using "insn" method.
205 * sched-deps.c (add_dependence_list): Strengthen param "list"
206 from rtx to rtx_insn_list *, and use methods when working with it.
207 (add_dependence_list_and_free): Strengthen param "listp" from
208 rtx * to rtx_insn_list **.
209 (remove_from_dependence_list): Strenghten param "listp" from rtx *
210 to rtx_insn_list **, and use methods when working with *listp.
211 (remove_from_both_dependence_lists): Strengthen param "listp" from
212 rtx * to rtx_insn_list **
213 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
214 to rtx_insn_list **. Eliminate local "link", in favor of two new
215 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
217 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
218 by introducing local "cond_deps".
219 (remove_from_deps): Strengthen param "insn" from rtx to
222 * sched-rgn.c (concat_insn_mem_list): Strengthen param
223 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
224 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
225 Use methods of rtx_insn_list.
227 * store-motion.c (struct st_expr): Strengthen fields
228 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
229 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
231 (find_moveable_store): Split out "tmp" into multiple more-tightly
232 scoped locals. Use methods of rtx_insn_list *.
233 (compute_store_table): Strengthen local "tmp" from rtx to
234 rtx_insn *. Use methods of rtx_insn_list *.
236 2014-08-27 David Malcolm <dmalcolm@redhat.com>
238 * coretypes.h (class rtx_insn_list): Add forward declaration.
239 * rtl.h (class rtx_insn_list): New subclass of rtx_def
240 (is_a_helper <rtx_insn_list *>::test): New.
241 (rtx_insn_list::next): New.
242 (rtx_insn_list::insn): New.
243 (gen_rtx_INSN_LIST): Add prototype.
244 * emit-rtl.c (gen_rtx_INSN_LIST): New.
245 * gengenrtl.c (special_rtx): Add INSN_LIST.
247 2014-08-27 David Malcolm <dmalcolm@redhat.com>
249 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
250 "prev" from rtx to rtx_insn *.
252 2014-08-27 David Malcolm <dmalcolm@redhat.com>
254 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
255 functions. Require merely an rtx for now, not an rtx_insn *.
256 (BLOCK_FOR_INSN): Likewise.
257 (INSN_LOCATION): Likewise.
258 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
260 2014-08-27 David Malcolm <dmalcolm@redhat.com>
262 * rtl.h (PATTERN): Convert this macro into a pair of inline
263 functions, for now, requiring const_rtx and rtx.
265 2014-08-27 David Malcolm <dmalcolm@redhat.com>
267 * target.def (unwind_emit): Strengthen param "insn" from rtx to
269 (final_postscan_insn): Likewise.
270 (adjust_cost): Likewise.
271 (adjust_priority): Likewise.
272 (variable_issue): Likewise.
273 (macro_fusion_pair_p): Likewise.
274 (dfa_post_cycle_insn): Likewise.
275 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
276 (first_cycle_multipass_issue): Likewise.
277 (dfa_new_cycle): Likewise.
278 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
279 (speculate_insn): Likewise for param "insn".
280 (gen_spec_check): Likewise for params "insn" and "label".
281 (get_insn_spec_ds): Likewise for param "insn".
282 (get_insn_checked_ds): Likewise.
283 (dispatch_do): Likewise.
284 (dispatch): Likewise.
285 (cannot_copy_insn_p): Likewise.
286 (invalid_within_doloop): Likewise.
287 (legitimate_combined_insn): Likewise.
291 * doc/tm.texi: Automatically updated to reflect changes to
294 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
296 (schedule_block): Likewise.
297 (sched_init): Likewise.
298 (sched_speculate_insn): Strengthen param "insn" from rtx to
300 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
302 * hooks.c (hook_bool_rtx_true): Rename to...
303 hook_bool_rtx_insn_true): ...this, and strengthen first param from
305 (hook_constcharptr_const_rtx_null): Rename to...
306 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
307 first param from const_rtx to const rtx_insn *.
308 (hook_bool_rtx_int_false): Rename to...
309 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
310 param from rtx to rtx_insn *.
311 (hook_void_rtx_int): Rename to...
312 (hook_void_rtx_insn_int): ...this, and strengthen first param from
315 * hooks.h (hook_bool_rtx_true): Rename to...
316 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
318 (hook_bool_rtx_int_false): Rename to...
319 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
320 param from rtx to rtx_insn *.
321 (hook_void_rtx_int): Rename to...
322 (hook_void_rtx_insn_int): ...this, and strengthen first param from
324 (hook_constcharptr_const_rtx_null): Rename to...
325 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
326 first param from const_rtx to const rtx_insn *.
328 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
329 and local "prev" from rtx to rtx_insn *.
331 * sched-int.h (sched_speculate_insn): Strengthen first param from
334 * sel-sched.c (create_speculation_check): Likewise for local "label".
335 * targhooks.c (default_invalid_within_doloop): Strengthen param
336 "insn" from const_rtx to const rtx_insn *.
337 * targhooks.h (default_invalid_within_doloop): Strengthen param
338 from const_rtx to const rtx_insn *.
340 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
341 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
343 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
345 (arc_invalid_within_doloop): Likewise, with const.
347 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
348 (arm_cannot_copy_insn_p): Likewise for param "insn".
349 (arm_unwind_emit): Likewise.
351 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
354 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
355 (c6x_variable_issue): Likewise. Removed now-redundant checked
357 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
359 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
360 Likewise for param "insn".
361 (epiphany_mode_after): Likewise.
362 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
363 params "insn", "dep_insn".
364 (epiphany_mode_needed): Likewise for param "insn".
365 (epiphany_mode_after): Likewise.
367 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
368 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
369 (ix86_avx_u128_mode_needed): Likewise.
370 (ix86_i387_mode_needed): Likewise.
371 (ix86_mode_needed): Likewise.
372 (ix86_avx_u128_mode_after): Likewise.
373 (ix86_mode_after): Likewise.
374 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
375 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
376 (ix86_adjust_priority): Likewise for param "insn".
377 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
378 (do_dispatch): Likewise.
379 (has_dispatch): Likewise.
380 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
382 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
383 reflect renaming of default hook implementation from
384 hook_constcharptr_const_rtx_null to
385 hook_constcharptr_const_rtx_insn_null.
386 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
388 (ia64_variable_issue): Likewise for param "insn".
389 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
390 (ia64_dfa_new_cycle): Likewise.
391 (ia64_get_insn_spec_ds): Likewise.
392 (ia64_get_insn_checked_ds): Likewise.
393 (ia64_speculate_insn): Likewise.
394 (ia64_gen_spec_check): Likewise for params "insn", "label".
395 (ia64_asm_unwind_emit): Likewise for param "insn".
397 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
399 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
401 (m68k_sched_variable_issue): Likewise for param "insn".
403 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
406 * config/microblaze/microblaze.c (microblaze_adjust_cost):
407 Likewise for params "insn", "dep".
409 * config/mips/mips.c (mips_adjust_cost): Likewise.
410 (mips_variable_issue): Likewise for param "insn".
411 (mips_final_postscan_insn): Likewise.
413 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
414 for params "insn", "dep".
416 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
418 (pa_adjust_priority): Likewise for param "insn".
420 * config/picochip/picochip.c (picochip_sched_adjust_cost):
421 Likewise for params "insn", "dep_insn".
423 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
425 (rs6000_variable_issue): Likewise.
426 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
427 (rs6000_debug_adjust_cost): Likewise.
428 (rs6000_adjust_priority): Likewise for param "insn".
429 (rs6000_use_sched_lookahead_guard): Likewise.
430 (get_next_active_insn): Likewise for return type and both params.
431 (redefine_groups): Likewise for params "prev_head_insn", "tail"
432 and locals "insn", "next_insn".
433 (pad_groups): Likewise.
435 * config/s390/s390.c (s390_adjust_priority): Likewise for param
437 (s390_cannot_copy_insn_p): Likewise.
438 (s390_sched_variable_issue): Likewise for third param, eliminating
440 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
441 default hook implementation from hook_constcharptr_const_rtx_null
442 to hook_constcharptr_const_rtx_insn_null.
444 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
445 from rtx to rtx_insn *.
446 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
447 (sh_variable_issue): Likewise for param "insn".
448 (sh_dfa_new_cycle): Likewise.
449 (sh_mode_needed): Likewise.
450 (sh_mode_after): Likewise.
452 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
453 params "insn", "dep_insn".
454 (hypersparc_adjust_cost): Likewise.
455 (sparc_adjust_cost): Likewise.
457 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
458 param, eliminated checked cast.
459 (spu_sched_adjust_cost): Likewise for first and third params.
461 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
462 params "insn" and "dep_insn" from rtx to rtx_insn *.
464 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
466 2014-08-27 David Malcolm <dmalcolm@redhat.com>
468 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
469 (set_is_load_p): ...this, updating to work on a SET pattern rather
471 (is_store_insn): Rename to...
472 (set_is_store_p): ...this, updating to work on a SET pattern
474 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
475 top of function to where it is needed. Rewrite the bogus
476 condition that checks for "insn" and "dep" being PARALLEL to
477 instead use single_set, introducing locals "insn_set" and
478 "dep_set". Given that we only ever returned "cost" for a non-pair
479 of SETs, bail out early if we don't have a pair of SET.
480 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
481 use the new locals "insn_set" and "dep_set", and update calls to
482 is_load_insn and is_store_insn to be calls to set_is_load_p and
485 2014-08-27 Guozhi Wei <carrot@google.com>
488 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
489 amount before using it.
491 2014-08-27 Richard Biener <rguenther@suse.de>
493 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
494 get_maxval_strlen inside a more useful API.
495 (gimple_fold_builtin_with_strlen): Remove and fold into ...
496 (gimple_fold_builtin): ... caller.
497 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
498 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
499 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
500 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
501 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
502 gimple_fold_builtin_sprintf): Adjust to compute maxval
505 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
508 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
510 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
511 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
512 Anna Tikhonova <anna.tikhonova@intel.com>
513 Ilya Tocar <ilya.tocar@intel.com>
514 Andrey Turetskiy <andrey.turetskiy@intel.com>
515 Ilya Verbin <ilya.verbin@intel.com>
516 Kirill Yukhin <kirill.yukhin@intel.com>
517 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
520 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
521 Use `concat_tg_mode' attribute to determine asm register size.
523 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
524 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
525 Anna Tikhonova <anna.tikhonova@intel.com>
526 Ilya Tocar <ilya.tocar@intel.com>
527 Andrey Turetskiy <andrey.turetskiy@intel.com>
528 Ilya Verbin <ilya.verbin@intel.com>
529 Kirill Yukhin <kirill.yukhin@intel.com>
530 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
533 (define_mode_iterator VI48_AVX512VL): New.
534 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
535 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
536 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
537 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
538 with VI1): Change mode iterator.
539 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
540 with VI_ULOADSTORE_BW_AVX512VL): New.
541 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
542 with VI_ULOADSTORE_F_AVX512VL): Ditto.
543 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
544 with VI1): Change mode iterator.
545 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
546 with VI_ULOADSTORE_BW_AVX512VL): New.
547 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
548 with VI_ULOADSTORE_F_AVX512VL): Ditto.
549 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
550 with VI1): Change mode iterator.
551 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
552 with VI_ULOADSTORE_BW_AVX512VL): New.
553 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
554 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
555 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
556 (define_insn "<avx512>_storedqu<mode>_mask" with
558 (define_insn "<avx512>_storedqu<mode>_mask" with
559 VI12_AVX512VL): Ditto.
561 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
562 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
563 Anna Tikhonova <anna.tikhonova@intel.com>
564 Ilya Tocar <ilya.tocar@intel.com>
565 Andrey Turetskiy <andrey.turetskiy@intel.com>
566 Ilya Verbin <ilya.verbin@intel.com>
567 Kirill Yukhin <kirill.yukhin@intel.com>
568 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
571 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
572 (define_mode_iterator VI48_AVX512BW): New.
573 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
574 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
575 with VI48_AVX2_48_AVX512F): New.
576 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
577 with VI2_AVX512VL): Ditto.
579 2014-08-27 Richard Biener <rguenther@suse.de>
582 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
583 (fold_builtin_3): Do not fold strcat_chk here.
584 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
586 (gimple_fold_builtin): Fold strcat_chk here.
588 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
590 * dwarf2out.h (dwarf2out_decl): Remove prototype.
591 * dwarf2out.c (dwarf2out_decl): Make static.
593 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
595 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
597 2014-08-26 David Malcolm <dmalcolm@redhat.com>
599 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
600 from rtx to rtx_insn *.
601 (cselib_lookup_from_insn): Likewise for final param.
602 (cselib_subst_to_values_from_insn): Likewise.
603 (cselib_add_permanent_equiv): Likewise.
605 * cselib.c (cselib_current_insn): Likewise for this variable.
606 (cselib_subst_to_values_from_insn): Likewise for param "insn".
607 (cselib_lookup_from_insn): Likewise.
608 (cselib_add_permanent_equiv): Likewise for param "insn" and local
609 "save_cselib_current_insn".
610 (cselib_process_insn): Replace use of NULL_RTX with NULL.
612 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
613 from rtx to rtx_insn *.
615 2014-08-26 David Malcolm <dmalcolm@redhat.com>
617 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
620 2014-08-26 David Malcolm <dmalcolm@redhat.com>
622 * df.h (df_dump_insn_problem_function): Strengthen first param of
623 this callback from const_rtx to const rtx_insn *.
624 (struct df_insn_info): Strengthen field "insn" from rtx to
626 (DF_REF_INSN): Eliminate this function, reinstating the older
628 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
629 (df_reg_defined): Likewise.
630 (df_find_use): Likewise.
631 (df_reg_used): Likewise.
632 (df_dump_insn_top): Strengthen param 1 from const_rtx to
634 (df_dump_insn_bottom): Likewise.
635 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
636 (df_insn_debug_regno): Likewise.
637 (debug_df_insn): Likewise.
638 (df_rd_simulate_one_insn): Likewise for param 2.
639 (df_word_lr_simulate_defs): Likewise for param 1.
640 (df_word_lr_simulate_uses): Likewise.
641 (df_md_simulate_one_insn): Likewise for param 2.
642 (df_simulate_find_noclobber_defs): Likewise for param 1.
643 (df_simulate_find_defs): Likewise.
644 (df_simulate_defs): Likewise.
645 (df_simulate_uses): Likewise.
646 (df_simulate_one_insn_backwards): Likewise for param 2.
647 (df_simulate_one_insn_forwards): Likewise.
648 (df_uses_create): Likewise for param 2.
649 (df_insn_create_insn_record): Likewise for param 1.
650 (df_insn_delete): Likewise.
651 (df_insn_rescan): Likewise.
652 (df_insn_rescan_debug_internal): Likewise.
653 (df_insn_change_bb): Likewise.
654 (df_notes_rescan): Likewise.
655 * rtl.h (remove_death): Likewise for param 2.
656 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
658 * sched-int.h (reemit_notes): Strengthen param from rtx to
660 * valtrack.h (propagate_for_debug): Likewise for param 1.
662 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
663 local "tmp_rtx" from const_rtx to const rtx_insn *.
664 * combine.c (remove_death): Strengthen param "insn" from rtx to
666 (move_deaths): Likewise for local "where_dead".
667 * cse.c (delete_trivially_dead_insns): Introduce local
668 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
669 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
671 (df_reg_defined): Likewise.
672 (df_find_use): Likewise.
673 (df_reg_used): Likewise.
674 (df_dump_insn_problem_data): Strengthen param "insn" from
675 const_rtx to const rtx_insn *.
676 (df_dump_insn_top): Likewise.
677 (df_dump_insn_bottom): Likewise.
678 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
679 (df_insn_debug_regno): Likewise.
680 (debug_df_insn): Likewise.
681 (DF_REF_INSN): Delete.
682 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
683 from rtx to rtx_insn *.
684 (df_chain_insn_top_dump): Strengthen param "insn" from
685 const_rtx to const rtx_insn *.
686 (df_chain_insn_bottom_dump): Likewise.
687 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
689 (df_word_lr_simulate_uses): Likewise.
690 (df_print_note): Likewise.
691 (df_remove_dead_and_unused_notes): Likewise.
692 (df_set_unused_notes_for_mw): Likewise.
693 (df_set_dead_notes_for_mw): Likewise.
694 (df_create_unused_note): Likewise.
695 (df_simulate_find_defs): Likewise.
696 (df_simulate_find_uses): Likewise.
697 (df_simulate_find_noclobber_defs): Likewise.
698 (df_simulate_defs): Likewise.
699 (df_simulate_uses): Likewise.
700 (df_simulate_one_insn_backwards): Likewise.
701 (df_simulate_one_insn_forwards): Likewise.
702 (df_md_simulate_one_insn): Likewise.
703 * df-scan.c (df_uses_create): Likewise.
704 (df_insn_create_insn_record): Likewise.
705 (df_insn_delete): Likewise.
706 (df_insn_rescan): Likewise.
707 (df_insn_rescan_debug_internal): Likewise.
708 (df_insn_change_bb): Likewise.
709 (df_notes_rescan): Likewise.
710 (df_refs_add_to_chains): Likewise.
711 (df_insn_refs_verify): Likewise.
712 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
713 when invoking df_insn_delete.
714 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
715 (set_unique_reg_note): Add checked cast.
716 * final.c (cleanup_subreg_operands): Likewise.
717 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
718 "insn" from rtx to rtx_insn *.
719 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
720 "last" from rtx to rtx_insn *.
721 * ira-emit.c (change_regs_in_insn): New function.
722 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
723 Invoke change_regs_in_insn rather than change_regs.
724 * ira.c (update_equiv_regs): Strengthen locals "insn",
725 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
726 for_each_rtx_in_insn rather than for_each_rtx.
727 * recog.c (confirm_change_group): Add checked casts.
728 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
730 (peep2_fill_buffer): Add checked cast.
731 * rtlanal.c (remove_note): Likewise.
732 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
733 locals "next" "end" from rtx to rtx_insn *.
735 2014-08-26 David Malcolm <dmalcolm@redhat.com>
737 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
739 (struct reg_use_data): Likewise for field "insn".
740 (insn_cost): Likewise for param.
741 (real_insn_for_shadow): Likewise for return type and param.
742 (increase_insn_priority): Likewise for param 1.
743 (debug_dependencies): Likewise for both params.
745 * haifa-sched.c (insn_delay): Likewise for param "insn".
746 (real_insn_for_shadow): Likewise for return type and param "insn".
747 (update_insn_after_change): Likewise for param "insn".
748 (recompute_todo_spec): Likewise for param "next" and locals "pro",
750 (insn_cost): Likewise for param "insn".
751 (increase_insn_priority): Likewise.
752 (calculate_reg_deaths): Likewise.
753 (setup_insn_reg_pressure_info): Likewise.
754 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
755 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
756 (model_recompute): Likewise.
757 (must_restore_pattern_p): Likewise for param "next".
758 (model_excess_cost): Likewise for param "insn".
759 (queue_remove): Likewise.
760 (adjust_priority): Likewise for param "prev".
761 (update_register_pressure): Likewise for param "insn".
762 (setup_insn_max_reg_pressure): Likewise for local "insn".
763 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
764 (model_add_to_schedule): Likewise.
765 (model_reset_queue_indices): Likewise for local "insn".
766 (unschedule_insns_until): Strengthen local "recompute_vec" from
767 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
768 "con" from rtx to rtx_insn *.
769 (restore_last_backtrack_point): Likewise for both locals "x". Add
771 (estimate_insn_tick): Likewise for param "insn".
772 (commit_schedule): Likewise for params "prev_head", "tail" and
774 (verify_shadows): Likewise for locals "i1", "i2".
775 (dump_insn_stream): Likewise for params "head", "tail" and locals
777 (schedule_block): Likewise for locals "insn", "x". Add a checked
779 (fix_inter_tick): Likewise for params "head", "tail".
780 (create_check_block_twin): Likewise for local "jump".
781 (haifa_change_pattern): Likewise for param "insn".
782 (haifa_speculate_insn): Likewise.
783 (dump_new_block_header): Likewise for params "head", "tail".
784 (fix_jump_move): Likewise for param "jump".
785 (move_block_after_check): Likewise.
786 (sched_init_insn_luid): Likewise for param "insn".
787 (sched_init_luids): Likewise for local "insn".
788 (insn_luid): Likewise for param "insn".
789 (init_h_i_d): Likewise.
790 (haifa_init_h_i_d): Likewise for local "insn".
791 (haifa_init_insn): Likewise for param "insn".
792 * sched-deps.c (add_dependence): Likewise for local "real_pro",
794 (create_insn_reg_use): Likewise for param "insn".
795 (setup_insn_reg_uses): Likewise. Add a checked cast.
796 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
797 "tail" from rtx to rtx_insn *.
798 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
801 2014-08-26 David Malcolm <dmalcolm@redhat.com>
803 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
804 from rtx to rtx_insn *.
805 (model_add_to_schedule): Likewise for locals "start", "end",
808 2014-08-26 David Malcolm <dmalcolm@redhat.com>
810 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
812 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
813 "to" and locals "insn", "next", "copy". Remove now-redundant
816 2014-08-26 David Malcolm <dmalcolm@redhat.com>
818 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
819 rtx_insn * and param 4 from rtx * to rtx_insn **.
820 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
821 param 2 from rtx * to rtx_insn **.
823 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
824 rtx_insn * and final param from rtx * to rtx_insn **.
826 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
827 from rtx to rtx_insn *.
828 (try_head_merge_bb): Likewise for both locals named "move_upto".
829 * df-problems.c (can_move_insns_across): Likewise for params
830 "from", "to", "across_from", "across_to" and locals "insn",
831 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
833 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
834 from rtx to rtx_insn *.
835 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
836 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
837 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
839 (noce_try_abs): Likewise.
840 (noce_get_condition): Likewise for param "jump". Strengthen param
841 "earliest" from rtx * to rtx_insn **.
842 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
844 (find_cond_trap): Likewise.
845 (dead_or_predicable): Likewise for local "earliest".
846 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
848 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
849 and local "prev". Strengthen param "earliest" from rtx * to
851 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
852 Strengthen param "earliest" from rtx * to rtx_insn **.
854 2014-08-26 David Malcolm <dmalcolm@redhat.com>
856 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
857 "to" and local "insn" from rtx to rtx_insn *.
859 2014-08-26 David Malcolm <dmalcolm@redhat.com>
861 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
862 from rtx to rtx_insn *.
863 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
864 (code_motion_path_driver): Likewise for local "last_insn".
865 (simplify_changed_insns): Likewise for local "insn".
867 2014-08-26 David Malcolm <dmalcolm@redhat.com>
869 * rtl.h (push_to_sequence): Strengthen param from rtx to
871 (push_to_sequence2): Likewise for both params.
872 (delete_insns_since): Likewise for param.
873 (reorder_insns_nobb): Likewise for all three params.
874 (set_new_first_and_last_insn): Likewise for both params.
876 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
877 rtx_insn *. Remove now-redundant cast.
878 (set_last_insn): Likewise.
880 * builtins.c (expand_builtin_return): Strengthen local
881 "call_fusage" from rtx to rtx_insn *.
882 * cfgrtl.c (create_basic_block_structure): Likewise for local
884 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
885 "first", "last" and local "insn".
886 (delete_insns_since): Likewise for param "from".
887 (reorder_insns_nobb): Likewise for params "from", "to", "after"
889 (push_to_sequence): Likewise for param "first" and local "last".
890 (push_to_sequence2): Likewise for params "first" and "last".
891 * lra.c (emit_add3_insn): Likewise for local "last".
892 (lra_emit_add): Likewise.
893 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
895 (process_address_1): Likewise for locals "insn", last".
896 * modulo-sched.c (ps_first_note): Likewise for return type.
897 * optabs.c (expand_binop_directly): Likewise for param "last".
899 2014-08-26 David Malcolm <dmalcolm@redhat.com>
901 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
903 * emit-rtl.c (get_last_insn_anywhere): Likewise.
905 2014-08-26 David Malcolm <dmalcolm@redhat.com>
907 * function.h (struct sequence_stack): Strengthen fields "first"
908 and "last" from rtx to rtx_insn *.
909 (struct emit_status): Likewise for fields "x_first_insn" and
912 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
913 (set_first_insn): Add checked cast.
914 (get_last_insn): Remove now-redundant checked cast.
915 (set_last_insn): Add checked cast.
917 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
918 "saved_first" and "saved_last" from rtx to rtx_insn *.
920 2014-08-26 David Malcolm <dmalcolm@redhat.com>
922 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
923 (unlink_insn_chain): Strengthen both params from rtx to
926 * cfgrtl.c (cfg_layout_function_header): Likewise for this
928 (unlink_insn_chain): Likewise for params "first" and "last".
929 Remove now-redundant checked cast.
930 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
931 (fixup_reorder_chain): Strengthen local "insn" from rtx to
933 * emit-rtl.c (link_insn_into_chain): Likewise for all three
935 (add_insn): Likewise for param "insn" and local "prev".
936 (add_insn_after_nobb): Likewise for both params and local "next".
937 (add_insn_before_nobb): Likewise for both params and local "prev".
938 (add_insn_after): Rename param "after" to "uncast_after",
939 introducing local "after" with another checked cast.
940 (add_insn_before): Rename params "insn" and "before", giving them
941 "uncast_" prefixes, adding the old names back using checked casts.
942 (emit_note_after): Likewise for param "after".
943 (emit_note_before): Likewise for param "before".
944 (emit_label): Add a checked cast.
946 2014-08-26 David Malcolm <dmalcolm@redhat.com>
948 * cselib.h (cselib_record_sets_hook): Strengthen initial param
949 "insn" from rtx to rtx_insn *.
951 * cselib.c (cselib_record_sets_hook): Likewise.
953 * var-tracking.c (add_with_sets): Likewise, renaming back from
954 "uncast_insn" to "insn" and eliminating the checked cast from rtx
957 2014-08-26 David Malcolm <dmalcolm@redhat.com>
959 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
960 and "header_" from rtx to rtx_insn *.
961 (struct basic_block_d): Likewise for field "head_" within "x"
962 field of union basic_block_il_dependent.
963 (BB_HEAD): Drop function...
964 (SET_BB_HEAD): ...and this function in favor of...
965 (BB_HEAD): ...reinstate macro.
966 (BB_END): Drop function...
967 (SET_BB_END): ...and this function in favor of...
968 (BB_END): ...reinstate macro.
969 (BB_HEADER): Drop function...
970 (SET_BB_HEADER): ...and this function in favor of...
971 (BB_HEADER): ...reinstate macro.
973 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
974 (fix_crossing_unconditional_branches): Likewise.
975 * caller-save.c (save_call_clobbered_regs): Likewise.
976 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
977 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
978 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
979 (merge_blocks_move_successor_nojumps): Likewise.
980 (outgoing_edges_match): Update use of for_each_rtx to
981 for_each_rtx_in_insn.
982 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
983 (expand_gimple_cond): Likewise.
984 (expand_gimple_tailcall): Likewise.
985 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
987 (construct_exit_block): Drop use of SET_BB_END.
988 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
990 (delete_insn): Rename param "insn" to "uncast_insn", introducing
991 a new local "insn" with a checked cast to rtx_insn *. Drop use of
992 SET_BB_HEAD and SET_BB_END.
993 (create_basic_block_structure): Drop use of SET_BB_HEAD and
995 (rtl_delete_block): Drop use of SET_BB_HEAD.
996 (rtl_split_block): Drop use of SET_BB_END.
997 (emit_nop_for_unique_locus_between): Likewise.
998 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
999 (block_label): Drop use of SET_BB_HEAD.
1000 (fixup_abnormal_edges): Drop use of SET_BB_END.
1001 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1002 (relink_block_chain): Likewise.
1003 (fixup_reorder_chain): Drop use of SET_BB_END.
1004 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1005 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1006 rtx_insn **. Drop use of SET_BB_HEADER.
1007 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1009 (BB_HEAD): Delete this function.
1010 (SET_BB_HEAD): Likewise.
1012 (SET_BB_END): Likewise.
1013 (BB_HEADER): Likewise.
1014 (SET_BB_HEADER): Likewise.
1015 * emit-rtl.c (add_insn_after): Rename param "insn" to
1016 "uncast_insn", adding a new local "insn" and a checked cast to
1017 rtx_insn *. Drop use of SET_BB_END.
1018 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1019 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1020 (reorder_insns): Drop use of SET_BB_END.
1021 (emit_insn_after_1): Strengthen param "first" and locals "last",
1022 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1023 (emit_pattern_after_noloc): Add checked cast.
1024 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1025 (restore_other_notes): Likewise.
1026 (move_insn): Likewise.
1027 (sched_extend_bb): Likewise.
1028 (fix_jump_move): Likewise.
1029 * ifcvt.c (noce_process_if_block): Likewise.
1030 (dead_or_predicable): Likewise.
1031 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1032 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1033 * sel-sched-ir.c (sel_move_insn): Likewise.
1034 * sel-sched.c (move_nop_to_previous_block): Likewise.
1036 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1038 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1040 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1042 * basic-block.h (create_basic_block_structure): Strengthen params
1043 1 "head" and 2 "end" from rtx to rtx_insn *.
1044 * cfgrtl.c (create_basic_block_structure): Likewise.
1045 (rtl_create_basic_block): Update casts from void * to rtx to
1046 rtx_insn *, so that we can pass them as rtx_insn * to
1047 create_basic_block_structure.
1048 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1050 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1052 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1054 (check_for_inc_dec): Strengthen param "insn" from rtx to
1057 * cselib.h (cselib_process_insn): Likewise.
1059 * cselib.c (cselib_record_sets): Likewise.
1060 (cselib_process_insn): Likewise.
1062 * dse.c (struct insn_info): Likewise for field "insn".
1063 (check_for_inc_dec_1): Likewise for local "insn".
1064 (check_for_inc_dec): Likewise for param "insn".
1065 (scan_insn): Likewise.
1066 (dse_step1): Likewise for local "insn".
1068 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1069 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1071 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1073 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1074 from rtx to rtx_insn *.
1075 (DEP_PRO): Delete this function and...
1076 (SET_DEP_PRO): ...this function in favor of...
1077 (DEP_PRO): ...reinstate this macro.
1078 (DEP_CON): Delete this function and...
1079 (SET_DEP_CON): ...this function in favor of...
1080 (DEP_CON): ...reinstate this old macro.
1081 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1082 (init_dep): Likewise.
1083 (set_priorities): Likewise for both params.
1084 (sd_copy_back_deps): Likewise for params 1 and 2.
1086 * haifa-sched.c (priority): Likewise for param "insn" and local
1088 (set_priorities): Likewise for params "head" and "tail" and local
1090 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1092 (add_to_speculative_block): Add a checked cast.
1093 (create_check_block_twin): Drop use of SET_DEP_CON.
1094 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1097 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1098 Drop use of SET_DEP_PRO
1099 (init_dep): Strengthen params "pro" and "con" from rtx to
1101 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1105 (SET_DEP_PRO): Delete.
1106 (SET_DEP_CON): Delete.
1108 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1110 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1111 from rtx to rtx_insn *.
1112 (VINSN_INSN_RTX): Eliminate rvalue function and...
1113 (SET_VINSN_INSN): ...lvalue function in favor of...
1114 (VINSN_INSN_RTX): reinstate this old macro.
1116 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1117 in favor of VINSN_INSN_RTX.
1118 (VINSN_INSN_RTX): Delete this function.
1119 (SET_VINSN_INSN_RTX): Likewise.
1121 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1123 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1124 (BND_TO): Delete this function and...
1125 (SET_BND_TO): ...this functions in favor of...
1126 (BND_TO): ...reinstating this macro.
1127 (struct _fence): Strengthen field "executing_insns" from
1128 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1129 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1130 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1131 and param "insn" from rtx to insn_t.
1132 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1135 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1137 (rtx_vec_t): Likewise.
1138 (struct sched_deps_info_def): Strengthen param of "start_insn"
1139 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1140 "note_mem_dep" callback and first param of "note_dep" callback.
1142 * haifa-sched.c (add_to_speculative_block): Strengthen param
1143 "insn" from rtx to rtx_insn *.
1144 (clear_priorities): Likewise.
1145 (calc_priorities): Likewise for local "insn".
1147 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1148 Remove redundant checked cast.
1149 (haifa_note_mem_dep): Likewise for param "pending_insn".
1150 (haifa_note_dep): Likewise for param "elem".
1151 (note_mem_dep): Likewise for param "e".
1152 (sched_analyze_1): Add checked casts.
1153 (sched_analyze_2): Likewise.
1155 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1156 from rtx to rtx_insn *.
1157 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1158 from vec<rtx> * to vec<rtx_insn *> *.
1160 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1162 (flist_add): Strengthen param "executing_insns" from
1163 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1164 (advance_deps_context): Remove now-redundant checked cast.
1165 (init_fences): Replace uses of NULL_RTX with NULL.
1166 (merge_fences): Strengthen params "last_scheduled_insn" and
1167 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1168 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1169 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1170 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1171 an instruction, rather than doing double-duty as a pattern.
1172 (return_nop_to_pool): Update for change of insn_t.
1173 (deps_init_id): Remove now-redundant checked cast.
1174 (struct sched_scan_info_def): Strengthen param of "init_insn"
1175 callback from rtx to insn_t.
1176 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1177 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1179 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1180 "end" from rtx to rtx_insn *.
1181 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1182 (rtx insn_rtx, bool force_unique_p)
1183 (BND_TO): Delete function.
1184 (SET_BND_TO): Delete function.
1186 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1188 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1189 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1191 (undo_transformations): Likewise for param "insn".
1192 (update_liveness_on_insn): Likewise.
1193 (compute_live_below_insn): Likewise for param "insn" and local
1195 (update_data_sets): Likewise for param "insn".
1196 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1197 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1198 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1200 (move_cond_jump): Likewise for param "insn".
1201 (move_cond_jump): Drop use of SET_BND_TO.
1202 (compute_av_set_on_boundaries): Likewise.
1203 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1204 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1205 from rtx to rtx_insn *.
1206 (maybe_emit_renaming_copy): Likewise for param "insn".
1207 (maybe_emit_speculative_check): Likewise.
1208 (handle_emitting_transformations): Likewise.
1209 (remove_insn_from_stream): Likewise.
1210 (code_motion_process_successors): Strengthen local "succ" from rtx
1213 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1215 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1216 ilist_t, not _xlist_t;
1217 (ILIST_INSN): Define in terms of new union field "insn".
1218 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1220 (struct _list_node): Add new field "insn" to the union, of type
1222 (ilist_add): Replace macro with an inline function, requiring an
1224 (ilist_remove): Define this macro directly in terms of
1225 _list_remove, rather than indirectly via _xlist_remove.
1226 (ilist_clear): Likewise, in terms of _list_clear rather than
1228 (ilist_is_in_p): Replace macro with an inline function, requiring
1230 (_list_iter_cond_insn): New function.
1231 (ilist_iter_remove): Define this macro directly in terms of
1232 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1233 (ilist_iterator): Define directly in terms of _list_iterator
1234 rather than indirectly through _xlist_iterator.
1235 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1236 than in terms of _FOR_EACH_X.
1237 (FOR_EACH_INSN_1): Likewise.
1239 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1243 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1244 DECL_HARD_REGISTER and return for invalid register specifications.
1245 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1246 DECL_HARD_REGISTER, call expand_one_error_var.
1247 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1248 CC_REGNUM with non-MODE_CC modes.
1249 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1251 2014-08-26 Marek Polacek <polacek@redhat.com>
1254 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1256 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1258 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1259 qi cost; add di cost.
1260 (cortexa57_addrcost_table): Likewise.
1262 2014-08-26 Marek Polacek <polacek@redhat.com>
1265 * expr.c (is_aligning_offset): Remove logical not.
1267 2014-08-26 Marek Polacek <polacek@redhat.com>
1270 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1271 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1273 2014-08-26 Richard Biener <rguenther@suse.de>
1275 PR tree-optimization/62175
1276 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1277 expand possibly trapping operations.
1279 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1281 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1282 "insn" from rtx to rtx_insn *.
1283 (permute_load): Likewise for param "insn".
1284 (permute_store): Likewise.
1285 (handle_special_swappables): Likewise for local "insn".
1286 (replace_swap_with_copy): Likewise for locals "insn" and
1288 (rs6000_analyze_swaps): Likewise for local "insn".
1290 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1292 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1295 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1297 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1298 "note_list" from rtx to rtx_insn *.
1299 (BB_NOTE_LIST): Replace this function and...
1300 (SET_BB_NOTE_LIST): ...this function with...
1301 (BB_NOTE_LIST): ...the former macro implementation.
1303 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1304 local "from_start" from rtx to rtx_insn *. Strengthen param
1305 "to_endp" from rtx * to rtx_insn **.
1307 * haifa-sched.c (concat_note_lists): Likewise.
1308 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1310 (sel_restore_notes): Likewise.
1311 (move_bb_info): Likewise.
1312 (BB_NOTE_LIST): Delete this function.
1313 (SET_BB_NOTE_LIST): Delete this function.
1314 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1315 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1317 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1319 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1320 from rtx * to rtx_insn **.
1321 (reorder2): Likewise.
1322 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1323 from rtx to rtx_insn *.
1325 * doc/tm.texi: Update mechanically for above change to target.def.
1327 * sched-int.h (note_list): Strengthen this variable from rtx to
1329 (remove_notes): Likewise for both params.
1330 (restore_other_notes): Likewise for return type and first param.
1331 (struct ready_list): Strengthen field "vec" from rtx * to
1333 (struct dep_replacement): Strenghten field "insn" from rtx to
1335 (struct deps_desc): Likewise for fields "last_debug_insn",
1337 (struct haifa_sched_info): Likewise for callback field
1338 "can_schedule_ready_p"'s param, for first param of "new_ready"
1339 callback field, for both params of "rank" callback field, for
1340 first field of "print_insn" callback field (with a const), for
1341 both params of "contributes_to_priority" callback, for param
1342 of "insn_finishes_block_p" callback, for fields "prev_head",
1343 "next_tail", "head", "tail", for first param of "add_remove_insn"
1344 callback, for first param of "begin_schedule_ready" callback, for
1345 both params of "begin_move_insn" callback, and for second param
1346 of "advance_target_bb" callback.
1347 (add_dependence): Likewise for params 1 and 2.
1348 (sched_analyze): Likewise for params 2 and 3.
1349 (deps_analyze_insn): Likewise for param 2.
1350 (ready_element): Likewise for return type.
1351 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1352 (try_ready): Strenghten param from rtx to rtx_insn *.
1353 (sched_emit_insn): Likewise for return type.
1354 (record_delay_slot_pair): Likewise for params 1 and 2.
1355 (add_delay_dependencies): Likewise for param.
1356 (contributes_to_priority): Likewise for both params.
1357 (find_modifiable_mems): Likewise.
1359 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1360 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1361 "first_older_only_insn" from rtx to rtx_insn *.
1362 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1365 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1366 "last_scheduled_iter0" from rtx to rtx_insn *.
1367 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1368 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1369 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1370 "insn" from rtx to rtx_insn *.
1371 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1373 (c6x_sched_reorder2): Strengthen param "ready" and locals
1374 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1375 "insn" from rtx to rtx_insn *.
1376 (c6x_variable_issue): Add a checked cast when assigning from insn
1377 to ss.last_scheduled_iter0.
1378 (split_delayed_branch): Strengthen param "insn" and local "i1"
1379 from rtx to rtx_insn *.
1380 (split_delayed_nonbranch): Likewise.
1381 (undo_split_delayed_nonbranch): Likewise for local "insn".
1382 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1383 "entry_after", "end_packet", "head_insn", "tail_insn",
1384 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1385 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1386 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1387 but add a checked cast on loop->start_label. Consolidate calls to
1388 avoid assigning result of gen_spkernel to "insn", now an
1391 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1392 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1394 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1395 rtx_insn **. Strengthen locals "top", "next" from rtx to
1397 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1398 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1399 (add_parameter_dependencies): Strengthen params "call", "head" and
1400 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1401 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1402 (add_dependee_for_func_arg): Likewise for param "arg" and local
1404 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1405 "tail" and locals "insn", "first_arg".
1407 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1408 for params "head", "tail" and locals "insn", "next", "next_tail".
1409 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1410 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1411 "insn", "lowest", "highest" from rtx to rtx_insn *.
1412 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1414 (ia64_sched_reorder2): Likewise.
1416 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1417 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1418 from rtx * to rtx_insn **.
1419 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1421 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1423 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1424 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1427 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1428 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1430 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1431 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1432 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1434 (vr4130_reorder): Likewise.
1435 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1437 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1439 (mips_sched_reorder): Likewise.
1440 (mips_sched_reorder2): Likewise.
1442 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1444 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1445 Strengthen local "tmp" from rtx to rtx_insn *.
1446 (rs6000_sched_reorder2): Likewise.
1448 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1449 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1450 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1451 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1453 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1454 "tmp2" from rtx to rtx_insn *.
1455 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1456 Strengthen local "insn" from rtx to rtx_insn *.
1457 (ready_reorder): Strengthen param "ready" from rtx * to
1458 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1459 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1460 (sh_reorder2): Likewise.
1462 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1463 local "insn" from rtx to rtx_insn *.
1465 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1467 (scheduled_insns): Strengthen this variable from vec<rtx> to
1469 (set_modulo_params): Likewise for locals "i1", "i2".
1470 (record_delay_slot_pair): Likewise for params "i1", "i2".
1471 (add_delay_dependencies): Likewise for param "insn".
1472 (cond_clobbered_p): Likewise.
1473 (recompute_todo_spec): Likewise for local "prev".
1474 (last_scheduled_insn): Likewise for this variable.
1475 (nonscheduled_insns_begin): Likewise.
1476 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1478 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1480 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1481 Strengthen local "insn" from rtx to rtx_insn *.
1482 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1483 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1484 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1485 (ready_remove_first): Likewise for return type and local "t".
1486 (ready_element): Likewise for return type.
1487 (ready_remove): Likewise for return type and local "t".
1488 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1489 (check_clobbered_conditions): Strengthen local "x" from rtx to
1490 rtx_insn *, adding a checked cast.
1491 (schedule_insn): Likewise for param "insn".
1492 (remove_notes): Likewise for params "head", "tail" and locals
1493 "next_tail", "insn", "next".
1494 (struct haifa_saved_data): Likewise for fields
1495 "last_scheduled_insn", "nonscheduled_insns_begin".
1496 (save_backtrack_point): Update for change to field "vec" of
1498 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1500 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1501 from rtx to rtx_insn *
1502 (resolve_dependencies): Strengthen param "insn" from rtx to
1504 (restore_other_notes): Likewise for return type, for param "head"
1505 and local "note_head".
1506 (undo_all_replacements): Likewise for local "insn".
1507 (first_nonscheduled_insn): Likewise for return type and local "insn".
1508 (queue_to_ready): Likewise for local "insn", adding checked casts.
1509 (early_queue_to_ready): Likewise for local "insn".
1510 (debug_ready_list_1): Strengthen local "p" from rtx * to
1512 (move_insn): Strengthen param "insn" and local "note" from rtx to
1514 (insn_finishes_cycle_p): Likewise for param "insn".
1515 (max_issue): Likewise for local "insn".
1516 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1518 (commit_schedule): Strengthen param "prev_head" and local "insn"
1519 from rtx to rtx_insn *
1520 (prune_ready_list): Likewise for local "insn".
1521 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1522 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1523 (set_priorities): Likewise for local "prev_head".
1524 (try_ready): Likewise for param "next".
1525 (fix_tick_ready): Likewise.
1526 (change_queue_index): Likewise.
1527 (sched_extend_ready_list): Update for change to field "vec" of
1529 (generate_recovery_code): Strengthen param "insn" from rtx to
1531 (begin_speculative_block): Likewise.
1532 (create_check_block_twin): Likewise for param "insn" and locals
1533 "label", "check", "twin". Introduce local "check_pat" to avoid
1534 "check" being used as a plain rtx before being used as an insn.
1535 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1536 extracting elements from ready_list.
1537 (sched_remove_insn): Strengthen param "insn" from rtx to
1539 (sched_emit_insn): Likewise for return type.
1540 (ready_remove_first_dispatch): Likewise for return type and local
1543 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1545 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1548 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1549 from rtx to rtx_insn *.
1550 (add_dependence_list): Likewise for param "insn". Add a checked
1552 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1553 to rtx_insn *. Strengthen param "list_p" from rtx * to
1555 (chain_to_prev_insn): Strengthen param "insn" and locals
1556 "prec_nonnote", "i" from rtx to rtx_insn *.
1557 (flush_pending_lists): Likewise for param "insn".
1558 (cur_insn): Likewise for this variable.
1559 (haifa_start_insn): Add a checked cast.
1560 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1561 (sched_analyze_reg): Likewise for param "insn".
1562 (sched_analyze_1): Likewise.
1563 (sched_analyze_2): Likewise. Add checked casts.
1564 (sched_analyze_insn): Likewise. Also for local "prev".
1565 (deps_analyze_insn): Likewise for param "insn".
1566 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1567 (add_dependence_1): Likewise for params "insn", "elem".
1568 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1569 (parse_add_or_inc): Likewise for param "insn".
1570 (find_inc): Likewise for local "inc_cand".
1571 (find_modifiable_mems): Likewise for params "head", "tail" and
1572 locals "insn", "next_tail".
1574 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1575 (begin_schedule_ready): Likewise for param "insn".
1576 (begin_move_insn): Likewise for params "insn" and "last".
1577 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1579 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1580 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1581 (ebb_add_remove_insn): Likewise for param "insn".
1582 (advance_target_bb): Likewise.
1584 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1586 (check_live): Likewise for param "insn".
1587 (init_ready_list): Likewise for local "insn".
1588 (can_schedule_ready_p): Likewise for param "insn".
1589 (begin_schedule_ready): Likewise.
1590 (new_ready): Likewise for param "next".
1591 (rgn_print_insn): Likewise for param "insn".
1592 (rgn_rank): Likewise for params "insn1", "insn2".
1593 (contributes_to_priority): Likewise for params "next", "insn".
1594 (rgn_insn_finishes_block_p): Likewise for param "insn".
1595 (add_branch_dependences): Likewise for params "head", "tail" and
1596 locals "insn", "last".
1597 (rgn_add_remove_insn): Likewise for param "insn".
1598 (advance_target_bb): Likewise.
1600 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1601 const_rtx to const rtx_insn *.
1603 * sel-sched-dump.h (sel_print_insn): Likewise.
1605 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1606 (deps_init_id): Likewise.
1608 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1609 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1612 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1614 * output.h (final_start_function): Strengthen param 1 from rtx to
1617 * final.c (final_start_function): Likewise, renaming back from
1618 "uncast_first" to "first", and dropping the checked cast from rtx
1621 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1623 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1624 * final.c (final): Likewise. Rename param back from
1625 "uncast_first" to "first" and eliminate the checked cast from rtx
1628 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1630 * output.h (shorten_branches): Strengthen param from rtx to
1633 * final.c (shorten_branches): Likewise, renaming param back from
1634 "uncast_first" to "first", and dropping the checked cast from rtx
1637 * genattr.c (gen_attr): Likewise when writing out the prototype of
1640 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1642 * sched-int.h (struct haifa_sched_info): Strengthen fields
1643 "prev_head" and "next_tail" from rtx to rtx_insn *.
1645 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1647 * rtl.h (rtx_jump_table_data::get_labels): New method.
1648 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1649 with use of the new rtx_jump_table_data::get_labels method.
1650 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1651 to rtx_jump_table_data *. Simplify by using get_labels method.
1652 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1653 a dyn_cast, introducing local "table", using it to replace
1654 label-lookup logic with a get_labels method call.
1655 (patch_jump_insn): Simplify using get_labels method.
1656 * dwarf2cfi.c (create_trace_edges): Likewise.
1657 * rtlanal.c (label_is_jump_target_p): Likewise.
1659 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1661 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1664 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1665 (unshare_all_rtl_again): Likewise, also for local "p".
1667 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1669 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1671 * cfgrtl.c (delete_insn_and_edges): Likewise.
1673 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1675 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1676 from rtx to rtx_insn *.
1678 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1680 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1682 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1683 locals "returnjump", "epilogue_end", "insn", "next".
1685 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1686 "returnjump" from rtx * to rtx_insn **.
1687 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1689 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1691 * basic-block.h (struct edge_def). Strengthen "r" within
1692 union edge_def_insns from rtx to rtx_insn *.
1694 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1695 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1697 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1698 from rtx to rtx_insn *.
1699 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1701 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1702 (reg_used_on_edge): Likewise.
1703 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1704 (gt_pch_nx): New overload for rtx_insn *&.
1705 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1706 from rtx to rtx_insn *.
1708 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1710 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1711 from rtx to rtx_insn *.
1712 (BB_FOOTER): Replace function with access macro.
1713 (SET_BB_FOOTER): Delete.
1715 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1717 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1718 (emit_barrier_after_bb): Likewise.
1719 (record_effective_endpoints): Likewise.
1720 (relink_block_chain): Likewise.
1721 (fixup_fallthru_exit_predecessor): Likewise.
1722 (cfg_layout_duplicate_bb): Likewise.
1723 (cfg_layout_split_block): Likewise.
1724 (cfg_layout_delete_block): Likewise.
1725 (cfg_layout_merge_blocks): Likewise.
1726 (BB_FOOTER): Delete function.
1727 (SET_BB_FOOTER): Delete function.
1728 * combine.c (update_cfg_for_uncondjump): Replace uses of
1729 SET_BB_FOOTER with BB_FOOTER.
1731 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1733 * except.h (struct eh_landing_pad_d): Strengthen field
1734 "landing_pad" from rtx to rtx_code_label *.
1736 * except.c (sjlj_emit_dispatch_table): Likewise for param
1738 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1740 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1742 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1743 first param from rtx to rtx_insn *.
1744 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1745 field "set_frame_ptr_insn".
1746 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1747 "csend" from rtx to rtx_code_label *.
1748 (xtensa_expand_atomic): Likewise for local "csloop".
1749 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1751 (xtensa_call_tls_desc): Likewise for return type and locals
1752 "call_insn", "insns".
1753 (xtensa_legitimize_tls_address): Likewise for local "insns".
1754 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1756 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1758 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1759 first param from rtx to rtx_insn *.
1760 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1763 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1765 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1766 Strengthen param 1 from rtx to rtx_insn *.
1767 (tilepro_output_cbranch): Likewise.
1768 (tilepro_adjust_insn_length): Likewise.
1769 (tilepro_final_prescan_insn): Likewise for sole param.
1771 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1772 Likewise for local "last".
1773 (cbranch_predicted_p): Likewise for param "insn".
1774 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1775 (tilepro_output_cbranch_with_opcode): Likewise.
1776 (tilepro_output_cbranch): Likewise.
1777 (frame_emit_load): Likewise for return type and locals "seq",
1779 (emit_sp_adjust): Likewise for return type and local "insn".
1780 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1782 (tilepro_adjust_insn_length): Likewise for param "insn".
1783 (next_insn_to_bundle): Likewise for return type and params
1785 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1786 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1788 (match_addli_pcrel): Likewise for param "insn".
1789 (replace_addli_pcrel): Likewise.
1790 (match_auli_pcrel): Likewise.
1791 (replace_auli_pcrel): Likewise.
1792 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1794 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1795 "queue", "next_queue", "prev".
1796 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1797 (tilepro_final_prescan_insn): Likewise for param "insn".
1799 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1801 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1802 Strengthen param 1 from rtx to rtx_insn *.
1803 (tilegx_output_cbranch): Likewise.
1804 (tilegx_adjust_insn_length): Likewise.
1805 (tilegx_final_prescan_insn): Likewise for sole param.
1807 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1809 (cbranch_predicted_p): Likewise for param "insn".
1810 (tilegx_output_simple_cbranch_with_opcode): Likewise.
1811 (tilegx_output_cbranch_with_opcode): Likewise.
1812 (tilegx_output_cbranch): Likewise.
1813 (frame_emit_load): Likewise for return type.
1814 (set_frame_related_p): Likewise for locals "seq", "insn".
1815 (emit_sp_adjust): Likewise for return type, and for local "insn".
1816 Introduce local "pat" for use in place of "insn" where the latter
1817 isn't an instruction.
1818 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
1819 from rtx to rtx_insn *.
1820 (tilegx_adjust_insn_length): Likewise for param "insn".
1821 (next_insn_to_bundle): Likewise for return type and params "r" and
1823 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
1825 (replace_insns): Likewise for params "old_insn", "new_insns".
1826 (replace_mov_pcrel_step1): Likewise for param "insn" and local
1828 (replace_mov_pcrel_step2): Likewise.
1829 (replace_mov_pcrel_step3): Likewise.
1830 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
1832 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1833 "queue", "next_queue", "prev".
1834 (tilegx_output_mi_thunk): Likewise for local "insn".
1835 (tilegx_final_prescan_insn): Likewise for param "insn".
1837 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1839 * config/spu/spu.c (frame_emit_store): Strengthen return type from
1841 (frame_emit_load): Likewise.
1842 (frame_emit_add_imm): Likewise, also for local "insn".
1843 (spu_expand_prologue): Likewise for local "insn".
1844 (struct spu_bb_info): Likewise for field "prop_jump".
1845 (emit_nop_for_insn): Likewise for param "insn" and local
1847 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
1849 (spu_emit_branch_hint): Likewise for params "before", "branch" and
1850 locals "hint", "insn".
1851 (get_branch_target): Likewise for param "branch".
1852 (insn_clobbers_hbr): Likewise for param "insn".
1853 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
1854 locals "insn", "before_4", "before_16".
1855 (insert_hbrp): Likewise for local "insn".
1856 (spu_machine_dependent_reorg): Likewise for locals "branch",
1857 "insn", "next", "bbend".
1858 (uses_ls_unit): Likewise for param "insn".
1859 (get_pipe): Likewise.
1860 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
1861 introducing a checked cast.
1862 (spu_sched_adjust_cost): Likewise for params "insn" and
1864 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
1865 (spu_sms_res_mii): Likewise.
1867 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1869 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
1870 from rtx to rtx_insn *.
1871 (output_cbranch): Likewise for param 6.
1872 (output_return): Likewise for param 1.
1873 (output_sibcall): Likewise.
1874 (output_v8plus_shift): Likewise.
1875 (output_v8plus_mult): Likewise.
1876 (output_v9branch): Likewise for param 7.
1877 (output_cbcond): Likewise for param 3.
1879 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
1881 (sparc_legitimize_pic_address): Likewise.
1882 (sparc_emit_call_insn): Likewise.
1883 (emit_save_or_restore_regs): Likewise.
1884 (emit_window_save): Likewise for return type and local "insn".
1885 (sparc_expand_prologue): Likewise for local "insn".
1886 (sparc_flat_expand_prologue): Likewise.
1887 (output_return): Likewise for param "insn".
1888 (output_sibcall): Likewise for param "insn" and local "delay".
1889 (output_ubranch): Likewise for param "insn".
1890 (output_cbranch): Likewise.
1891 (output_cbcond): Likewise.
1892 (output_v9branch): Likewise.
1893 (output_v8plus_shift): Likewise.
1894 (sparc_output_mi_thunk): Likewise for local "insn".
1895 (get_some_local_dynamic_name): Likewise.
1896 (output_v8plus_mult): Likewise for param "insn".
1898 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1900 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
1901 from rtx to rtx_insn *.
1902 (output_branchy_insn): Likewise for param 3.
1903 (output_far_jump): Likewise for param 1.
1904 (final_prescan_insn): Likewise.
1905 (sh_insn_length_adjustment): Likewise for sole param.
1907 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
1908 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
1910 (sh_emit_compare_and_set): Likewise for local "lab".
1911 (output_far_jump): Strengthen param "insn" and local "prev" from
1913 (output_branchy_insn): Likewise for param "insn" and local
1915 (output_ieee_ccmpeq): Likewise for param "insn".
1916 (struct label_ref_list_d): Strengthen field "label" from rtx to
1918 (pool_node): Likewise.
1919 (pool_window_label): Likewise for this global.
1920 (add_constant): Likewise for return type and locals "lab", "new_rtx".
1921 (dump_table): Strengthen params "start", "barrier" and local
1922 "scan" from rtx to rtx_insn *.
1923 (broken_move): Likewise for param "insn".
1924 (untangle_mova): Likewise for params "first_mova" and "new_mova".
1925 Strengthen param "first_mova" from rtx * to rtx_insn **.
1926 (mova_p): Likewise for param "insn".
1927 (fixup_mova): Likewise for param "mova".
1928 (find_barrier): Likewise for return type, params "mova" and
1929 "from", and locals "barrier_before_mova", "found_barrier",
1930 "good_barrier", "orig", "last_symoff", "next". Strengthen local
1931 "label" from rtx to rtx_code_label *.
1932 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
1934 (sh_reorg): Likewise for locals "link", "scan", "barrier".
1935 (split_branches): Likewise for param "first" and local "insn".
1936 (final_prescan_insn): Likewise for param "insn".
1937 (sequence_insn_p): Likewise for locals "prev", "next".
1938 (sh_insn_length_adjustment): Likewise for param "insn".
1939 (sh_can_redirect_branch): Likewise for local "insn".
1940 (find_r0_life_regions): Likewise for locals "end", "insn".
1941 (sh_output_mi_thunk): Likewise for local "insns".
1943 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1945 * config/score/score.c (score_output_mi_thunk): Strengthen local
1946 "insn" from rtx to rtx_insn *.
1947 (score_prologue): Likewise.
1949 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1951 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
1952 1 from rtx to rtx_insn *.
1953 (s390_emit_jump): Likewise for return type.
1954 (s390_emit_call): Likewise.
1955 (s390_load_got): Likewise.
1957 * config/s390/s390.c (last_scheduled_insn): Likewise for this
1959 (s390_match_ccmode): Likewise for param "insn".
1960 (s390_emit_jump): Likewise for return type.
1961 (s390_split_branches): Likewise for local "label".
1962 (struct constant): Strengthen field "label" from rtx to
1964 (struct constant_pool): Likewise for field "label". Strengthen
1965 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
1967 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
1969 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
1970 (s390_end_pool): Likewise.
1971 (s390_dump_pool): Likewise for local "insn".
1972 (s390_mainpool_start): Likewise.
1973 (s390_chunkify_start): Likewise.
1974 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
1975 with insns. Strengthen locals "label", "jump", "barrier", "next",
1976 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
1977 (s390_chunkify_finish): Strengthen local "insn" from rtx to
1979 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
1980 "jump", "label", "next_insn".
1981 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
1982 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
1984 (s390_load_got): Likewise for return type and local "insns".
1985 (s390_save_gprs_to_fprs): Likewise for local "insn".
1986 (s390_restore_gprs_from_fprs): Likewise.
1987 (pass_s390_early_mach::execute): Likewise.
1988 (s390_emit_prologue): Likewise for local "insns".
1989 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
1991 (s390_emit_call): Strengthen return type and local "insn" from
1993 (s390_emit_tpf_eh_return): Likewise for local "insn".
1994 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
1995 "next_insn", introducing locals "s_pat", "rpat" to allow this.
1996 (s390_fix_long_loop_prediction): Likewise for param "insn" and
1998 (s390_non_addr_reg_read_p): Likewise for param "insn".
1999 (find_cond_jump): Likewise for return type and param "insn".
2000 (s390_swap_cmp): Likewise for param "insn".
2001 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2002 "prev_insn", "next_insn".
2003 (s390_reorg): Likewise for locals "insn", "target".
2004 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2005 (s390_sched_variable_issue): For now, rename param "insn" to
2006 "uncast_insn", introducing a checked cast.
2007 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2009 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2010 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2012 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2014 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2015 param from rtx to rtx_insn *.
2016 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2018 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2020 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2021 4 from rtx to rtx_insn *.
2022 (rs6000_final_prescan_insn): Likewise for first param.
2023 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2025 (rs6000_get_some_local_dynamic_name): Likewise.
2026 (output_cbranch): Likewise for param "insn".
2027 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2028 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2029 (rs6000_emit_allocate_stack): Likewise for local "insn".
2030 (load_cr_save): Likewise.
2031 (restore_saved_cr): Likewise.
2032 (restore_saved_lr): Likewise.
2033 (emit_cfa_restores): Likewise.
2034 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2035 "deleted_debug_label".
2036 (rs6000_output_mi_thunk): Likewise for local "insn".
2037 (rs6000_final_prescan_insn): Likewise for param "insn".
2039 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2041 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2042 Strengthen param "insn" from rtx to rtx_insn *.
2043 * config/picochip/picochip.c (picochip_current_prescan_insn):
2044 Likewise for this variable.
2045 (picochip_final_prescan_insn): Likewise for param "insn".
2047 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2049 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2050 from rtx to rtx_insn *.
2051 (pa_output_indirect_call): Likewise.
2052 (pa_adjust_insn_length): Likewise.
2053 (pa_attr_length_millicode_call): Likewise.
2054 (pa_attr_length_call): Likewise.
2055 (pa_attr_length_indirect_call): Likewise.
2057 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2059 (pa_attr_length_millicode_call): Likewise.
2060 (pa_attr_length_call): Likewise.
2061 (pa_output_call): Likewise.
2062 (pa_attr_length_indirect_call): Likewise.
2063 (pa_output_indirect_call): Likewise.
2065 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2067 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2068 Strengthen first param from rtx to rtx_insn *.
2069 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2072 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2074 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2075 type from rtx to rtx_insn *.
2076 (mips_expand_call): Likewise.
2077 (mips_adjust_insn_length): Likewise for first param.
2078 (mips_output_conditional_branch): Likewise.
2079 (mips_output_order_conditional_branch): Likewise.
2080 (mips_final_prescan_insn): Likewise.
2082 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2083 rtx_insn * for the SEQUENCE case.
2084 (SEQ_END): Likewise.
2085 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2086 (mips_emit_call_insn): Likewise, also for local "insn".
2087 (mips16_gp_pseudo_reg): Likewise for local "scan".
2088 (mips16_build_call_stub): Likewise for return type and for local
2089 "insn". Introduce a new local "pattern" so that "insn" can indeed
2091 (mips_expand_call): Strengthen return type and local "insn" from
2093 (mips_block_move_loop): Strengthen local "label" from rtx to
2095 (mips_expand_synci_loop): Likewise for locals "label",
2097 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2099 (mips16e_collect_argument_saves): Likewise for locals "insn",
2101 (mips_find_gp_ref): Likewise for param of callback for "pred"
2102 param, and for local "insn".
2103 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2104 (mips_insn_has_flexible_gp_ref_p): Likewise.
2105 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2107 (mips_epilogue_set_cfa): Likewise for local "insn".
2108 (mips_expand_epilogue): Likewise.
2109 (mips_adjust_insn_length): Likewise for param "insn".
2110 (mips_output_conditional_branch): Likewise.
2111 (mips_output_order_conditional_branch): Likewise.
2112 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2113 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2114 "falu2_turn_enabled_insn".
2115 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2116 "done_label" from rtx to rtx_code_label *.
2117 (struct mips16_constant): Likewise for field "label".
2118 (mips16_add_constant): Likewise for return type.
2119 (mips16_emit_constants_1): Strengthen return type and param "insn"
2120 from rtx to rtx_insn *.
2121 (mips16_emit_constants): Likewise for param "insn".
2122 (mips16_insn_length): Likewise.
2123 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2124 to rtx_code_label *.
2125 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2126 from rtx to rtx_insn *.
2127 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2128 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2129 (r10k_simplify_address): Strengthen param "insn" and local
2130 "def_insn" from rtx to rtx_insn *.
2131 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2133 (r10k_needs_protection_p_1): Update target type of cast of data
2134 from to rtx to rtx_insn *.
2135 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2136 rtx * to rtx_insn **.
2137 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2139 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2140 (mips_call_expr_from_insn): Likewise for param "insn".
2141 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2142 (mips_find_pic_call_symbol): Likewise for param "insn".
2143 (mips_annotate_pic_calls): Likewise for local "insn".
2144 (mips_sim_insn): Likewise for this variable.
2145 (struct mips_sim): Likewise for field "insn" within elements of
2147 (mips_sim_wait_reg): Likewise for param "insn".
2148 (mips_sim_wait_regs): Likewise.
2149 (mips_sim_wait_units): Likewise.
2150 (mips_sim_wait_insn): Likewise.
2151 (mips_sim_issue_insn): Likewise.
2152 (mips_sim_finish_insn): Likewise.
2153 (mips_seq_time): Likewise for param "seq" and local "insn".
2154 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2155 locals "first", "second".
2156 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2157 "last", "last2", "next".
2158 (mips_avoid_hazard): Likewise for params "after", "insn".
2159 (mips_reorg_process_insns): Likewise for locals "insn",
2160 "last_insn", "subinsn", "next_insn".
2161 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2162 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2164 (mips_output_mi_thunk): Likewise for local "insn".
2165 (mips_final_prescan_insn): Likewise for param "insn".
2167 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2169 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2170 Strengthen return type and local "insns" from rtx to rtx_insn *.
2171 (microblaze_legitimize_tls_address): Likewise for local "insns".
2172 (microblaze_block_move_loop): Strengthen local "label" from rtx
2173 to rtx_code_label *.
2174 (microblaze_expand_prologue): Strengthen two locals named "insn"
2175 from rtx to rtx_insn *.
2176 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2177 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2178 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2179 to rtx_code_label *.
2181 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2183 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2184 param from rtx to rtx_insn *.
2185 (mep_reuse_lo): Likewise for third param.
2186 (mep_use_post_modify_p): Likewise for first param.
2187 (mep_core_address_length): Likewise.
2188 (mep_cop_address_length): Likewise.
2189 (mep_final_prescan_insn): Likewise.
2190 (mep_store_data_bypass_p): Likewise for both params.
2191 (mep_mul_hilo_bypass_p): Likewise.
2192 (mep_ipipe_ldc_p): Likewise for param.
2194 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2195 (mep_rewrite_mult): Likewise.
2196 (mep_rewrite_mulsi3): Likewise.
2197 (mep_rewrite_maddsi3): Likewise.
2198 (mep_reuse_lo_p_1): Likewise.
2199 (mep_reuse_lo_p): Likewise.
2200 (mep_frame_expr): Likewise.
2201 (mep_make_parallel): Likewise for both params.
2202 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2204 (mep_use_post_modify_p): Likewise for param "insn".
2205 (mep_core_address_length): Likewise.
2206 (mep_cop_address_length): Likewise.
2207 (mep_reg_set_in_function): Likewise for local "insn".
2208 (mep_asm_without_operands_p): Likewise.
2209 (F): Likewise for return type and param "x".
2210 (add_constant): Likewise for local "insn".
2211 (maybe_dead_move): Likewise for return type and local "insn".
2212 (mep_expand_prologue): Likewise for local "insn".
2213 (mep_final_prescan_insn): Likewise for param "insn".
2214 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2215 "next", "follow", "x".
2216 (mep_insert_repeat_label_last): Likewise for return type, param
2217 "last_insn", and locals "next", "prev". Strengthen param "label"
2218 from rtx to rtx_code_label *.
2219 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2221 (struct mep_doloop_end): Likewise for fields "insn" and
2223 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2224 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2225 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2227 (mep_invert_branch): Likewise for params "insn" and "after".
2228 (mep_reorg_erepeat): Likewise for param "insns" and locals
2229 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2230 "l" from rtx to rtx_code_label *.
2231 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2232 from rtx to rtx_insn *.
2233 (mep_reorg_addcombine): Likewise for param "insns" and locals
2235 (add_sp_insn_p): Likewise for param "insn".
2236 (mep_reorg_noframe): Likewise for param "insns" and locals
2237 "start_frame_insn", "end_frame_insn", "next".
2238 (mep_reorg): Likewise for local "insns".
2239 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2241 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2242 (mep_mul_hilo_bypass_p): Likewise.
2243 (mep_ipipe_ldc_p): Likewise for param "insn".
2244 (mep_make_bundle): Likewise for return type, param "cop" and local
2245 "insn", splitting out the latter into a new local "seq" for when it
2246 is a SEQUENCE rather than an insn.
2247 (core_insn_p): Likewise for param "insn".
2248 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2249 "last", "first", "note", "prev", "core_insn".
2251 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2253 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2255 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2256 (m68k_final_prescan_insn): Likewise for first param.
2258 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2259 (m68k_set_frame_related): Likewise for param "insn".
2260 (output_btst): Likewise for param "insn".
2261 (m68k_final_prescan_insn): Likewise.
2262 (m68k_move_to_reg): Likewise for local "insn".
2263 (m68k_call_tls_get_addr): Likewise for local "insns".
2264 (m68k_call_m68k_read_tp): Likewise.
2265 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2266 (m68k_output_mi_thunk): Likewise for local "insn".
2268 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2270 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2271 first param from rtx to rtx_insn *.
2272 (iq2000_adjust_insn_length): Likewise.
2273 (iq2000_output_conditional_branch): Likewise.
2274 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2275 "insn" and local "nop_insn".
2276 (iq2000_annotate_frame_insn): Likewise for param "insn".
2277 (iq2000_expand_prologue): Likewise for both locals "insn".
2278 (iq2000_adjust_insn_length): Likewise for param "insn".
2279 (iq2000_output_conditional_branch): Likewise.
2281 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2283 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2284 "insns" from rtx to rtx_insn *.
2285 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2286 (struct spill_fill_data): Likewise for field "init_after" and for
2287 elements of array field "prev_insn".
2288 (spill_restore_mem): Likewise for locals "insn", "first".
2289 (do_spill): Likewise for local "insn".
2290 (do_restore): Likewise.
2291 (ia64_expand_prologue): Likewise.
2292 (ia64_expand_epilogue): Likewise.
2293 (emit_insn_group_barriers): Likewise for locals "insn",
2295 (emit_all_insn_group_barriers): Likewise for locals "insn",
2297 (dfa_stop_insn): Likewise for this global.
2298 (dfa_pre_cycle_insn): Likewise.
2299 (ia64_nop): Likewise.
2300 (final_emit_insn_group_barriers): Likewise for locals "insn",
2302 (emit_predicate_relation_info): Likewise for locals "head", "n",
2304 (ia64_reorg): Likewise for local "insn".
2305 (ia64_output_mi_thunk): Likewise.
2306 (expand_vec_perm_interleave_2): Likewise for local "seq".
2308 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2310 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2311 param 1 "insn" from rtx to rtx_insn *.
2312 (ix86_use_lea_for_mov): Likewise.
2313 (ix86_avoid_lea_for_addr): Likewise.
2314 (ix86_split_lea_for_addr): Likewise.
2315 (ix86_lea_for_add_ok): Likewise.
2316 (ix86_output_call_insn): Likewise.
2318 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2319 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2320 (ix86_output_function_epilogue): Likewise for locals "insn",
2321 "deleted_debug_label".
2322 (legitimize_tls_address): Likewise for local "insn".
2323 (get_some_local_dynamic_name): Likewise.
2324 (increase_distance): Likewise for params "prev", "next".
2325 (distance_non_agu_define_in_bb): Likewise for params "insn",
2326 "start" and locals "prev", "next".
2327 (distance_non_agu_define): Likewise for param "insn".
2328 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2329 locals "next", "prev".
2330 (distance_agu_use): Likewise for param "insn".
2331 (ix86_lea_outperforms): Likewise.
2332 (ix86_ok_to_clobber_flags): Likewise.
2333 (ix86_avoid_lea_for_add): Likewise.
2334 (ix86_use_lea_for_mov): Likewise.
2335 (ix86_avoid_lea_for_addr): Likewise.
2336 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2337 (ix86_split_lea_for_addr): Likewise for param "insn".
2338 (ix86_lea_for_add_ok): Likewise for param "insn".
2339 (ix86_expand_carry_flag_compare): Likewise for local
2341 (ix86_expand_int_movcc): Likewise.
2342 (ix86_output_call_insn): Likewise for param "insn".
2343 (ix86_output_call_insn): Likewise for local "i".
2344 (x86_output_mi_thunk): Introduce local "insn", using it in place
2345 of "tmp" when dealing with insns.
2346 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2348 (ix86_pad_returns): Likewise for locals "ret", "prev".
2349 (ix86_count_insn_bb): Likewise for local "insn".
2350 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2351 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2352 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2353 (expand_vec_perm_interleave2): Likewise for local "seq".
2354 (expand_vec_perm_vperm2f128_vblend): Likewise.
2355 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2356 call to for_each_rtx with for_each_rtx_in_insn.
2358 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2360 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2361 "label" from rtx to rtx_code_label *.
2362 (ix86_expand_prologue): Likewise.
2363 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2365 (ix86_split_idivmod): Likewise for locals "end_label" and
2367 (ix86_expand_branch): Likewise for local "label2".
2368 (ix86_expand_aligntest): Likewise for return type and local "label".
2369 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2371 (expand_movmem_epilogue): Likewise for the various locals named
2373 (expand_setmem_epilogue): Likewise.
2374 (expand_small_movmem_or_setmem): Likewise for local "label".
2375 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2376 Strengthen param "done_label" from rtx * to rtx_code_label **.
2377 Strengthen locals "loop_label" and "label" from rtx to
2379 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2380 Likewise for locals "loop_label", "label".
2381 (ix86_expand_set_or_movmem): Likewise for locals "label",
2382 "jump_around_label", "hot_label".
2383 (ix86_expand_strlensi_unroll_1): Likewise for locals
2384 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2386 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2387 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2388 "label2", "jump_label".
2389 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2391 (ix86_expand_lfloorceil): Likewise for local "label".
2392 (ix86_expand_rint): Likewise.
2393 (ix86_expand_floorceildf_32): Likewise.
2394 (ix86_expand_floorceil): Likewise.
2395 (ix86_expand_rounddf_32): Likewise.
2396 (ix86_expand_trunc): Likewise.
2397 (ix86_expand_truncdf_32): Likewise.
2398 (ix86_expand_round): Likewise.
2400 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2402 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2403 first param from rtx to rtx_insn *.
2404 (h8300_insn_length_from_table): Likewise.
2405 * config/h8300/h8300.c (F): Likewise for return type and param
2407 (Fpa): Add a checked cast to rtx_insn *.
2408 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2410 (final_prescan_insn): Likewise for param "insn".
2411 (h8300_binary_length): Likewise.
2412 (h8300_insn_length_from_table): Likewise.
2414 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2416 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2417 Strengthen first param "insn" from rtx to rtx_insn *.
2419 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2421 (frame_insn): Likewise for return type. Introduce local "insn"
2422 for use in place of local "x" for use as an rtx_insn *.
2423 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2424 (epiphany_expand_prologue): Likewise for local "insn".
2425 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2426 * config/epiphany/resolve-sw-modes.c
2427 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2430 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2432 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2433 param from rtx to rtx_insn *.
2434 (c6x_final_prescan_insn): Likewise for first param.
2436 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2437 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2438 (c6x_expand_compare): Strengthen local "insns" from rtx to
2440 (c6x_get_unit_specifier): Likewise for param "insn".
2441 (c6x_print_unit_specifier_field): Likewise.
2442 (c6x_final_prescan_insn): Likewise.
2443 (emit_add_sp_const): Likewise for local "insn".
2444 (c6x_expand_prologue): Likewise.
2446 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2448 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2449 param 1 from rtx to rtx_insn *.
2450 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2451 the various locals named "insn".
2452 (expand_epilogue_reg_restore): Likewise.
2453 (frame_related_constant_load): Likewise.
2454 (add_to_reg): Likewise.
2455 (emit_link_insn): Likewise.
2456 (do_link): Likewise.
2457 (expand_interrupt_handler_prologue): Likewise.
2458 (branch_dest): Likewise for param "branch".
2459 (asm_conditional_branch): Likewise for param "insn".
2460 (gen_one_bundle): Likewise for elements of param "slot" and local
2462 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2463 elements of local "slot".
2464 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2465 "queue", "next_queue", "prev".
2466 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2467 (add_sched_insns_for_speculation): Likewise for local "insn".
2469 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2471 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2472 from rtx to rtx_insn *.
2473 (output_movhi): Likewise.
2474 (output_movsisf): Likewise.
2475 (avr_out_tstsi): Likewise.
2476 (avr_out_tsthi): Likewise.
2477 (avr_out_tstpsi): Likewise.
2478 (avr_out_compare): Likewise.
2479 (avr_out_compare64): Likewise.
2480 (avr_out_movpsi): Likewise.
2481 (ashlqi3_out): Likewise.
2482 (ashlhi3_out): Likewise.
2483 (ashlsi3_out): Likewise.
2484 (ashrqi3_out): Likewise.
2485 (ashrhi3_out): Likewise.
2486 (ashrsi3_out): Likewise.
2487 (lshrqi3_out): Likewise.
2488 (lshrhi3_out): Likewise.
2489 (lshrsi3_out): Likewise.
2490 (avr_out_ashlpsi3): Likewise.
2491 (avr_out_ashrpsi3): Likewise.
2492 (avr_out_lshrpsi3): Likewise.
2493 (avr_out_fract): Likewise.
2494 (avr_out_sbxx_branch): Likewise.
2495 (avr_out_round): Likewise.
2496 (avr_out_xload): Likewise.
2497 (avr_out_movmem): Likewise.
2498 (adjust_insn_length): Likewise.
2499 (avr_out_lpm): Likewise.
2500 (reg_unused_after): Likewise.
2501 (_reg_unused_after): Likewise.
2502 (avr_jump_mode): Likewise for second param.
2503 (jump_over_one_insn): Likewise for first param.
2504 (avr_final_prescan_insn): Likewise.
2505 (out_shift_with_cnt): Likewise for second param.
2507 * config/avr/avr.c (get_sequence_length): Likewise for param
2508 "insns" and local "insn".
2509 (emit_push_byte): Likewise for local "insn".
2510 (emit_push_sfr): Likewise.
2511 (avr_prologue_setup_frame): Likewise for locals "insn",
2512 "fp_plus_insns", "sp_plus_insns".
2513 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2515 (avr_jump_mode): Likewise for param "insn".
2516 (avr_final_prescan_insn): Likewise.
2517 (avr_find_unused_d_reg): Likewise.
2518 (avr_out_lpm_no_lpmx): Likewise.
2519 (avr_out_lpm): Likewise.
2520 (avr_out_xload): Likewise.
2521 (output_movqi): Likewise.
2522 (output_movhi): Likewise.
2523 (out_movqi_r_mr): Likewise.
2524 (out_movhi_r_mr): Likewise.
2525 (out_movsi_r_mr): Likewise.
2526 (out_movsi_mr_r): Likewise.
2527 (output_movsisf): Likewise.
2528 (avr_out_load_psi): Likewise.
2529 (avr_out_store_psi): Likewise.
2530 (avr_out_movpsi): Likewise.
2531 (out_movqi_mr_r): Likewise.
2532 (avr_out_movhi_mr_r_xmega): Likewise.
2533 (out_movhi_mr_r): Likewise.
2534 (compare_condition): Likewise for param "insn" and local "next".
2535 (compare_sign_p): Likewise for param "insn".
2536 (compare_diff_p): Likewise.
2537 (compare_eq_p): Likewise.
2538 (avr_out_compare): Likewise.
2539 (avr_out_compare64): Likewise.
2540 (avr_out_tsthi): Likewise.
2541 (avr_out_tstpsi): Likewise.
2542 (avr_out_tstsi): Likewise.
2543 (out_shift_with_cnt): Likewise.
2544 (ashlqi3_out): Likewise.
2545 (ashlhi3_out): Likewise.
2546 (avr_out_ashlpsi3): Likewise.
2547 (ashlsi3_out): Likewise.
2548 (ashrqi3_out): Likewise.
2549 (ashrhi3_out): Likewise.
2550 (avr_out_ashrpsi3): Likewise.
2551 (ashrsi3_out): Likewise.
2552 (lshrqi3_out): Likewise.
2553 (lshrhi3_out): Likewise.
2554 (avr_out_lshrpsi3): Likewise.
2555 (lshrsi3_out): Likewise.
2556 (avr_out_fract): Likewise.
2557 (avr_out_round): Likewise.
2558 (avr_adjust_insn_length): Likewise.
2559 (reg_unused_after): Likewise.
2560 (_reg_unused_after): Likewise.
2561 (avr_compare_pattern): Likewise.
2562 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2563 and locals "branch1", "branch2", "insn2", "jump".
2564 (avr_reorg): Likewise for local "insn".
2565 (avr_2word_insn_p): Likewise for param "insn".
2566 (jump_over_one_insn_p): Likewise.
2567 (avr_out_sbxx_branch): Likewise.
2568 (avr_out_movmem): Likewise.
2570 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2572 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2573 param from rtx to rtx_insn *.
2574 (thumb1_final_prescan_insn): Likewise.
2575 (thumb2_final_prescan_insn): Likewise.
2577 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2579 (struct minipool_node): Likewise for field "insn".
2580 (dump_minipool): Likewise for param "scan".
2581 (create_fix_barrier): Likewise for local "from". Strengthen local
2582 "label" from rtx to rtx_code_label *.
2583 (push_minipool_barrier): Strengthen param "insn" from rtx to
2585 (push_minipool_fix): Likewise.
2586 (note_invalid_constants): Likewise.
2587 (thumb2_reorg): Likewise for local "insn".
2588 (arm_reorg): Likewise.
2589 (thumb2_final_prescan_insn): Likewise for param
2590 "insn" and local "first_insn".
2591 (arm_final_prescan_insn): Likewise for param "insn" and locals
2592 "start_insn", "this_insn".
2593 (arm_debugger_arg_offset): Likewise for param "insn".
2594 (thumb1_emit_multi_reg_push): Likewise for return type and local
2596 (thumb1_final_prescan_insn): Likewise for param "insn".
2597 (thumb_far_jump_used_p): Likewise for local "insn".
2598 (thumb1_expand_prologue): Likewise.
2599 (arm_expand_epilogue_apcs_frame): Likewise.
2600 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2601 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2602 from rtx to rtx_code_label *.
2603 (arm_split_atomic_op): Likewise for local "label".
2604 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2606 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2608 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2609 first param from rtx to rtx_insn *.
2610 (arc_verify_short): Likewise.
2611 (arc_short_long): Likewise.
2612 (arc_need_delay): Likewise.
2614 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2616 (arc_ccfsm_advance): Likewise for param "insn" and locals
2617 "start_insn", "this_insn".
2618 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2619 (arc_ccfsm_post_advance): Likewise for param "insn".
2620 (arc_next_active_insn): Likewise for return type and param "insn".
2621 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2622 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2623 (output_short_suffix): Likewise for local "insn".
2624 (arc_final_prescan_insn): Likewise for param "insn". Remove
2625 now-redundant checked cast.
2626 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2627 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2628 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2629 for use where lc_set became an insn.
2630 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2632 (arc_get_insn_variants): Likewise for local "prev".
2633 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2635 (arc_predicate_delay_insns): Likewise for local "insn".
2636 (arc_pad_return): Likewise for local "prev". For now, add a
2637 checked cast when extracting the insn from "final_sequence".
2638 (arc_short_long): Likewise for param "insn".
2639 (arc_need_delay): Likewise for param "insn" and local "next".
2640 (arc_label_align): Likewise for locals "prev", "next".
2642 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2644 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2645 "insn" from rtx to rtx_insn *.
2646 (alpha_gp_save_rtx): Likewise for local "seq".
2647 (alpha_instantiate_decls): Likewise for local "top".
2648 (get_some_local_dynamic_name): Likewise for local "insn".
2649 (alpha_does_function_need_gp): Likewise.
2650 (set_frame_related_p): Likewise for return type and for locals
2652 (emit_frame_store_1): Likewise for local "insn".
2653 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2654 (alpha_end_function): Likewise for local "insn".
2655 (alpha_output_mi_thunk_osf): Likewise.
2656 (alphaev4_insn_pipe): Likewise for param "insn".
2657 (alphaev5_insn_pipe): Likewise.
2658 (alphaev4_next_group): Likewise for return type and param 1
2660 (alphaev5_next_group): Likewise.
2661 (alpha_align_insns_1): Likewise for return type and param 1 of
2662 callback param "next_group", and for locals "i", "next", "prev",
2663 "where", "where2", "insn".
2665 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2667 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2668 rather than modifying the stmt.
2670 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2672 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2673 cgraph_state conversion.
2675 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2677 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2678 Strengthen local "insns" from rtx to rtx_insn *.
2679 (aarch64_set_frame_expr): Likewise for local "insn".
2680 (aarch64_save_or_restore_fprs): Likewise.
2681 (aarch64_save_or_restore_callee_save_registers): Likewise.
2682 (aarch64_expand_prologue): Likewise.
2683 (aarch64_expand_epilogue): Likewise.
2684 (aarch64_output_mi_thunk): Likewise.
2685 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2686 "label2" from rtx to rtx_code_label *.
2687 (aarch64_split_atomic_op): Likewise for local "label".
2689 2014-08-25 Martin Liska <mliska@suse.cz>
2691 * cgraph.h (symtab_node):
2692 (bool needed_p (void)): created from decide_is_symbol_needed
2693 (bool referred_to_p (void)): created from referred_to_p
2694 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2695 * cgraph.h (cgraph_node):
2696 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2697 (void expand (void)): created from expand_function
2698 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2699 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2700 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2701 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2702 * cgraph.h (varpool_node):
2703 (static void add (tree decl): created from varpool_add_new_variable
2704 * cgraph.h (cgraph_edge):
2706 (void remove_caller (void)): created from cgraph_edge_remove_caller
2707 (void remove_callee (void)): created from cgraph_edge_remove_callee
2708 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2709 created from cgraph_set_call_stmt
2710 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2711 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2712 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2713 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2714 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2715 created from cgraph_speculative_call_info
2716 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2717 int freq_scale, bool update_original)): created from cgraph_clone_edge
2718 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2719 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2720 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2721 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2722 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2723 (static void rebuild_references (void)): created from cgraph_rebuild_references
2724 * cgraph.h (symbol_table):
2725 (create_reference): renamed from add_reference
2726 (maybe_create_reference): renamed from maybe_add_reference
2727 (void register_symbol (symtab_node *node)): new function
2728 (void clear_asm_symbols (void)): new function
2729 (void unregister (symtab_node *node)): new function
2730 (void release_symbol (cgraph_node *node, int uid)): new function
2731 (cgraph_node * allocate_cgraph_symbol (void)): new function
2732 (void initialize (void)): created from cgraph_init
2733 (symtab_node *first_symbol (void)):new function
2734 (asm_node *first_asm_symbol (void)):new function
2735 (symtab_node *first_defined_symbol (void)):new function
2736 (varpool_node *first_variable (void)):new function
2737 (varpool_node *next_variable (varpool_node *node)):new function
2738 (varpool_node *first_static_initializer (void)):new function
2739 (varpool_node *next_static_initializer (varpool_node *node)):new function
2740 (varpool_node *first_defined_variable (void)):new function
2741 (varpool_node *next_defined_variable (varpool_node *node)):new function
2742 (cgraph_node *first_defined_function (void)):new function
2743 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2744 (cgraph_node *first_function (void)):new function
2745 (cgraph_node *next_function (cgraph_node *node)):new function
2746 (cgraph_node *first_function_with_gimple_body (void)):new function
2747 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2748 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2749 created from symtab_remove_unreachable_nodes
2750 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2751 (void process_new_functions (void)): created from cgraph_process_new_functions
2752 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2753 (bool output_variables (void)): created from varpool_node::output_variables
2754 (void output_asm_statements (void)): created from output_asm_statements
2755 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2756 (void compile (void)): created from compile
2757 (void output_weakrefs (void)): created from output_weakrefs
2758 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2759 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2760 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2761 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2762 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2763 created from cgraph_next_function_with_gimple_body
2764 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2765 created from cgraph_remove_edge_removal_hook
2766 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2767 created from cgraph_add_node_removal_hook
2768 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2769 created from cgraph_remove_node_removal_hook
2770 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2771 created from varpool_add_node_removal_hook
2772 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2773 created from varpool_remove_node_removal_hook
2774 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2775 created from cgraph_add_function_insertion_hook
2776 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2777 created from cgraph_remove_function_insertion_hook
2778 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2779 created from varpool_add_variable_insertion_hook
2780 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2781 created from varpool_remove_variable_insertion_hook
2782 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2783 created from cgraph_add_edge_duplication_hook
2784 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2785 created from cgraph_remove_edge_duplication_hook
2786 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2787 created from cgraph_add_node_duplication_hook
2788 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2789 created from cgraph_remove_node_duplication_hook
2790 (void call_edge_removal_hooks (cgraph_edge *e)):
2791 created from cgraph_call_edge_removal_hooks
2792 (void call_cgraph_insertion_hooks (cgraph_node *node)):
2793 created from call_function_insertion_hooks
2794 (void call_cgraph_removal_hooks (cgraph_node *node)):
2795 created from cgraph_call_node_removal_hooks
2796 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2797 created from cgraph_node::call_duplication_hooks
2798 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2799 created from cgraph_call_edge_duplication_hooks
2800 (void call_varpool_removal_hooks (varpool_node *node)):
2801 created from varpool_call_node_removal_hooks
2802 (void call_varpool_insertion_hooks (varpool_node *node)):
2803 created from varpool_call_variable_insertion_hooks
2804 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2805 created from insert_to_assembler_name_hash
2806 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2807 created from unlink_from_assembler_name_hash
2808 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2809 created from symtab_prevail_in_asm_name_hash
2810 (void symtab_initialize_asm_name_hash (void)):
2811 created from symtab_initialize_asm_name_hash
2812 (void change_decl_assembler_name (tree decl, tree name)):
2813 created from change_decl_assembler_name
2814 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
2815 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
2816 created from decl_assembler_name_hash
2817 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
2818 created from decl_assembler_name_equal
2819 (static hashval_t hash_node_by_assembler_name (const void *p)):
2820 created from hash_node_by_assembler_name
2821 (static int eq_assembler_name (const void *p1, const void *p2)):
2822 created from eq_assembler_name
2824 2014-08-25 Marek Polacek <polacek@redhat.com>
2826 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
2828 2014-08-25 Petr Murzin <petr.murzin@intel.com>
2830 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
2831 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
2832 SWI1248_AVX512BW mode iterator.
2834 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
2837 * config/sh/predicates.md (general_extend_operand): Disable
2838 TRUNCATE before reload completes.
2840 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
2842 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
2844 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
2847 * config/sh/sh.opt (musermode): Allow negative form.
2848 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
2849 targets that don't support it.
2850 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
2851 Document -mno-usermode option.
2853 2014-08-24 Kito Cheng <kito@0xlab.org>
2855 * system.h (CALLER_SAVE_PROFITABLE): Poison.
2856 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
2857 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
2858 * doc/tm.texi: Regenerate.
2860 2014-08-24 Kito Cheng <kito@0xlab.org>
2862 * ira.c: Fix typo in comment.
2864 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2866 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
2867 Deprecate c++1y. Change language to reflect greater confidence in C++14.
2869 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
2872 * config/pa/pa.c (pa_output_function_epilogue): Don't set
2873 last_address when the current function is a thunk.
2874 (pa_asm_output_mi_thunk): When we don't have named sections or they
2875 are not being used, check that thunk can reach the stub table with a
2878 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2880 * web.c (union_match_dups): Strengthen param "insn" from rtx to
2882 (pass_web::execute): Likewise for local "insn".
2884 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2886 * var-tracking.c (struct micro_operation_def): Strengthen field
2887 "insn" from rtx to rtx_insn *.
2888 (struct emit_note_data_def): Likewise.
2889 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
2890 (vt_stack_adjustments): Likewise for local "insn".
2891 (adjust_insn): Likewise for param "insn".
2892 (val_store): Likewise.
2893 (val_resolve): Likewise.
2894 (struct count_use_info): Likewise for field "insn".
2895 (log_op_type): Likewise for param "insn".
2896 (reverse_op): Likewise.
2897 (prepare_call_arguments): Likewise.
2898 (add_with_sets): The initial param takes an insn, but we can't
2899 yet strengthen it from rtx to rtx_insn * since it's used as a
2900 cselib_record_sets_hook callback. For now rename initial param
2901 from "insn" to "uncast_insn", and introduce a local "insn" of
2902 the stronger rtx_insn * type, with a checked cast.
2903 (compute_bb_dataflow): Strengthen local "insn" from rtx to
2905 (emit_note_insn_var_location): Likewise.
2906 (emit_notes_for_changes): Likewise.
2907 (emit_notes_for_differences): Likewise.
2908 (next_non_note_insn_var_location): Likewise for return type and
2910 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
2911 (vt_initialize): Likewise for local "insn".
2912 (delete_debug_insns): Likewise for locals "insn" and "next".
2914 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2916 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
2918 (mark_constant_pool): Likewise for local "insn".
2920 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2922 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
2924 (dead_debug_promote_uses): Likewise.
2925 (dead_debug_insert_temp): Likewise.
2927 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2929 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
2930 from const_rtx to const rtx_insn *.
2931 (store_killed_after): Likewise. Strengthen locals "last", "act"
2932 from rtx to rtx_insn *.
2933 (store_killed_before): Strengthen param "insn" from const_rtx to
2934 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
2935 (find_moveable_store): Strengthen param "insn" from rtx to
2937 (compute_store_table): Likewise for local "insn".
2938 (insert_insn_start_basic_block): Likewise for param "insn" and
2939 locals "prev", "before", "insn".
2940 (insert_store): For now, add a checked cast to rtx_insn * on the
2941 result of gen_move_insn.
2942 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
2944 (replace_store_insn): Likewise. For now, add a checked cast to
2945 rtx_insn * on the result of gen_move_insn.
2947 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2949 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
2951 (expand_sjlj_dispatch_table): Likewise.
2953 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2955 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
2956 "insn" from rtx to rtx_insn *.
2958 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2960 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
2961 "insn" from rtx to rtx_insn *.
2962 (dup_block_and_redirect): Likewise for param 3 "before".
2964 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
2965 from rtx to rtx_insn *.
2966 (move_insn_for_shrink_wrap): Likewise.
2967 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
2968 (dup_block_and_redirect): Likewise for param "before" and local
2970 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
2972 (convert_to_simple_return): Likewise for local "start".
2974 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
2975 Strengthen local "insn" from rtx to rtx_insn *, for use when
2976 invoking requires_stack_frame_p.
2978 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2980 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
2982 (speculate_expr): Likewise for locals "orig_insn_rtx",
2984 (eq_transformed_insns): Likewise for locals "i1", "i2".
2985 (check_for_new_jump): Likewise for return type and local "end".
2986 (find_new_jump): Likewise for return type and local "jump".
2987 (sel_split_edge): Likewise for local "jump".
2988 (sel_create_recovery_block): Likewise.
2989 (sel_redirect_edge_and_branch_force): Likewise.
2990 (sel_redirect_edge_and_branch): Likewise.
2992 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2994 * sel-sched.c (substitute_reg_in_expr): Strengthen local
2995 "new_insn" from rtx to rtx_insn *.
2996 (create_insn_rtx_with_rhs): Likewise for return type and for local
2998 (create_insn_rtx_with_lhs): Likewise.
2999 (create_speculation_check): Likewise for local "insn_rtx".
3000 (implicit_clobber_conflict_p): Likewise for local "insn".
3001 (get_expr_cost): Likewise.
3002 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3003 (move_cond_jump): Likewise for locals "next", "prev", "link",
3004 "head", "from", "to".
3006 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3008 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3009 "next" from rtx to rtx_insn *.
3010 (find_conditional_protection): Likewise for local "next".
3011 (is_conditionally_protected): Likewise for local "insn1".
3012 (is_pfree): Likewise for locals "insn1", "insn2".
3014 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3016 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3017 from rtx to rtx_insn *.
3019 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3020 locals "insn1", "insn2" from rtx to rtx_insn *.
3021 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3022 locals "insn", "prev", "last_jump", "next_tail".
3023 (schedule_ebb): Likewise for params "head", "tail".
3024 (schedule_ebbs): Likewise for locals "tail", "head".
3026 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3027 to rtx_insn on "last_insn" in one of the invocations of
3030 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3032 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3033 "elem", "insn" from rtx to rtx_insn *.
3034 (change_spec_dep_to_hard): Likewise.
3035 (get_back_and_forw_lists): Likewise for local "con".
3036 (sd_add_dep): Likewise for locals "elem", "insn".
3037 (sd_resolve_dep): Likewise for locals "pro", "con".
3038 (sd_unresolve_dep): Likewise.
3039 (sd_delete_dep): Likewise.
3040 (chain_to_prev_insn): Likewise for local "pro".
3041 (find_inc): Likewise for locals "pro", "con".
3043 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3045 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3047 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3049 (modified_between_p): Strengthen local "insn" from rtx to
3051 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3052 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3055 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3057 * resource.c (next_insn_no_annul): Strengthen local "next" from
3059 (mark_referenced_resources): Likewise for local "insn".
3061 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3063 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3065 (find_reloads): Likewise for param 1.
3066 (subst_reloads): Likewise for sole param.
3067 (find_equiv_reg): Likwise for param 2.
3068 (regno_clobbered_p): Likwise for param 2.
3069 (reload): Likewise for param 1.
3071 * caller-save.c (save_call_clobbered_regs): Strengthen local
3072 "insn" from rtx to rtx_insn *.
3073 (insert_one_insn): Likewise for local "insn".
3075 * reload.c (this_insn): Likewise for this global.
3076 (find_reloads): Likewise for param "insn".
3077 (find_reloads_toplev): Likewise.
3078 (find_reloads_address): Likewise.
3079 (subst_reg_equivs): Likewise.
3080 (update_auto_inc_notes): Likewise.
3081 (find_reloads_address_1): Likewise.
3082 (find_reloads_subreg_address): Likewise.
3083 (subst_reloads): Likewise.
3084 (find_equiv_reg): Likewise, also for local "p".
3085 (regno_clobbered_p): Likewise for param "insn".
3087 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3089 (spill_reg_store): Likewise for the elements of this array.
3090 (remove_init_insns): Likewise for local "equiv_insn".
3091 (will_delete_init_insn_p): Likewise for param "insn".
3092 (reload): Likewise for param ""first" and local "insn".
3093 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3095 (calculate_elim_costs_all_insns): Likewise.
3096 (delete_caller_save_insns): Likewise.
3097 (spill_failure): Likewise for param "insn".
3098 (delete_dead_insn): Likewise.
3099 (set_label_offsets): Likewise.
3100 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3102 (elimination_costs_in_insn): Likewise for param "insn".
3103 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3104 when referring to an insn.
3105 (set_initial_label_offsets): Likewise.
3106 (set_offsets_for_label): Strengthen param "insn" from rtx to
3108 (init_eliminable_invariants): Likewise for param "first" and local
3110 (fixup_eh_region_note): Likewise for param "insn".
3111 (reload_as_needed): Likewise for locals "prev", "insn",
3112 "old_next", "old_prev", "next".
3113 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3115 (reload_inheritance_insn): Strengthen elements of this array from
3117 (failed_reload): Likewise for param "insn".
3118 (choose_reload_regs): Likewise for local "insn". Replace use of
3119 NULL_RTX with NULL when referring to an insn.
3120 (input_reload_insns): Strengthen elements of this array from rtx
3122 (other_input_address_reload_insns): Likewise for this global.
3123 (other_input_reload_insns): Likewise for this global.
3124 (input_address_reload_insns): Likwise for the elements of this
3126 (inpaddr_address_reload_insns): Likwise for the elements of this
3128 (output_reload_insns): Likewise for the elements of this array.
3129 (output_address_reload_insns): Likewise for the elements of this
3131 (outaddr_address_reload_insns): Likewise for the elements of this
3133 (operand_reload_insns): Likewise for this global.
3134 (other_operand_reload_insns): Likewise for this global.
3135 (other_output_reload_insns): Likewise for the elements of this
3137 (new_spill_reg_store): Likewise for the elements of this
3139 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3140 Strengthen local "where" from rtx * to rtx_insn **.
3141 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3142 from rtx to rtx_insn *.
3143 (do_input_reload): Likewise for local "insn".
3144 (do_output_reload): Likewise for local "insn".
3145 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3146 (emit_insn_if_valid_for_reload): Likewise for return type and local
3147 "last". Add checked cast to rtx_insn when returning "insn" since
3148 this has been through emit_insn.
3149 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3150 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3151 returning "insn" since it's been through
3152 emit_insn_if_valid_for_reload at this point.
3153 (delete_output_reload): Strengthen param "insn" and locals
3154 "output_reload_insn", "i2" from rtx to rtx_insn *.
3155 (delete_address_reloads): Likewise for params "dead_insn",
3156 "current_insn" and locals "prev", "next".
3157 (delete_address_reloads_1): Likewise for params "dead_insn",
3158 "current_insn" and locals "prev", "i2".
3159 (inc_for_reload): Likewise for locals "last", "add_insn".
3160 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3163 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3164 param of this duplicate of the prototype from reload.h
3166 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3168 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3170 (regstat_bb_compute_calls_crossed): Likewise.
3172 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3174 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3176 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3178 (regrename_analyze): Strengthen local "insn" from rtx to
3180 (scan_rtx_reg): Likewise for param "insn".
3181 (scan_rtx_address): Likewise.
3182 (scan_rtx): Likewise.
3183 (restore_operands): Likewise.
3184 (record_out_operands): Likewise.
3185 (build_def_use): Likewise for local "insn". Replace use of
3186 NULL_RTX with NULL when dealing with an insn.
3188 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3190 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3191 * reginfo.c (reg_scan): Likewise, also for local "insn".
3192 (reg_scan_mark_refs): Likewise for param "insn".
3193 (init_subregs_of_mode): Likewise for local "insn".
3195 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3197 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3198 "insn" from rtx to rtx_insn *.
3199 (replace_oldest_value_reg): Likewise for param "insn".
3200 (replace_oldest_value_addr): Likewise.
3201 (replace_oldest_value_mem): Likewise.
3202 (apply_debug_insn_changes): Likewise for local "last_insn".
3203 (copyprop_hardreg_forward_1): Likewise for local "insn".
3205 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3207 * reg-stack.c (next_flags_user): Strengthen return type and param
3208 "insn" from rtx to rtx_insn *.
3209 (straighten_stack): Likewise for param "insn".
3210 (check_asm_stack_operands): Likewise.
3211 (remove_regno_note): Likewise.
3212 (emit_pop_insn): Likewise for return type, param "insn", local
3214 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3215 "limit" from rtx to rtx_insn *.
3216 (swap_to_top): Likewise for param "insn".
3217 (move_for_stack_reg): Likewise.
3218 (move_nan_for_stack_reg): Likewise.
3219 (swap_rtx_condition): Likewise.
3220 (compare_for_stack_reg): Likewise.
3221 (subst_all_stack_regs_in_debug_insn): Likewise.
3222 (subst_stack_regs_pat): Likewise, and local "insn2".
3223 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3225 (subst_stack_regs): Likewise.
3226 (change_stack): Likewise.
3227 (convert_regs_1): Likewise for locals "insn", "next".
3229 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3231 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3233 (combine_set_extension): Likewise for param "curr_insn".
3234 (transform_ifelse): Likewise for param "def_insn".
3235 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3236 from vec<rtx> * to vec<rtx_insn *> *.
3237 (is_cond_copy_insn): Likewise for param "insn".
3238 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3240 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3241 local "def_insn" from rtx to rtx_insn *.
3242 (get_sub_rtx): Likewise for param "def_insn".
3243 (merge_def_and_ext): Likewise.
3244 (combine_reaching_defs): Likewise.
3245 (add_removable_extension): Likewise for param "insn".
3246 (find_removable_extensions): Likewise for local "insn".
3247 (find_and_remove_re): Likewise for locals "curr_insn" and
3248 "def_insn". Strengthen locals "reinsn_del_list" and
3249 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3251 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3253 * recog.c (split_insn): Strengthen param "insn" and locals
3254 "first", "last" from rtx to rtx_insn *.
3255 (split_all_insns): Likewise for locals "insn", "next".
3256 (split_all_insns_noflow): Likewise.
3258 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3260 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3262 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3263 (debug_rtx_find): Likewise for param 1 "x".
3265 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3266 const_rtx to const rtx_insn *. Likewise for local "insn".
3267 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3268 (debug_rtx_find): Likewise for param 1 "x".
3269 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3270 from const_rtx to const rtx_insn * within the appropriate cases of
3271 the switch statement.
3273 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3274 Strengthen local "insns" from rtx to rtx_insn * since this is
3275 passed to a call to debug_rtx_list.
3277 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3279 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3282 * function.c (stack_protect_epilogue): Add checked cast to
3283 rtx_insn for now when invoking predict_insn_def.
3285 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3287 (predict_insn_def): Likewise.
3288 (rtl_predict_edge): Likewise for local "last_insn".
3289 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3291 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3293 (bb_estimate_probability_locally): Likewise for local "last_insn".
3294 (expensive_function_p): Likewise for local "insn".
3296 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3297 local "jmp", since this is used when invoking predict_insn_def.
3299 2014-08-22 Marek Polacek <polacek@redhat.com>
3302 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3304 2014-08-22 Marek Polacek <polacek@redhat.com>
3307 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3308 a comparison in parens.
3309 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3312 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3314 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3317 * cprop.c (fis_get_condition): Likewise.
3319 * postreload.c (reload_cse_regs): Likewise for param "first".
3320 (reload_cse_simplify): Likewise for param "insn".
3321 (reload_cse_regs_1): Likewise for local "insn".
3322 (reload_cse_simplify_set): Likewise for param "insn".
3323 (reload_cse_simplify_operands): Likewise.
3324 (struct reg_use): Likewise for field "insn".
3325 (reload_combine_purge_insn_uses): Likewise for param "insn".
3326 (fixup_debug_insns): Likewise for params "from", "to" and local
3328 (try_replace_in_use): Likewise for local "use_insn".
3329 (reload_combine_recognize_const_pattern): Likewise for param
3330 "insn" and locals "add_moved_after_insn", "use_insn".
3331 (reload_combine_recognize_pattern): Likewise for param "insn" and
3333 (reload_combine): Likewise for locals "insn", "prev".
3334 (reload_combine_note_use): Likewise for param "insn".
3335 (move2add_use_add2_insn): Likewise.
3336 (move2add_use_add3_insn): Likewise.
3337 (reload_cse_move2add): Likewise, also for local "next".
3338 (move2add_note_store): Likewise for local "insn".
3340 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3342 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3344 (struct unoccr): Likewise.
3345 (struct modifies_mem): Likewise.
3346 (alloc_mem): Likewise for local "insn".
3347 (insert_expr_in_table): Likewise for param "insn".
3348 (dump_expr_hash_table_entry): Likewise for local "insn".
3349 (oprs_unchanged_p): Likewise for param "insn".
3350 (load_killed_in_block_p): Likewise for local "setter".
3351 (record_last_reg_set_info): Likewise for param "insn".
3352 (record_last_reg_set_info_regno): Likewise.
3353 (record_last_mem_set_info): Likewise.
3354 (record_last_set_info): Likewise for local "last_set_insn".
3355 (record_opr_changes): Likewise for param "insn".
3356 (hash_scan_set): Likewise.
3357 (compute_hash_table): Likewise for local "insn".
3358 (get_avail_load_store_reg): Likewise for param "insn".
3359 (eliminate_partially_redundant_load): Likewise, also for locals
3360 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3362 (eliminate_partially_redundant_loads): Likewise for local "insn".
3364 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3366 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3368 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3369 (expand_twoval_unop): Likewise for locals entry_last", "last".
3370 (expand_twoval_binop): Likewise.
3371 (expand_twoval_binop_libfunc): Likewise for local "insns".
3372 (widen_leading): Likewise for local "last".
3373 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3374 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3375 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3376 (expand_parity): Likewise for locals "last" and "seq".
3377 (expand_ffs): Likewise for local "seq". Strengthen local
3378 "nonzero_label" from rtx to rtx_code_label *.
3379 (expand_absneg_bit): Strengthen local "insns" from rtx to
3381 (expand_unop_direct): Likewise for local "last".
3382 (expand_unop): Likewise for locals "last", "insns".
3383 (expand_abs_nojump): Likewise for local "last".
3384 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3385 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3387 (expand_copysign_absneg): Strengthen local "label" from rtx to
3389 (expand_copysign_bit): Strengthen local "insns" from rtx to
3391 (struct no_conflict_data): Likewise for fields "first", "insn".
3392 (emit_libcall_block_1): Likewise for param "insns" and locals
3393 "next", "last", "insn".
3394 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3395 on "insns" when invoking emit_libcall_block_1. Ultimately we
3396 want to strengthen insns itself.
3397 (prepare_cmp_insn): Strengthen local "last" from rtx to
3399 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3400 (prepare_float_lib_cmp): Likewise for local "insns".
3401 (emit_conditional_move): Likewise for local "last".
3402 (emit_conditional_add): Likewise.
3403 (have_sub2_insn): Likewise for local "seq".
3404 (expand_float): Likewise for local "insns". Strengthen locals
3405 "label", "neglabel" from rtx to rtx_code_label *.
3406 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3407 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3408 (expand_fixed_convert): Likewise for local "insns" (to
3410 (expand_sfix_optab): Likewise for local "last".
3411 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3412 to rtx_code_label *.
3413 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3414 from rtx to rtx_insn *.
3415 (expand_atomic_fetch_op): Likewise for local "insn".
3416 (maybe_legitimize_operand_same_code): Likewise for local "last".
3417 (maybe_legitimize_operands): Likewise.
3419 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3421 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3422 "insn" from rtx to rtx_insn *.
3423 (ps_rtl_insn): Likewise for return type.
3424 (doloop_register_get): Likewise for params "head", "tail" and
3425 locals "insn", "first_insn_not_to_check".
3426 (schedule_reg_move): Likewise for local "this_insn".
3427 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3428 of gen_move_insn for now.
3429 (reset_sched_times): Strengthen local "insn" from rtx to
3431 (permute_partial_schedule): Likewise.
3432 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3433 (dump_insn_location): Likewise for param "insn".
3434 (loop_canon_p): Likewise for local "insn".
3435 (sms_schedule): Likewise.
3436 (print_partial_schedule): Likewise.
3437 (ps_has_conflicts): Likewise.
3439 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3441 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3442 "tailp" from rtx * to rtx_insn **.
3444 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3445 from rtx to rtx_insn *.
3446 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3447 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3448 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3450 * modulo-sched.c (const_iteration_count): Strengthen return type
3451 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3452 use of NULL_RTX with NULL when working with insns.
3453 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3455 (sms_schedule): Likewise.
3456 * sched-rgn.c (init_ready_list): Likewise, also for locals
3457 "src_head" and "src_next_tail".
3458 (compute_block_dependences): Likewise.
3459 (free_block_dependencies): Likewise.
3460 (debug_rgn_dependencies): Likewise.
3461 (free_rgn_deps): Likewise.
3462 (compute_priorities): Likewise.
3463 (schedule_region): Likewise.
3464 * sel-sched.c (find_ebb_boundaries): Likewise.
3466 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3467 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3469 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3471 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3472 from rtx to rtx_insn *.
3473 (new_seginfo): Likewise for param "insn".
3474 (create_pre_exit): Likewise for locals "last_insn",
3475 "before_return_copy", "return_copy".
3476 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3479 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3481 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3482 from rtx to rtx_insn *.
3483 (lra_push_insn): Likewise for 1st param.
3484 (lra_push_insn_and_update_insn_regno_info): Likewise.
3485 (lra_pop_insn): Likewise for return type.
3486 (lra_invalidate_insn_data): Likewise for 1st param.
3487 (lra_set_insn_deleted): Likewise.
3488 (lra_delete_dead_insn): Likewise.
3489 (lra_process_new_insns): Likewise for first 3 params.
3490 (lra_set_insn_recog_data): Likewise for 1st param.
3491 (lra_update_insn_recog_data): Likewise.
3492 (lra_set_used_insn_alternative): Likewise.
3493 (lra_invalidate_insn_regno_info): Likewise.
3494 (lra_update_insn_regno_info): Likewise.
3495 (lra_former_scratch_operand_p): Likewise.
3496 (lra_eliminate_regs_1): Likewise.
3497 (lra_get_insn_recog_data): Likewise.
3499 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3502 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3504 (substitute_within_insn): New.
3505 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3506 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3507 Replace call to "substitute" with call to substitute_within_insn.
3509 * lra-constraints.c (curr_insn): Strengthen from rtx to
3511 (get_equiv_with_elimination): Likewise for param "insn".
3512 (match_reload): Strengthen params "before" and "after" from rtx *
3514 (emit_spill_move): Likewise for return type. Add a checked cast
3515 to rtx_insn * on result of gen_move_insn for now.
3516 (check_and_process_move): Likewise for local "before". Replace
3517 NULL_RTX with NULL when referring to insns.
3518 (process_addr_reg): Strengthen params "before" and "after" from
3519 rtx * to rtx_insn **.
3520 (insert_move_for_subreg): Likewise.
3521 (simplify_operand_subreg): Strengthen locals "before" and "after"
3522 from rtx to rtx_insn *.
3523 (process_address_1): Strengthen params "before" and "after" from
3524 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3526 (process_address): Strengthen params "before" and "after" from
3527 rtx * to rtx_insn **.
3528 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3529 (curr_insn_transform): Strengthen locals "before" and "after"
3530 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3532 (loc_equivalence_callback): Update cast of "data", changing
3533 resulting type from rtx to rtx_insn *.
3534 (substitute_pseudo_within_insn): New.
3535 (inherit_reload_reg): Strengthen param "insn" from rtx to
3536 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3537 NULL when referring to insns. Add a checked cast to rtx_insn *
3538 when using usage_insn to invoke lra_update_insn_regno_info.
3539 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3540 likewise for locals "restore", "save". Add checked casts to
3541 rtx_insn * when using usage_insn to invoke
3542 lra_update_insn_regno_info and lra_process_new_insns. Replace
3543 NULL_RTX with NULL when referring to insns.
3544 (split_if_necessary): Strengthen param "insn" from rtx to
3546 (update_ebb_live_info): Likewise for params "head", "tail" and local
3548 (get_last_insertion_point): Likewise for return type and local "insn".
3549 (get_live_on_other_edges): Likewise for local "last".
3550 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3551 "prev_insn", "next_insn", "restore".
3552 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3553 (undo_optional_reloads): Likewise for local "insn".
3555 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3557 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3559 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3561 (spill_pseudos): Likewise for local "insn".
3562 (init_elimination): Likewise.
3563 (process_insn_for_elimination): Likewise for param "insn".
3565 * lra-lives.c (curr_insn): Likewise.;
3567 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3568 (remove_pseudos): Likewise for param "insn".
3569 (spill_pseudos): Likewise for local "insn".
3570 (lra_final_code_change): Likewise for locals "insn", "curr".
3572 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3573 (lra_set_insn_deleted): Likewise.
3574 (lra_delete_dead_insn): Likewise, and for local "prev".
3575 (new_insn_reg): Likewise for param "insn".
3576 (lra_set_insn_recog_data): Likewise.
3577 (lra_update_insn_recog_data): Likewise.
3578 (lra_set_used_insn_alternative): Likewise.
3579 (get_insn_freq): Likewise.
3580 (invalidate_insn_data_regno_info): Likewise.
3581 (lra_invalidate_insn_regno_info): Likewise.
3582 (lra_update_insn_regno_info): Likewise.
3583 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3585 (lra_push_insn_1): Strengthen param "insn" from rtx to
3587 (lra_push_insn): Likewise.
3588 (lra_push_insn_and_update_insn_regno_info): Likewise.
3589 (lra_pop_insn): Likewise for return type and local "insn".
3590 (push_insns): Likewise for params "from", "to", and local "insn".
3591 (setup_sp_offset): Likewise for params "from", "last" and locals
3593 (lra_process_new_insns): Likewise for params "insn", "before",
3594 "after" and local "last".
3595 (struct sloc): Likewise for field "insn".
3596 (lra_former_scratch_operand_p): Likewise for param "insn".
3597 (remove_scratches): Likewise for locals "insn", "last".
3598 (check_rtl): Likewise for local "insn".
3599 (add_auto_inc_notes): Likewise for param "insn".
3600 (update_inc_notes): Likewise for local "insn".
3601 (lra): Replace NULL_RTX with NULL when referring to insn.
3603 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3605 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3607 (resolve_reg_notes): Likewise.
3608 (resolve_simple_move): Likewise for return type, param "insn", and
3609 locals "insns", "minsn".
3610 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3611 (resolve_use): Likewise.
3612 (resolve_debug): Likewise.
3613 (find_decomposable_shift_zext): Likewise.
3614 (resolve_shift_zext): Likewise for return type, param "insn", and
3615 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3616 (decompose_multiword_subregs): Likewise for local "insn",
3617 "orig_insn", "decomposed_shift", "end".
3619 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3621 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3622 param "insns" from rtx to rtx_insn *.
3624 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3626 (struct iv_to_split): Likewise.
3627 (loop_exit_at_end_p): Likewise for local "insn".
3628 (split_edge_and_insert): Likewise for param "insns".
3629 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3630 and locals "seq", "jump".
3631 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3632 "branch_code"; update invocations of compare_and_jump_seq to
3633 eliminate NULL_RTX in favor of NULL.
3634 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3636 (reset_debug_uses_in_loop): Likewise.
3637 (analyze_insn_to_expand_var): Likewise for param "insn".
3638 (analyze_iv_to_split_insn): Likewise.
3639 (analyze_insns_in_loop): Likewise for local "insn".
3640 (insert_base_initialization): Likewise for param
3641 "insn" and local "seq".
3642 (split_iv): Likewise for param "insn" and local "seq".
3643 (expand_var_during_unrolling): Likewise for param "insn".
3644 (insert_var_expansion_initialization): Likewise for local "seq".
3645 (combine_var_copies_in_loop_exit): Likewise.
3646 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3648 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3649 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3652 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3654 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3656 (iv_analyze_result): Likewise.
3657 (iv_analyze_expr): Likewise.
3660 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3661 local "def_insn" from rtx to rtx_insn *.
3662 (get_biv_step_1): Likewise for local "insn".
3663 (iv_analyze_expr): Likewise for param "insn".
3664 (iv_analyze_def): Likewise for local "insn".
3665 (iv_analyze_op): Likewise for param "insn".
3666 (iv_analyze): Likewise.
3667 (iv_analyze_result): Likewise.
3669 (suitable_set_for_replacement): Likewise.
3670 (simplify_using_initial_values): Likewise for local "insn".
3671 (iv_number_of_iterations): Likewise for param "insn".
3672 (check_simple_exit): Add checked cast to rtx_insn when invoking
3673 iv_number_of_iterations for now (until get_condition is
3676 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3677 "insn" from rtx to rtx_insn *.
3678 (analyze_insns_in_loop): Likewise for local "insn".
3680 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3682 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3684 (struct invariant): Likewise.
3685 (hash_invariant_expr_1): Likewise for param "insn".
3686 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3687 (find_exits): Likewise for local "insn".
3688 (create_new_invariant): Likewise for param "insn".
3689 (check_dependencies): Likewise.
3690 (find_invariant_insn): Likewise.
3691 (record_uses): Likewise.
3692 (find_invariants_insn): Likewise.
3693 (find_invariants_bb): Likewise for local "insn".
3694 (get_pressure_class_and_nregs): Likewise for param "insn".
3695 (calculate_loop_reg_pressure): Likewise for local "insn".
3697 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3699 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3701 (add_test): Likewise for locals "seq", "jump".
3702 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3704 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3706 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3708 (rebuild_jump_labels_chain): Likewise for param "chain".
3710 * cfgexpand.c (pass_expand::execute): Add checked cast to
3711 rtx_insn * when calling rebuild_jump_labels_chain in region where
3712 we know e->insns.r is non-NULL.
3714 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3716 (rebuild_jump_labels): Likewise.
3717 (rebuild_jump_labels_chain): Likewise for param "chain".
3718 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3719 (init_label_info): Likewise for param "f".
3720 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3721 "prev_nonjump_insn".
3722 (mark_all_labels): Likewise for param "f" and locals "insn",
3723 "prev_nonjump_insn".
3725 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3727 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3728 from rtx to rtx_insn *insn.
3729 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3730 (ira_add_allocno_copy): Likewise.
3731 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3733 (ira_create_copy): Likewise.
3734 (ira_add_allocno_copy): Likewise.
3735 (create_bb_allocnos): Likewise for local "insn".
3736 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3737 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3738 process_regs_for_copy for rtx_insn * param.
3739 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3740 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3741 process_regs_for_copy for rtx_insn * param.
3742 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3743 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3744 (record_operand_costs): Likewise.
3745 (scan_one_insn): Likewise for return type, and for param "insn".
3746 (process_bb_for_costs): Likewise for local "insn".
3747 (process_bb_node_for_hard_reg_moves): Likewise.
3748 * ira-emit.c (struct move): Likewise for field "insn".
3749 (create_move): Eliminate use of NULL_RTX when dealing with an
3751 (emit_move_list): Strengthen return type and locals "result",
3752 "insn" from rtx to rtx_insn *insn.
3753 (emit_moves): Likewise for locals "insns", "tmp".
3754 (ira_emit): Likewise for local "insn".
3755 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3757 (find_call_crossed_cheap_reg): Likewise.
3758 (process_bb_node_lives): Likewise for local "insn".
3759 * ira.c (decrease_live_ranges_number): Likewise.
3760 (compute_regs_asm_clobbered): Likewise.
3761 (build_insn_chain): Likewise.
3762 (find_moveable_pseudos): Likewise, also locals "def_insn",
3763 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3764 to rtx_insn **. Add a checked cast when assigning from
3765 "closest_use" into closest_uses array in a region where we know
3766 it's a non-NULL insn.
3767 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3769 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3770 "last_interesting_insn", "uin".
3771 (move_unallocated_pseudos): Likewise for locals "def_insn",
3772 "move_insn", "newinsn".
3774 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3776 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3777 Strengthen locals "done_label", "do_error" from rtx to
3779 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3780 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3782 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3783 "done_label", "do_error" to rtx_code_label * and local "last" to
3785 (ubsan_expand_si_overflow_mul_check): Likewise for locals
3786 "done_label", "do_error", "large_op0", "small_op0_large_op1",
3787 "one_small_one_large", "both_ops_large", "after_hipart_neg",
3788 "after_lopart_neg", "do_overflow", "hipart_different" to
3789 rtx_code_label * and local "last" to rtx_insn *.
3791 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3793 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3794 "insn" and "move_insn" from rtx to rtx_insn *.
3796 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3798 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3800 (cheap_bb_rtx_cost_p): Likewise.
3801 (first_active_insn): Likewise for return type and local "insn".
3802 (last_active_insn): Likewise for return type and locals "insn",
3804 (struct noce_if_info): Likewise for fields "jump", "insn_a",
3806 (end_ifcvt_sequence): Likewise for return type and locals "insn",
3808 (noce_try_move): Likewise for local "seq".
3809 (noce_try_store_flag): Likewise.
3810 (noce_try_store_flag_constants): Likewise.
3811 (noce_try_addcc): Likewise.
3812 (noce_try_store_flag_mask): Likewise.
3813 (noce_try_cmove): Likewise.
3814 (noce_try_minmax): Likewise.
3815 (noce_try_abs): Likewise.
3816 (noce_try_sign_mask): Likewise.
3817 (noce_try_bitop): Likewise.
3818 (noce_can_store_speculate_p): Likewise for local "insn".
3819 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
3821 (check_cond_move_block): Likewise for local "insn".
3822 (cond_move_convert_if_block): Likewise.
3823 (cond_move_process_if_block): Likewise for locals "seq",
3825 (noce_find_if_block): Likewise for local "jump".
3826 (merge_if_block): Likewise for local "last".
3827 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
3828 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
3829 (block_has_only_trap): Likewise for return type and local "trap".
3830 (find_if_case_1): Likewise for local "jump".
3831 (dead_or_predicable): Likewise for locals "head", "end", "jump",
3834 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3836 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
3837 "last_insn", "loop_end" from rtx to rtx_insn *.
3839 * hw-doloop.c (scan_loop): Likewise for local "insn".
3840 (discover_loop): Likewise for param "tail_insn".
3841 (discover_loops): Likewise for local "tail".
3843 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
3844 cast to rtx_insn * when assigning from an rtx local to a
3845 hwloop_info's "last_insn" field.
3847 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3849 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
3850 (add_delay_dependencies): Strengthen local "pro" from rtx to
3852 (recompute_todo_spec): Likewise.
3853 (dep_cost_1): Likewise for locals "insn", "used".
3854 (schedule_insn): Likewise for local "dbg".
3855 (schedule_insn): Likewise for locals "pro", "next".
3856 (unschedule_insns_until): Likewise for local "con".
3857 (restore_pattern): Likewise for local "next".
3858 (estimate_insn_tick): Likewise for local "pro".
3859 (resolve_dependencies): Likewise for local "next".
3860 (fix_inter_tick): Likewise.
3861 (fix_tick_ready): Likewise for local "pro".
3862 (add_to_speculative_block): Likewise for locals "check", "twin",
3864 (sched_extend_bb): Likewise for locals "end", "insn".
3865 (init_before_recovery): Likewise for local "x".
3866 (sched_create_recovery_block): Likewise for local "barrier".
3867 (create_check_block_twin): Likewise for local "pro".
3868 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
3870 (unlink_bb_notes): Update for change to type of bb_header.
3871 Strengthen locals "prev", "label", "note", "next" from rtx to
3873 (clear_priorities): Likewise for local "pro".
3875 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3877 * gcse.c (struct occr): Strengthen field "insn" from rtx to
3879 (test_insn): Likewise for this global.
3880 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
3882 (oprs_anticipatable_p): Likewise.
3883 (oprs_available_p): Likewise.
3884 (insert_expr_in_table): Strengthen param "insn" from rtx to
3886 (hash_scan_set): Likewise.
3887 (hash_scan_clobber): Likewise.
3888 (hash_scan_call): Likewise.
3889 (hash_scan_insn): Likewise.
3890 (compute_hash_table_work): Likewise for local "insn".
3891 (process_insert_insn): Likewise for return type and local "pat".
3892 (insert_insn_end_basic_block): Likewise for locals "new_insn",
3893 "pat", "pat_end", "maybe_cc0_setter".
3894 (pre_edge_insert): Likewise for local "insn".
3895 (pre_insert_copy_insn): Likewise for param "insn".
3896 (pre_insert_copies): Likewise for local "insn".
3897 (struct set_data): Likewise for field "insn".
3898 (single_set_gcse): Likewise for param "insn".
3899 (gcse_emit_move_after): Likewise.
3900 (pre_delete): Likewise for local "insn".
3901 (update_bb_reg_pressure): Likewise for param "from" and local
3903 (should_hoist_expr_to_dom): Likewise for param "from".
3904 (hoist_code): Likewise for local "insn".
3905 (get_pressure_class_and_nregs): Likewise for param "insn".
3906 (calculate_bb_reg_pressure): Likewise for local "insn".
3907 (compute_ld_motion_mems): Likewise.
3909 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3911 * genpeep.c (main): Rename param back from "uncast_ins1" to
3912 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
3915 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
3917 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3920 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
3921 documentation to state it is only for VSX operations.
3923 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
3924 constraint only active if VSX.
3926 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
3927 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
3930 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3932 * fwprop.c (single_def_use_dom_walker::before_dom_children):
3933 Strengthen local "insn" from rtx to rtx_insn *.
3934 (use_killed_between): Likewise for param "target_insn".
3935 (all_uses_available_at): Likewise for param "target_insn" and
3937 (update_df_init): Likewise for params "def_insn", "insn".
3938 (update_df): Likewise for param "insn".
3939 (try_fwprop_subst): Likewise for param "def_insn" and local
3941 (free_load_extend): Likewise for param "insn".
3942 (forward_propagate_subreg): Likewise for param "def_insn" and
3944 (forward_propagate_asm): Likewise for param "def_insn" and local
3946 (forward_propagate_and_simplify): Likewise for param "def_insn"
3947 and local "use_insn".
3948 (forward_propagate_into): Likewise for locals "def_insn" and
3951 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3953 * function.c (emit_initial_value_sets): Strengthen local "seq"
3954 from rtx to rtx_insn *.
3955 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
3957 (instantiate_virtual_regs): Likewise for local "insn".
3958 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
3959 (reorder_blocks_1): Likewise for param "insns" and local "insn".
3960 (expand_function_end): Likewise for locals "insn" and "seq".
3961 (epilogue_done): Likewise for local "insn".
3962 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
3964 (reposition_prologue_and_epilogue_notes): Likewise for locals
3965 "insn", "last", "note", "first".
3966 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
3967 (pass_match_asm_constraints::execute): Likewise for local "insn".
3969 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3971 * output.h (final_scan_insn): Strengthen return type from rtx to
3973 (final_forward_branch_p): Likewise for param.
3974 (current_output_insn): Likewise for this global.
3976 * final.c (rtx debug_insn): Likewise for this variable.
3977 (current_output_insn): Likewise.
3978 (get_attr_length_1): Rename param "insn" to "uncast_insn",
3979 adding "insn" back in as an rtx_insn * with a checked cast, so
3980 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
3982 (compute_alignments): Strengthen local "label" from rtx to
3984 (shorten_branches): Rename param from "first" to "uncast_first",
3985 introducing a new local rtx_insn * "first" using a checked cast to
3986 effectively strengthen "first" from rtx to rtx_insn * without
3987 affecting the type signature. Strengthen locals "insn", "seq",
3988 "next", "label" from rtx to rtx_insn *.
3989 (change_scope): Strengthen param "orig_insn" and local "insn" from
3991 (final_start_function): Rename param from "first" to "uncast_first",
3992 introducing a new local rtx_insn * "first" using a checked cast to
3993 effectively strengthen "first" from rtx to rtx_insn * without
3994 affecting the type signature. Strengthen local "insn" from rtx to
3996 (dump_basic_block_info): Strengthen param "insn" from rtx to
3998 (final): Rename param from "first" to "uncast_first",
3999 introducing a new local rtx_insn * "first" using a checked cast to
4000 effectively strengthen "first" from rtx to rtx_insn * without
4001 affecting the type signature. Strengthen locals "insn", "next"
4002 from rtx to rtx_insn *.
4003 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4005 (call_from_call_insn): Strengthen param "insn" from rtx to
4007 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4008 introducing a new local rtx_insn * "insn" using a checked cast to
4009 effectively strengthen "insn" from rtx to rtx_insn * without
4010 affecting the type signature. Strengthen return type and locals
4011 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4012 now-redundant checked cast to rtx_insn * from both invocations of
4013 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4014 introducing a local "call_insn" for use when invoking
4015 call_from_call_insn.
4016 (notice_source_line): Strengthen param "insn" from rtx to
4018 (leaf_function_p): Likewise for local "insn".
4019 (final_forward_branch_p): Likewise.
4020 (leaf_renumber_regs): Likewise for param "first".
4021 (rest_of_clean_state): Likewise for locals "insn" and "next".
4022 (self_recursive_call_p): Likewise for param "insn".
4023 (collect_fn_hard_reg_usage): Likewise for local "insn".
4024 (get_call_fndecl): Likewise for param "insn".
4025 (get_call_cgraph_rtl_info): Likewise.
4026 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4027 introducing a new local rtx_insn * "insn" using a checked cast to
4028 effectively strengthen "insn" from rtx to rtx_insn * without
4029 affecting the type signature.
4031 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4032 cast when assigning from param "insn" to current_output_insn.
4033 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4034 so that we can assign it back to current_output_insn.
4036 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4038 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4039 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4040 atmxt540s and atmxt540sreva devices.
4041 * config/avr/avr-tables.opt: Regenerate.
4042 * config/avr/t-multilib: Regenerate.
4043 * doc/avr-mmcu.texi: Regenerate.
4045 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4047 * expr.c (convert_move): Strengthen local "insns" from rtx to
4049 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4050 "top_label" from rtx to rtx_code_label *.
4051 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4053 (emit_single_push_insn): Likewise for locals "prev", "last".
4054 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4055 to rtx_code_label *.
4056 (store_constructor): Likewise for locals "loop_start", "loop_end".
4057 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4059 (expand_expr_real_2): Likewise.
4060 (expand_expr_real_1): Strengthen local "label" from rtx to
4063 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4065 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4066 from rtx to rtx_insn *.
4067 (store_bit_field_1): Likewise.
4068 (extract_bit_field_1): Likewise.
4069 (expand_mult_const): Likewise for local "insns".
4070 (expmed_mult_highpart): Strengthen local "label" from rtx to
4072 (expand_smod_pow2): Likewise.
4073 (expand_sdiv_pow2): Likewise.
4074 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4075 rtx_insn *. Strengthen locals "label", "label1", "label2",
4076 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4077 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4078 (emit_store_flag): Likewise.
4079 (emit_store_flag_force): Strengthen local "label" from rtx to
4081 (do_cmp_and_jump): Likewise for param "label".
4083 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4085 * explow.c (force_reg): Strengthen local "insn" from rtx to
4087 (adjust_stack_1): Likewise.
4088 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4089 "final_label", "available_label", "space_available" from rtx to
4091 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4092 (anti_adjust_stack_and_probe): Likewise.
4094 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4096 * except.h (sjlj_emit_function_exit_after): Strengthen param
4097 "after" from rtx to rtx_insn *. This is only called with
4098 result of get_last_insn (in function.c) so type-change should be
4101 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4102 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4103 to rtx_insn *. These fields are only used from except.c so this
4104 type-change should be self-contained to this patch.
4106 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4107 local "last" from rtx to rtx_insn *.
4108 (dw2_build_landing_pads): Likewise for local "seq".
4109 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4110 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4111 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4113 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4115 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4116 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4117 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4118 referring to an insn. Strengthen local "dispatch_label" from
4119 rtx to rtx_code_label *.
4120 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4122 (expand_eh_return): Strengthen local "around_label" from
4123 rtx to rtx_code_label *.
4124 (convert_to_eh_region_ranges): Strengthen locals "iter",
4125 "last_action_insn", "first_no_action_insn",
4126 "first_no_action_insn_before_switch",
4127 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4129 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4131 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4132 from rtx to rtx_insn *.
4133 (cached_next_real_insn): Likewise.
4134 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4136 (dwarf2out_var_location): Strengthen locals "next_real",
4137 "next_note", "expected_next_loc_note", "last_start", "insn" from
4140 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4142 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4143 from rtx to rtx_insn *.
4144 (create_pseudo_cfg): Likewise for local "insn".
4146 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4148 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4149 from rtx to rtx_insn *.
4150 (df_bb_regno_last_def_find): Likewise.
4152 * df-problems.c (df_rd_bb_local_compute): Likewise.
4153 (df_lr_bb_local_compute): Likewise.
4154 (df_live_bb_local_compute): Likewise.
4155 (df_chain_remove_problem): Likewise.
4156 (df_chain_create_bb): Likewise.
4157 (df_word_lr_bb_local_compute): Likewise.
4158 (df_remove_dead_eq_notes): Likewise for param "insn".
4159 (df_note_bb_compute): Likewise for local "insn".
4160 (simulate_backwards_to_point): Likewise.
4161 (df_md_bb_local_compute): Likewise.
4163 * df-scan.c (df_scan_free_bb_info): Likewise.
4164 (df_scan_start_dump): Likewise.
4165 (df_scan_start_block): Likewise.
4166 (df_install_ref_incremental): Likewise for local "insn".
4167 (df_insn_rescan_all): Likewise.
4168 (df_reorganize_refs_by_reg_by_insn): Likewise.
4169 (df_reorganize_refs_by_insn_bb): Likewise.
4170 (df_recompute_luids): Likewise.
4171 (df_bb_refs_record): Likewise.
4172 (df_update_entry_exit_and_calls): Likewise.
4173 (df_bb_verify): Likewise.
4175 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4177 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4178 "first_note" from rtx to rtx_insn *.
4179 (get_node_of_insn): Likewise for param 2 "insn".
4180 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4182 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4184 (mem_write_insn_p): Likewise.
4185 (mem_access_insn_p): Likewise.
4186 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4187 (def_has_ccmode_p): Likewise for param "insn".
4188 (add_cross_iteration_register_deps): Likewise for locals
4189 "def_insn" and "use_insn".
4190 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4191 (build_intra_loop_deps): Likewise for local "src_insn".
4192 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4194 (get_node_of_insn): Likewise for param "insn".
4196 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4198 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4199 (deletable_insn_p): Strengthen param "insn" from rtx to
4200 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4201 find_call_stack_args, since this is guarded by CALL_P (insn).
4202 (marked_insn_p): Strengthen param "insn" from rtx to
4204 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4205 invoking find_call_stack_args, since this is guarded by
4207 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4208 rtx_insn *; we know this is an insn since this was called by
4210 (mark_nonreg_stores_2): Likewise.
4211 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4213 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4214 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4216 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4217 from rtx to rtx_insn *.
4218 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4220 (delete_unmarked_insns): Likewise for locals "insn", "next".
4221 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4222 (mark_reg_dependencies): Likewise for param "insn".
4223 (rest_of_handle_ud_dce): Likewise for local "insn".
4224 (word_dce_process_block): Likewise.
4225 (dce_process_block): Likewise.
4227 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4229 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4230 from rtx to rtx_insn *.
4231 (struct change_cc_mode_args): Likewise for field "insn".
4232 (this_insn): Strengthen from rtx to rtx_insn *.
4233 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4235 (validate_canon_reg): Strengthen param "insn" from rtx to
4237 (canon_reg): Likewise.
4238 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4240 (record_jump_equiv): Strengthen param "insn" from rtx to
4242 (try_back_substitute_reg): Likewise, also for locals "prev",
4244 (find_sets_in_insn): Likewise for param "insn".
4245 (canonicalize_insn): Likewise.
4246 (cse_insn): Likewise. Add a checked cast.
4247 (invalidate_from_clobbers): Likewise for param "insn".
4248 (invalidate_from_sets_and_clobbers): Likewise.
4249 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4251 (cse_prescan_path): Strengthen local "insn" from rtx to
4253 (cse_extended_basic_block): Likewise for locals "insn" and
4255 (cse_main): Likewise for param "f".
4256 (check_for_label_ref): Likewise for local "insn".
4257 (set_live_p): Likewise for second param ("insn").
4258 (insn_live_p): Likewise for first param ("insn") and for local
4260 (cse_change_cc_mode_insn): Likewise for first param "insn".
4261 (cse_change_cc_mode_insns): Likewise for first and second params
4263 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4265 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4268 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4269 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4270 Anna Tikhonova <anna.tikhonova@intel.com>
4271 Ilya Tocar <ilya.tocar@intel.com>
4272 Andrey Turetskiy <andrey.turetskiy@intel.com>
4273 Ilya Verbin <ilya.verbin@intel.com>
4274 Kirill Yukhin <kirill.yukhin@intel.com>
4275 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4277 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4279 * config/i386/sse.md
4280 (define_mode_iterator VI248_AVX2): Delete.
4281 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4282 (define_mode_iterator VI48_AVX2): Ditto.
4283 (define_insn <shift_insn><mode>3): Delete.
4284 (define_insn "<shift_insn><mode>3<mask_name>" with
4285 VI2_AVX2_AVX512BW): New.
4286 (define_insn "<shift_insn><mode>3<mask_name>" with
4289 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4290 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4291 Anna Tikhonova <anna.tikhonova@intel.com>
4292 Ilya Tocar <ilya.tocar@intel.com>
4293 Andrey Turetskiy <andrey.turetskiy@intel.com>
4294 Ilya Verbin <ilya.verbin@intel.com>
4295 Kirill Yukhin <kirill.yukhin@intel.com>
4296 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4298 * config/i386/sse.md
4299 (define_mode_iterator VI4F_BRCST32x2): New.
4300 (define_mode_attr 64x2_mode): Ditto.
4301 (define_mode_attr 32x2mode): Ditto.
4302 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4303 with VI4F_BRCST32x2): Ditto.
4304 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4305 with V16FI mode iterator): Ditto.
4306 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4308 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4309 with VI8F_BRCST64x2): Ditto.
4311 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4312 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4313 Anna Tikhonova <anna.tikhonova@intel.com>
4314 Ilya Tocar <ilya.tocar@intel.com>
4315 Andrey Turetskiy <andrey.turetskiy@intel.com>
4316 Ilya Verbin <ilya.verbin@intel.com>
4317 Kirill Yukhin <kirill.yukhin@intel.com>
4318 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4320 * config/i386/sse.md
4321 (define_mode_iterator VI8_AVX512VL): New.
4322 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4324 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4326 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4327 (define_mode_iterator V48_AVX512VL): New.
4328 (define_mode_iterator V12_AVX512VL): Ditto.
4329 (define_insn <avx512>_load<mode>_mask): Split into two similar
4330 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4331 Refactor output template.
4332 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4334 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4336 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4338 (reg_available_p): Likewise for param "insn".
4339 (insert_set_in_table): Likewise.
4340 (hash_scan_set): Likewise.
4341 (hash_scan_insn): Likewise.
4342 (make_set_regs_unavailable): Likewise.
4343 (compute_hash_table_work): Likewise for local "insn".
4344 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4346 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4347 (try_replace_reg): Likewise.
4348 (find_avail_set): Likewise.
4349 (cprop_jump): Likewise for params "setcc", "jump".
4350 (constprop_register): Likewise for param "insn".
4351 (cprop_insn): Likewise.
4352 (do_local_cprop): Likewise.
4353 (local_cprop_pass): Likewise for local "insn".
4354 (bypass_block): Likewise for params "setcc" and "jump".
4355 (bypass_conditional_jumps): Likewise for locals "setcc" and
4357 (one_cprop_pass): Likewise for local "insn".
4359 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4361 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4362 from rtx to rtx_insn *.
4363 (struct comparison): Likewise, also for field "prev_clobber".
4364 (conforming_compare): Likewise for param "insn".
4365 (arithmetic_flags_clobber_p): Likewise.
4366 (find_flags_uses_in_insn): Likewise.
4367 (find_comparison_dom_walker::before_dom_children): Likewise for
4368 locals "insn", "next", "last_clobber".
4369 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4371 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4373 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4374 "insn" from rtx to rtx_insn *.
4375 (single_set_for_csa): Likewise for param "insn".
4376 (record_one_stack_ref): Likewise.
4377 (try_apply_stack_adjustment): Likewise.
4378 (struct record_stack_refs_data): Likewise for field "insn".
4379 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4380 (prev_active_insn_bb): Likewise for return type and param "insn".
4381 (next_active_insn_bb): Likewise.
4382 (force_move_args_size_note): Likewise for params "prev" and "last"
4383 and locals "test", "next_candidate", "prev_candidate".
4384 (combine_stack_adjustments_for_block): Strengthen locals
4385 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4388 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4390 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4391 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4392 (subst_insn): Likewise for this variable.
4393 (added_links_insn): Likewise.
4394 (struct insn_link): Likewise for field "insn".
4395 (alloc_insn_link): Likewise for param "insn".
4396 (struct undobuf): Likewise for field "other_insn".
4397 (find_single_use): Likewise for param "insn" and local "next".
4398 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4399 (delete_noop_moves): Likewise for locals "insn", "next".
4400 (create_log_links): Likewise for locals "insn", "use_insn".
4401 Strengthen local "next_use" from rtx * to rtx_insn **.
4402 (insn_a_feeds_b): Likewise for params "a", "b".
4403 (combine_instructions): Likewise for param "f" and locals "insn",
4404 "next", "prev", "first", "last_combined_insn", "link", "link1",
4405 "temp". Replace use of NULL_RTX with NULL when referring to
4407 (setup_incoming_promotions): Likewise for param "first"
4408 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4409 (can_combine_p): Likewise for params "insn", "i3", "pred",
4410 "pred2", "succ", "succ2" and for local "p".
4411 (combinable_i3pat): Likewise for param "i3".
4412 (cant_combine_insn_p): Likewise for param "insn".
4413 (likely_spilled_retval_p): Likewise.
4414 (adjust_for_new_dest): Likewise.
4415 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4416 (try_combine): Likewise for return type and for params "i3", "i2",
4417 "i1", "i0", "last_combined_insn", and for locals "insn",
4418 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4419 "i0_insn". Eliminate local "tem" in favor of new locals
4420 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4421 checked cast for now to rtx_insn * on the return type of
4422 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4424 (find_split_point): Strengthen param "insn" from rtx to
4426 (simplify_set): Likewise for local "other_insn".
4427 (recog_for_combine): Likewise for param "insn".
4428 (record_value_for_reg): Likewise.
4429 (record_dead_and_set_regs_1): Likewise for local
4431 (record_dead_and_set_regs): Likewise for param "insn".
4432 (record_promoted_value): Likewise.
4433 (check_promoted_subreg): Likewise.
4434 (get_last_value_validate): Likewise.
4435 (reg_dead_at_p): Likewise.
4436 (move_deaths): Likewise for param "to_insn".
4437 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4438 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4439 in favor of new locals "tem_note" and "tem_insn", the latter being
4441 (distribute_links): Strengthen locals "place", "insn" from rtx to
4444 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4446 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4448 (can_delete_label_p): Require a const rtx_code_label * rather than
4450 (delete_insn): Add checked cast to rtx_code_label * when we know
4451 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4453 (delete_insn_chain): Strengthen locals "prev" and "current" from
4454 rtx to rtx_insn *. Add a checked cast when assigning from
4455 "finish" (strengthening the params will come later). Add a
4456 checked cast to rtx_note * in region where we know
4458 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4460 (compute_bb_for_insn): Likewise.
4461 (free_bb_for_insn): Likewise for local "insn".
4462 (compute_bb_for_insn): Likewise.
4463 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4464 local "insn" from rtx to rtx_insn *
4465 (flow_active_insn_p): Require a const rtx_insn * rather than a
4467 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4469 (can_fallthru): Likewise for locals "insn" and "insn2".
4470 (bb_note): Likewise for local "note".
4471 (first_insn_after_basic_block_note): Likewise for local "note" and
4473 (rtl_split_block): Likewise for locals "insn" and "next".
4474 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4476 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4477 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4479 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4480 them), "kill_from", "barrier", "new_insn".
4481 (patch_jump_insn): Likewise for params "insn", "old_label".
4482 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4483 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4484 "old_label", "new_label".
4485 (rtl_tidy_fallthru_edge): Likewise for local "q".
4486 (rtl_split_edge): Likewise for locals "before", "last".
4487 (commit_one_edge_insertion): Likewise for locals "before",
4488 "after", "insns", "tmp", "last", adding a checked cast where
4489 currently necessary.
4490 (commit_edge_insertions): Likewise.
4491 (rtl_dump_bb): Likewise for locals "insn", "last".
4492 (print_rtl_with_bb): Likewise for local "x".
4493 (rtl_verify_bb_insns): Likewise for local "x".
4494 (rtl_verify_bb_pointers): Likewise for local "insn".
4495 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4497 (rtl_verify_fallthru): Likewise for local "insn".
4498 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4499 (purge_dead_edges): Likewise for local "insn".
4500 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4501 (skip_insns_after_block): Likewise for return type and for locals
4502 "insn", "last_insn", "next_head", "prev".
4503 (record_effective_endpoints): Likewise for locals "next_insn",
4505 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4506 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4507 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4508 (duplicate_insn_chain): For now, add checked cast from rtx to
4509 rtx_insn * when returning insn.
4510 (cfg_layout_duplicate_bb): Likewise for local "insn".
4511 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4513 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4514 (rtl_block_empty_p): Likewise.
4515 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4516 "split_point", "last".
4517 (rtl_block_ends_with_call_p): Likewise for local "insn".
4518 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4520 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4521 "split_at_insn" from rtx to rtx_insn *.
4522 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4523 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4524 to const rtx_insn *.
4525 (rtl_account_profile_record): Likewise.
4527 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4529 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4531 (average_num_loop_insns): Likewise.
4532 (init_set_costs): Likewise for local "seq".
4533 (seq_cost): Likewise for param "seq", from const_rtx to const
4536 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4538 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4541 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4543 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4544 "f1" and "f2" from rtx * to rtx_insn **.
4545 (flow_find_head_matching_sequence): Likewise.
4547 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4548 "cbranch_insn" from rtx to rtx_insn *.
4549 (thread_jump): Likewise for local "insn".
4550 (try_forward_edges): Likewise for local "last".
4551 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4552 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4554 (can_replace_by): Likewise for params "i1", "i2".
4555 (old_insns_match_p): Likewise.
4556 (merge_notes): Likewise.
4557 (walk_to_nondebug_insn): Likewise for param "i1".
4558 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4559 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4560 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4561 (flow_find_head_matching_sequence): Strengthen params "f1" and
4562 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4563 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4565 (outgoing_edges_match): Likewise for locals "last1", "last2".
4566 (try_crossjump_to_edge): Likewise for local "insn".
4567 Replace call to for_each_rtx with for_each_rtx_in_insn.
4569 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4570 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4571 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4572 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4573 (try_optimize_cfg): Strengthen local "last" from rtx to
4575 (delete_dead_jumptables): Likewise for locals "insn", "next",
4578 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4579 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4580 "rtx else_first_tail", to reflect the basic-block.h changes above.
4582 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4584 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4586 (purge_dead_tablejump_edges): Likewise.
4587 (find_bb_boundaries): Likewise for locals "insn", "end",
4588 "flow_transfer_insn".
4590 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4592 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4593 "ins" and "prev" from rtx to rtx_insn *.
4595 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4597 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4599 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4600 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4602 (load_register_parameters): Likewise for local "before_arg".
4603 (check_sibcall_argument_overlap): Likewise for param "insn".
4604 (expand_call): Likewise for locals "normal_call_insns",
4605 "tail_call_insns", "insns", "before_call", "after_args",
4606 "before_arg", "last", "prev". Strengthen one of the "last" from
4607 rtx to rtx_call_insn *.
4608 (fixup_tail_calls): Strengthen local "insn" from rtx to
4610 (emit_library_call_value_1): Likewise for locals "before_call" and
4613 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4615 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4616 and "last" from rtx to rtx_insn *.
4617 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4618 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4620 (expand_errno_check): Strengthen local "lab" from rtx to
4622 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4624 (expand_builtin_mathfn_2): Likewise.
4625 (expand_builtin_mathfn_ternary): Likewise.
4626 (expand_builtin_mathfn_3): Likewise.
4627 (expand_builtin_interclass_mathfn): Likewise for local "last".
4628 (expand_builtin_int_roundingfn): Likewise for local "insns".
4629 (expand_builtin_int_roundingfn_2): Likewise.
4630 (expand_builtin_strlen): Likewise for local "before_strlen".
4631 (expand_builtin_strncmp): Likewise for local "seq".
4632 (expand_builtin_signbit): Likewise for local "last".
4633 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4634 from rtx to rtx_code_label *.
4635 (expand_stack_restore): Strengthen local "prev" from rtx to
4638 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4640 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4642 (struct btr_def_s): Likewise.
4643 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4645 (add_btr_def): Likewise.
4646 (new_btr_user): Likewise.
4647 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4649 (link_btr_uses): Likewise.
4650 (move_btr_def): Likewise for locals "insp", "old_insn",
4651 "new_insn". Add checked cast to rtx_insn * for now on result of
4653 (can_move_up): Strengthen param "insn" from const_rtx to
4656 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4658 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4660 (get_uncond_jump_length): Likewise for locals "label", "jump".
4661 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4663 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4664 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4665 (find_jump_block): Likewise for local "insn".
4666 (fix_crossing_conditional_branches): Likewise for locals
4667 "old_jump", "new_jump".
4668 (fix_crossing_unconditional_branches): Likewise for locals
4669 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4670 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4672 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4674 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4676 (struct mem_insn): Likewise for field "insn".
4677 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4678 (reg_next_inc_use): Likewise.
4679 (reg_next_def): Likewise.
4680 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4681 from rtx to rtx_insn *.
4682 (move_insn_before): Likewise for param "next_insn" and local "insns".
4683 (attempt_change): Likewise for local "mov_insn".
4684 (try_merge): Likewise for param "last_insn".
4685 (get_next_ref): Likewise for return type and local "insn".
4686 Strengthen param "next_array" from rtx * to rtx_insn **.
4687 (parse_add_or_inc): Strengthen param "insn" from rtx to
4689 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4691 (merge_in_block): Likewise for locals "insn", "curr",
4693 (pass_inc_dec::execute): Update allocations of the arrays to
4694 reflect the stronger types.
4696 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4698 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4699 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4700 from rtx to rtx_code_label *.
4702 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4704 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4707 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4709 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4710 generated a warning and prevented bootstrapping the compiler.
4712 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4714 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4717 * jump.c (delete_related_insns): Likewise, also for locals "next"
4720 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4722 * genautomata.c (output_internal_insn_latency_func): When writing
4723 the function "internal_insn_latency" to insn-automata.c,
4724 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4725 allowing the optional guard function of (define_bypass) clauses to
4726 expect a pair of rtx_insn *, rather than a pair of rtx.
4727 (output_insn_latency_func): When writing the function
4728 "insn_latency", add an "uncast_" prefix to params "insn" and
4729 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4730 using checked casts from the params, thus enabling the above
4731 change to the generated "internal_insn_latency" function.
4733 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4735 PR tree-optimization/62091
4736 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4737 handle correctly arrays.
4738 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4740 (record_known_type): Walk into inner type.
4741 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4742 condition on no type changes.
4744 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4746 * genattrtab.c (write_attr_get): Within the generated get_attr_
4747 functions, rename param "insn" to "uncast_insn" and reintroduce
4748 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4749 is an rtx_insn * within insn-attrtab.c
4751 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4753 * output.h (peephole): Strengthen return type from rtx to
4755 * rtl.h (delete_for_peephole): Likewise for both params.
4756 * genpeep.c (main): In generated "peephole" function, strengthen
4757 return type and local "insn" from rtx to rtx_insn *. For now,
4758 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4759 rtx_insn *, with a checked cast.
4760 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4761 locals "insn", "next", "prev" from rtx to rtx_insn *.
4763 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4765 PR tree-optimization/62112
4766 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4767 * gimple-iterator.h (gsi_replace): Return bool.
4768 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4769 moved from ref_may_alias_global_p.
4770 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4772 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4773 (stmt_kills_ref_p_1): Rename...
4774 (stmt_kills_ref_p): ... to this.
4775 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4776 stmt_kills_ref_p): Declare.
4777 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4778 Move the self-assignment case...
4779 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4781 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4783 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4785 * emit-rtl.c (try_split): Likewise, also for locals "before" and
4786 "after". For now, don't strengthen param "trial", which requires
4787 adding checked casts when returning it.
4789 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4791 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4792 "label" from rtx to rtx_code_label *. Strengthen param 1 of
4793 "var_location" hook from rtx to rtx_insn *.
4794 (debug_nothing_rtx): Delete in favor of...
4795 (debug_nothing_rtx_code_label): New prototype.
4796 (debug_nothing_rtx_rtx): Delete unused prototype.
4797 (debug_nothing_rtx_insn): New prototype.
4799 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4800 invoking debug_hooks->var_location (in two places, one in a NOTE
4801 case of a switch statement, the other guarded by a CALL_P
4802 conditional. Add checked cast to rtx_code_label * when invoking
4803 debug_hooks->label (within CODE_LABEL case of switch statement).
4805 * dbxout.c (dbx_debug_hooks): Update "label" hook from
4806 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4807 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4808 (xcoff_debug_hooks): Likewise.
4809 * debug.c (do_nothing_debug_hooks): Likewise.
4810 (debug_nothing_rtx): Delete in favor of...
4811 (debug_nothing_rtx_insn): New function.
4812 (debug_nothing_rtx_rtx): Delete unused function.
4813 (debug_nothing_rtx_code_label): New function.
4814 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
4815 debug_nothing_rtx to debug_nothing_rtx_code_label.
4816 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
4818 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
4819 debug_nothing_rtx to debug_nothing_rtx_insn.
4820 (sdbout_label): Strengthen param "insn" from rtx to
4822 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
4823 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4824 "var_location" hook from debug_nothing_rtx to
4825 debug_nothing_rtx_insn.
4827 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4829 * recog.h (insn_output_fn): Update this function typedef to match
4830 the changes below to the generated output functions, strengthening
4831 the 2nd param from rtx to rtx_insn *.
4833 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
4834 insn when invoking an output function, to match the new signature
4835 of insn_output_fn with a stronger second param.
4837 * genconditions.c (write_header): In the generated code for
4838 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
4839 to match the other changes in this patch.
4841 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
4842 the generated "gen_" functions from rtx to rtx_insn * within their
4845 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
4846 the subfunctions within the generated "recog_", "split", "peephole2"
4847 function trees from rtx to rtx_insn *. For now, the top-level
4848 generated functions ("recog", "split", "peephole2") continue to
4849 take a plain rtx for "insn", to avoid introducing dependencies on
4850 other patches. Rename this 2nd param from "insn" to
4851 "uncast_insn", and reintroduce "insn" as a local variable of type
4852 rtx_insn *, initialized at the top of the generated function with
4853 a checked cast on "uncast_insn".
4854 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
4855 the generated "gen_" functions from rtx to rtx_insn * within their
4858 * genoutput.c (process_template): Strengthen the 2nd param within
4859 the generated "output_" functions "insn" from rtx to rtx_insn *.
4861 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4863 * tree-profile.c (tree_profiling): Skip external functions
4864 when doing coverage instrumentation.
4865 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
4867 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4869 * config/rs6000/altivec.h (vec_cpsgn): New #define.
4870 (vec_mergee): Likewise.
4871 (vec_mergeo): Likewise.
4872 (vec_cntlz): Likewise.
4873 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
4874 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
4875 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
4877 * doc/extend.texi: Document various forms of vec_cpsgn,
4878 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
4879 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
4880 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
4881 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
4882 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
4884 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4886 * config/rs6000/rs6000.c (context.h): New include.
4887 (tree-pass.h): Likewise.
4888 (make_pass_analyze_swaps): New decl.
4889 (rs6000_option_override): Register pass_analyze_swaps.
4890 (swap_web_entry): New subsclass of web_entry_base (df.h).
4891 (special_handling_values): New enum.
4892 (union_defs): New function.
4893 (union_uses): Likewise.
4894 (insn_is_load_p): Likewise.
4895 (insn_is_store_p): Likewise.
4896 (insn_is_swap_p): Likewise.
4897 (rtx_is_swappable_p): Likewise.
4898 (insn_is_swappable_p): Likewise.
4899 (chain_purpose): New enum.
4900 (chain_contains_only_swaps): New function.
4901 (mark_swaps_for_removal): Likewise.
4902 (swap_const_vector_halves): Likewise.
4903 (adjust_subreg_index): Likewise.
4904 (permute_load): Likewise.
4905 (permute_store): Likewise.
4906 (handle_special_swappables): Likewise.
4907 (replace_swap_with_copy): Likewise.
4908 (dump_swap_insn_table): Likewise.
4909 (rs6000_analyze_swaps): Likewise.
4910 (pass_data_analyze_swaps): New pass_data.
4911 (pass_analyze_swaps): New rtl_opt_pass.
4912 (make_pass_analyze_swaps): New function.
4913 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
4915 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4917 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
4918 type from rtx to rtx_insn *.
4919 (create_copy_of_insn_rtx): Likewise.
4920 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
4921 (create_copy_of_insn_rtx): Likewise, also for local "res".
4923 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4925 * rtl.h (find_first_parameter_load): Strengthen return type from
4927 * rtlanal.c (find_first_parameter_load): Strengthen return type
4928 from rtx to rtx_insn *. Add checked cast for now, to postpone
4929 strengthening the params.
4931 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4934 * diagnostic.c: Set default caret.
4935 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
4937 * diagnostic.h (struct diagnostic_context):
4939 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4941 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
4942 (sel_bb_head): Strengthen return type insn_t (currently just an
4944 (sel_bb_end): Likewise.
4946 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
4947 (sel_bb_head): Strengthen return type and local "head" from
4948 insn_t (currently just an rtx) to rtx_insn *.
4949 (sel_bb_end): Likewise for return type.
4950 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
4953 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4955 * basic-block.h (get_last_bb_insn): Strengthen return type from
4957 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
4960 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4963 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
4965 (diagnostic_report_diagnostic): ... from here.
4966 * toplev.c (general_init): Move code to c-family.
4968 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4970 * df.h (web_entry_base): Replace existing struct web_entry with a
4971 new class web_entry_base with only the predecessor member.
4972 (unionfind_root): Remove declaration and move to class member.
4973 (unionfind_union): Remove declaration and move to friend
4975 (union_defs): Remove declaration.
4976 * web.c (web_entry_base::unionfind_root): Modify to be member
4977 function and adjust accessors.
4978 (unionfind_union): Modify to be friend function and adjust
4980 (web_entry): New subclass of web_entry_base containing the reg
4982 (union_match_dups): Modify for struct -> class changes.
4983 (union_defs): Likewise.
4984 (entry_register): Likewise.
4985 (pass_web::execute): Likewise.
4987 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
4989 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
4990 builtin define __VEC_ELEMENT_REG_ORDER__.
4992 2014-08-20 Martin Jambor <mjambor@suse.cz>
4993 Wei Mi <wmi@google.com>
4997 * tree-ssa-operands.c (update_stmt_operands): Remove
4998 MODIFIED_NORETURN_CALLS.
4999 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5000 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5001 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5002 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5003 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5004 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5005 (gimple_call_set_ctrl_altering): New func.
5006 (gimple_call_ctrl_altering_p): Ditto.
5007 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5008 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5009 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5010 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5011 remove MODIFIED_NORETURN_CALLS.
5013 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5015 * coverage.c (coverage_compute_profile_id): Return non-0;
5016 also handle symbols with unique name.
5017 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5019 2014-08-20 Steve Ellcey <sellcey@mips.com>
5022 * doc/sourcebuild.texi (non_strict_align): New.
5024 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5026 * cgraphunit.c (ipa_passes, compile): Reshedule
5027 symtab_remove_unreachable_nodes passes; update comments.
5028 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5029 TODO_remove_functions before the pass; the functions ought to be
5031 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5032 TODO_remove_functions.
5033 * passes.c (pass_data_early_local_passes): Do not schedule function
5035 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5037 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5040 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5041 before setting the option.
5042 * diagnostic.c (diagnostic_classify_diagnostic): Record
5043 command-line status.
5045 2014-08-20 Richard Biener <rguenther@suse.de>
5048 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5049 to build uint{16,32,64}_type_node.
5051 2014-08-20 Terry Guo <terry.guo@arm.com>
5053 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5054 with immediate_operand.
5056 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5058 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5059 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5062 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5064 PR preprocessor/51303
5065 * incpath.c (remove_duplicates): Use cpp_warning.
5067 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5071 * doc/options.texi (CPP): Document it.
5072 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5073 * optc-gen.awk: Handle CPP.
5074 * opth-gen.awk: Likewise.
5076 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5078 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5080 (duplicate_insn_chain): Likewise.
5081 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5082 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5083 checked cast for now (until we can strengthen the params in the
5085 (duplicate_insn_chain): Likewise.
5087 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5089 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5091 (prev_cc0_setter): Likewise.
5093 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5094 rtx_insn *, adding checked casts for now as necessary.
5095 (prev_cc0_setter): Likewise.
5097 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5099 * expr.h (emit_move_insn): Strengthen return type from rtx to
5101 (emit_move_insn_1): Likewise.
5102 (emit_move_complex_push): Likewise.
5103 (emit_move_complex_parts): Likewise.
5105 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5106 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5108 (emit_move_complex_push): Strengthen return type from rtx to
5110 (emit_move_complex): Likewise, also for local "ret".
5111 (emit_move_ccmode): Likewise.
5112 (emit_move_multi_word): Likewise for return type and locals
5114 (emit_move_insn_1): Likewise for return type and locals "result",
5116 (emit_move_insn): Likewise for return type and local "last_insn".
5117 (compress_float_constant): Likewise.
5119 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5121 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5122 from rtx to rtx_insn *.
5124 * rtl.h (emit_insn_before): Likewise.
5125 (emit_insn_before_noloc): Likewise.
5126 (emit_insn_before_setloc): Likewise.
5127 (emit_jump_insn_before): Likewise.
5128 (emit_jump_insn_before_noloc): Likewise.
5129 (emit_jump_insn_before_setloc): Likewise.
5130 (emit_call_insn_before): Likewise.
5131 (emit_call_insn_before_noloc): Likewise.
5132 (emit_call_insn_before_setloc): Likewise.
5133 (emit_debug_insn_before): Likewise.
5134 (emit_debug_insn_before_noloc): Likewise.
5135 (emit_debug_insn_before_setloc): Likewise.
5136 (emit_label_before): Likewise.
5137 (emit_insn_after): Likewise.
5138 (emit_insn_after_noloc): Likewise.
5139 (emit_insn_after_setloc): Likewise.
5140 (emit_jump_insn_after): Likewise.
5141 (emit_jump_insn_after_noloc): Likewise.
5142 (emit_jump_insn_after_setloc): Likewise.
5143 (emit_call_insn_after): Likewise.
5144 (emit_call_insn_after_noloc): Likewise.
5145 (emit_call_insn_after_setloc): Likewise.
5146 (emit_debug_insn_after): Likewise.
5147 (emit_debug_insn_after_noloc): Likewise.
5148 (emit_debug_insn_after_setloc): Likewise.
5149 (emit_label_after): Likewise.
5150 (emit_insn): Likewise.
5151 (emit_debug_insn): Likewise.
5152 (emit_jump_insn): Likewise.
5153 (emit_call_insn): Likewise.
5154 (emit_label): Likewise.
5155 (gen_clobber): Likewise.
5156 (emit_clobber): Likewise.
5157 (gen_use): Likewise.
5158 (emit_use): Likewise.
5161 (emit_barrier_before): Strengthen return type from rtx to
5163 (emit_barrier_after): Likewise.
5164 (emit_barrier): Likewise.
5166 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5167 from rtx to rtx_insn *. Add checked casts for now when converting
5168 "last" from rtx to rtx_insn *.
5169 (emit_insn_before_noloc): Likewise for return type.
5170 (emit_jump_insn_before_noloc): Likewise.
5171 (emit_call_insn_before_noloc): Likewise.
5172 (emit_debug_insn_before_noloc): Likewise.
5173 (emit_barrier_before): Strengthen return type and local "insn"
5174 from rtx to rtx_barrier *.
5175 (emit_label_before): Strengthen return type from rtx to
5176 rtx_insn *. Add checked cast for now when returning param
5177 (emit_pattern_after_noloc): Strengthen return type from rtx to
5178 rtx_insn *. Add checked casts for now when converting "last" from
5180 (emit_insn_after_noloc): Strengthen return type from rtx to
5182 (emit_jump_insn_after_noloc): Likewise.
5183 (emit_call_insn_after_noloc): Likewise.
5184 (emit_debug_insn_after_noloc): Likewise.
5185 (emit_barrier_after): Strengthen return type from rtx to
5187 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5188 Add checked cast for now when converting "label" from rtx to
5190 (emit_pattern_after_setloc): Strengthen return type from rtx to
5191 rtx_insn *. Add checked casts for now when converting "last" from
5193 (emit_pattern_after): Strengthen return type from rtx to
5195 (emit_insn_after_setloc): Likewise.
5196 (emit_insn_after): Likewise.
5197 (emit_jump_insn_after_setloc): Likewise.
5198 (emit_jump_insn_after): Likewise.
5199 (emit_call_insn_after_setloc): Likewise.
5200 (emit_call_insn_after): Likewise.
5201 (emit_debug_insn_after_setloc): Likewise.
5202 (emit_debug_insn_after): Likewise.
5203 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5204 when converting "last" from rtx to rtx_insn *.
5205 (emit_pattern_before): Strengthen return type from rtx to
5207 (emit_insn_before_setloc): Likewise.
5208 (emit_insn_before): Likewise.
5209 (emit_jump_insn_before_setloc): Likewise.
5210 (emit_jump_insn_before): Likewise.
5211 (emit_call_insn_before_setloc): Likewise.
5212 (emit_call_insn_before): Likewise.
5213 (emit_debug_insn_before_setloc): Likewise.
5214 (emit_debug_insn_before): Likewise.
5215 (emit_insn): Strengthen return type and locals "last", "insn",
5216 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5217 within cases where we know we have an insn.
5218 (emit_debug_insn): Likewise.
5219 (emit_jump_insn): Likewise.
5220 (emit_call_insn): Strengthen return type and local "insn" from rtx
5222 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5223 a checked cast to rtx_insn * for now on "label".
5224 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5225 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5226 (emit_use): Likewise.
5227 (gen_use): Likewise, also for local "seq".
5228 (emit): Likewise for return type and local "insn".
5229 (rtx_insn): Likewise for return type and local "new_rtx".
5231 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5232 from rtx to rtx_barrier *.
5234 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5235 changed return type from rtx to rtx_insn *, we must update
5236 "emit_fn" type, and this in turn means updating...
5237 (frame_insn): ...this. Strengthen return type from rtx to
5238 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5240 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5242 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5243 rtx to rtx_jump_table_data *. Also for local.
5244 * rtl.h (emit_jump_table_data): Likewise.
5246 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5248 * basic-block.h (create_basic_block_structure): Strengthen third
5249 param "bb_note" from rtx to rtx_note *.
5250 * rtl.h (emit_note_before): Strengthen return type from rtx to
5252 (emit_note_after): Likewise.
5253 (emit_note): Likewise.
5254 (emit_note_copy): Likewise. Also, strengthen param similarly.
5255 * function.h (struct rtl_data): Strengthen field
5256 "x_stack_check_probe_note" from rtx to rtx_note *.
5258 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5259 from rtx to rtx_note *.
5260 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5261 "bb_note" from rtx to rtx_note *.
5262 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5263 when calling emit_note_copy.
5264 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5266 (emit_note_after): Likewise.
5267 (emit_note_before): Likewise.
5268 (emit_note_copy): Likewise. Also, strengthen param similarly.
5269 (emit_note): Likewise.
5270 * except.c (emit_note_eh_region_end): Likewise for return type.
5271 Strengthen local "next" from rtx to rtx_insn *.
5272 (convert_to_eh_region_ranges): Strengthen local "note"
5273 from rtx to rtx_note *.
5274 * final.c (change_scope): Likewise.
5275 (reemit_insn_block_notes): Likewise, for both locals named "note".
5276 Also, strengthen local "insn" from rtx to rtx_insn *.
5277 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5279 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5280 strengthen local "seq" from rtx to rtx_insn *.
5281 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5283 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5285 (get_bb_note_from_pool): Strengthen return type from rtx to
5287 (sel_create_basic_block): Strengthen local "new_bb_note" from
5288 insn_t to rtx_note *.
5289 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5290 "note" from rtx to rtx_note *.
5291 (emit_notes_in_bb): Likewise.
5293 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5295 * function.h (struct rtl_data): Strengthen field
5296 "x_parm_birth_insn" from rtx to rtx_insn *.
5297 * function.c (struct assign_parm_data_all): Strengthen fields
5298 "first_conversion_insn" and "last_conversion_insn" from rtx to
5301 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5303 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5304 to rtx_insn *; also for local "var_end_seq".
5305 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5306 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5308 (expand_gimple_cond): Likewise for locals "last2" and "last".
5309 (mark_transaction_restart_calls): Likewise for local "insn".
5310 (expand_gimple_stmt): Likewise for return type and locals "last"
5312 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5313 (avoid_complex_debug_insns): Likewise for param "insn".
5314 (expand_debug_locations): Likewise for locals "insn", "last",
5315 "prev_insn" and "insn2".
5316 (expand_gimple_basic_block): Likewise for local "last".
5317 (construct_exit_block): Likewise for locals "head", "end",
5319 (pass_expand::execute): Likewise for locals "var_seq",
5320 "var_ret_seq", "next".
5322 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5324 * asan.h (asan_emit_stack_protection): Strengthen return type from
5326 * asan.c (asan_emit_stack_protection): Likewise. Add local
5327 "insns" to hold the return value.
5329 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5331 * basic-block.h (bb_note): Strengthen return type from rtx to
5333 * sched-int.h (bb_note): Likewise.
5334 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5336 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5338 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5341 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5342 "insn" from rtx to rtx_insn *.
5343 (make_debug_insn_raw): Strengthen return type from rtx to
5344 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5345 (make_jump_insn_raw): Strengthen return type from rtx to
5346 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5347 (make_call_insn_raw): Strengthen return type from rtx to
5348 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5349 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5350 callback from rtx to rtx_insn *; likewise for local "insn" and
5351 "next", adding a checked cast to rtx_insn in the relevant cases of
5352 the switch statement.
5353 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5354 callback from rtx to rtx_insn *.
5355 (emit_pattern_after_setloc): Likewise.
5356 (emit_pattern_after): Likewise.
5357 (emit_pattern_before_setloc): Likewise.
5358 (emit_pattern_before): Likewise.
5360 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5362 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5364 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5365 accepting an rtx_insn *.
5366 (last_call_insn): Strengthen return type from rtx to
5369 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5371 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5372 "insns" from rtx to rtx_insn *.
5373 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5374 locals "insn" and "prev".
5376 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5378 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5379 rtx_jump_table_data **.
5381 * cfgbuild.c (make_edges): Introduce local "table", using it in
5382 place of "tmp" for jump table data.
5383 (find_bb_boundaries): Strengthen local "table" from rtx to
5384 rtx_jump_table_data *.
5385 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5386 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5387 (try_crossjump_to_edge): Likewise.
5388 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5390 (patch_jump_insn): Introduce local "table", using it in place of
5391 "tmp" for jump table data.
5392 (force_nonfallthru_and_redirect): Introduce local "table", so that
5393 call to tablejump_p can receive an rtx_jump_table_data **. Update
5394 logic around the call to overwrite "note" appropriately if
5395 tablejump_p returns non-zero.
5396 (get_last_bb_insn): Introduce local "table", using it in place of
5397 "tmp" for jump table data.
5398 * dwarf2cfi.c (create_trace_edges): Likewise.
5400 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5401 from rtx to rtx_jump_table_data *.
5402 (create_fix_barrier): Strengthen local "tmp" from rtx to
5403 rtx_jump_table_data *.
5404 (arm_reorg): Likewise for local "table".
5406 * config/s390/s390.c (s390_chunkify_start): Likewise.
5408 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5410 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5411 rtx to rtx_jump_table_data *.
5413 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5414 rtx_jump_table_data **. Add a checked cast when writing through
5415 the pointer: we know there that local "table" is non-NULL and that
5416 JUMP_TABLE_DATA_P (table) holds.
5417 (label_is_jump_target_p): Introduce local "table", using it in
5418 place of "tmp" for jump table data.
5420 2014-08-19 Marek Polacek <polacek@redhat.com>
5423 * doc/invoke.texi: Document -Wbool-compare.
5425 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5427 * rtl.h (entry_of_function): Strengthen return type from rtx to
5429 * cfgrtl.c (entry_of_function): Likewise.
5431 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5433 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5434 rtx_insn *, adding a checked cast for now.
5435 (get_last_insn): Likewise.
5437 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5439 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5442 * emit-rtl.c (gen_label_rtx): Likewise.
5444 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5446 * rtl.h (previous_insn): Strengthen return type from rtx to
5448 (next_insn): Likewise.
5449 (prev_nonnote_insn): Likewise.
5450 (prev_nonnote_insn_bb): Likewise.
5451 (next_nonnote_insn): Likewise.
5452 (next_nonnote_insn_bb): Likewise.
5453 (prev_nondebug_insn): Likewise.
5454 (next_nondebug_insn): Likewise.
5455 (prev_nonnote_nondebug_insn): Likewise.
5456 (next_nonnote_nondebug_insn): Likewise.
5457 (prev_real_insn): Likewise.
5458 (next_real_insn): Likewise.
5459 (prev_active_insn): Likewise.
5460 (next_active_insn): Likewise.
5462 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5463 rtx_insn *, adding a checked cast.
5464 (previous_insn): Likewise.
5465 (next_nonnote_insn): Likewise.
5466 (next_nonnote_insn_bb): Likewise.
5467 (prev_nonnote_insn): Likewise.
5468 (prev_nonnote_insn_bb): Likewise.
5469 (next_nondebug_insn): Likewise.
5470 (prev_nondebug_insn): Likewise.
5471 (next_nonnote_nondebug_insn): Likewise.
5472 (prev_nonnote_nondebug_insn): Likewise.
5473 (next_real_insn): Likewise.
5474 (prev_real_insn): Likewise.
5475 (next_active_insn): Likewise.
5476 (prev_active_insn): Likewise.
5478 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5479 param "stepfunc" so that it returns an rtx_insn * rather than an
5480 rtx, to track the change to prev_nonnote_insn_bb, which is the
5481 only function this is called with.
5482 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5484 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5486 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5489 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5491 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5492 (class rtx_nonjump_insn): Likewise.
5493 (class rtx_jump_insn): Likewise.
5494 (class rtx_call_insn): Likewise.
5495 (class rtx_jump_table_data): Likewise.
5496 (class rtx_barrier): Likewise.
5497 (class rtx_code_label): Likewise.
5498 (class rtx_note): Likewise.
5500 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5501 adding the invariant DEBUG_INSN_P (X).
5502 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5503 the invariant NONJUMP_INSN_P (X).
5504 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5505 the invariant JUMP_P (X).
5506 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5507 the invariant CALL_P (X).
5508 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5509 invariant JUMP_TABLE_DATA_P (X).
5510 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5511 invariant BARRIER_P (X).
5512 (class rtx_code_label): New, a subclass of rtx_insn, adding
5513 the invariant LABEL_P (X).
5514 (class rtx_note): New, a subclass of rtx_insn, adding
5515 the invariant NOTE_P(X).
5516 (is_a_helper <rtx_debug_insn *>::test): New.
5517 (is_a_helper <rtx_nonjump_insn *>::test): New.
5518 (is_a_helper <rtx_jump_insn *>::test): New.
5519 (is_a_helper <rtx_call_insn *>::test): New.
5520 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5521 overloaded for both rtx and rtx_insn *.
5522 (is_a_helper <rtx_barrier *>::test): New.
5523 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5524 for both rtx and rtx_insn *.
5525 (is_a_helper <rtx_note *>::test): New.
5527 2014-08-19 Marek Polacek <polacek@redhat.com>
5529 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5530 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5531 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5532 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5534 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5536 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5537 rtx_insn *. To help with transition, for now, convert from an
5538 access macro into a pair of functions: BND_TO, returning an
5540 (SET_BND_TO): New function, for use where BND_TO is used as an
5543 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5545 (BND_TO): New function, adding a checked cast.
5546 (SET_BND_TO): New function.
5548 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5550 (compute_av_set_on_boundaries): Likewise.
5552 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5554 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5555 destination if it is used in source.
5556 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5557 (*popcount<mode>2_falsedep_1): Likewise.
5559 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5562 * configure.ac: Set install_gold_as_default to no first.
5563 * configure: Regenerated.
5565 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5567 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5568 "note_list" field will eventually be an rtx_insn *. To help with
5569 transition, for now, convert from an access macro into a pair of
5570 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5571 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5574 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5575 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5577 * sel-sched-ir.c (init_bb): Likewise.
5578 (sel_restore_notes): Likewise.
5579 (move_bb_info): Likewise.
5580 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5581 (SET_BB_NOTE_LIST): New function.
5583 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5585 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5586 field will eventually be an rtx_insn *. To help with transition,
5587 for now, convert from an access macro into a pair of functions:
5588 VINSN_INSN_RTX, returning an rtx_insn *, and...
5589 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5590 is used as an lvalue.
5592 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5593 SET_VINSN_INSN_RTX where it's used as an lvalue.
5594 (VINSN_INSN_RTX): New function.
5595 (SET_VINSN_INSN_RTX): New function.
5597 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5599 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5600 eventually be rtx_insn *, but to help with transition, for now,
5601 convert from an access macro into a pair of functions: DEP_PRO
5602 returning an rtx_insn * and...
5603 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5604 lvalue, returning an rtx&.
5605 (DEP_CON): Analogous changes to DEP_PRO above.
5606 (SET_DEP_CON): Likewise.
5608 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5609 an lvalue to SET_DEP_CON.
5610 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5611 (sd_copy_back_deps): Likewise for DEP_CON.
5612 (DEP_PRO): New function, adding a checked cast for now.
5613 (DEP_CON): Likewise.
5614 (SET_DEP_PRO): New function.
5615 (SET_DEP_CON): Likewise.
5617 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5619 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5620 (extra_options): Add i386/cygwin.opt.
5621 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5622 (CPP_SPEC): Accept -pthread.
5624 (GOMP_SELF_SPECS): Update comment.
5625 * config/i386/cygwin.opt: New file for -pthread flag.
5627 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5629 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5630 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5631 that we can return an rtx_insn *.
5633 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5635 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5636 when building executables, not DLLs. Add --large-address-aware
5637 under the same conditions.
5638 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5639 when building executables, not DLLs. Add --large-address-aware
5640 under the same conditions when using -m32.
5642 * config/i386/cygwin-stdint.h: Throughout, make type
5643 definitions dependent on target architecture, not host.
5645 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5647 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5648 the return type from rtx to rtx_insn *, which will enable various
5649 conversions in followup patches. For now this is is done by a
5651 (NEXT_INSN): Likewise.
5652 (SET_PREV_INSN): Convert to an inline function. This is intended
5653 for use as an lvalue, and so returns an rtx& to allow in-place
5655 (SET_NEXT_INSN): Likewise.
5657 2014-07-08 Mark Wielaard <mjw@redhat.com>
5660 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5662 2014-08-19 Marek Polacek <polacek@redhat.com>
5665 * cgraphunit.c (handle_alias_pairs): Fix condition.
5667 2014-08-19 Richard Biener <rguenther@suse.de>
5669 * gimple-fold.c (fold_gimple_assign): Properly build a
5670 null-pointer constant when devirtualizing addresses.
5672 2014-07-07 Mark Wielaard <mjw@redhat.com>
5674 * dwarf2out.c (decl_quals): New function.
5675 (modified_type_die): Take one cv_quals argument instead of two,
5676 one for const and one for volatile.
5677 (add_type_attribute): Likewise.
5678 (generic_parameter_die): Call add_type_attribute with one modifier
5680 (base_type_for_mode): Likewise.
5681 (add_bounds_info): Likewise.
5682 (add_subscript_info): Likewise.
5683 (gen_array_type_die): Likewise.
5684 (gen_descr_array_type_die): Likewise.
5685 (gen_entry_point_die): Likewise.
5686 (gen_enumeration_type_die): Likewise.
5687 (gen_formal_parameter_die): Likewise.
5688 (gen_subprogram_die): Likewise.
5689 (gen_variable_die): Likewise.
5690 (gen_const_die): Likewise.
5691 (gen_field_die): Likewise.
5692 (gen_pointer_type_die): Likewise.
5693 (gen_reference_type_die): Likewise.
5694 (gen_ptr_to_mbr_type_die): Likewise.
5695 (gen_inheritance_die): Likewise.
5696 (gen_subroutine_type_die): Likewise.
5697 (gen_typedef_die): Likewise.
5698 (force_type_die): Likewise.
5700 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5702 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5704 * configure: Regenerate.
5706 2014-08-19 Richard Biener <rguenther@suse.de>
5708 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5709 DECL_EXTERNALs in BLOCKs as non-references.
5710 * tree-streamer-out.c (streamer_write_chain): Likewise.
5712 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5713 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5714 Anna Tikhonova <anna.tikhonova@intel.com>
5715 Ilya Tocar <ilya.tocar@intel.com>
5716 Andrey Turetskiy <andrey.turetskiy@intel.com>
5717 Ilya Verbin <ilya.verbin@intel.com>
5718 Kirill Yukhin <kirill.yukhin@intel.com>
5719 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5721 * config/i386/sse.md
5722 (define_mode_iterator VI48_AVX512F): Delete.
5723 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5724 (define_mode_iterator VI2_AVX512VL): Ditto.
5725 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5728 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5730 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5731 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5732 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5733 with VI48_AVX512F_AVX512VL): New.
5734 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5735 with VI2_AVX512VL): Ditto.
5737 2014-08-19 Marek Polacek <polacek@redhat.com>
5739 * doc/invoke.texi: Document -Wc99-c11-compat.
5741 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5743 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5745 (SET_PREV_INSN): New macro, for use as an lvalue.
5746 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5748 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5749 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5750 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5751 (fixup_abnormal_edges): Likewise.
5752 (unlink_insn_chain): Likewise.
5753 (fixup_reorder_chain): Likewise.
5754 (cfg_layout_delete_block): Likewise.
5755 (cfg_layout_merge_blocks): Likewise.
5756 * combine.c (update_cfg_for_uncondjump): Likewise.
5757 * emit-rtl.c (link_insn_into_chain): Likewise.
5758 (remove_insn): Likewise.
5759 (delete_insns_since): Likewise.
5760 (reorder_insns_nobb): Likewise.
5761 (emit_insn_after_1): Likewise.
5762 * final.c (rest_of_clean_state): Likewise.
5763 (final_scan_insn): Likewise.
5764 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5765 * haifa-sched.c (concat_note_lists): Likewise.
5766 (remove_notes): Likewise.
5767 (restore_other_notes): Likewise.
5768 (move_insn): Likewise.
5769 (unlink_bb_notes): Likewise.
5770 (restore_bb_notes): Likewise.
5771 * jump.c (delete_for_peephole): Likewise.
5772 * optabs.c (emit_libcall_block_1): Likewise.
5773 * reorg.c (emit_delay_sequence): Likewise.
5774 (fill_simple_delay_slots): Likewise.
5775 * sel-sched-ir.c (sel_move_insn): Likewise.
5776 (sel_remove_insn): Likewise.
5777 (get_bb_note_from_pool): Likewise.
5778 * sel-sched.c (move_nop_to_previous_block): Likewise.
5780 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5781 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5782 (c6x_gen_bundles): Likewise.
5783 (hwloop_optimize): Likewise.
5784 * config/frv/frv.c (frv_function_prologue): Likewise.
5785 (frv_register_nop): Likewise.
5786 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5787 (ia64_reorg): Likewise.
5788 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5789 (mep_make_bundle): Likewise.
5790 (mep_bundle_insns): Likewise.
5791 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5792 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5793 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5795 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5797 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
5798 return type from rtx to rtx_insn *.
5800 (BB_HEADER): Likewise.
5801 (BB_FOOTER): Likewise.
5802 (SET_BB_HEAD): Convert to a function.
5803 (SET_BB_END): Likewise.
5804 (SET_BB_HEADER): Likewise.
5805 (SET_BB_FOOTER): Likewise.
5807 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5808 Strengthen the return type from rtx to rtx_insn *. For now, this
5809 is done by adding a checked cast, but this will eventually
5810 become a field lookup.
5812 (BB_HEADER): Likewise.
5813 (BB_FOOTER): Likewise.
5814 (SET_BB_HEAD): New function, from macro of same name. This is
5815 intended for use as an lvalue, and so returns an rtx& to allow
5816 in-place modification.
5817 (SET_BB_END): Likewise.
5818 (SET_BB_HEADER): Likewise.
5819 (SET_BB_FOOTER): Likewise.
5821 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5823 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
5825 (SET_BB_HEAD): New macro, for use as a lvalue.
5826 (BB_END, SET_BB_END): Likewise.
5827 (BB_HEADER, SET_BB_HEADER): Likewise.
5828 (BB_FOOTER, SET_BB_FOOTER): Likewise.
5830 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
5831 of BB_* macros into SET_BB_* macros.
5832 (fix_crossing_unconditional_branches): Likewise.
5833 * caller-save.c (save_call_clobbered_regs): Likewise.
5834 (insert_one_insn): Likewise.
5835 * cfgbuild.c (find_bb_boundaries): Likewise.
5836 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5837 (outgoing_edges_match): Likewise.
5838 (try_optimize_cfg): Likewise.
5839 * cfgexpand.c (expand_gimple_cond): Likewise.
5840 (expand_gimple_tailcall): Likewise.
5841 (expand_gimple_basic_block): Likewise.
5842 (construct_exit_block): Likewise.
5843 * cfgrtl.c (delete_insn): Likewise.
5844 (create_basic_block_structure): Likewise.
5845 (rtl_delete_block): Likewise.
5846 (rtl_split_block): Likewise.
5847 (emit_nop_for_unique_locus_between): Likewise.
5848 (rtl_merge_blocks): Likewise.
5849 (block_label): Likewise.
5850 (try_redirect_by_replacing_jump): Likewise.
5851 (emit_barrier_after_bb): Likewise.
5852 (fixup_abnormal_edges): Likewise.
5853 (record_effective_endpoints): Likewise.
5854 (relink_block_chain): Likewise.
5855 (fixup_reorder_chain): Likewise.
5856 (fixup_fallthru_exit_predecessor): Likewise.
5857 (cfg_layout_duplicate_bb): Likewise.
5858 (cfg_layout_split_block): Likewise.
5859 (cfg_layout_delete_block): Likewise.
5860 (cfg_layout_merge_blocks): Likewise.
5861 * combine.c (update_cfg_for_uncondjump): Likewise.
5862 * emit-rtl.c (add_insn_after): Likewise.
5863 (remove_insn): Likewise.
5864 (reorder_insns): Likewise.
5865 (emit_insn_after_1): Likewise.
5866 * haifa-sched.c (get_ebb_head_tail): Likewise.
5867 (restore_other_notes): Likewise.
5868 (move_insn): Likewise.
5869 (sched_extend_bb): Likewise.
5870 (fix_jump_move): Likewise.
5871 * ifcvt.c (noce_process_if_block): Likewise.
5872 (dead_or_predicable): Likewise.
5873 * ira.c (update_equiv_regs): Likewise.
5874 * reg-stack.c (change_stack): Likewise.
5875 * sel-sched-ir.c (sel_move_insn): Likewise.
5876 * sel-sched.c (move_nop_to_previous_block): Likewise.
5878 * config/c6x/c6x.c (hwloop_optimize): Likewise.
5879 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5881 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5883 * rtl.h (for_each_rtx_in_insn): New function.
5884 * rtlanal.c (for_each_rtx_in_insn): Likewise.
5886 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5888 * coretypes.h (class rtx_insn): Add forward declaration.
5890 * rtl.h: Include is-a.h.
5891 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
5892 workaround to ensure gengtype knows inheritance is occurring,
5893 whilst continuing to use the pre-existing special-casing for
5895 (class rtx_insn): New subclass of rtx_def, adding the
5896 invariant that we're dealing with something we can sanely use
5897 INSN_UID, NEXT_INSN, PREV_INSN on.
5898 (is_a_helper <rtx_insn *>::test): New.
5899 (is_a_helper <const rtx_insn *>::test): New.
5901 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5903 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
5905 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5907 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
5910 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5912 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
5913 to BUILT_IN_UNREACHABLE.
5915 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
5918 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
5920 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
5921 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
5922 (ffs<mode>2): Do not expand with tzcnt for
5923 TARGET_AVOID_FALSE_DEP_FOR_BMI.
5924 (ffssi2_no_cmove): Ditto.
5925 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
5926 (ctz<mode>2): New expander.
5927 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
5928 (*ctz<mode>2_falsedep): New insn.
5929 (*ctz<mode>2): Rename from ctz<mode>2.
5930 (clz<mode>2_lzcnt): New expander.
5931 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
5932 (*clz<mode>2_lzcnt_falsedep): New insn.
5933 (*clz<mode>2): Rename from ctz<mode>2.
5934 (popcount<mode>2): New expander.
5935 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
5936 (*popcount<mode>2_falsedep): New insn.
5937 (*popcount<mode>2): Rename from ctz<mode>2.
5938 (*popcount<mode>2_cmp): Remove.
5939 (*popcountsi2_cmp_zext): Ditto.
5941 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
5943 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
5944 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
5945 * config/microblaze/microblaze.h
5946 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
5948 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
5951 * configure.ac: Set install_gold_as_default to no for
5953 * configure: Regenerated.
5955 2014-08-18 Roman Gareev <gareevroman@gmail.com>
5957 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
5958 * config.in: Add undef of HAVE_isl.
5959 * configure: Regenerate.
5960 * configure.ac: Add definition of HAVE_isl.
5961 * graphite-blocking.c: Add checking of HAVE_isl.
5962 * graphite-dependences.c: Likewise.
5963 * graphite-interchange.c: Likewise.
5964 * graphite-isl-ast-to-gimple.c: Likewise.
5965 * graphite-optimize-isl.c: Likewise.
5966 * graphite-poly.c: Likewise.
5967 * graphite-scop-detection.c: Likewise.
5968 * graphite-sese-to-poly.c: Likewise.
5969 * graphite.c: Likewise.
5970 * toplev.c: Replace the checking of HAVE_cloog with the checking
5973 2014-08-18 Richard Biener <rguenther@suse.de>
5975 PR tree-optimization/62090
5976 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
5977 (fold_builtin_3): Do not fold snprintf.
5978 (fold_builtin_4): Likewise.
5979 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
5980 moved from builtins.c.
5981 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
5982 (gimple_fold_builtin): Do not fold sprintf here.
5984 2014-08-18 Richard Biener <rguenther@suse.de>
5986 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
5988 (maybe_canonicalize_mem_ref_addr): ... this function.
5989 (fold_stmt_1): Apply it here before all simplification.
5991 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
5994 * cgraph.h (cgraph_node::create_indirect_edge): Add
5995 compute_indirect_info param.
5996 * cgraph.c (cgraph_node::create_indirect_edge): Compute
5997 indirect_info only when it is required.
5998 * cgraphclones.c (cgraph_clone_edge): Do not recompute
5999 indirect_info fore cloned indirect edge.
6001 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6002 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6003 Anna Tikhonova <anna.tikhonova@intel.com>
6004 Ilya Tocar <ilya.tocar@intel.com>
6005 Andrey Turetskiy <andrey.turetskiy@intel.com>
6006 Ilya Verbin <ilya.verbin@intel.com>
6007 Kirill Yukhin <kirill.yukhin@intel.com>
6008 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6010 * config/i386/sse.md
6011 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6012 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6014 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6015 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6016 Anna Tikhonova <anna.tikhonova@intel.com>
6017 Ilya Tocar <ilya.tocar@intel.com>
6018 Andrey Turetskiy <andrey.turetskiy@intel.com>
6019 Ilya Verbin <ilya.verbin@intel.com>
6020 Kirill Yukhin <kirill.yukhin@intel.com>
6021 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6023 * config/i386/sse.md
6024 (define_mode_iterator VF1_AVX512VL): New.
6025 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6026 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6029 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6030 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6031 Anna Tikhonova <anna.tikhonova@intel.com>
6032 Ilya Tocar <ilya.tocar@intel.com>
6033 Andrey Turetskiy <andrey.turetskiy@intel.com>
6034 Ilya Verbin <ilya.verbin@intel.com>
6035 Kirill Yukhin <kirill.yukhin@intel.com>
6036 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6038 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6039 * config/i386/i386.md
6040 (define_code_iterator any_float): New.
6041 (define_code_attr floatsuffix): New.
6042 * config/i386/sse.md
6043 (define_mode_iterator VF1_128_256VL): New.
6044 (define_mode_iterator VF2_512_256VL): New.
6045 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6047 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6048 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6050 (define_mode_attr qq2pssuff): New.
6051 (define_mode_attr sselongvecmode): New.
6052 (define_mode_attr sselongvecmodelower): New.
6053 (define_mode_attr sseintvecmode3): New.
6054 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6056 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6057 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6058 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6059 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6061 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6062 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6063 Anna Tikhonova <anna.tikhonova@intel.com>
6064 Ilya Tocar <ilya.tocar@intel.com>
6065 Andrey Turetskiy <andrey.turetskiy@intel.com>
6066 Ilya Verbin <ilya.verbin@intel.com>
6067 Kirill Yukhin <kirill.yukhin@intel.com>
6068 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6070 * config/i386/sse.md
6071 (define_mode_iterator VF2_AVX512VL): New.
6072 (define_mode_attr sseintvecmode2): New.
6073 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6074 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6075 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6077 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6079 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6081 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6084 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6085 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6086 Anna Tikhonova <anna.tikhonova@intel.com>
6087 Ilya Tocar <ilya.tocar@intel.com>
6088 Andrey Turetskiy <andrey.turetskiy@intel.com>
6089 Ilya Verbin <ilya.verbin@intel.com>
6090 Kirill Yukhin <kirill.yukhin@intel.com>
6091 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6093 * config/i386/i386.md
6094 (define_insn "*movoi_internal_avx"): Add evex version.
6095 (define_insn "*movti_internal"): Ditto.
6097 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6098 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6099 Anna Tikhonova <anna.tikhonova@intel.com>
6100 Ilya Tocar <ilya.tocar@intel.com>
6101 Andrey Turetskiy <andrey.turetskiy@intel.com>
6102 Ilya Verbin <ilya.verbin@intel.com>
6103 Kirill Yukhin <kirill.yukhin@intel.com>
6104 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6106 * config/i386/i386.md
6107 (define_attr "isa"): Add avx512dq, noavx512dq.
6108 (define_attr "enabled"): Ditto.
6109 * config/i386/sse.md
6110 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6112 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6113 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6114 Anna Tikhonova <anna.tikhonova@intel.com>
6115 Ilya Tocar <ilya.tocar@intel.com>
6116 Andrey Turetskiy <andrey.turetskiy@intel.com>
6117 Ilya Verbin <ilya.verbin@intel.com>
6118 Kirill Yukhin <kirill.yukhin@intel.com>
6119 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6121 * config/i386/i386.c
6122 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6123 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6124 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6125 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6126 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6127 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6128 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6129 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6130 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6131 * config/i386/sse.md
6132 (define_mode_iterator VMOVE): Allow V4TI mode.
6133 (define_mode_iterator V_AVX512VL): New.
6134 (define_mode_iterator V): New handling for AVX512VL.
6135 (define_insn "avx512f_load<mode>_mask"): Delete.
6136 (define_insn "<avx512>_load<mode>_mask"): New.
6137 (define_insn "avx512f_store<mode>_mask"): Delete.
6138 (define_insn "<avx512>_store<mode>_mask"): New.
6141 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6144 * asan.c (instrument_derefs): Fix bitfield check.
6146 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6148 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6149 * config/rs6000/htm.md (ttest): Remove clobber.
6150 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6151 (and_operand): Reformat.
6152 (and_2rld_operand): New predicate.
6153 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6155 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6156 parameter. Handle AND directly.
6157 (rs6000_split_logical_di): Remove last parameter.
6158 (rs6000_split_logical): Remove last parameter. Remove obsolete
6160 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6161 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6162 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6163 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6164 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6165 and 5 anonymous splitters): Delete.
6166 (and<mode>3): New expander.
6167 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6168 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6169 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6170 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6171 (floatdisf2_internal1): Remove clobbers.
6172 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6173 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6174 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6175 (and<mode>3 for BOOL_128): Remove clobber.
6176 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6177 rs6000_split_logical.
6178 (*bool<mode>3_internal for BOOL_128): Adjust call of
6179 rs6000_split_logical.
6180 (*boolc<mode>3_internal1 for BOOL_128,
6181 *boolc<mode>3_internal2 for BOOL_128,
6182 *boolcc<mode>3_internal1 for BOOL_128,
6183 *boolcc<mode>3_internal2 for BOOL_128,
6184 *eqv<mode>3_internal1 for BOOL_128,
6185 *eqv<mode>3_internal2 for BOOL_128,
6186 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6187 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6189 (*vec_reload_and_reg_<mptrsize>): Delete.
6191 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6193 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6194 and split, *boolccsi3_internal3 and split): Delete.
6195 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6196 *boolccdi3_internal3 and split): Delete.
6197 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6198 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6200 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6202 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6203 and split, *boolcsi3_internal3 and split): Delete.
6204 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6205 *boolcdi3_internal3 and split): Delete.
6206 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6208 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6210 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6211 <'u'>: Also support printing the low-order 16 bits.
6212 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6213 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6214 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6215 *booldi3_internal3 and split): Delete.
6216 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6217 *bool<mode>3_dot2): New.
6218 (two anonymous define_splits for non_logical_cint_operand): Merge.
6220 2014-08-17 Marek Polacek <polacek@redhat.com>
6221 Manuel López-Ibáñez <manu@gcc.gnu.org>
6224 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6225 (diagnostic_show_locus): Don't print caret diagnostic
6226 if a column is larger than the line_width.
6228 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6230 * common.opt: Make the ISL AST generator to be the main code generator
6233 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6235 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6237 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6240 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6242 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6243 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6244 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6246 * config/pa/pa.md (begin_brtab): Delete insn.
6247 (end_brtab): Likewise.
6249 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6251 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6253 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6255 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6256 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6257 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6258 (get_dynamic_type): Remove.
6259 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6260 (clear_speculation): Bring to ipa-deivrt.h
6261 (get_class_context): Rename to ...
6262 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6263 (contains_type_p): Update.
6264 (get_dynamic_type): Rename to ...
6265 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6266 (possible_polymorphic_call_targets): UPdate.
6267 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6268 * ipa-prop.c (ipa_analyze_call_uses): Update.
6270 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6272 * doc/invoke.texi (SH options): Document missing processor variant
6273 options. Remove references to Hitachi. Undocument deprecated mspace
6276 2014-08-15 Jason Merrill <jason@redhat.com>
6278 * tree.c (type_hash_canon): Uncomment assert.
6280 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6282 * input.h (in_system_header_at): Add comment.
6284 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6287 * diagnostic.c (build_message_string): Make it extern.
6288 * diagnostic.h (build_message_string): Make it extern.
6290 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6292 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6293 load/store from/to non-floating class pseudo.
6295 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6297 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6299 2014-08-15 Richard Biener <rguenther@suse.de>
6301 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6302 (get_constraint_for_ssa_var): Remove dead code.
6303 (get_constraint_for_1): Adjust.
6304 (find_what_var_points_to): Likewise.
6305 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6307 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6310 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6311 (_mm512_mask_cmpge_epu32_mask): Ditto.
6312 (_mm512_cmpge_epu32_mask): Ditto.
6313 (_mm512_mask_cmpge_epi64_mask): Ditto.
6314 (_mm512_cmpge_epi64_mask): Ditto.
6315 (_mm512_mask_cmpge_epu64_mask): Ditto.
6316 (_mm512_cmpge_epu64_mask): Ditto.
6317 (_mm512_mask_cmple_epi32_mask): Ditto.
6318 (_mm512_cmple_epi32_mask): Ditto.
6319 (_mm512_mask_cmple_epu32_mask): Ditto.
6320 (_mm512_cmple_epu32_mask): Ditto.
6321 (_mm512_mask_cmple_epi64_mask): Ditto.
6322 (_mm512_cmple_epi64_mask): Ditto.
6323 (_mm512_mask_cmple_epu64_mask): Ditto.
6324 (_mm512_cmple_epu64_mask): Ditto.
6325 (_mm512_mask_cmplt_epi32_mask): Ditto.
6326 (_mm512_cmplt_epi32_mask): Ditto.
6327 (_mm512_mask_cmplt_epu32_mask): Ditto.
6328 (_mm512_cmplt_epu32_mask): Ditto.
6329 (_mm512_mask_cmplt_epi64_mask): Ditto.
6330 (_mm512_cmplt_epi64_mask): Ditto.
6331 (_mm512_mask_cmplt_epu64_mask): Ditto.
6332 (_mm512_cmplt_epu64_mask): Ditto.
6333 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6334 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6335 (_mm512_cmpneq_epu32_mask): Ditto.
6336 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6337 (_mm512_cmpneq_epi64_mask): Ditto.
6338 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6339 (_mm512_cmpneq_epu64_mask): Ditto.
6340 (_mm512_castpd_ps): Ditto.
6341 (_mm512_castpd_si512): Ditto.
6342 (_mm512_castps_pd): Ditto.
6343 (_mm512_castps_si512): Ditto.
6344 (_mm512_castsi512_ps): Ditto.
6345 (_mm512_castsi512_pd): Ditto.
6346 (_mm512_castpd512_pd128): Ditto.
6347 (_mm512_castps512_ps128): Ditto.
6348 (_mm512_castsi512_si128): Ditto.
6349 (_mm512_castpd512_pd256): Ditto.
6350 (_mm512_castps512_ps256): Ditto.
6351 (_mm512_castsi512_si256): Ditto.
6352 (_mm512_castpd128_pd512): Ditto.
6353 (_mm512_castps128_ps512): Ditto.
6354 (_mm512_castsi128_si512): Ditto.
6355 (_mm512_castpd256_pd512): Ditto.
6356 (_mm512_castps256_ps512): Ditto.
6357 (_mm512_castsi256_si512): Ditto.
6358 (_mm512_cmpeq_epu32_mask): Ditto.
6359 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6360 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6361 (_mm512_cmpeq_epu64_mask): Ditto.
6362 (_mm512_cmpgt_epu32_mask): Ditto.
6363 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6364 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6365 (_mm512_cmpgt_epu64_mask): Ditto.
6366 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6367 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6368 * config/i386/i386.c (enum ix86_builtins): Add
6369 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6370 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6371 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6372 (bdesc_args): Add __builtin_ia32_si512_256si,
6373 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6374 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6375 __builtin_ia32_pd512_pd.
6376 (ix86_expand_args_builtin): Handle new FTYPEs.
6377 * config/i386/sse.md (castmode): Add 512-bit modes.
6378 (AVX512MODE2P): New.
6379 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6380 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6382 2014-08-15 Richard Biener <rguenther@suse.de>
6384 * fold-const.c (tree_swap_operands_p): Put all constants
6385 last, also strip sign-changing NOPs when considering further
6386 canonicalization. Canonicalize also when optimizing for size.
6388 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6390 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6391 one_match > zero_match case to just before simple_sequence.
6393 2014-08-15 Richard Biener <rguenther@suse.de>
6395 * data-streamer.h (streamer_string_index, string_for_index):
6397 * data-streamer-out.c (streamer_string_index): Make static.
6398 * data-streamer-in.c (string_for_index): Likewise.
6399 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6400 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6402 2014-08-15 Richard Biener <rguenther@suse.de>
6404 PR tree-optimization/62031
6405 * tree-data-ref.c (dr_analyze_indices): Do not set
6406 DR_UNCONSTRAINED_BASE.
6407 (dr_may_alias_p): All indirect accesses have to go the
6408 formerly DR_UNCONSTRAINED_BASE path.
6409 * tree-data-ref.h (struct indices): Remove
6410 unconstrained_base member.
6411 (DR_UNCONSTRAINED_BASE): Remove.
6413 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6416 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6417 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6418 in OMP_CLAUSE_MAP in some outer target region.
6420 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6422 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6423 name_expansion_cache.
6424 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6425 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6426 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6427 (difference_cannot_overflow_p): New parameter. Use affine
6428 expansion for equality check.
6429 (iv_elimination_compare_lt): Pass new argument.
6431 2014-08-14 DJ Delorie <dj@redhat.com>
6433 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6434 variables to the accumulator.
6436 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6437 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6438 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6441 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6442 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6443 (umulqihi3_virt): Likewise.
6444 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6445 (umulqihi3_real): Likewise.
6447 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6449 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6451 PR tree-optimization/62091
6452 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6453 function_entry_reached.
6454 (walk_aliased_vdefs): Clear it here.
6455 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6457 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6459 * ipa-utils.h (compare_virtual_tables): Declare.
6460 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6462 2014-08-14 Marek Polacek <polacek@redhat.com>
6465 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6466 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6468 2014-08-14 Tom de Vries <tom@codesourcery.com>
6470 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6472 2014-08-14 Tom de Vries <tom@codesourcery.com>
6474 PR rtl-optimization/62004
6475 PR rtl-optimization/62030
6476 * ifcvt.c (rtx_interchangeable_p): New function.
6477 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6478 * emit-rtl.h (mem_attrs_eq_p): Declare.
6480 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6482 * graphite-scop-detection.c:
6483 Add inclusion of cp-tree.h.
6484 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6485 in case they are pointers to object types
6487 2014-08-14 Richard Biener <rguenther@suse.de>
6489 * BASE-VER: Change to 5.0.0
6491 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6492 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6493 Anna Tikhonova <anna.tikhonova@intel.com>
6494 Ilya Tocar <ilya.tocar@intel.com>
6495 Andrey Turetskiy <andrey.turetskiy@intel.com>
6496 Ilya Verbin <ilya.verbin@intel.com>
6497 Kirill Yukhin <kirill.yukhin@intel.com>
6498 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6500 * config/i386/sse.md (define_mode_attr avx512): New.
6501 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6503 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6504 (define_mode_attr ssse3_avx2): Ditto.
6505 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6506 (define_mode_attr avx2_avx512bw): New.
6507 (define_mode_attr ssedoublemodelower): New.
6508 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6510 (define_mode_attr ssebytemode): Allow V8DI modes.
6511 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6512 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6513 (define_mode_attr ssePSmode2): New.
6514 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6516 (define_mode_attr dbpsadbwmode): New.
6517 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6518 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6519 (vi8_sse4_1_avx2_avx512): New.
6520 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6522 (define_mode_attr blendbits): Move before its immediate use.
6524 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6525 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6526 Anna Tikhonova <anna.tikhonova@intel.com>
6527 Ilya Tocar <ilya.tocar@intel.com>
6528 Andrey Turetskiy <andrey.turetskiy@intel.com>
6529 Ilya Verbin <ilya.verbin@intel.com>
6530 Kirill Yukhin <kirill.yukhin@intel.com>
6531 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6533 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6534 * config/i386/subst.md
6535 (define_mode_iterator SUBST_V): Update.
6536 (define_mode_iterator SUBST_A): Ditto.
6537 (define_subst_attr "mask_operand7"): New.
6538 (define_subst_attr "mask_operand10"): New.
6539 (define_subst_attr "mask_operand_arg34") : New.
6540 (define_subst_attr "mask_expand_op3"): New.
6541 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6542 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6543 (define_subst_attr "mask_avx512vl_condition"): New.
6544 (define_subst_attr "round_mask_operand4"): Ditto.
6545 (define_subst_attr "round_mask_scalar_op3"): Delete.
6546 (define_subst_attr "round_mask_op4"): New.
6547 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6549 (define_subst_attr "round_modev8sf_condition"): New.
6550 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6552 (define_subst_attr "round_saeonly_mask_operand4"): New.
6553 (define_subst_attr "round_saeonly_mask_op4"): New.
6554 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6555 V8DImode, V16SImode.
6556 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6557 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6558 (define_subst_attr "mask_expand4_args"): New.
6559 (define_subst "mask_expand4"): New.
6561 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6562 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6563 Anna Tikhonova <anna.tikhonova@intel.com>
6564 Ilya Tocar <ilya.tocar@intel.com>
6565 Andrey Turetskiy <andrey.turetskiy@intel.com>
6566 Ilya Verbin <ilya.verbin@intel.com>
6567 Kirill Yukhin <kirill.yukhin@intel.com>
6568 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6570 * config/i386/i386.md
6571 (define_attr "isa"): Add avx512bw,noavx512bw.
6572 (define_attr "enabled"): Ditto.
6573 (define_split): Add 32/64-bit mask logic.
6574 (define_insn "*k<logic>qi"): New.
6575 (define_insn "*k<logic>hi"): New.
6576 (define_insn "*anddi_1"): Add mask version.
6577 (define_insn "*andsi_1"): Ditto.
6578 (define_insn "*<code><mode>_1"): Ditto.
6579 (define_insn "*<code>hi_1"): Ditto.
6580 (define_insn "kxnor<mode>"): New.
6581 (define_insn "kunpcksi"): New.
6582 (define_insn "kunpckdi"): New.
6583 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6584 (define_insn "*one_cmplhi2_1"): Ditto.
6586 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6587 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6588 Anna Tikhonova <anna.tikhonova@intel.com>
6589 Ilya Tocar <ilya.tocar@intel.com>
6590 Andrey Turetskiy <andrey.turetskiy@intel.com>
6591 Ilya Verbin <ilya.verbin@intel.com>
6592 Kirill Yukhin <kirill.yukhin@intel.com>
6593 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6595 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6598 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6599 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6600 Anna Tikhonova <anna.tikhonova@intel.com>
6601 Ilya Tocar <ilya.tocar@intel.com>
6602 Andrey Turetskiy <andrey.turetskiy@intel.com>
6603 Ilya Verbin <ilya.verbin@intel.com>
6604 Kirill Yukhin <kirill.yukhin@intel.com>
6605 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6607 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6609 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6610 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6611 xmm/ymm16+ when availble.
6612 * config/i386/i386.h
6613 (HARD_REGNO_NREGS): Add mask regs.
6614 (VALID_AVX512F_REG_MODE): Ditto.
6615 (VALID_AVX512F_REG_MODE) : Define.
6616 (VALID_MASK_AVX512BW_MODE): Ditto.
6617 (reg_class) (MASK_REG_P(X)): Define.
6618 * config/i386/i386.md: Do not split long moves with mask register,
6619 use kmovb if avx512bw is availible.
6620 (movdi_internal): Handle mask registers.
6622 2014-08-14 Richard Biener <rguenther@suse.de>
6624 PR tree-optimization/62081
6625 * tree-ssa-loop.c (pass_fix_loops): New pass.
6626 (pass_tree_loop::gate): Do not fixup loops here.
6627 * tree-pass.h (make_pass_fix_loops): Declare.
6628 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6630 2014-08-14 Richard Biener <rguenther@suse.de>
6632 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6633 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6635 2014-08-14 Richard Biener <rguenther@suse.de>
6637 PR tree-optimization/62090
6638 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6639 (fold_builtin_2): Do not fold sprintf.
6640 (fold_builtin_3): Likewise.
6641 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6642 moved from builtins.c.
6643 (gimple_fold_builtin): Fold sprintf.
6645 2014-08-14 Richard Biener <rguenther@suse.de>
6647 PR rtl-optimization/62079
6648 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6651 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6653 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6654 current_function_decl.
6656 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6658 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6659 cgraph_function_node to cgraph_node::function_symbol
6662 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6664 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6665 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6667 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6669 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6672 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6674 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6677 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6680 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6681 any registers that are used in mem_insn.
6683 2014-08-12 Steve Ellcey <sellcey@mips.com>
6685 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6687 2014-08-12 Steve Ellcey <sellcey@mips.com>
6689 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6690 (MULTILIB_DIRNAMES): Ditto.
6691 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6692 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6693 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6694 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6695 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6696 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6698 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6701 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6702 of __ARM_SIZEOF_WCHAR_T.
6704 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6707 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6708 Remove unnecessary attributes.
6710 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6712 * internal-fn.c (init_internal_fns): Fix off-by-one.
6714 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6715 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6716 Anna Tikhonova <anna.tikhonova@intel.com>
6717 Ilya Tocar <ilya.tocar@intel.com>
6718 Andrey Turetskiy <andrey.turetskiy@intel.com>
6719 Ilya Verbin <ilya.verbin@intel.com>
6720 Kirill Yukhin <kirill.yukhin@intel.com>
6721 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6723 * config/i386/i386.c (standard_sse_constant_opcode): Use
6724 vpxord/vpternlog if avx512 is availible.
6726 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6729 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6730 bitfields, that is when size doesn't match the size of type or the
6731 size of the constructor.
6733 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6735 * config/rs6000/constraints.md (wh constraint): New constraint,
6736 for FP registers if direct move is available.
6737 (wi constraint): New constraint, for VSX/FP registers that can
6738 handle 64-bit integers.
6739 (wj constraint): New constraint for VSX/FP registers that can
6740 handle 64-bit integers for direct moves.
6741 (wk constraint): New constraint for VSX/FP registers that can
6742 handle 64-bit doubles for direct moves.
6743 (wy constraint): Make documentation match implementation.
6745 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6746 scalar_in_vmx_p field to simplify tests of whether SFmode or
6747 DFmode can go in the Altivec registers.
6748 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6749 (rs6000_setup_reg_addr_masks): Likewise.
6750 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6751 field, and wh/wi/wj/wk constraints.
6752 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6753 the wh/wi/wj/wk constraints.
6754 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6755 upper registers, prefer VSX registers unless the operation is a
6756 memory operation with REG+OFFSET addressing.
6758 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6759 DImode. Change SFmode to use ww constraint instead of d to allow
6760 SF registers in the upper registers.
6763 (VSr5): Fix thinko in comment.
6764 (VSa): New mode attribute that is an alternative to wa, that
6765 returns the VSX register class that a mode can go in, but may not
6766 be the preferred register class.
6767 (VS_64dm): New mode attribute for appropriate register classes for
6768 referencing 64-bit elements of vectors for direct moves and normal
6770 (VS_64reg): Likewise.
6771 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6772 register allocator to only registers the data type can handle.
6773 (vsx_le_perm_load_<mode>): Likewise.
6774 (vsx_le_perm_store_<mode>): Likewise.
6775 (vsx_xxpermdi2_le_<mode>): Likewise.
6776 (vsx_xxpermdi4_le_<mode>): Likewise.
6777 (vsx_lxvd2x2_le_<mode>): Likewise.
6778 (vsx_lxvd2x4_le_<mode>): Likewise.
6779 (vsx_stxvd2x2_le_<mode>): Likewise.
6780 (vsx_add<mode>3): Likewise.
6781 (vsx_sub<mode>3): Likewise.
6782 (vsx_mul<mode>3): Likewise.
6783 (vsx_div<mode>3): Likewise.
6784 (vsx_tdiv<mode>3_internal): Likewise.
6785 (vsx_fre<mode>2): Likewise.
6786 (vsx_neg<mode>2): Likewise.
6787 (vsx_abs<mode>2): Likewise.
6788 (vsx_nabs<mode>2): Likewise.
6789 (vsx_smax<mode>3): Likewise.
6790 (vsx_smin<mode>3): Likewise.
6791 (vsx_sqrt<mode>2): Likewise.
6792 (vsx_rsqrte<mode>2): Likewise.
6793 (vsx_tsqrt<mode>2_internal): Likewise.
6794 (vsx_fms<mode>4): Likewise.
6795 (vsx_nfma<mode>4): Likewise.
6796 (vsx_eq<mode>): Likewise.
6797 (vsx_gt<mode>): Likewise.
6798 (vsx_ge<mode>): Likewise.
6799 (vsx_eq<mode>_p): Likewise.
6800 (vsx_gt<mode>_p): Likewise.
6801 (vsx_ge<mode>_p): Likewise.
6802 (vsx_xxsel<mode>): Likewise.
6803 (vsx_xxsel<mode>_uns): Likewise.
6804 (vsx_copysign<mode>3): Likewise.
6805 (vsx_float<VSi><mode>2): Likewise.
6806 (vsx_floatuns<VSi><mode>2): Likewise.
6807 (vsx_fix_trunc<mode><VSi>2): Likewise.
6808 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6809 (vsx_x<VSv>r<VSs>i): Likewise.
6810 (vsx_x<VSv>r<VSs>ic): Likewise.
6811 (vsx_btrunc<mode>2): Likewise.
6812 (vsx_b2trunc<mode>2): Likewise.
6813 (vsx_floor<mode>2): Likewise.
6814 (vsx_ceil<mode>2): Likewise.
6815 (vsx_<VS_spdp_insn>): Likewise.
6816 (vsx_xscvspdp): Likewise.
6817 (vsx_xvcvspuxds): Likewise.
6818 (vsx_float_fix_<mode>2): Likewise.
6819 (vsx_set_<mode>): Likewise.
6820 (vsx_extract_<mode>_internal1): Likewise.
6821 (vsx_extract_<mode>_internal2): Likewise.
6822 (vsx_extract_<mode>_load): Likewise.
6823 (vsx_extract_<mode>_store): Likewise.
6824 (vsx_splat_<mode>): Likewise.
6825 (vsx_xxspltw_<mode>): Likewise.
6826 (vsx_xxspltw_<mode>_direct): Likewise.
6827 (vsx_xxmrghw_<mode>): Likewise.
6828 (vsx_xxmrglw_<mode>): Likewise.
6829 (vsx_xxsldwi_<mode>): Likewise.
6830 (vsx_xscvdpspn): Tighten constraints to only use register classes
6832 (vsx_xscvspdpn): Likewise.
6833 (vsx_xscvdpspn_scalar): Likewise.
6835 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
6836 wj, and wk constraints.
6837 (GPR_REG_CLASS_P): New helper macro for register classes targeting
6838 general purpose registers.
6840 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
6842 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
6843 DImode instead of wm. Use wk constraint for direct move of DFmode
6845 (extendsidi2_lfiwax): Likewise.
6848 (movdi_internal64): Likewise.
6850 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
6851 wk constraints. Make the wy constraint documentation match them
6854 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
6856 Replacement of isl_int by isl_val
6857 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
6858 (compute_bounds_for_param): use isl_val instead of isl_int
6859 (compute_bounds_for_loop): likewise
6860 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
6861 (build_linearized_memory_access): use isl_val instead of isl_int
6862 (pdr_stride_in_loop): likewise
6863 * graphite-optimize-isl.c:
6864 (getPrevectorMap): use isl_val instead of isl_int
6866 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
6867 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
6868 (extern the_isl_ctx): declare
6869 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
6870 (extract_affine_gmp): likewise
6872 (build_loop_iteration_domains): likewise
6873 (add_param_constraints): likewise
6875 2014-08-11 Richard Biener <rguenther@suse.de>
6877 PR tree-optimization/62075
6878 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
6879 handle uses in patterns.
6881 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6882 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6883 Anna Tikhonova <anna.tikhonova@intel.com>
6884 Ilya Tocar <ilya.tocar@intel.com>
6885 Andrey Turetskiy <andrey.turetskiy@intel.com>
6886 Ilya Verbin <ilya.verbin@intel.com>
6887 Kirill Yukhin <kirill.yukhin@intel.com>
6888 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6890 * common/config/i386/i386-common.c
6891 (OPTION_MASK_ISA_AVX512VL_SET): Define.
6892 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
6893 (ix86_handle_option): Handle OPT_mavx512vl.
6894 * config/i386/cpuid.h (bit_AVX512VL): Define.
6895 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
6896 set -mavx512vl accordingly.
6897 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6898 OPTION_MASK_ISA_AVX512VL.
6899 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
6900 (ix86_option_override_internal): Define PTA_AVX512VL, handle
6901 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
6902 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
6903 * config/i386/i386.h (TARGET_AVX512VL): Define.
6904 (TARGET_AVX512VL_P(x)): Ditto.
6905 * config/i386/i386.opt: Add mavx512vl.
6907 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
6909 PR tree-optimization/62073
6910 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
6913 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6914 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6915 Anna Tikhonova <anna.tikhonova@intel.com>
6916 Ilya Tocar <ilya.tocar@intel.com>
6917 Andrey Turetskiy <andrey.turetskiy@intel.com>
6918 Ilya Verbin <ilya.verbin@intel.com>
6919 Kirill Yukhin <kirill.yukhin@intel.com>
6920 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6922 * common/config/i386/i386-common.c
6923 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
6924 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
6925 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
6926 (ix86_handle_option): Handle OPT_mavx512bw.
6927 * config/i386/cpuid.h (bit_AVX512BW): Define.
6928 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
6929 set -mavx512bw accordingly.
6930 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6931 OPTION_MASK_ISA_AVX512BW.
6932 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
6933 (ix86_option_override_internal): Define PTA_AVX512BW, handle
6934 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
6935 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
6936 * config/i386/i386.h (TARGET_AVX512BW): Define.
6937 (TARGET_AVX512BW_P(x)): Ditto.
6938 * config/i386/i386.opt: Add mavx512bw.
6940 2014-08-11 Richard Biener <rguenther@suse.de>
6942 PR tree-optimization/62070
6943 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
6944 Remove SSA checking.
6946 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6948 * asan.c (asan_check_flags): New enum.
6949 (build_check_stmt_with_calls): Removed function.
6950 (build_check_stmt): Split inlining logic to
6951 asan_expand_check_ifn.
6952 (instrument_derefs): Rename parameter.
6953 (instrument_mem_region_access): Rename parameter.
6954 (instrument_strlen_call): Likewise.
6955 (asan_expand_check_ifn): New function.
6956 (asan_instrument): Remove old code.
6957 (pass_sanopt::execute): Change handling of
6958 asan-instrumentation-with-call-threshold.
6959 (asan_clear_shadow): Fix formatting.
6960 (asan_function_start): Likewise.
6961 (asan_emit_stack_protection): Likewise.
6962 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
6964 * internal-fn.c (expand_ASAN_CHECK): New function.
6965 * internal-fn.def (ASAN_CHECK): New internal function.
6966 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
6968 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
6969 * tree.c: Small comment fix.
6971 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6973 * gimple.c (gimple_call_fnspec): Support internal functions.
6974 (gimple_call_return_flags): Use const.
6975 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
6976 * internal-fn.def: Add fnspec information.
6977 * internal-fn.h (internal_fn_fnspec): New function.
6978 (init_internal_fns): Declare new function.
6979 * internal-fn.c (internal_fn_fnspec_array): New global variable.
6980 (init_internal_fns): New function.
6981 * tree-core.h: Update macro call.
6982 * tree.c (build_common_builtin_nodes): Initialize internal fns.
6984 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
6986 * lto-streamer.h (struct output_block::symbol): Change from
6987 struct symtab_node to plain symtab_node.
6988 (referenced_from_this_partition_p): Change first parameter
6989 from struct symtab_node to plain symtab_node.
6991 2014-08-10 Marek Polacek <polacek@redhat.com>
6994 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
6996 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
6998 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
6999 DECL correctly; do not give up on types in static storage.
7001 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7003 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7005 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7007 * graphite-isl-ast-to-gimple.c:
7008 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7010 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7012 2014-08-08 Guozhi Wei <carrot@google.com>
7014 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7016 2014-08-08 Cary Coutant <ccoutant@google.com>
7018 * dwarf2out.c (get_skeleton_type_unit): Remove.
7019 (output_skeleton_debug_sections): Remove skeleton type units.
7020 (output_comdat_type_unit): Likewise.
7021 (dwarf2out_finish): Likewise.
7023 2014-08-07 Yi Yang <ahyangyi@google.com>
7025 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7027 2014-08-08 Richard Biener <rguenther@suse.de>
7029 * lto-streamer.h (struct lto_input_block): Make it a class
7031 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7032 (struct lto_function_header, struct lto_simple_header,
7033 struct lto_simple_header_with_strings,
7034 struct lto_decl_header, struct lto_function_header): Make
7035 a simple inheritance hieararchy. Remove unused fields.
7036 (struct lto_asm_header): Remove.
7037 * lto-streamer-out.c (produce_asm): Adjust.
7038 (lto_output_toplevel_asms): Likewise.
7039 (produce_asm_for_decls): Likewise.
7040 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7041 * data-streamer-in.c (string_for_index): Likewise.
7042 * ipa-inline-analysis.c (inline_read_section): Likewise.
7043 * ipa-prop.c (ipa_prop_read_section): Likewise.
7044 (read_replacements_section): Likewise.
7045 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7046 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7047 (lto_destroy_simple_input_block): Likewise.
7048 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7049 (lto_input_toplevel_asms): Likewise.
7051 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7052 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7053 Anna Tikhonova <anna.tikhonova@intel.com>
7054 Ilya Tocar <ilya.tocar@intel.com>
7055 Andrey Turetskiy <andrey.turetskiy@intel.com>
7056 Ilya Verbin <ilya.verbin@intel.com>
7057 Kirill Yukhin <kirill.yukhin@intel.com>
7058 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7060 * common/config/i386/i386-common.c
7061 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7062 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7063 (ix86_handle_option): Handle OPT_mavx512dq.
7064 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7065 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7066 set -mavx512dq accordingly.
7067 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7068 OPTION_MASK_ISA_AVX512DQ.
7069 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7070 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7071 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7072 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7073 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7074 (TARGET_AVX512DQ_P(x)): Ditto.
7075 * config/i386/i386.opt: Add mavx512dq.
7077 2014-08-08 Richard Biener <rguenther@suse.de>
7079 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7080 target_percent, target_percent_s): Export.
7081 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7082 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7083 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7084 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7085 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7086 Move to gimple-fold.c.
7087 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7089 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7090 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7091 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7092 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7093 (rewrite_call_expr_array): Remove.
7094 (fold_builtin_sprintf_chk): Likewise.
7095 (fold_builtin_snprintf_chk): Likewise.
7096 (fold_builtin_varargs): Remove handling of sprintf_chk,
7097 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7098 (gimple_fold_builtin_sprintf_chk): Remove.
7099 (gimple_fold_builtin_snprintf_chk): Likewise.
7100 (gimple_fold_builtin_varargs): Likewise.
7101 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7102 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7103 * gimple.c (gimple_seq_add_seq_without_update): New function.
7104 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7105 * gimple-fold.c: Include output.h.
7106 (gsi_replace_with_seq_vops): New function, split out from ...
7107 (gimplify_and_update_call_from_tree): ... here.
7108 (replace_call_with_value): New function.
7109 (replace_call_with_call_and_fold): Likewise.
7110 (var_decl_component_p): Moved from builtins.c.
7111 (gimple_fold_builtin_memory_op): Moved from builtins.c
7112 fold_builtin_memory_op and rewritten to GIMPLE.
7113 (gimple_fold_builtin_memset): Likewise.
7114 (gimple_fold_builtin_strcpy): Likewise.
7115 (gimple_fold_builtin_strncpy): Likewise.
7116 (gimple_fold_builtin_strcat): Likewise.
7117 (gimple_fold_builtin_fputs): Likewise.
7118 (gimple_fold_builtin_memory_chk): Likewise.
7119 (gimple_fold_builtin_stxcpy_chk): Likewise.
7120 (gimple_fold_builtin_stxncpy_chk): Likewise.
7121 (gimple_fold_builtin_snprintf_chk): Likewise.
7122 (gimple_fold_builtin_sprintf_chk): Likewise.
7123 (gimple_fold_builtin_strlen): New function.
7124 (gimple_fold_builtin_with_strlen): New function split out from
7125 gimple_fold_builtin.
7126 (gimple_fold_builtin): Change signature and handle
7127 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7128 here. Call gimple_fold_builtin_with_strlen.
7129 (gimple_fold_call): Adjust.
7131 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7133 * calls.c (precompute_arguments): Check
7134 promoted_for_signed_and_unsigned_p and set the promoted mode.
7135 (promoted_for_signed_and_unsigned_p): New function.
7136 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7137 and set the promoted mode.
7138 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7139 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7140 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7143 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7145 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7146 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7147 (expand_call): Likewise.
7148 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7149 to get promoted mode.
7150 * combine.c (record_promoted_value): Skip > 0 comparison with
7151 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7152 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7153 of SUBREG_PROMOTED_UNSIGNED_P.
7154 (convert_modes): Likewise.
7155 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7156 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7157 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7158 SUBREG_PROMOTED_UNSIGNED_SET.
7159 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7160 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7161 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7162 SUBREG_PROMOTED_SET.
7163 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7164 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7165 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7166 of SUBREG_PROMOTED_UNSIGNED_P.
7167 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7168 (SUBREG_PROMOTED_SET): New define.
7169 (SUBREG_PROMOTED_GET): Likewise.
7170 (SUBREG_PROMOTED_SIGN): Likewise.
7171 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7172 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7173 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7174 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7175 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7176 (nonzero_bits1): Skip > 0 comparison with the results as
7177 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7178 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7179 of !SUBREG_PROMOTED_UNSIGNED_P.
7180 * simplify-rtx.c (simplify_unary_operation_1): Use new
7181 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7182 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7183 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7184 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7186 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7188 * ipa-devirt.c: Include gimple-pretty-print.h
7189 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7191 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7192 (get_polymorphic_call_info): Fix return value
7193 (type_change_info): New sturcture based on ipa-prop
7195 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7196 based on ipa-prop variant.
7197 (extr_type_from_vtbl_ptr_store): New function
7198 based on ipa-prop variant.
7199 (record_known_type): New function.
7200 (check_stmt_for_type_change): New function.
7201 (get_dynamic_type): New function.
7202 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7203 * tree-ssa-pre.c: ipa-utils.h
7204 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7205 machinery; sanity check with ipa-prop devirtualization.
7206 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7209 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7211 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7212 * alias.c, cfgexpand.c, cgraphbuild.c,
7213 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7214 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7215 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7216 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7217 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7218 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7219 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7220 dse.c, except.c, gengtype.c, gimple-expr.c,
7221 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7222 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7223 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7224 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7225 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7226 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7228 * pointer-set.c: Remove file.
7229 * pointer-set.h: Remove file.
7231 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7233 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7234 * config/arm/types.md (f_sels, f_seld): Delete.
7236 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7238 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7239 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7240 (aarch64_movdi_<mode>high): Likewise.
7241 (aarch64_mov<mode>high_di): Likewise.
7242 (aarch64_movdi_<mode>low): Likewise.
7243 (aarch64_mov<mode>low_di): Likewise.
7244 (aarch64_movtilow_tilow): Likewise.
7245 Add comment explaining usage of fp,simd attributes and of
7246 TARGET_FLOAT and TARGET_SIMD.
7248 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7249 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7251 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7252 Use MOVN when one of the half-words is 0xffff.
7254 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7256 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7258 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7260 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7261 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7262 (rfs_str): String corresponding to RFS_* constants.
7263 (rank_for_schedule_stats_t): New typedef.
7264 (rank_for_schedule_stats): New static variable.
7265 (rfs_result): New static function.
7266 (rank_for_schedule): Track statistics for deciding heuristics.
7267 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7269 (ready_sort): Use them for debug printouts.
7270 (schedule_block): Init statistics state. Print statistics on
7271 rank_for_schedule decisions.
7273 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7275 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7277 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7279 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7282 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7284 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7285 function to not conflict.
7286 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7287 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7288 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7289 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7290 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7293 2014-08-07 Marek Polacek <polacek@redhat.com>
7295 * fold-const.c (fold_binary_loc): Add folding of
7296 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7298 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7300 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7301 instead of type size.
7302 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7304 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7306 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7307 (*thumb1_movqi_insn): Likewise.
7308 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7310 2014-08-07 Tom de Vries <tom@codesourcery.com>
7312 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7313 (glibc_2_11_or_earlier): Remove effective-target keywords.
7315 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7317 * config/arm/arm.c (bdesc_2arg): Fix typo.
7318 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7320 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7322 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7324 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7327 * haifa-sched.c (advance_one_cycle): Fix dump.
7328 (schedule_block): Don't advance cycle if we are already at the
7329 beginning of the cycle.
7331 2014-08-06 Martin Jambor <mjambor@suse.cz>
7334 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7336 2014-08-06 Richard Biener <rguenther@suse.de>
7339 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7341 (lto_input_tree): Pop SCCs here.
7343 2014-08-06 Richard Biener <rguenther@suse.de>
7345 PR tree-optimization/61320
7346 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7347 handle misaligned loads.
7349 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7351 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7352 (aarch64_expand_vec_perm_const): Check for dup before zip.
7354 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7356 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7357 CONST_INT_P instead of GET_CODE and compare.
7358 (aarch64_select_cc_mode): Likewise.
7359 (aarch64_print_operand): Likewise.
7360 (aarch64_rtx_costs): Likewise.
7361 (aarch64_simd_valid_immediate): Likewise.
7362 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7363 (aarch64_simd_emit_pair_result_insn): Likewise.
7365 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7367 * gdbhooks.py (find_gcc_source_dir): New helper function.
7368 (class PassNames): New class, locating and parsing passes.def.
7369 (class BreakOnPass): New command "break-on-pass".
7371 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7373 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7376 2014-08-05 Richard Biener <rguenther@suse.de>
7378 PR rtl-optimization/61672
7379 * emit-rtl.h (mem_attrs_eq_p): Declare.
7380 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7381 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7382 * cfgcleanup.c (merge_memattrs): Likewise.
7385 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7387 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7388 rather than singleton vectors.
7389 (vqdmlsls_lane_s32): Likewise.
7391 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7393 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7394 Use VSDQ_HSI mode iterator.
7395 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7396 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7397 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7398 Use BUILTIN_VDQHS macro.
7399 (sqrdmulh_laneq): Likewise.
7400 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7401 (vqdmlals_laneq_s32): Likewise.
7402 (vqdmlslh_laneq_s16): Likewise.
7403 (vqdmlsls_laneq_s32): Likewise.
7404 (vqdmulhh_laneq_s16): Likewise.
7405 (vqdmulhs_laneq_s32): Likewise.
7406 (vqrdmulhh_laneq_s16): Likewise.
7407 (vqrdmulhs_laneq_s32): Likewise.
7409 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7411 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7412 (vmuld_laneq_f64): Likewise.
7413 (vmuls_laneq_f32): Likewise.
7414 (vmul_n_f64): Likewise.
7415 (vmuld_lane_f64): Reimplement in C.
7416 (vmuls_lane_f32): Likewise.
7418 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7420 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7422 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7424 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7426 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7427 (rbitsi2): Likewise.
7428 (*arm_rev): Set predicable and predicable_short_it attributes.
7430 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7432 * convert.c (convert_to_integer): Guard transformation to lrint by
7435 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7437 * config/aarch64/aarch64-builtins.c
7438 (aarch64_simd_builtin_type_mode): Delete.
7439 (v8qi_UP): Remap to V8QImode.
7440 (v4hi_UP): Remap to V4HImode.
7441 (v2si_UP): Remap to V2SImode.
7442 (v2sf_UP): Remap to V2SFmode.
7443 (v1df_UP): Remap to V1DFmode.
7444 (di_UP): Remap to DImode.
7445 (df_UP): Remap to DFmode.
7446 (v16qi_UP):V16QImode.
7447 (v8hi_UP): Remap to V8HImode.
7448 (v4si_UP): Remap to V4SImode.
7449 (v4sf_UP): Remap to V4SFmode.
7450 (v2di_UP): Remap to V2DImode.
7451 (v2df_UP): Remap to V2DFmode.
7452 (ti_UP): Remap to TImode.
7453 (ei_UP): Remap to EImode.
7454 (oi_UP): Remap to OImode.
7455 (ci_UP): Map to CImode.
7456 (xi_UP): Remap to XImode.
7457 (si_UP): Remap to SImode.
7458 (sf_UP): Remap to SFmode.
7459 (hi_UP): Remap to HImode.
7460 (qi_UP): Remap to QImode.
7461 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7462 (VAR1): Build builtin name.
7463 (aarch64_init_simd_builtins): Remove dead code.
7465 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7467 * graphite-isl-ast-to-gimple.c:
7468 (set_options): New function.
7469 (scop_to_isl_ast): Add calling of set_options.
7471 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7473 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7474 (analyze_iv_to_split_insn): Don't initialize them.
7475 (get_ivts_expr): Removed.
7476 (allocate_basic_variable, insert_base_initialization): Use
7477 SET_SRC instead of *get_ivts_expr.
7478 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7480 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7482 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7483 (translate_isl_ast_for_loop): Add checking of the
7484 flag_loop_parallelize_all.
7485 (ast_build_before_for): New function.
7486 (scop_to_isl_ast): Add checking of the
7487 flag_loop_parallelize_all.
7488 * graphite-dependences.c: Move the defenition of the
7489 scop_get_dependences from graphite-optimize-isl.c to this file.
7490 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7491 (carries_deps): Add checking of the x's value.
7492 * graphite-optimize-isl.c: Move the defenition of the
7493 scop_get_dependences to graphite-dependences.c.
7494 * graphite-poly.h: Add declarations of scop_get_dependences
7497 2014-08-04 Rohit <rohitarulraj@freescale.com>
7500 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7502 (alt_reg_names): Likewise.
7503 (rs6000_dwarf_register_span): For SPE high registers, replace
7504 dwarf register numbers with GCC hard register numbers.
7505 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7506 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7507 register number for the corresponding GCC hard register number.
7508 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7509 newly added GCC hard register numbers for SPE high registers.
7510 (DWARF_FRAME_REGISTERS): Likewise.
7511 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7512 (DWARF_FRAME_REGNUM): Likewise.
7513 (FIXED_REGISTERS): Likewise.
7514 (CALL_USED_REGISTERS): Likewise.
7515 (CALL_REALLY_USED_REGISTERS): Likewise.
7516 (REG_ALLOC_ORDER): Likewise.
7517 (enum reg_class): Likewise.
7518 (REG_CLASS_NAMES): Likewise.
7519 (REG_CLASS_CONTENTS): Likewise.
7520 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7522 2014-08-04 Richard Biener <rguenther@suse.de>
7524 * gimple-fold.h (gimple_fold_builtin): Remove.
7525 * gimple-fold.c (gimple_fold_builtin): Make static.
7526 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7527 fold_stmt, not gimple_fold_builtin.
7529 2014-08-04 Martin Liska <mliska@suse.cz>
7531 * cgraph.h (csi_end_p): Removed.
7532 (csi_next): Likewise.
7533 (csi_node): Likewise.
7534 (csi_start): Likewise.
7535 (cgraph_node_in_set_p): Likewise.
7536 (cgraph_node_set_size): Likewise.
7537 (vsi_end_p): Likewise.
7538 (vsi_next): Likewise.
7539 (vsi_node): Likewise.
7540 (vsi_start): Likewise.
7541 (varpool_node_set_size): Likewise.
7542 (cgraph_node_set_nonempty_p): Likewise.
7543 (varpool_node_set_nonempty_p): Likewise.
7544 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7546 * ipa-inline-transform.c: Likewise.
7547 * ipa-utils.c (cgraph_node_set_new): Removed.
7548 (cgraph_node_set_add): Likewise.
7549 (cgraph_node_set_remove): Likewise.
7550 (cgraph_node_set_find): Likewise.
7551 (dump_cgraph_node_set): Likewise.
7552 (debug_cgraph_node_set): Likewise.
7553 (free_cgraph_node_set): Likewise.
7554 (varpool_node_set_new): Likewise.
7555 (varpool_node_set_add): Likewise.
7556 (varpool_node_set_remove): Likewise.
7557 (varpool_node_set_find): Likewise.
7558 (dump_varpool_node_set): Likewise.
7559 (free_varpool_node_set): Likewise.
7560 (debug_varpool_node_set): Likewise.
7561 * tree-emutls.c (struct tls_var_data):
7562 (emutls_index): Removed.
7563 (emutls_decl): Likewise.
7564 (gen_emutls_addr): Function implementation uses newly added
7565 hash_map<varpool_node *, tls_var_data>.
7566 (clear_access_vars): Likewise.
7567 (create_emultls_var): Likewise.
7568 (ipa_lower_emutls): Likewise.
7569 (reset_access): New function.
7571 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7573 * config/i386/i386.c (ix86_option_override_internal): Add
7574 PTA_RDRND and PTA_MOVBE for bdver4.
7576 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7577 James Greenhalgh <james.greenhalgh@arm.com>
7579 * doc/md.texi (clrsb): Document.
7580 (clz): Change reference to x into operand 1.
7582 (popcount): Likewise.
7584 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7587 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7588 move to subtarget in serial version if result is ignored.
7590 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7591 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7593 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7594 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7595 (sched_analyze_insn): Update use of try_group_insn to
7596 sched_macro_fuse_insns.
7597 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7598 arguments that are not conditional jumps.
7600 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7602 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7603 family information. Handle BTVER2 cpu with cpuid family value.
7605 2014-08-04 Tom de Vries <tom@codesourcery.com>
7607 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7608 (glibc_2_11_or_earlier): Document effective-target keywords.
7610 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7612 * ipa-devirt.c (odr_type_warn_count): Add type.
7613 (possible_polymorphic_call_targets): Set it.
7614 (ipa_devirt): Use it.
7616 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7618 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7620 * ipa-devirt.c: Include hash-map.h
7621 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7622 (clear_speculation): Break out of ...
7623 (get_class_context): ... here; speed up handling obviously useless
7625 (odr_type_warn_count, decl_warn_count): New structures.
7626 (final_warning_record): New structure.
7627 (final_warning_records): New static variable.
7628 (possible_polymorphic_call_targets): Cleanup handling of
7629 speculative info; do not build speculation when user do not care;
7630 record info about warnings when asked for.
7631 (add_decl_warning): New function.
7632 (type_warning_cmp): New function.
7633 (decl_warning_cmp): New function.
7634 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7635 (gate): Enable pass when warnings are requested.
7636 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7639 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7641 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7643 (hash_map::remove): New method.
7644 (hash_map::traverse): New method.
7645 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7646 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7647 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7648 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7649 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7650 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7653 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7655 * hash-set.h: new File.
7656 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7657 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7658 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7659 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7660 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7661 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7662 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7663 varpool.c: Use hash_set instead of pointer_set.
7665 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7667 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7669 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7671 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7672 for frame access when strict_p is false.
7674 2014-08-01 Renlin Li <renlin.li@arm.com>
7675 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7677 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7678 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7679 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7681 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7683 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7684 aarch64_mem_pair_offset.
7686 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7688 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7690 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7691 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7693 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7695 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7697 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7700 * cgraphunit.c (analyze_functions): Use get_create rather than get
7701 for decls which are clones of abstract functions.
7703 2014-08-01 Martin Liska <mliska@suse.cz>
7705 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7706 * ipa-prop.h (count_formal_params): Global function created from static.
7707 * ipa-prop.c (count_formal_params): Likewise.
7708 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7709 profiles for semantically equivalent functions.
7710 * passes.c (do_per_function): If we load body of a function
7711 during WPA, this condition should behave same.
7712 * varpool.c (ctor_for_folding): More tolerant assert for variable
7713 aliases created during WPA.
7715 2014-08-01 Martin Liska <mliska@suse.cz>
7717 * doc/invoke.texi (Options That Control Optimization): Documentation
7718 for -foptimize-strlen introduced. Optimization levels default options
7721 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7723 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7724 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7725 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7727 * stor-layout.h (min_align_of_type): New prototype.
7728 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7729 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7731 * ubsan.c: Include builtins.h.
7732 (ubsan_expand_bounds_ifn): Change return type to bool,
7734 (ubsan_expand_null_ifn): Change return type to bool, change
7735 argument to gimple_stmt_iterator *. Handle both null and alignment
7736 sanitization, take type from ckind argument's type rather than
7738 (instrument_member_call): Removed.
7739 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7740 Handle both null and alignment sanitization, don't say whole
7741 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7742 call instead of 2 argument.
7743 (instrument_null): Adjust instrument_mem_ref caller. Don't
7744 instrument calls here.
7745 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7747 * stor-layout.c (min_align_of_type): New function.
7748 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7749 Or it into SANITIZE_UNDEFINED.
7750 * doc/invoke.texi (-fsanitize=alignment): Document.
7752 2014-07-31 Andi Kleen <ak@linux.intel.com>
7754 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7756 2014-07-31 Andi Kleen <ak@linux.intel.com>
7758 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7760 (vn_reference_compute_hash): Dito.
7761 (vn_nary_op_compute_hash): Dito.
7762 (vn_phi_compute_hash): Dito.
7763 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7765 2014-07-31 Andi Kleen <ak@linux.intel.com>
7767 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7768 Rename to inchash:add_expr_commutative. Convert to inchash.
7769 (iterative_hash_hashable_expr): Rename to
7770 inchash:add_hashable_expr. Convert to inchash.
7771 (avail_expr_hash): Dito.
7773 2014-07-31 Andi Kleen <ak@linux.intel.com>
7775 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7778 2014-07-31 Andi Kleen <ak@linux.intel.com>
7780 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7782 2014-07-31 Andi Kleen <ak@linux.intel.com>
7784 * Makefile.in (OBJS): Add rtlhash.o
7785 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7786 (loc_checksum): Dito.
7787 (loc_checksum_ordered): Dito.
7788 (hash_loc_operands): Dito.
7790 (hash_loc_list): Dito.
7791 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7792 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7793 * rtlhash.c: New file.
7794 * rtlhash.h: New file.
7796 2014-07-31 Andi Kleen <ak@linux.intel.com>
7798 * inchash.h (inchash): Change inchash class to namespace.
7799 (class hash): ... Rename from inchash.
7800 (add_object): Move from macro to class template.
7801 * lto-streamer-out.c (hash_tree): Change inchash
7803 * tree.c (build_type_attribute_qual_variant): Dito.
7804 (type_hash_list): Dito.
7805 (attribute_hash_list): Dito.
7806 (iterative_hstate_expr): Rename to inchash::add_expr
7807 (build_range_type_1): Change inchash to inchash::hash
7808 and use hash::add_expr.
7809 (build_array_type_1): Dito.
7810 (build_function_type): Dito
7811 (build_method_type_directly): Dito.
7812 (build_offset_type): Dito.
7813 (build_complex_type): Dito.
7814 (make_vector_type): Dito.
7815 * tree.h (iterative_hash_expr): Dito.
7817 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
7819 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
7821 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7823 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
7824 correct alphabetical position.
7825 (vpaddd_f64): Rewrite using builtins.
7826 (vpaddd_s64): Move to correct alphabetical position.
7829 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
7832 * config/sh/sh.c (sh_legitimate_address_p,
7833 sh_legitimize_reload_address): Handle reg+reg address modes when
7834 ALLOW_INDEXED_ADDRESS is false.
7835 * config/sh/predicates.md (general_movsrc_operand,
7836 general_movdst_operand): Likewise.
7838 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7840 * config/aarch64/aarch64-builtins.c
7841 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
7844 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7846 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
7847 the generated mask based on BYTES_BIG_ENDIAN.
7848 (aarch64_simd_check_vect_par_cnst_half): New.
7849 * config/aarch64/aarch64-protos.h
7850 (aarch64_simd_check_vect_par_cnst_half): New.
7851 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
7852 the check out to aarch64_simd_check_vect_par_cnst_half.
7853 (vect_par_cnst_lo_half): Likewise.
7854 * config/aarch64/aarch64-simd.md
7855 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
7856 (move_hi_quad_<mode>): Always generate a low mask.
7858 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7860 * doc/invoke.texi (AVR Options): Add documentation about
7861 __AVR_DEVICE_NAME__ built-in macro.
7863 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
7866 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
7867 constraints are satisfied.
7868 (<shift>di3_neon): Likewise.
7870 2014-07-31 Richard Biener <rguenther@suse.de>
7872 PR tree-optimization/61964
7873 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
7874 by structural equality.
7876 2014-07-31 Yury Gribov <y.gribov@samsung.com>
7878 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
7879 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
7880 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
7882 * gcc.c (sanitize_spec_function): Support new option.
7883 (SANITIZER_SPEC): Remove now redundant check.
7884 * opts.c (common_handle_option): Support new option.
7885 (finish_options): Check for incompatibilities.
7886 * toplev.c (process_options): Split userspace-specific checks.
7888 2014-07-31 Richard Biener <rguenther@suse.de>
7890 * lto-streamer.h (struct output_block): Remove global.
7891 (struct data_in): Remove labels, num_named_labels and
7893 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
7894 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
7896 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
7899 * common.opt (-Wreturn-local-addr): Moved from c.opt.
7900 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
7901 (isolate_path): New argument to avoid inserting a trap.
7902 (find_implicit_erroneous_behaviour): Handle returning the address
7903 of a local variable.
7904 (find_explicit_erroneous_behaviour): Likewise.
7906 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
7909 * toplev.c (init_random_seed): Move piece of code never called to
7911 (set_random_seed): see above.
7913 2014-07-31 Tom de Vries <tom@codesourcery.com>
7915 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
7917 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7919 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
7920 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
7922 2014-07-31 Richard Biener <rguenther@suse.de>
7924 * data-streamer.h (streamer_write_data_stream): Declare here,
7926 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
7927 * lto-cgraph.c (lto_output_node): Adjust.
7928 (lto_output_varpool_node): Likewise.
7929 * data-streamer-out.c (streamer_string_index): Likewise.
7930 (streamer_write_data_stream, lto_append_block): Move from ...
7931 * lto-section-out.c (lto_output_data_stream,
7932 lto_append_block): ... here.
7934 2014-07-30 Mike Stump <mikestump@comcast.net>
7936 * configure.ac: Also check for popen.
7937 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
7938 * configure: Regenerate.
7939 * config.in: Regenerate.
7941 2014-07-30 Martin Jambor <mjambor@suse.cz>
7943 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
7944 parameter to gimple.
7946 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7948 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
7949 address as second parameter to __tpf_eh_return routine.
7951 2014-07-30 Jiong Wang <jiong.wang@arm.com>
7953 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
7956 2014-07-30 Tom Tromey <tromey@redhat.com>
7959 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
7960 * doc/extend.texi (Type Attributes): Document designated_init
7963 2014-07-30 Roman Gareev <gareevroman@gmail.com>
7965 * graphite-isl-ast-to-gimple.c:
7966 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
7967 (gcc_expression_from_isl_expression): Pass type to
7968 gcc_expression_from_isl_ast_expr_id.
7970 2014-07-30 Richard Biener <rguenther@suse.de>
7972 * lto-streamer.h (lto_write_data): New function.
7973 * langhooks.c (lhd_append_data): Do not free block.
7974 * lto-section-out.c (lto_write_data): New function writing
7975 raw data to the current section.
7976 (lto_write_stream): Adjust for langhook semantic change.
7977 (lto_destroy_simple_output_block): Write header directly.
7978 * lto-opts.c (lto_write_options): Write options directly.
7979 * lto-streamer-out.c (produce_asm): Write heaeder directly.
7980 (lto_output_toplevel_asms): Likewise.
7981 (copy_function_or_variable): Copy data directly.
7982 (write_global_references): Output index table directly.
7983 (lto_output_decl_state_refs): Likewise.
7984 (write_symbol): Write data directly.
7985 (produce_symtab): Adjust.
7986 (produce_asm_for_decls): Output header and refs directly.
7988 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7990 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
7991 to speculative_targets
7992 (get_class_context): Fix handling of contextes without outer type;
7993 avoid matching non-polymorphic types in LTO.
7994 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
7995 parameter to speculative_targetsp; handle speculation.
7996 (dump_possible_polymorphic_call_targets): Update dumping.
7998 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8000 * common.opt (Wodr): Enable by default.
8002 2014-07-29 Olivier Hainque <hainque@adacore.com>
8004 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8006 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8009 * gengtype.c (strtoken): New function.
8010 (create_user_defined_type): Replace strtok with strtoken.
8012 2014-07-29 Nathan Sidwell <nathan@acm.org>
8014 * gcov-io.c (gcov_var): Make hidden.
8015 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8016 (gcov_do_dump): Declare.
8017 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8019 2014-07-29 Martin Jambor <mjambor@suse.cz>
8021 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8022 parameter to gimple.
8023 (sra_modify_assign): Likewise.
8025 2014-07-29 Richard Biener <rguenther@suse.de>
8028 * expr.c (expand_expr_real_2): Revert last change.
8030 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8032 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8033 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8034 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8036 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8037 (contains_type_p): Forward declare.
8038 (polymorphic_call_target_hasher::hash): Hash speculative info.
8039 (polymorphic_call_target_hasher::equal): Compare speculative info.
8040 (get_class_context): Handle speuclation.
8041 (contains_type_p): Update.
8042 (get_polymorphic_call_info_for_decl): Update.
8043 (walk_ssa_copies): Break out from ...
8044 (get_polymorphic_call_info): ... here; set speculative context
8046 * ipa-prop.c (ipa_write_indirect_edge_info,
8047 ipa_read_indirect_edge_info): Stream speculative context.
8048 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8049 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8050 SPECULATIVE_MAYBE_DERIVED_TYPE).
8051 (possible_polymorphic_call_targets overriders): Update.
8052 (dump_possible_polymorphic_call_targets overriders): Update.
8053 (dump_possible_polymorphic_call_target_p overriders): Update.
8055 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8057 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8058 ipa-devirt path; fix thinko there.
8060 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8062 * config/i386/i386.c (ix86_return_in_memory): Replace one
8063 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8065 2014-07-28 Marek Polacek <polacek@redhat.com>
8067 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8069 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8071 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8072 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8073 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8074 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8075 (USE_LD_AS_NEEDED): Likewise.
8076 (ASM_APP_ON): Likewise.
8077 (ASM_APP_OFF): Likewise.
8078 (TARGET_POSIX_IO): Likewise.
8079 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8080 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8081 (USE_LD_AS_NEEDED): Likewise.
8082 (ASM_APP_ON): Likewise.
8083 (ASM_APP_OFF): Likewise.
8084 (TARGET_POSIX_IO): Likewise.
8086 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8089 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8090 operators other than the equality operators.
8092 2014-07-28 Richard Biener <rguenther@suse.de>
8095 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8096 sure to register SImode ones, not only >= word_mode ones.
8097 * expr.c (expand_expr_real_2): When expanding -ftrapv
8098 binops do not use OPTAB_LIB_WIDEN.
8100 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8103 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8104 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8105 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8106 inserting them in the insn stream.
8108 2014-07-28 Marek Polacek <polacek@redhat.com>
8111 * common.opt (Wodr): Add Var.
8113 2014-07-28 Richard Biener <rguenther@suse.de>
8115 PR tree-optimization/61921
8116 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8117 if there is a varpool node before dereferencing it.
8119 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8121 * graphite-sese-to-poly.c:
8122 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8123 id of the pbb), which contains pointer to the pbb1.
8125 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8127 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8129 * graphite-isl-ast-to-gimple.c:
8130 (graphite_create_new_guard): New function.
8131 (translate_isl_ast_node_if): New function.
8132 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8134 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8136 2014-07-27 Anthony Green <green@moxielogic.com>
8138 * config.gcc: Add moxie-*-moxiebox* configuration.
8139 * config/moxie/moxiebox.h: New file.
8141 2014-07-26 Andrew Pinski <apinski@cavium.com>
8143 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8144 from the read only register.
8146 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8148 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8149 as the allocation class if it isn't likely to be spilled.
8151 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8153 * rtl.h (tls_referenced_p): Declare.
8154 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8155 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8156 (mips_cannot_force_const_mem): Use tls_referenced_p.
8157 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8158 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8159 instead of pa_tls_referenced_p.
8160 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8161 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8162 (pa_legitimate_constant_p): Likewise.
8163 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8164 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8165 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8166 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8167 rs6000_tls_referenced_p.
8168 (rs6000_tls_symbol_ref_1): Delete.
8170 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8173 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8174 Optimize inverse of a VEC_CONCAT.
8176 2014-07-25 Xinliang David Li <davidxl@google.com>
8178 * params.def: New parameter.
8179 * coverage.c (get_coverage_counts): Check new flag.
8180 (coverage_compute_profile_id): Check new flag.
8181 (coverage_begin_function): Check new flag.
8182 (coverage_end_function): Check new flag.
8183 * value-prof.c (coverage_node_map_initialized_p): New function.
8184 (init_node_map): Populate map with all functions.
8185 * doc/invoke.texi: Document new parameter.
8187 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8188 Richard Biener <rguenther@suse.de>
8190 * lto-streamer-out.c (struct sccs): Turn to ...
8191 (class DFS): ... this one; refactor the DFS walk so it can
8192 be re-done on per-SCC basis.
8193 (DFS::DFS): New constructor.
8194 (DFS::~DFS): New destructor.
8195 (hash_tree): Add new MAP argument holding in-SCC hash values;
8196 remove POINTER_TYPE hashing hack.
8197 (scc_entry_compare): Rename to ...
8198 (DFS::scc_entry_compare): ... this one.
8199 (hash_scc): Rename to ...
8200 (DFS::hash_scc): ... this one; pass output_block instead
8201 of streamer_cache; work harder to get unique and stable SCC
8203 (DFS_write_tree): Rename to ...
8204 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8205 (lto_output_tree): Update.
8207 2014-07-25 Andi Kleen <ak@linux.intel.com>
8209 * lto-streamer-out.c (hash_tree): Convert to inchash.
8211 2014-07-25 Andi Kleen <ak@linux.intel.com>
8213 * tree.c (build_type_attribute_qual_variant): Use inchash.
8214 (type_hash_list): Dito.
8215 (attribute_hash_list): Dito
8216 (iterative_hstate_expr): Dito.
8217 (iterative_hash_expr): Dito.
8218 (build_range_type_1): Dito.
8219 (build_array_type_1): Dito.
8220 (build_function_type): Dito.
8221 (build_method_type_directly): Dito.
8222 (build_offset_type): Dito.
8223 (build_complex_type): Dito.
8224 (make_vector_type): Dito.
8225 * tree.h (iterative_hash_expr): Add compat wrapper.
8226 (iterative_hstate_expr): Add.
8228 2014-07-25 Andi Kleen <ak@linux.intel.com>
8230 * Makefile.in (OBJS): Add inchash.o.
8231 (PLUGIN_HEADERS): Add inchash.h.
8232 * ipa-devirt.c: Include inchash.h.
8233 * lto-streamer-out.c: Dito.
8234 * tree-ssa-dom.c: Dito.
8235 * tree-ssa-pre.c: Dito.
8236 * tree-ssa-sccvn.c: Dito.
8237 * tree-ssa-tail-merge.c: Dito.
8239 * tree.c (iterative_hash_hashval_t): Move to ...
8240 (iterative_hash_host_wide_int): Move to ...
8241 * inchash.c: Here. New file.
8242 * tree.h (iterative_hash_hashval_t): Move to ...
8243 (iterative_hash_host_wide_int): Move to ...
8244 * inchash.h: Here. New file.
8246 2014-07-25 Richard Biener <rguenther@suse.de>
8250 * fold-const.c (native_encode_int): Add and handle offset
8251 parameter to do partial encodings of expr.
8252 (native_encode_fixed): Likewise.
8253 (native_encode_real): Likewise.
8254 (native_encode_complex): Likewise.
8255 (native_encode_vector): Likewise.
8256 (native_encode_string): Likewise.
8257 (native_encode_expr): Likewise.
8258 * fold-const.c (native_encode_expr): Add offset parameter
8260 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8261 (fold_ctor_reference): Handle all reads from tcc_constant
8264 2014-07-25 Richard Biener <rguenther@suse.de>
8266 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8269 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8271 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8273 2014-07-24 Kyle McMartin <kyle@redhat.com>
8275 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8277 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8279 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8281 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8283 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8284 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8285 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8287 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8289 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8290 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8291 aggregate types. Instead, *all* aggregate types, except for single-
8292 element or homogeneous float/vector aggregates, are quadword-aligned
8293 if required by their type alignment. Issue -Wpsabi note when a type
8294 is now treated differently than before.
8296 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8298 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8299 does not fit fully into floating-point registers, and there is still
8300 space in the register parameter area, use GPRs to pass those parts
8301 of the argument. Issue -Wpsabi note if any parameter is now treated
8302 differently than before.
8303 (rs6000_arg_partial_bytes): Update.
8305 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8307 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8309 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8311 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8312 * toplev.c (initialize_rtl): Don't use it. Move previously
8313 "language-dependent" calls to...
8314 (backend_init): ...here.
8315 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8316 Assert that RTL initialization hasn't happend yet.
8318 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8320 PR rtl-optimization/61629
8321 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8322 they have already been initialized.
8324 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8327 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8328 DECL_INCOMING_RTL and entry_parm.
8329 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8330 * calls.c (load_register_parameters): Likewise argument values.
8331 (emit_library_call_value_1, store_one_arg): Likewise argument
8333 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8335 * explow.c (validize_mem): Modify the argument in-place.
8337 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8339 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8340 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8342 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8344 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8345 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8347 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8349 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8350 (aarch64_save_callee_saves): New parameter "skip_wb".
8351 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8353 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8355 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8357 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8359 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8361 * graphite-isl-ast-to-gimple.c:
8362 (graphite_create_new_loop): Add calling of isl_id_free to properly
8363 decrement reference counts.
8365 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8367 2014-07-24 Martin Liska <mliska@suse.cz>
8368 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8370 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8371 (rs6000_code_end): Likewise.
8373 2014-07-24 Martin Liska <mliska@suse.cz>
8375 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8376 symtab_node funtion used.
8377 (rs6000_xcoff_declare_object_name): Likewise.
8379 2014-07-24 Martin Liska <mliska@suse.cz>
8381 * cgraphunit.c (compile): Correct function used.
8383 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8385 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8388 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8391 * varasm.c (bss_initializer_p): Handle offlined ctors.
8392 (align_variable, get_variable_align): Likewise.
8393 (make_decl_one_only): Likewise.
8394 (default_binds_local_p_1): Likewise.
8395 (decl_binds_to_current_def_p): Likewise.
8396 (get_variable_section): Get constructor if it is offlined.
8397 (assemble_variable_contents): Sanity check that the caller
8398 streamed in the ctor in LTO.
8400 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8402 * graphite-isl-ast-to-gimple.c:
8403 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8404 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8405 isl_ast_op_pdiv_r to the different case.
8407 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8409 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8412 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8413 when flag_errno_math is on.
8415 2014-07-24 Martin Liska <mliska@suse.cz>
8417 * cgraph.h (varpool_node):
8418 (availability get_availability (void)):
8419 created from cgraph_variable_initializer_availability
8420 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8421 created from: cgraph_variable_initializer_availability
8422 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8423 (void finalize_named_section_flags (void)):
8424 created from varpool_finalize_named_section_flags
8425 (bool assemble_decl (void)): created from varpool_assemble_decl
8426 (void analyze (void)): created from varpool_analyze_node
8427 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8428 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8429 (void remove_initializer (void)): created from varpool_remove_initializer
8430 (tree get_constructor (void)): created from varpool_get_constructor
8431 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8432 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8433 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8434 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8435 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8436 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8437 (static bool output_variables (void)): created from varpool_output_variables
8438 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8439 created from varpool_extra_name_alias
8440 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8441 (static void dump_varpool (FILE *f)): created from dump_varpool
8442 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8443 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8444 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8445 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8446 (void assemble_aliases (void)): created from assemble_aliases
8448 2014-07-24 Martin Liska <mliska@suse.cz>
8450 * cgraph.h (symtab_node):
8451 (void register_symbol (void)): created from symtab_register_node
8452 (void remove (void)): created from symtab_remove_node
8453 (void dump (FILE *f)): created from dump_symtab_node
8454 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8455 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8456 (struct ipa_ref *add_reference (symtab_node *referred_node,
8457 enum ipa_ref_use use_type)): created from add_reference
8458 (struct ipa_ref *add_reference (symtab_node *referred_node,
8459 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8460 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8461 gimple stmt)): created from maybe_add_reference
8462 (bool semantically_equivalent_p (symtab_node *target)): created from
8463 symtab_semantically_equivalent_p
8464 (void remove_from_same_comdat_group (void)): created from
8465 remove_from_same_comdat_group
8466 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8467 symtab_add_to_same_comdat_group
8468 (void dissolve_same_comdat_group_list (void)): created from
8469 symtab_dissolve_same_comdat_group_list
8470 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8471 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8472 created from symtab_alias_ultimate_target
8473 (inline symtab_node *next_defined_symbol (void)): created from
8474 symtab_next_defined_symbol
8475 (bool resolve_alias (symtab_node *target)): created from
8476 symtab_resolve_alias
8477 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8478 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8479 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8480 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8481 (void set_section (const char *section)): created from set_section_1
8482 (enum availability get_availability (void)): created from symtab_node_availability
8483 (void make_decl_local (void)): created from symtab_make_decl_local
8484 (bool real_symbol_p (void)): created from symtab_read_node
8485 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8486 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8487 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8488 symtab_in_same_comdat_p;
8489 (bool address_taken_from_non_vtable_p (void)): created from
8490 address_taken_from_non_vtable_p
8491 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8492 (static void dump_table (FILE *)): created from dump_symtab
8493 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8494 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8495 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8496 symtab_used_from_object_file_p
8497 (void dump_base (FILE *)): created from dump_symtab_base
8498 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8499 (void unregister (void)): created from symtab_unregister_node
8500 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8501 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8502 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8503 symtab_nonoverwritable_alias_1
8504 * cgraph.h (cgraph_node):
8505 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8506 created from cgraph_remove_node_and_inline_clones
8507 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8508 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8509 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8510 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8511 created from cgraph_function_node
8512 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8513 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8514 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8515 created from cgraph_create_clone
8516 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8517 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8518 created from cgraph_create_virtual_clone
8519 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8520 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8521 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8522 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8523 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8524 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8525 created from cgraph_function_version_info
8526 (struct cgraph_function_version_info *insert_new_function_version (void)):
8527 created from insert_new_cgraph_node_version
8528 (struct cgraph_function_version_info *function_version (void)): created from
8529 get_cgraph_node_version
8530 (void analyze (void)): created from analyze_function
8531 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8532 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8533 tree real_alias) cgraph_add_thunk
8534 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8535 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8536 created from cgraph_function_or_thunk_node
8537 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8538 created from expand_thunk
8539 (void reset (void)): created from cgraph_reset_node
8540 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8541 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8542 (void remove (void)): created from cgraph_remove_node
8543 (void dump (FILE *f)): created from dump_cgraph_node
8544 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8545 (bool get_body (void)): created from cgraph_get_body
8546 (void release_body (void)): created from cgraph_release_function_body
8547 (void unnest (void)): created from cgraph_unnest_node
8548 (void make_local (void)): created from cgraph_make_node_local
8549 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8550 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8551 gcov_type count, int freq)): created from cgraph_create_edge
8552 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8553 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8554 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8555 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8556 created from cgraph_create_edge_including_clones
8557 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8558 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8559 (void remove_callers (void)): created from cgraph_node_remove_callers
8560 (void remove_callees (void)): created from cgraph_node_remove_callees
8561 (enum availability get_availability (void)): created from cgraph_function_body_availability
8562 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8563 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8564 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8565 (void call_duplication_hooks (cgraph_node *node2)): created from
8566 cgraph_call_node_duplication_hooks
8567 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8568 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8569 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8570 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8571 (void call_function_insertion_hooks (void)):
8572 created from cgraph_call_function_insertion_hooks
8573 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8574 (bool local_p (void)): created from cgraph_local_node
8575 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8576 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8577 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8578 (inline bool only_called_directly_or_aliased_p (void)):
8579 created from cgraph_only_called_directly_or_aliased_p
8580 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8581 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8582 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8583 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8584 (bool can_remove_if_no_direct_calls_p (void)):
8585 created from cgraph_can_remove_if_no_direct_calls_p
8586 (inline bool has_gimple_body_p (void)):
8587 created from cgraph_function_with_gimple_body_p
8588 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8589 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8590 (static inline void debug_cgraph (void)): created from debug_cgraph
8591 (static void record_function_versions (tree decl1, tree decl2)):
8592 created from record_function_versions
8593 (static void delete_function_version (tree decl)):
8594 created from delete_function_version
8595 (static void add_new_function (tree fndecl, bool lowered)):
8596 created from cgraph_add_new_function
8597 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8598 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8599 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8600 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8601 (static cgraph_node *get_for_asmname (tree asmname)):
8602 created from cgraph_node_for_asm
8603 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8604 created from cgraph_same_body_alias
8605 (static bool used_from_object_file_p_worker (cgraph_node *node,
8606 void *): new function
8607 (static bool non_local_p (cgraph_node *node, void *)):
8608 created from cgraph_non_local_node_p_1
8609 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8610 created from verify_cgraph
8611 (static bool make_local (cgraph_node *node, void *)):
8612 created from cgraph_make_node_local
8613 (static cgraph_node *create_alias (tree alias, tree target)):
8614 created from cgraph_create_function_alias
8615 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8616 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8617 created from cgraph_create_edge_1
8618 * cgraph.h (varpool_node):
8619 (void remove (void)): created from varpool_remove_node
8620 (void dump (FILE *f)): created from dump_varpool_node
8622 2014-07-24 Richard Biener <rguenther@suse.de>
8625 * tree-ssa-structalias.c (create_variable_info_for_1):
8626 Use varpool_get_constructor.
8627 (create_variable_info_for): Likewise.
8629 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8631 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8632 subtract outgoing area size when restoring stack_pointer_rtx.
8634 2014-07-24 Nick Clifton <nickc@redhat.com>
8636 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8637 that operations are taking place in parallel.
8638 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8640 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8642 * omp-low.c (extract_omp_for_data): Add missing break statement.
8644 2014-07-24 Richard Biener <rguenther@suse.de>
8646 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8647 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8648 and adjust MOVE_RATIO query accordingly.
8649 (estimate_num_insns): Adjust callers.
8650 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8651 * ipa-cp.c (gather_context_independent_values,
8652 estimate_local_effects): Likewise.
8653 * ipa-split.c (consider_split): Likewise.
8655 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8657 * config/i386/driver-i386.c: Remove names of unused arguments and
8658 unnecessary unused attributes.
8659 * config/i386/host-mingw32.c: Likewise.
8660 * config/i386/i386.c: Likewise.
8661 * config/i386/winnt-stubs.c: Likewise.
8662 * config/i386/winnt.c: Likewise.
8664 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8666 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8667 (aarch64_gen_loadwb_pair): New helper function.
8668 (aarch64_expand_epilogue): Simplify code using new helper functions.
8669 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8671 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8673 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8674 (aarch64_gen_storewb_pair): New helper function.
8675 (aarch64_expand_prologue): Simplify code using new helper functions.
8676 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8678 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8680 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8681 Rename to aarch64_save_callee_saves, remove restore code.
8682 (aarch64_restore_callee_saves): New function.
8684 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8686 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8687 (aarch64_save_callee_saves): New function to handle reg save
8688 for both core and vectore regs.
8690 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8692 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8693 (aarch64_gen_store_pair): New helper function.
8694 (aarch64_save_or_restore_callee_save_registers)
8695 (aarch64_save_or_restore_fprs): Use new helper functions.
8697 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8699 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8700 (aarch64_save_or_restore_callee_save_registers)
8701 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8703 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8705 * config/aarch64/aarch64.c
8706 (aarch64_save_or_restore_callee_save_registers)
8707 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8709 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8711 * config/aarch64/aarch64.c
8712 (aarch64_save_or_restore_callee_save_registers)
8713 (aarch64_save_or_restore_fprs): Remove 'increment'.
8715 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8717 * config/aarch64/aarch64.c
8718 (aarch64_save_or_restore_callee_save_registers)
8719 (aarch64_save_or_restore_fprs): Use register offset in
8720 cfun->machine->frame.reg_offset.
8722 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8724 * config/aarch64/aarch64.c
8725 (aarch64_save_or_restore_callee_save_registers)
8726 (aarch64_save_or_restore_fprs): Remove base_rtx.
8728 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8730 * config/aarch64/aarch64.c
8731 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8732 to 'start_offset'. Remove local variable 'start_offset'.
8734 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8736 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8737 type to HOST_WIDE_INT.
8739 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8741 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8742 (aarch64_save_or_restore_fprs)
8743 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8745 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8747 * config/arm/t-rtems-eabi: Add
8748 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8749 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8750 mbig-endian/mthumb/march=armv7-r, and
8751 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8754 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8755 Chris Johns <chrisj@rtems.org>
8756 Joel Sherrill <joel.sherrill@oarcorp.com>
8758 * config.gcc: Add nios2-*-rtems*.
8759 * config/nios2/rtems.h: New file.
8760 * gcc/config/nios2/t-rtems: New file.
8762 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8765 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8766 constant numbers, not general constants.
8767 (rs6000_expand_vector_init): Ditto.
8769 2014-07-23 Nathan Sidwell <nathan@acm.org>
8771 * gcov-tool.c (gcov_list): Declare here.
8772 (set_gcov_list): Remove.
8773 (gcov_output_files): Set gcov_list directly.
8775 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8777 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8779 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8781 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8782 callee-saved registers are available for padding purpose
8783 and r3 is not mandatory, then prefer use those callee-saved
8786 2014-07-23 Richard Biener <rguenther@suse.de>
8788 * params.def (PARAM_MAX_COMBINE_INSNS): New.
8789 * combine.c: Include statistics.h and params.h.
8790 (combine_instructions): Guard three and four insn combines
8791 with max-combine-insns value. Record statistics for combines
8793 * doc/invoke.texi (max-combine-insns): Document new param.
8795 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8797 * graphite-isl-ast-to-gimple.c:
8798 (translate_isl_ast_node_block): New function.
8799 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8801 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8802 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8804 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8806 * graphite-isl-ast-to-gimple.c:
8807 (get_max_schedule_dimensions): New function.
8808 (extend_schedule): Likewise.
8809 (generate_isl_schedule): Add calling of extend_schedule and
8810 get_max_schedule_dimensions.
8812 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8814 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
8815 (case UNSPEC): Handle UNSPEC_RBIT.
8817 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8819 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
8820 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
8822 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8824 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
8826 2014-07-22 Roman Gareev <gareevroman@gmail.com>
8828 * graphite-isl-ast-to-gimple.c:
8829 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
8831 (build_iv_mapping): New function.
8832 (translate_isl_ast_node_user): Likewise.
8833 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
8835 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
8836 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
8837 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
8839 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8842 * config/arm/arm.md (setmem): New pattern.
8843 * config/arm/arm-protos.h (struct tune_params): New fields.
8844 (arm_gen_setmem): New prototype.
8845 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
8846 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8847 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8848 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
8849 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
8850 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
8851 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
8852 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8853 (arm_const_inline_cost): New function.
8854 (arm_block_set_max_insns): New function.
8855 (arm_block_set_non_vect_profit_p): New function.
8856 (arm_block_set_vect_profit_p): New function.
8857 (arm_block_set_unaligned_vect): New function.
8858 (arm_block_set_aligned_vect): New function.
8859 (arm_block_set_unaligned_non_vect): New function.
8860 (arm_block_set_aligned_non_vect): New function.
8861 (arm_block_set_vect, arm_gen_setmem): New functions.
8863 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8865 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
8867 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
8870 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
8871 out of #ifdef __OPTIMIZE__.
8873 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8875 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
8876 different trapping status if -fnon-call-exceptions is enabled.
8878 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8880 * expr.c (store_field): Handle VOIDmode for calls that return values
8881 in multiple locations.
8883 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8885 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
8886 (altivec_vsldoi_<mode>): Likewise.
8888 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8890 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
8891 to the number of characters in the line.
8893 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8895 * graphite-isl-ast-to-gimple.c: Add using of
8896 build_nonstandard_integer_type instead of int128_integer_type_node.
8898 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
8900 * toplev.c (output_stack_usage): Adjust the location of the warning.
8902 2014-07-19 Daniel Cederman <cederman@gaisler.com>
8904 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
8905 (*membar_storeload): Disable for LEON3.
8907 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8909 PR rtl-optimization/61461
8910 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
8912 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
8915 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
8916 Fix instruction constraint.
8917 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8919 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
8921 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
8923 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
8925 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
8926 GNU coding standards.
8927 (nds32_register_move_cost): Likewise.
8928 (nds32_memory_move_cost): Likewise.
8929 (nds32_address_cost): Likewise.
8931 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8933 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
8935 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
8937 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
8938 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
8939 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
8940 (HAVE_sync_compare_and_swapqi): Define.
8941 (HAVE_sync_compare_and_swaphi): Likewise.
8942 (HAVE_sync_compare_and_swapsi): Likewise.
8944 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
8946 * config/mips/p5600.md: Add missing cpu tests.
8948 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8950 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
8951 (vmla_f64): Likewise.
8952 (vfms_f64): Likewise.
8953 (vmls_f64): Likewise.
8955 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8957 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
8958 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
8960 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8962 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
8963 (vmlal_high_lane_s32): Likewise.
8964 (vmlal_high_lane_u16): Likewise.
8965 (vmlal_high_lane_u32): Likewise.
8966 (vmlsl_high_lane_s16): Likewise.
8967 (vmlsl_high_lane_s32): Likewise.
8968 (vmlsl_high_lane_u16): Likewise.
8969 (vmlsl_high_lane_u32): Likewise.
8971 2014-07-17 Terry Guo <terry.guo@arm.com>
8973 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
8974 (alus_reg): Renamed to alus_sreg.
8975 * config/arm/arm-fixed.md: Change type of non-dsp instructions
8976 from alu_reg to alu_sreg. Change type of dsp instructions from
8977 alu_reg to alu_dsp_reg.
8978 * config/arm/thumb1.md: Likewise.
8979 * config/arm/thumb2.md: Likewise.
8980 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
8981 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
8982 with alu_sreg and alus_sreg.
8983 * config/arm/arm1026ejs.md (alu_op): Likewise.
8984 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
8985 * config/arm/arm926ejs.md (9_alu_op): Likewise.
8986 * config/arm/fa526.md (526_alu_op): Likewise.
8987 * config/arm/fa606te.md (606te_alu_op): Likewise.
8988 * config/arm/fa626te.md (626te_alu_op): Likewise.
8989 * config/arm/fa726te.md (726te_alu_op): Likewise.
8990 * config/arm/fmp626.md (mp626_alu_op): Likewise.
8991 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
8992 alu_sreg, alu_dsp_reg and alus_sreg.
8993 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
8994 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8995 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8996 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
8997 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
8998 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8999 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9000 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9001 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9002 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9003 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9004 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9005 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9006 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9007 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9008 alus_reg to alus_sreg.
9010 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9012 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9015 2014-07-17 Richard Biener <rguenther@suse.de>
9017 PR rtl-optimization/61801
9018 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9019 don't set reg_pending_barrier if it appears in a debug-insn.
9021 2014-07-16 DJ Delorie <dj@redhat.com>
9023 * config/rx/rx.c (rx_option_override): Fix alignment values.
9024 (rx_align_for_label): Likewise.
9026 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9029 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9030 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9031 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9033 (cris_print_index, cris_print_operand, cris_constant_index_p)
9034 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9035 (cris_address_cost): Ditto last CONSTANT_P.
9036 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9037 callers changed. Yield cris_offsettable_symbol for non-PIC
9038 constant symbolic expressions including labels. Yield cris_unspec
9040 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9041 target to pic_offset_table_rtx for calls that will likely go
9042 through PLT, const0_rtx when they can't. All callers changed.
9043 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9044 symbolic expressions to be PICified. Remove second, redundant,
9045 assert on can_create_pseudo_p returning non-zero. Use
9046 replace_equiv_address_nv, not replace_equiv_address, for final
9048 * config/cris/cris.md ("movsi"): Move variable t to pattern
9049 toplevel. Adjust assert for new cris_symbol_type member. Use
9050 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9051 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9053 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9054 ("call", "call_value"): Use second incoming operand as a marker
9055 for pic-offset-table-register being used.
9056 ("*expanded_call_non_v32", "*expanded_call_v32")
9057 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9058 second incoming operand to CALL, match cris_call_type_marker.
9059 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9060 ("*expanded_call_side"): Ditto. Fix typo in comment.
9061 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9063 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9064 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9065 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9066 users changed. Add members cris_offsettable_symbol and cris_unspec.
9067 (cris_symbol_type): Rename from cris_pic_symbol_type.
9068 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9070 * config/cris/cris-protos.h (cris_symbol_type_of,
9071 cris_expand_pic_call_address): Adjust prototypes.
9072 (cris_legitimate_constant_p): New prototype.
9074 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9075 an existing tmake_file. Don't add t-slibgcc and t-linux.
9077 2014-07-17 Jason Merrill <jason@redhat.com>
9080 * symtab.c (symtab_remove_from_same_comdat_group): Also
9081 set_comdat_group to NULL_TREE.
9082 (verify_symtab): Fix diagnostic.
9084 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9087 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9089 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9091 Support location tracking for built-in macro tokens
9092 * input.h (is_location_from_builtin_token): New function declaration.
9093 * input.c (is_location_from_builtin_token): New function definition.
9094 * toplev.c (general_init): Tell libcpp what the pre-defined
9095 spelling location for built-in tokens is.
9097 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9099 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9100 on the FUNCTION_DECL.
9102 2014-07-16 Richard Biener <rguenther@suse.de>
9105 * doc/extend.texi (always_inline): Clarify.
9107 2014-07-15 Eric Christopher <echristo@gmail.com>
9109 * doc/invoke.texi (Link Options): Document -z option.
9111 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9113 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9114 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9116 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9118 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9120 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9122 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9123 varpool_assemble_decl.
9124 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9127 2014-07-15 Michael Matz <matz@suse.de>
9129 PR rtl-optimization/61772
9130 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9132 2014-07-15 Richard Biener <rguenther@suse.de>
9134 * opts.c (default_options_table): Disable bit-ccp at -Og.
9136 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9138 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9140 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9142 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9143 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9144 call langhook for unknown declaration.
9145 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9146 * tree.h (DECL_ARGUMENTS): Update.
9147 * print-tree.c (print_node): Update.
9148 * tree-core.h (tree_decl_non_common): Remove arguments.
9149 (tree_function_decl): Add arguments.
9151 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9153 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9155 2014-07-14 Richard Biener <rguenther@suse.de>
9157 PR tree-optimization/61779
9158 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9159 simplifying a condition.
9161 2014-07-14 Richard Biener <rguenther@suse.de>
9163 * builtins.c (c_strlen): Make only_value == 2 really only
9164 affect warning generation.
9166 2014-07-14 Richard Biener <rguenther@suse.de>
9168 PR tree-optimization/61757
9169 PR tree-optimization/61783
9170 PR tree-optimization/61787
9171 * tree-ssa-dom.c (record_equality): Revert canonicalization
9172 change and add comment.
9173 (propagate_rhs_into_lhs): Revert previous fix, removing
9174 loop depth restriction again.
9176 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9178 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9179 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9180 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9181 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9182 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9183 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9184 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9186 2014-07-14 Richard Biener <rguenther@suse.de>
9188 * cgraph.h (decl_in_symtab_p): Make inline.
9190 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9193 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9196 * config/i386/i386.c (classify_argument): Don't merge classes above
9199 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9201 * cgraph.h (symtab_node): Add nonzero_address.
9202 (decl_in_symtab_p): Break out from ...
9203 (symtab_get_node): ... here.
9204 * fold-const.c: Include cgraph.h
9205 (tree_single_nonzero_warnv_p): Use symtab to determine
9206 if symbol is non-zero.
9207 * symtab.c (symtab_node::nonzero_address): New method.
9209 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9211 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9212 forgotten in previous commit.
9214 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9216 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9218 * ipa-devirt.c: Include stor-layout.h and intl.h
9219 (odr_subtypes_equivalent_p): New function.
9220 (warn_odr): New function.
9221 (warn_type_mismatch): New function.
9222 (odr_types_equivalent_p): New function.
9223 (add_type_duplicate): Use it.
9224 * common.opt (Wodr): New flag.
9225 * doc/invoke.texi (Wodr): Document new warning.
9227 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9229 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9230 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9231 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9232 (varpool_get_constructor): Push CTORS_IN timevar.
9233 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9235 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9237 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9238 Remove VOID_FTYPE_PUSHORT.
9239 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9240 Change code to USHORT_FTYPE_VOID.
9241 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9242 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9243 (ix86_atomic_assign_expand_fenv): Update for
9244 __builtin_ia32_fnstsw changes.
9245 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9246 (fnstsw): Change operand 0 to nonimmediate operand.
9248 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9250 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9251 (varpool_get_constructor): New function.
9252 (varpool_ctor_useable_for_folding_p): Break out from ...
9253 (ctor_for_folding): ... here; use varpool_get_constructor.
9254 (varpool_assemble_decl): Likewise.
9255 * lto-streamer.h (struct output_block): Turn cgraph_node
9257 (lto_input_variable_constructor): Declare.
9258 * ipa-visibility.c (function_and_variable_visibility): Use
9259 varpool_get_constructor.
9260 * cgraph.h (varpool_get_constructor): Declare.
9261 (varpool_ctor_useable_for_folding_p): New function.
9262 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9263 parameter; return error_mark_node for non-trivial constructors.
9264 (lto_write_tree_1, DFS_write_tree): Update use of
9265 get_symbol_initial_value.
9266 (output_function): Update initialization of symbol.
9267 (output_constructor): New function.
9268 (copy_function): Rename to ..
9269 (copy_function_or_variable): ... this one; handle vars too.
9270 (lto_output): Output variable sections.
9271 * lto-streamer-in.c (input_constructor): New function.
9272 (lto_read_body): Rename from ...
9273 (lto_read_body_or_constructor): ... this one; handle vars too.
9274 (lto_input_variable_constructor): New function.
9275 * ipa-prop.c (ipa_prop_write_jump_functions,
9276 ipa_prop_write_all_agg_replacement): Update.
9277 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9278 (output_cgraph_opt_summary): Set symbol to NULL.
9280 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9282 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9283 non-polymorphic types.
9284 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9285 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9286 of types is not polymorphic.
9288 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9290 * lra-constraints.c (remove_inheritance_pseudos): Process
9291 destination pseudo too.
9293 2014-07-11 Rong Xu <xur@google.com>
9295 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9298 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9300 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9301 * config/avr/avr-devices.c (AVR_MCU): Same.
9302 (avr_mcu_types): add text start value to end of device list.
9303 * config/avr/avr-mcus.def: Add text section start for all devices.
9304 (ata5782): Add new avr5 device.
9306 * config/avr/avr-tables.opt: Regenerate.
9307 * config/avr/avr.h: Add declaration for text section start handler.
9308 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9310 (LINK_SPEC): Include text section start handler to linker spec.
9311 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9312 pass -Ttext option to linker if the text section start for the device
9314 * config/avr/t-multilib: Regenerate.
9315 * doc/avr-mmcu.texi: Regenerate.
9317 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9319 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9320 * config/rs6000/aix52.h (LINK_SPEC): Same.
9321 * config/rs6000/aix53.h (LINK_SPEC): Same.
9322 * config/rs6000/aix61.h (LINK_SPEC): Same.
9323 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9325 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9327 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9328 (graphite_verify): New function.
9329 (ivs_params_clear): New function.
9330 (gcc_expression_from_isl_ast_expr_id): New function.
9331 (gcc_expression_from_isl_expr_int): New function.
9332 (binary_op_to_tree): New function.
9333 (ternary_op_to_tree): New function.
9334 (unary_op_to_tree): New function.
9335 (nary_op_to_tree): New function.
9336 (gcc_expression_from_isl_expr_op): New function.
9337 (gcc_expression_from_isl_expression): New function.
9338 (graphite_create_new_loop): New function.
9339 (translate_isl_ast_for_loop): New function.
9340 (get_upper_bound): New function.
9341 (graphite_create_new_loop_guard): New function.
9342 (translate_isl_ast_node_for): New function.
9343 (translate_isl_ast): New function.
9344 (add_parameters_to_ivs_params): New function.
9345 (scop_to_isl_ast): New parameter ip.
9346 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9348 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9350 * config/xtensa/predicates.md (call expander): Update for
9351 DECL_SECTION_NAME being string.
9353 2014-07-11 Richard Biener <rguenther@suse.de>
9356 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9357 can be implemented with a single load followed by a single store.
9358 (c_strlen): Only warn when only_value is not 2.
9360 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9362 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9364 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9367 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9368 (*movhi_bytes): Likewise.
9369 (*arm_movqi_insn): Likewise.
9371 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9374 * config/alpha/alpha.c: Include tree-pass.h, context.h
9376 (pass_data_handle_trap_shadows): New pass.
9377 (pass_handle_trap_shadows::gate): New pass gate function.
9378 (make_pass_handle_trap_shadows): New function.
9379 (rest_of_handle_trap_shadows): Ditto.
9381 (alpha_align_insns_1): Rename from alpha_align_insns.
9382 (pass_data_align_insns): New pass.
9383 (pass_align_insns::gate): New pass gate function.
9384 (make_pass_aling_insns): New function.
9385 (rest_of_align_insns): Ditto.
9386 (alpha_align_insns): Ditto.
9388 (alpha_option_override): Declare handle_trap_shadows info
9389 and align_insns_info. Register handle_trap_shadows and align_insns
9391 (alpha_reorg): Do not call alpha_trap_shadows and
9392 alpha_align_insn from here.
9394 (alpha_pad_function_end): Do not skip BARRIERs.
9396 2014-07-10 Rong Xu <xur@google.com>
9398 Add gcov-tool: an offline gcda profile processing tool support.
9399 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9400 (gcov_is_error): Ditto.
9401 (gcov_read_string): Ditto.
9402 (gcov_read_sync): Ditto.
9403 * gcov-io.h: Move counter defines to gcov-counter.def.
9404 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9405 * coverage.c: Ditto.
9406 * gcov-tool.c: Offline gcda profile processing tool.
9407 (unlink_gcda_file): Remove one gcda file.
9408 (unlink_profile_dir): Remove gcda files from the profile path.
9409 (gcov_output_files): Output gcda files to an output dir.
9410 (profile_merge): Merge two profiles in directory.
9411 (print_merge_usage_message): Print merge usage.
9412 (merge_usage): Print merge usage and exit.
9413 (do_merge): Driver for profile merge sub-command.
9414 (profile_rewrite): Rewrite profile.
9415 (print_rewrite_usage_message): Print rewrite usage.
9416 (rewrite_usage): Print rewrite usage and exit.
9417 (do_rewrite): Driver for profile rewrite sub-command.
9418 (print_usage): Print gcov-info usage and exit.
9419 (print_version): Print gcov-info version.
9420 (process_args): Process arguments.
9421 (main): Main routine for gcov-tool.
9422 * Makefile.in: Build and install gcov-tool.
9423 * gcov-counter.def: New file split from gcov-io.h.
9424 * doc/gcc.texi: Include gcov-tool.texi.
9425 * doc/gcov-tool.texi: Document for gcov-tool.
9427 2014-07-10 Richard Biener <rguenther@suse.de>
9429 PR tree-optimization/61757
9430 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9431 (propagate_rhs_into_lhs): Revert part of last change.
9433 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9435 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9438 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9441 * function.c (allocate_struct_function): Revert r188667 change.
9443 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9445 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9447 * doc/install.texi: Remove links to defunct package providers for
9450 2014-07-09 Tom de Vries <tom@codesourcery.com>
9452 * final.c (get_call_fndecl): Declare.
9453 (self_recursive_call_p): New function.
9454 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9456 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9458 * ipa-devirt.c (record_node): Walk through aliases.
9460 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9462 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9464 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9467 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9469 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9471 * ipa-visibility.c (function_and_variable_visibility): Remove
9472 temporary hack disabling local aliases on AIX.
9474 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9476 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9477 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9479 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9481 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9482 * rs6000/rs6000.c: Inline output of .set instruction.
9483 (declare_alias_data): New struct.
9484 (rs6000_declare_alias): New function.
9485 (rs6000_xcoff_declare_function_name): Use it.
9486 (rs6000_xcoff_declare_object_name): New function.
9487 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9488 (ASM_OUTPUT_DEF): Turn to empty definition.
9490 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9493 * hash-table.h: use hash_table::value_type instead of
9494 Descriptor::value_type in the return types of several methods.
9496 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9498 * tree-pass.h (pass_data): Remove has_execute member.
9499 * passes.c (execute_one_pass): Don't check pass->has_execute.
9500 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9501 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9502 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9503 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9504 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9505 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9506 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9507 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9508 gimple-low.c, gimple-ssa-isolate-paths.c,
9509 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9510 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9511 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9512 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9513 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9514 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9515 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9516 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9517 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9518 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9519 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9520 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9521 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9522 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9523 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9524 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9525 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9526 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9527 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9528 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9529 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9530 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9531 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9532 web.c: Remove initializer for pass_data::has_execute.
9534 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9536 * graphite-htab.h: Use hash_map instead of hash_table.
9537 * graphite-clast-to-gimple.c: Adjust.
9538 * passes.c: Use hash_map instead of hash_table.
9540 * sese.h: Remove now unused code.
9542 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9545 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9548 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9550 PR rtl-optimization/61673
9551 * combine.c (simplify_comparison): Test just mode's sign bit
9552 in tmode rather than the sign bit and any bits above it.
9554 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9556 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9557 Add __isl_give to the declaration.
9558 (generate_isl_schedule): Likewise.
9559 (scop_to_isl_ast): Likewise.
9561 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9563 * config/arm/arm.c (cortexa5_extra_costs): New table.
9564 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9566 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9568 PR tree-optimization/61725
9569 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9570 range, use range_includes_zerop_p instead of integer_zerop on
9571 vr0->min, only use log2 of max if min is not negative.
9573 2014-07-08 Richard Biener <rguenther@suse.de>
9575 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9576 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9577 restriction on loop depth difference.
9578 (record_equality): Likewise.
9579 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9580 (loop_depth_of_name): Remove.
9581 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9582 restriction on loop depth difference.
9583 (init_copy_prop): Likewise.
9585 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9587 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9589 (walk_aliased_vdefs): Likewise.
9590 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9591 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9592 (detect_type_change_from_memory_writes): Check if entry was reached.
9594 2014-07-08 Richard Biener <rguenther@suse.de>
9596 PR tree-optimization/61681
9597 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9598 NONLOCAL inside ESCAPED.
9600 2014-07-08 Richard Biener <rguenther@suse.de>
9602 PR tree-optimization/61680
9603 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9604 Handle properly all read-write dependences with group accesses.
9606 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9608 PR tree-optimization/61576
9609 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9610 block containing reduction statement is predecessor of phi basi block.
9612 2014-07-08 Marek Polacek <polacek@redhat.com>
9615 * fold-const.c (round_up_loc): Change the parameter type.
9617 * fold-const.h (round_up_loc): Adjust declaration.
9618 * stor-layout.c (finalize_record_size): Check for too large types.
9620 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9622 * symtab.c: Include calls.h.
9623 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9625 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9627 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9628 little-endian code generation.
9629 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9630 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9631 (spe_evmergehilo): Rename to...
9632 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9633 (spe_evmergelo): Rename to...
9634 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9635 (spe_evmergelohi): Rename to...
9636 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9637 (spe_evmergehi, spe_evmergehilo): New expanders.
9638 (spe_evmergelo, spe_evmergelohi): Likewise.
9639 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9640 (*frob_tf_ti): Likewise.
9641 (*frob_<mode>_di_2): Likewise.
9642 (*frob_tf_di_8_2): Likewise.
9643 (*frob_di_<mode>): Likewise.
9644 (*frob_ti_tf): Likewise.
9645 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9646 (*frob_ti_<mode>_8_2): Likewise.
9647 (*frob_ti_tf_2): Likewise.
9648 (mov_si<mode>_e500_subreg0): Rename to...
9649 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9651 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9652 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9653 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9654 the big endianness only.
9655 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9656 (*mov_si<mode>_e500_subreg0_2): Rename to...
9657 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9658 big big endianness only.
9659 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9660 (*mov_si<mode>_e500_subreg4): Rename to...
9661 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9663 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9664 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9665 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9666 the big endianness only.
9667 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9669 (*mov_si<mode>_e500_subreg4_2): Rename to...
9670 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9672 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9673 (*mov_sitf_e500_subreg8): Rename to...
9674 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9676 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9677 (*mov_sitf_e500_subreg8_2): Rename to...
9678 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9680 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9681 (*mov_sitf_e500_subreg12): Rename to...
9682 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9684 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9685 (*mov_sitf_e500_subreg12_2): Rename to...
9686 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9688 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9690 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9692 * asan.c (instrument_strlen_call): Do not instrument first byte
9693 in strlen if already instrumented.
9695 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9697 * config/arm/arm.opt (mwords-little-endian): Delete.
9698 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9699 of TARGET_LITTLE_WORDS.
9700 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9701 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9703 * doc/invoke.texi: Remove references to -mwords-little-endian.
9705 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9707 * expmed.c (struct init_expmed_rtl): Change all fields but
9708 pow2 and cint from struct rtx_def to rtx.
9709 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9710 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9713 2014-07-06 Marek Polacek <polacek@redhat.com>
9716 * doc/invoke.texi: Document -Wsizeof-array-argument.
9718 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9720 * wide-int.h (wide_int_storage): Change declaration from struct
9723 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9725 * cgraph.c (cgraph_create_indirect_edge): Update call of
9726 get_polymorphic_call_info.
9727 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9728 (possible_polymorphic_call_targets): Add parameter call.
9729 (decl_maybe_in_construction_p): New predicate.
9730 (get_polymorphic_call_info): Add parameter call;
9731 use decl_maybe_in_construction_p.
9732 * gimple-fold.c (fold_gimple_assign): Update use of
9733 possible_polymorphic_call_targets.
9734 (gimple_fold_call): Likewise.
9735 * ipa-prop.c: Inlcude calls.h
9736 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9737 (param_type_may_change_p): New predicate.
9738 (detect_type_change_from_memory_writes): Break out from ...
9739 (detect_type_change): ... this one; use param_type_may_change_p.
9740 (detect_type_change_ssa): Use param_type_may_change_p.
9741 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9743 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9746 * config/arm/arm-protos.h (arm_legitimate_address_p,
9747 arm_is_constant_pool_ref): Add prototypes.
9748 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9749 (arm_is_constant_pool_ref) New function.
9750 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9751 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9752 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9753 operand. Remove pool_range and neg_pool_range attributes.
9754 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9755 pool_range and neg_pool_range attributes.
9756 * config/arm/constraints.md (Uh): New constraint.
9757 (Uq): Don't allow constant pool references.
9759 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9761 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9762 (move_lo_quad_internal_be_<mode>): Likewise.
9763 (move_lo_quad_<mode>): Convert to define_expand.
9764 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9765 (aarch64_simd_move_hi_quad_be_<mode>): New.
9766 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9767 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9768 (aarch64_combinez_be<mode>): New.
9769 (aarch64_combine<mode>): Convert to define_expand.
9770 (aarch64_combine_internal<mode>): New.
9771 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9773 2014-07-04 Tom de Vries <tom@codesourcery.com>
9775 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9776 combination of earlyclobber and read/write modifiers.
9778 2014-07-04 Tom de Vries <tom@codesourcery.com>
9780 * config/aarch64/aarch64-simd.md
9781 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9783 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9786 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9788 2014-07-04 Jakub Jelinek <jakub@redhat.com>
9791 * cgraphunit.c (expand_thunk): Call free_dominance_info.
9793 PR tree-optimization/61684
9794 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9795 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
9797 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9798 Kito Cheng <kito@0xlab.org>
9799 Monk Chiang <sh.chiang04@gmail.com>
9801 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
9802 (nds32_symbol_load_store_p): Move to ...
9803 (nds32_fp_as_gp_check_available): Move to ...
9804 * config/nds32/nds32-fp-as-gp.c: ... here.
9805 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9808 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9809 Kito Cheng <kito@0xlab.org>
9810 Monk Chiang <sh.chiang04@gmail.com>
9812 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
9813 (nds32_expand_store_multiple): Move to ...
9814 (nds32_expand_movmemqi): Move to ...
9815 * config/nds32/nds32-memory-manipulation.c: ... here.
9817 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9818 Kito Cheng <kito@0xlab.org>
9819 Monk Chiang <sh.chiang04@gmail.com>
9821 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
9822 (nds32_output_casesi_pc_relative): Move to ...
9823 (nds32_output_casesi): Move to ...
9824 (nds32_mem_format): Move to ...
9825 (nds32_output_16bit_store): Move to ...
9826 (nds32_output_16bit_load): Move to ...
9827 (nds32_output_32bit_store): Move to ...
9828 (nds32_output_32bit_load): Move to ...
9829 (nds32_output_32bit_load_s): Move to ...
9830 (nds32_output_stack_push): Move to ...
9831 (nds32_output_stack_pop): Move to ...
9832 * config/nds32/nds32-md-auxiliary.c: ... here.
9834 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9835 Ling-Hua Tseng <uranus@tinlans.org>
9837 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
9838 the purpose of this file.
9840 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9841 Kito Cheng <kito@0xlab.org>
9842 Monk Chiang <sh.chiang04@gmail.com>
9844 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
9845 (nds32_address_cost): Move implementation to ...
9846 * config/nds32/nds32-cost.c: ... here.
9847 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
9848 (nds32_address_cost_impl): Declare.
9850 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9851 Kito Cheng <kito@0xlab.org>
9852 Monk Chiang <sh.chiang04@gmail.com>
9854 * config/nds32/nds32.c
9855 (nds32_consecutive_registers_load_store_p): Move to ...
9856 (nds32_valid_multiple_load_store): Move to ...
9857 (nds32_valid_stack_push_pop): Move to ...
9858 (nds32_can_use_bclr_p): Move to ...
9859 (nds32_can_use_bset_p): Move to ...
9860 (nds32_can_use_btgl_p): Move to ...
9861 (nds32_can_use_bitci_p): Move to ...
9862 * config/nds32/nds32-predicates.c: ... here.
9864 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9865 Kito Cheng <kito@0xlab.org>
9866 Monk Chiang <sh.chiang04@gmail.com>
9868 * config/nds32/nds32.c
9869 (nds32_expand_builtin_null_ftype_reg): Move to ...
9870 (nds32_expand_builtin_reg_ftype_imm): Move to ...
9871 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
9872 (nds32_init_builtins): Move implementation to ...
9873 (nds32_expand_builtin): Move implementation to ...
9874 * config/nds32/nds32-intrinsic.c: ... here.
9875 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
9876 (nds32_expand_builtin_impl): Declare.
9878 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9879 Kito Cheng <kito@0xlab.org>
9880 Monk Chiang <sh.chiang04@gmail.com>
9882 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
9883 (nds32_emit_section_tail_template): Move to ...
9884 (nds32_emit_isr_jmptbl_section): Move to ...
9885 (nds32_emit_isr_vector_section): Move to ...
9886 (nds32_emit_isr_reset_conten): Move to ...
9887 (nds32_check_isr_attrs_conflict): Move to ...
9888 (nds32_construct_isr_vectors_information): Move to ...
9889 (nds32_asm_file_start): Move implementation to ...
9890 (nds32_asm_file_end): Move implementation to ...
9891 * config/nds32/nds32-isr.c: ... here.
9892 * config/nds32/nds32-protos.h
9893 (nds32_check_isr_attrs_conflict): Declare.
9894 (nds32_construct_isr_vectors_information): Declare.
9895 (nds32_asm_file_start_for_isr): Declare.
9896 (nds32_asm_file_end_for_isr): Declare.
9898 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9899 Kito Cheng <kito@0xlab.org>
9900 Monk Chiang <sh.chiang04@gmail.com>
9902 * config.gcc (nds32*): Add new modules to extra_objs.
9903 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
9904 (nds32be-*-*): Likewise.
9905 * config/nds32/nds32-cost.c: New file.
9906 * config/nds32/nds32-fp-as-gp.c: New file.
9907 * config/nds32/nds32-intrinsic.c: New file.
9908 * config/nds32/nds32-isr.c: New file.
9909 * config/nds32/nds32-md-auxiliary.c: New file.
9910 * config/nds32/nds32-memory-manipulation.c: New file.
9911 * config/nds32/nds32-pipelines-auxiliary.c: New file.
9912 * config/nds32/nds32-predicates.c: New file.
9913 * config/nds32/t-nds32: New file.
9915 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9917 PR tree-optimization/61682
9918 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
9919 using cases and when one of the operands is equal to 1.
9921 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
9923 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
9924 ashr<mode>3): Correct mode of operands[2].
9925 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
9926 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
9927 Correct mode of operands[2]. Fix split condition.
9929 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
9931 * arm.md (arch): Add armv6_or_vfpv3.
9932 (arch_enabled): Add test for the above.
9933 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
9935 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
9937 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9939 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
9940 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
9941 HWI 1 and negate the unsigned value.
9942 * expmed.c (expand_sdiv_pow2): For modes wider than word always
9943 use AND instead of shift.
9944 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
9946 2014-07-03 Marek Polacek <polacek@redhat.com>
9948 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
9949 (-fsanitize=float-divide-by-zero): Move to the table with
9950 -fsanitize=undefined suboptions.
9951 (-fsanitize=float-cast-overflow): Likewise.
9953 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
9955 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
9956 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
9959 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9961 * loop-invariant.c (struct invariant): Add a new member: eqno;
9962 (find_identical_invariants): Update eqno;
9963 (create_new_invariant): Init eqno;
9964 (get_inv_cost): Compute comp_cost with eqno;
9966 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9968 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
9969 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
9970 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
9971 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
9972 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
9974 2014-07-02 Christian Bruel <christian.bruel@st.com>
9978 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
9979 (make_preds_opaque): Delete.
9980 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
9981 (commit_mode_sets): New function.
9982 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
9983 Process all modes at once.
9984 * basic-block.h (pre_edge_lcm_avs): Declare.
9985 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
9986 Call clear_aux_for_edges. Fix comments.
9987 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
9988 (pre_edge_rev_lcm): Idem.
9989 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
9991 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
9992 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
9994 * config/i386/i386.c (x96_emit_mode_set): Idem.
9995 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
9996 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
9997 (fpscr_toggle) Disallow from delay slot.
9998 * target.def (emit_mode_set): Add prev_mode parameter.
9999 * doc/tm.texi: Regenerate.
10001 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10003 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10006 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10008 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10009 vtable_pointer_value_to_vtable): Constify.
10010 (contains_polymorphic_type_p): Declare.
10011 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10012 vtable_pointer_value_to_vtable): Constify.
10013 (contains_polymorphic_type_p): New predicate.
10014 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10016 (ipa_set_ancestor_jf): Likewise.
10017 (detect_type_change): Return false in easy cases.
10018 (compute_complex_assign_jump_func): Require type to contain
10020 (compute_known_type_jump_func): Likewise.
10022 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10024 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10026 (type_in_anonymous_namespace_p): Constify argument.
10027 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10028 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10029 (main_odr_variant): New function.
10030 (hash_type_name): Make static; update assert; do not ICE on
10032 (types_same_for_odr): Bring here from tree.c; simplify and remove
10033 old structural comparing code that doesn't work for templates.
10034 (odr_hasher::equal): Update assert.
10035 (add_type_duplicate): Return true when bases should be computed;
10036 replace incomplete loader by complete; do not output duplicated
10037 warnings; do not ICE on non-records; set odr_violated flag.
10038 (get_odr_type): Be ready to replace incomplete type by complete
10039 one; work on ODR variants instead of main variants; reorder item
10040 in array so bases have still smaller indexes.
10041 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10042 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10044 2014-07-01 Cary Coutant <ccoutant@google.com>
10046 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10048 (resolve_addr_in_expr): When replacing the rtx in a location list
10049 entry, get a new address table entry.
10050 (dwarf2out_finish): Call index_location_lists even if there are no
10051 addr_index_table entries yet.
10053 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10055 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10056 change for not being obvious.
10058 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10060 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10063 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10065 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10066 (vcagt_f64): Likewise.
10067 (vcale_f64): Likewise.
10068 (vcaled_f64): Likewise.
10069 (vcales_f32): Likewise.
10070 (vcalt_f64): Likewise.
10071 (vcaltd_f64): Likewise.
10072 (vcalts_f32): Likewise.
10074 2014-07-01 Marek Polacek <polacek@redhat.com>
10076 * doc/invoke.texi: Document -Wint-conversion.
10078 2014-07-01 Marek Polacek <polacek@redhat.com>
10081 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10083 2014-07-01 Martin Liska <mliska@suse.cz>
10085 IPA REF alias refactoring
10086 * cgraph.h (iterate_direct_aliases): New function.
10087 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10088 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10089 FOR_EACH_ALIAS added.
10090 (cgraph_for_node_and_aliases): Likewise.
10091 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10092 * ipa-inline.c (reset_edge_caches): Likewise.
10093 (update_caller_keys): Likewise.
10094 * trans-mem.c (ipa_tm_execute): Likewise.
10095 *varpool.c (varpool_analyze_node): Likewise.
10096 (varpool_for_node_and_aliases): Likewise.
10097 * ipa-ref.h (first_alias): New function.
10098 (last_alias): Likewise.
10099 (has_aliases_p): Likewise.
10100 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10101 is sensitive to IPA_REF_ALIASes.
10102 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10103 are put at the beginning of the list.
10104 (symtab_node::iterate_direct_aliases): New function.
10106 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10109 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10111 (write_ts_type_common_tree_pointers): Do not stream fields not set
10112 for incomplete types; do not stream duplicated fields for variants;
10113 sanity check that variant and type match.
10114 (write_ts_type_non_common_tree_pointers): Likewise.
10115 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10116 TYPE_SIZE whether type is complete.
10117 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10118 write_ts_type_common_tree_pointers
10119 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10121 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10123 * var-tracking.c (add_stores): Return instead of asserting if old
10124 and new values for conditional store are the same.
10126 2014-06-30 Richard Henderson <rth@redhat.com>
10130 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10131 the cfg if there were any changes.
10132 * passes.def: Revert move of peephole2 after reorder_blocks;
10133 move duplicate_computed_gotos before peephole2.
10135 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10137 * except.c (emit_note_eh_region_end): New helper function.
10138 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10139 emit EH_REGION_END note.
10140 * jump.c (cleanup_barriers): Do not split a call and its
10141 corresponding CALL_ARG_LOCATION note.
10143 2014-06-30 Jeff Law <law@redhat.com>
10145 PR tree-optimization/61607
10146 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10147 deeper into the SSA_NAME_VALUE chain.
10149 2014-06-30 Marek Polacek <polacek@redhat.com>
10151 * convert.c (convert_to_integer): Don't instrument conversions if the
10152 function has no_sanitize_undefined attribute.
10153 * ubsan.c: Don't run the ubsan pass if the function has
10154 no_sanitize_undefined attribute.
10156 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10158 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10159 -fsanitize=undefined suboptions.
10161 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10163 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10164 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10165 against bigendian and adjust indices.
10167 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10169 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10171 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10174 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10175 Add alternative; make early clobber. Adjust both split patterns
10176 to use operand 0 as the working register.
10178 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10180 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10181 as ira_object_id_map might be NULL, or 1.
10183 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10185 * loop-invariant.c (get_inv_cost): Handle register class.
10186 (gain_for_invariant): Check the register pressure of the inv
10187 and its overlapped register class, other than all.
10189 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10191 * doc/invoke.texi (Optimize Options): Fix descriptions of
10192 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10194 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10196 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10199 2014-06-29 Tobias Grosser <tobias@grosser.es>
10202 * graphite-isl-ast-to-gimple.c: Add missing guards.
10204 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10206 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10207 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10208 * flag-types.h: Add new enum fgraphite_generator.
10209 * graphite-isl-ast-to-gimple.c: New.
10210 * graphite-isl-ast-to-gimple.h: New.
10211 * graphite.c (graphite_transform_loops): Add choice of Graphite
10212 code generator, which depends on flag_graphite_code_gen.
10214 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10216 * graphite-dependences.c (subtract_commutative_associative_deps):
10217 Add NULL checking of the following variables: must_raw_no_source,
10218 may_raw_no_source, must_war_no_source, may_war_no_source,
10219 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10220 must_war, may_war, must_waw, may_waw.
10222 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10224 * graphite-clast-to-gimple.c: gloog is renamed to
10225 graphite_regenerate_ast_cloog. gloog_error is renamed to
10226 graphite_regenerate_error.
10227 * graphite-clast-to-gimple.h: The definition of the struct
10228 bb_pbb_def is moved to graphite-htab.h.
10229 Add inclusion of the hash-table.h.
10230 * graphite-htab.h: The declaration of the function gloog is moved
10231 to graphite-clast-to-gimple.h and renamed to
10232 graphite_regenerate_ast_cloog.
10233 * graphite.c (graphite_transform_loops): gloog is renamed
10234 to graphite_regenerate_ast_cloog.
10236 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10238 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10240 (write_ts_type_common_tree_pointers): Do not stream fields not set
10241 for incomplete types; do not stream duplicated fields for variants;
10242 sanity check that variant and type match.
10243 (write_ts_type_non_common_tree_pointers): Likewise.
10244 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10245 TYPE_SIZE whether type is complete.
10246 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10247 write_ts_type_common_tree_pointers
10248 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10250 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10252 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10254 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10256 * tree-inline.c (remap_type_1): Do not duplicate fields
10257 that are shared in between type and its main variant.
10259 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10261 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10263 (ipa_set_ancestor_jf) Likewise.
10264 (check_stmt_for_type_change): Check that we work on main variant.
10265 (detect_type_change): Look into main variant.
10266 (compute_known_type_jump_func): Check that main variant has BINFO.
10268 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10270 * ipa-devirt.c (set_type_binfo): New function.
10271 (add_type_duplicate): Use it.
10272 (get_odr_type): Sanity check that binfos points to main variants.
10273 (get_class_context): Be sure the context's outer_type is main variant.
10274 (contains_type_p): Walk main variant.
10275 (get_polymorphic_call_info_for_decl): Set outer_type to be
10277 (get_polymorphic_call_info): Likewise.
10278 (possible_polymorphic_call_targets): Sanity check that we operate
10281 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10283 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10285 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10287 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10288 accidental change due to wide-int branch merge.
10290 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10292 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10293 compressed debug support.
10294 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10295 * configure: Regenerate.
10296 * config.in: Regenerate.
10297 * common.opt (compressed_debug_sections): New enum.
10298 (gz, gz=): New options.
10299 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10300 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10301 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10302 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10303 LINK_COMPRESS_DEBUG_SPEC.
10304 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10305 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10306 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10307 (Debugging Options): Document -gz[=type].
10309 2014-06-27 Martin Jambor <mjambor@suse.cz>
10312 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10313 args_to_skip, use those from node instead. Copy args_to_skip and
10314 combined_args_to_skip from node to the new thunk.
10315 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10316 (cgraph_create_virtual_clone): Moved computation of
10317 combined_args_to_skip...
10318 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10320 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10322 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10323 redundant diagnostic machinary.
10325 2014-06-27 Richard Biener <rguenther@suse.de>
10327 * tree-ssa-math-opts.c (bswap_replace): Fix
10328 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10330 2014-06-27 Martin Liska <mliska@suse.cz>
10332 * gimple.h (gimple_location_safe): New function introduced.
10333 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10334 of gimple_location_safe replaces gimple_location.
10335 (gimple_fold_call): Likewise.
10336 * ipa-devirt.c (ipa_devirt): Likewise.
10337 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10338 * ipa.c (walk_polymorphic_call_targets): Likewise.
10339 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10341 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10343 PR tree-optimization/57233
10344 PR tree-optimization/61299
10345 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10347 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10348 would be lowered to scalar shifts, check if corresponding
10349 shifts and vector BIT_IOR_EXPR are supported and don't lower
10350 or lower just to narrower vector type in that case.
10351 * expmed.c (expand_shift_1): Fix up handling of vector
10352 shifts and rotates.
10354 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10357 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10359 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10361 * doc/invoke.texi (-fsemantic-interposition): Document.
10362 * common.opt (fsemantic-interposition): New flag.
10363 * varasm.c (decl_replaceable_p): Use it.
10365 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10368 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10369 extraction other than index 3.
10371 2014-06-26 Teresa Johnson <tejohnson@google.com>
10373 * doc/invoke.texi: Fix typo.
10374 * dumpfile.c: Add support for documented -fdump-* options
10375 optimized/missed/note/optall.
10377 2014-06-26 Martin Jambor <mjambor@suse.cz>
10379 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10380 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10381 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10382 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10383 * opts.c (default_options_optimization): Set
10384 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10385 * doc/invoke.texi (allow-load-data-races)
10386 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10387 (allow-store-data-races): Document the new default.
10389 2014-06-26 Martin Jambor <mjambor@suse.cz>
10391 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10392 renamed to ipa_impossible_devirt_target. Fix typo.
10393 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10394 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10395 ipa_impossible_devirt_target.
10397 2014-06-26 Richard Biener <rguenther@suse.de>
10399 PR tree-optimization/61607
10400 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10401 explaining why we restrict copies on loop depth.
10402 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10404 (record_equivalences_from_phis): Instead add it here.
10406 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10408 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10409 (LTO_WRAPPER_OBJS): New variable.
10410 (lto-wrapper$(exeext)): Use it.
10411 * collect2.c: Include "collect-utils.h".
10412 (verbose, debug): Remove variables.
10413 (at_file_supplied): No longer static.
10414 (tool_name): New variable.
10415 (do_wait, fork_execute, maybe_unlink): Don't declare.
10416 (tool_cleanup): No longer static.
10417 (notice): Remove function.
10418 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10419 fork_execute calls.
10420 (collect_wait, do_wait, collect_execute): Remove functions.
10421 (maybe_unlink): No longer static.
10422 * collect2.h (verbose, debug): Don't declare.
10423 (at_file_supplied): Declare.
10424 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10426 (collect_execute): Replace with implementation from collect2, plus a
10427 new arg use_atfile. All callers changed.
10428 (collect_wait): Replace with implementation from collect2.
10429 (maybe_unlink_file): Remove function.
10430 (fork_execute): Replace with implementation from collect2, plus a
10431 new arg use_atfile. All callers changed.
10432 (do_wait): Add call to utils_cleanup to the error path.
10433 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10434 (tool_cleanup): Adjust declarations.
10435 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10436 * tlink.c: Include "collect-utils.h".
10437 (tlink_execute): New arg use_atfile. All callers changed.
10438 (tlink_init, tlink_execute): Remove declarations.
10440 * collect-utils.c (save_temps): New variable.
10441 (do_wait): Use it instead of debug. Use fatal_error.
10442 * collect-utils.h (save_temps): Declare.
10443 * collect2.c (verbose): Rename from vflag. All uses changed.
10444 (tool_cleanup): New function, copied from collect_atexit.
10445 (collect_atexit, handler): Just call it.
10446 * collect2.h (verbose): Declaration renamed from vflag.
10447 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10450 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10451 (lto-wrapper$(exeext)): Link with collect-utils.o.
10452 * collect-utils.c: New file.
10453 * collect-utils.h: New file.
10454 * lto-wrapper.c: Include "collect-utils.h".
10455 (args_name): Delete variable.
10456 (tool_name): New variable.
10457 (tool_cleanup): New function.
10458 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10459 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10460 (fork_execute): Remove functions.
10462 2014-06-26 Nick Clifton <nickc@redhat.com>
10464 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10466 * doc/extend.texi (Function Attributes): Fix typo in description
10467 of RX vector attribute.
10469 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10471 * config.gcc (supported_defaults): Error when passing either
10472 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10474 2014-06-26 Richard Biener <rguenther@suse.de>
10476 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10477 propagating volatile pointers.
10479 2014-06-26 Richard Biener <rguenther@suse.de>
10481 PR tree-optimization/61607
10482 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10483 loop if we redirected its latch edge.
10484 (thread_block_1): Do not cancel loops prematurely.
10486 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10488 * toplev.c (backend_init_target): Move init_emit_regs and
10490 (backend_init) ... here; skip ira_init_once and backend_init_target.
10491 (target_reinit) ... and here; clear
10492 this_target_rtl->lang_dependent_initialized.
10493 (lang_dependent_init_target): Clear
10494 this_target_rtl->lang_dependent_initialized;
10495 break out rtl initialization to ...
10496 (initialize_rtl): ... here; call also backend_init_target
10498 * toplev.h (initialize_rtl): New function.
10499 * function.c: Include toplev.h
10500 (init_function_start): Call initialize_rtl.
10501 * rtl.h (target_rtl): Add target_specific_initialized,
10502 lang_dependent_initialized.
10504 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10505 Jakub Jelinek <jakub@redhat.com>
10507 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10509 2014-06-25 Tom de Vries <tom@codesourcery.com>
10511 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10513 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10515 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10516 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10517 Issue a strict overflow warning if appropriate.
10519 2014-06-25 Martin Liska <mliska@suse.cz>
10521 IPA REF refactoring
10522 * Makefile.in: Removed header file (ipa-ref-inline.h).
10523 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10525 (cgraph_speculative_call_info): Likewise.
10526 (cgraph_for_node_thunks_and_aliases): Likewise.
10527 (cgraph_for_node_and_aliases): Likewise.
10528 (verify_cgraph_node): Likewise.
10529 * cgraph.h: Batch of IPA REF functions become member functions of
10530 symtab_node: add_reference, maybe_add_reference, clone_references,
10531 clone_referring, clone_reference, find_reference,
10532 remove_stmt_references, remove_all_references,
10533 remove_all_referring, dump_references, dump_referring,
10534 has_alias_p, iterate_reference, iterate_referring.
10535 * cgraphbuild.c (record_reference): New IPA REF function used.
10536 (record_type_list): Likewise.
10537 (record_eh_tables): Likewise.
10538 (mark_address): Likewise.
10539 (mark_load): Likewise.
10540 (mark_store): Likewise.
10541 (pass_build_cgraph_edges): Likewise.
10542 (rebuild_cgraph_edge): Likewise.
10543 (cgraph_rebuild_references): Likewise.
10544 (pass_remove_cgraph_callee_edges): Likewise.
10545 * cgraphclones.c (cgraph_clone_node): Likewise.
10546 (cgraph_create_virtual_clone): Likewise.
10547 (cgraph_materialize_clone): Likewise.
10548 (cgraph_materialize_all_clones): Likewise.
10549 * cgraphunit.c (cgraph_reset_node): Likewise.
10550 (cgraph_reset_node): Likewise.
10551 (analyze_function): Likewise.
10552 (assemble_thunks_and_aliases): Likewise.
10553 (expand_function): Likewise.
10554 * ipa-comdats.c (propagate_comdat_group): Likewise.
10555 (enqueue_references): Likewise.
10556 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10557 (create_specialized_node): Likewise.
10558 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10559 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10560 * ipa-inline.c (reset_edge_caches): Likewise.
10561 (update_caller_keys): Likewise.
10562 (execute): Likewise.
10563 * ipa-prop.c (remove_described_reference): Likewise.
10564 (propagate_controlled_uses): Likewise.
10565 (ipa_edge_duplication_hook): Likewise.
10566 (ipa_modify_call_arguments): Likewise.
10567 * ipa-pure-const.c (propagate_pure_const): Likewise.
10568 * ipa-ref-inline.h: Header file removed, functions moved
10569 to symtab_node class.
10570 * ipa-ref.c (remove_reference): New class member function.
10571 (cannot_lead_to_return): New class member function.
10572 (referring_ref_list): Likewise.
10573 (referred_ref_list): Likewise.
10574 Rest of functions moved to symtab_node class.
10575 * ipa-ref.h: New member functions remove_reference,
10576 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10578 ipa_ref_list class has new member functions: first_reference,
10579 first_referring, clear, nreferences.
10580 * ipa-reference.c (analyze_function): New IPA REF function used.
10581 (write_node_summary_p): Likewise.
10582 (ipa_reference_write_optimization_summary): Likewise.
10583 * ipa-split.c (split_function): Likewise.
10584 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10585 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10586 (function_and_variable_visibility): Likewise.
10587 * ipa.c (has_addr_references_p): Likewise.
10588 (process_references): Argument type changed.
10589 (symtab_remove_unreachable_nodes): New IPA REF function used.
10590 (process_references): Likewise.
10591 (set_writeonly_bit): Likewise.
10592 * lto-cgraph.c: Implementation of new symtab_node member functions
10593 that uses new IPA REF functions.
10594 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10596 * lto-streamer-out.c (output_symbol_p): Likewise.
10597 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10599 * symtab.c: Implementation of new IPA REF API.
10600 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10601 (ipa_tm_create_version): Likewise.
10602 (ipa_tm_execute): Likewise.
10603 * tree-emutls.c (gen_emutls_addr): Likewise.
10604 * tree-inline.c (copy_bb): Likewise.
10605 (delete_unreachable_blocks_update_callgraph): Likewise.
10606 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10607 (varpool_for_node_and_aliases): Likewise.
10609 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10611 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10613 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10616 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10617 tree_node * instead of tree_node *.
10619 (print_fold_checksum): Likewise.
10620 (fold_check_failed): Likewise.
10621 (debug_fold_checksum): Likewise.
10622 (fold_build1_stat_loc): Likewise.
10623 (fold_build2_stat_loc): Likewise.
10624 (fold_build3_stat_loc): Likewise.
10625 (fold_build_call_array_loc): Likewise.
10627 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10629 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10630 implementation with call to...
10631 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10633 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10636 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10638 PR tree-optimization/57742
10639 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10640 after replacing the statement.
10642 2014-06-25 Nick Clifton <nickc@redhat.com>
10644 * config/v850/v850.c (GHS_default_section_names): Change to const
10646 (GHS_current_section_names): Likewise.
10647 (v850_insert_attributes): Do not build strings, just assign the
10648 names directly. Change the type of 'chosen_section' to const
10650 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10651 directly to the array entry.
10652 * config/v850/v850.h (GHS_default_section_names): Change to const
10654 (GHS_current_section_names): Likewise.
10656 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10658 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10659 (LANG_HOOKS_DECLS): Add it.
10660 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10662 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10663 * langhooks.h (struct lang_hooks_for_decls): Add
10664 omp_clause_linear_ctor hook.
10665 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10666 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10667 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10668 combined simd loop use omp_clause_linear_ctor hook.
10670 2014-06-24 Cong Hou <congh@google.com>
10672 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10673 pattern recognition.
10674 (type_conversion_p): PROMOTION is true if it's a type promotion
10675 conversion, and false otherwise. Return true if the given expression
10676 is a type conversion one.
10677 * tree-vectorizer.h: Adjust the number of patterns.
10678 * tree.def: Add SAD_EXPR.
10679 * optabs.def: Add sad_optab.
10680 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10681 * expr.c (expand_expr_real_2): Likewise.
10682 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10683 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10684 * optabs.c (optab_for_tree_code): Likewise.
10685 * tree-cfg.c (estimate_operator_cost): Likewise.
10686 * tree-ssa-operands.c (get_expr_operands): Likewise.
10687 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10688 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10689 * doc/generic.texi: Add document for SAD_EXPR.
10690 * doc/md.texi: Add document for ssad and usad.
10692 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10694 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10695 qualification in cast.
10697 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10699 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10700 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10701 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10702 (tree_function_decl): ... here.
10703 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10704 streaming of vindex to ...
10705 (write_ts_function_decl_tree_pointers): ... here.
10706 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10707 Do not stream DECL_VINDEX.
10708 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10710 2014-06-24 Catherine Moore <clm@codesourcery.com>
10711 Sandra Loosemore <sandra@codesourcery.com>
10713 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10714 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10715 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10717 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10719 * doc/invoke.texi (Warning Options): Remove duplicated
10720 -Wmaybe-uninitialized.
10722 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10724 PR tree-optimization/57742
10725 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10726 (handle_builtin_malloc, handle_builtin_memset): New functions.
10727 (strlen_optimize_stmt): Call them.
10728 * passes.def: Move strlen after loop+dom but before vrp.
10730 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10733 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10734 model family 6 CPU with has_longmode never use a CPU without
10737 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10740 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10743 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10745 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10746 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10748 * hash-map.h: New file.
10749 * ipa-comdats.c: Use hash_map instead of pointer_map.
10751 * lto-section-out.c: Adjust.
10752 * lto-streamer.h: Replace pointer_map with hash_map.
10753 * symtab.c (verify_symtab): Likewise.
10754 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10755 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10756 * tree-streamer.h: Likewise.
10757 * tree-streamer.c: Adjust.
10758 * pointer-set.h: Remove pointer_map.
10760 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10762 * hash-table.h: Add a template arg to choose between storing values
10763 and storing pointers to values, and then provide partial
10764 specializations for both.
10765 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10766 should store, not the type values should point to.
10767 * tree-into-ssa.c (var_info_hasher): Likewise.
10768 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10769 * tree-complex.c: Adjust.
10770 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10771 table instead of int_tree_map *.
10772 * tree-parloops.c: Adjust.
10773 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10774 type is being stored.
10775 * tree-vectorizer.c: Adjust.
10777 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10779 * hash-table.h: Remove a layer of indirection from hash_table so that
10780 it contains the hash table's data instead of a pointer to the data.
10781 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10782 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10783 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10784 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10785 fold-const.c, gcse.c, ggc-common.c,
10786 gimple-ssa-strength-reduction.c, gimplify.c,
10787 graphite-clast-to-gimple.c, graphite-dependences.c,
10788 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10789 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10790 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10791 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10792 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10793 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10794 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10795 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10796 tree-ssa-live.c, tree-ssa-loop-im.c,
10797 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10798 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10799 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10800 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10801 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10802 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10803 vtable-verify.c, vtable-verify.h: Adjust.
10805 2014-06-24 Richard Biener <rguenther@suse.de>
10807 PR tree-optimization/61572
10808 * tree-ssa-sink.c (statement_sink_location): Do not sink
10809 loads from hard registers.
10811 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10813 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
10814 not mentioned in clauses use private clause if the iterator is
10815 declared in #pragma omp for simd, and when adding lastprivate
10816 instead, add it to the outer #pragma omp for too. Diagnose
10817 if the variable is private in outer context. For simd collapse > 1
10818 loops, replace all iterators with temporaries.
10819 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
10820 same even in collapse > 1 loops.
10822 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
10823 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
10825 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
10826 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
10828 (gimplify_adjust_omp_clauses): Likewise.
10829 * omp-low.c (lower_rec_simd_input_clauses,
10830 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
10831 safelen the same as safelen(1).
10832 * tree-nested.c (convert_nonlocal_omp_clauses,
10833 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
10834 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
10835 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
10836 Fixup handling of GIMPLE_OMP_TARGET.
10837 (convert_tramp_reference_stmt, convert_gimple_call): Handle
10840 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
10842 PR tree-optimization/61554
10843 * tree-ssa-propagate.c: Include "bitmap.h".
10844 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
10845 properly update constructor/destructor.
10846 (substitute_and_fold_dom_walker::before_dom_children):
10847 Remove call to gimple_purge_dead_eh_edges, add bb->index to
10848 need_eh_cleaup instead.
10849 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
10852 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10854 * varpool.c (dump_varpool_node): Dump used_by_single_function.
10855 * tree-pass.h (make_pass_ipa_single_use): New pass.
10856 * cgraph.h (used_by_single_function): New flag.
10857 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
10859 * passes.def (pass_ipa_single_use): Scedule.
10860 * ipa.c (BOTTOM): New macro.
10861 (meet): New function
10862 (propagate_single_user): New function.
10863 (ipa_single_use): New function.
10864 (pass_data_ipa_single_use): New pass.
10865 (pass_ipa_single_use): New pass.
10866 (pass_ipa_single_use::gate): New gate.
10867 (make_pass_ipa_single_use): New function.
10869 2014-06-23 Kai Tietz <ktietz@redhat.com>
10872 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
10873 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
10875 2014-06-23 Richard Biener <rguenther@suse.de>
10877 * tree-ssa-loop.c (gate_loop): New function.
10878 (pass_tree_loop::gate): Call it.
10879 (pass_data_tree_no_loop, pass_tree_no_loop,
10880 make_pass_tree_no_loop): New.
10881 * tree-vectorizer.c: Include tree-scalar-evolution.c
10882 (pass_slp_vectorize::execute): Initialize loops and SCEV if
10884 (pass_slp_vectorize::clone): New method.
10885 * timevar.def (TV_TREE_NOLOOP): New.
10886 * tree-pass.h (make_pass_tree_no_loop): Declare.
10887 * passes.def (pass_tree_no_loop): New pass group with
10890 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
10893 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
10894 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
10896 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10898 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
10899 "yes" where needed.
10901 2014-06-23 Alan Modra <amodra@gmail.com>
10904 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
10905 to zero on debug statements.
10907 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10910 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
10911 Ignore third operand if present by marking qualifier_internal.
10913 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
10915 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
10917 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
10918 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
10919 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
10920 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
10921 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
10922 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
10923 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
10924 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
10925 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
10926 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
10927 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
10928 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
10929 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
10930 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
10931 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
10932 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
10933 logic in GCC vector extensions
10935 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
10936 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
10937 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
10938 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
10939 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
10940 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
10941 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
10942 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
10943 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
10944 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
10946 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
10948 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
10951 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
10952 (vget_low_s64): Use __GET_LOW macro.
10953 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
10954 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
10955 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
10956 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
10957 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
10959 (vcombine_s64): Use GCC vector extensions; remove cast.
10960 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
10961 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
10962 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
10963 Fix type signature; remove cast.
10965 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10968 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
10970 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
10972 (BUILTIN_VD1): New.
10973 (BUILTIN_VD_RE): Remove.
10974 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
10975 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
10976 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
10977 variant but not df.
10978 (vreinterpretv1df*, vreinterpret*v1df): New.
10979 (vreinterpretdf*, vreinterpret*df): Remove.
10980 * config/aarch64/aarch64-simd.md (aarch64_create,
10981 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
10982 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
10984 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
10985 (vcreate_f64): Remove cast, use v1df builtin.
10986 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
10987 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
10988 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
10989 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
10990 vmov_n_f64, vst1_f64): Use gcc vector extensions.
10991 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
10992 add range check using __builtin_aarch64_im_lane_boundsi.
10993 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
10994 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
10995 type signature, use gcc vector extensions.
10996 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
10997 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
10998 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
10999 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11000 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11001 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11002 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11003 vreinterpret_u64_f64): Use v1df builtin not df.
11005 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11007 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11010 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11012 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11015 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11017 * loop-invariant.c (pre_check_invariant_p): New function.
11018 (find_invariant_insn): Call pre_check_invariant_p.
11020 2014-06-22 Richard Henderson <rth@redhat.com>
11023 * compare-elim.c (struct comparison): Add eh_note.
11024 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11025 a redundant comparison in a different EH region. Purge EH edges if
11028 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11030 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11031 (var_shift): Use it.
11032 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11033 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11034 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11035 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11036 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11037 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11038 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11039 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11040 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11041 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11042 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11043 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11044 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11045 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11046 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11047 *rotldi3_internal15be): Use the new attribute. Merge register and
11048 integer alternatives.
11050 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11052 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11053 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11054 split, *ashrdi3_internal3 and split): Delete, merge into...
11055 (ashr<mode>3): New expander.
11056 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11057 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11059 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11061 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11062 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11063 *rotldi3_internal3 and split): Delete, merge into...
11064 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11065 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11066 Use "rotlw" extended mnemonic.
11068 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11070 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11071 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11072 and split, *ashldi3_internal3 and split): Delete, merge into...
11073 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11074 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11076 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11078 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11079 (lshrsi3, two anonymous define_insns and define_splits,
11080 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11081 *lshrdi3_internal3 and split): Delete, merge into...
11082 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11083 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11085 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11087 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11088 Remove "O" alternative.
11090 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11092 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11093 (mips_move_from_gpr_cost): Likewise.
11094 (mips_register_move_cost): Update accordingly.
11095 (mips_secondary_reload_class): Remove name of in_p.
11097 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11100 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11101 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11103 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11105 * config/nios2/nios2.c: Include "builtins.h".
11107 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11109 * cgraph.h (tls_model_names): New variable.
11110 * print-tree.c (print_node): Simplify.
11111 * varpool.c (tls_model_names): New variable.
11112 (dump_varpool_node): Output tls model.
11114 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11116 * ipa-visibility.c (function_and_variable_visibility): Disable
11117 temporarily local aliases for some targets.
11119 2014-06-20 Marek Polacek <polacek@redhat.com>
11121 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11122 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11123 into SANITIZE_UNDEFINED.
11124 * doc/invoke.texi: Describe -fsanitize=bounds.
11125 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11126 functions created in the FEs.
11127 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11128 (expand_UBSAN_BOUNDS): New function.
11129 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11130 * internal-fn.h: Don't define internal functions here.
11131 * opts.c (common_handle_option): Add -fsanitize=bounds.
11132 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11133 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11134 * tree-core.h: Define internal functions here.
11135 (struct tree_base): Add ifn field.
11136 * tree-pretty-print.c: Include "internal-fn.h".
11137 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11138 * tree.c (get_callee_fndecl): Likewise.
11139 (build_call_expr_internal_loc): New function.
11140 * tree.def (CALL_EXPR): Update description.
11141 * tree.h (CALL_EXPR_IFN): Define.
11142 (build_call_expr_internal_loc): Declare.
11143 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11145 (ubsan_type_descriptor): Change bool parameter to enum
11146 ubsan_print_style. Adjust the code. Add handling of
11148 (ubsan_expand_bounds_ifn): New function.
11149 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11150 (ubsan_build_overflow_builtin): Likewise.
11151 (instrument_bool_enum_load): Likewise.
11152 (ubsan_instrument_float_cast): Likewise.
11153 * ubsan.h (enum ubsan_print_style): New enum.
11154 (ubsan_expand_bounds_ifn): Declare.
11155 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11157 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11159 * config/rs6000/rs6000.md: Append `DONE' to preparation
11160 statements of `bswap' pattern splitters.
11162 2014-06-20 Tom de Vries <tom@codesourcery.com>
11164 * target.def (call_fusage_contains_non_callee_clobbers): Update
11166 * doc/tm.texi: Regenerate.
11168 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11169 Max Ostapenko <m.ostapenko@partner.samsung.com>
11172 * asan.c (instrument_strlen_call): Fixed instrumentation of
11175 2014-06-20 Martin Jambor <mjambor@suse.cz>
11178 * ipa-prop.c (impossible_devirt_target): New function.
11179 (try_make_edge_direct_virtual_call): Use it, also instead of
11182 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11183 Max Ostapenko <m.ostapenko@partner.samsung.com>
11186 * asan.c (build_check_stmt): Add condition.
11188 2014-06-20 Martin Jambor <mjambor@suse.cz>
11191 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11194 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11196 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11198 (VCONQ): Make comment more helpful.
11200 * config/aarch64/aarch64-simd.md
11201 (aarch64_sqdmulh_lane<mode>):
11202 Use VCOND for operands 2. Update lane checking and flipping logic.
11203 (aarch64_sqrdmulh_lane<mode>): Likewise.
11204 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11205 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11206 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11207 attribute of operand 3 to VCOND.
11208 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11209 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11210 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11211 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11212 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11213 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11215 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11216 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11217 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11218 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11219 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11220 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11221 operand to VCOND. Update lane flipping and bounds checking logic.
11222 (aarch64_sqdmlal2_lane<mode>): Likewise.
11223 (aarch64_sqdmlsl_lane<mode>): Likewise.
11224 (aarch64_sqdmull_lane<mode>): Likewise.
11225 (aarch64_sqdmull2_lane<mode>): Likewise.
11226 (aarch64_sqdmlal_laneq<mode>):
11227 Replace VCON usage with VCONQ.
11228 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11229 (aarch64_sqdmlal2_laneq<mode>): Emit
11230 aarch64_sqdmlal2_laneq<mode>_internal insn.
11231 Replace VCON with VCONQ.
11232 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11233 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11234 (aarch64_sqdmull_laneq<mode>): Emit
11235 aarch64_sqdmull_laneq<mode>_internal insn.
11236 Replace VCON with VCONQ.
11237 (aarch64_sqdmull2_laneq<mode>): Emit
11238 aarch64_sqdmull2_laneq<mode>_internal insn.
11239 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11240 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11241 of 3rd argument to int16x4_t.
11242 (vqdmlalh_lane_s16): Likewise.
11243 (vqdmlslh_lane_s16): Likewise.
11244 (vqdmull_high_lane_s16): Likewise.
11245 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11246 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11247 (vqdmlsl_lane_s16): Likewise.
11248 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11249 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11250 (vqdmlals_lane_s32): Likewise.
11251 (vqdmlsls_lane_s32): Likewise.
11252 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11253 (vqdmulls_lane_s32): Likewise.
11254 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11255 (vqdmlsl_lane_s32): Likewise.
11256 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11257 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11258 (vqrdmulhh_lane_s16): Likewise.
11259 (vqdmlsl_high_lane_s16): Likewise.
11260 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11261 (vqdmlsl_high_lane_s32): Likewise.
11262 (vqrdmulhs_lane_s32): Likewise.
11264 2014-06-20 Tom de Vries <tom@codesourcery.com>
11266 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11267 get_call_reg_set_usage.
11269 2014-06-20 Tom de Vries <tom@codesourcery.com>
11271 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11272 it contains all call_used_regs.
11274 2014-06-20 Tom de Vries <tom@codesourcery.com>
11276 * final.c (collect_fn_hard_reg_usage): Add and use variable
11277 function_used_regs.
11279 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11281 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11282 (set_init_priority, get_init_priority, set_fini_priority,
11283 get_fini_priority): New methods.
11284 * tree.c (init_priority_for_decl): Remove.
11285 (init_ttree): Do not initialize init priority.
11286 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11287 (decl_priority_info): Remove.
11288 (decl_init_priority_insert): Rewrite.
11289 (decl_fini_priority_insert): Rewrite.
11290 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11291 tree_priority_map_marked_p): Remove.
11292 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11293 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11294 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11295 not output priorities.
11296 (pack_ts_function_decl_value_fields): Likewise.
11297 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11298 not input priorities.
11299 (unpack_ts_function_decl_value_fields): Likewise.
11300 * symtab.c (symbol_priority_map): Declare.
11301 (init_priority_hash): Declare.
11302 (symtab_unregister_node): Unregister from priority hash, too.
11303 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11305 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11306 (symbol_priority_info): New function.
11307 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11309 * tree-core.h (tree_priority_map): Remove.
11311 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11313 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11314 0xff to uint64_t before shifting it up.
11316 2014-06-20 Julian Brown <julian@codesourcery.com>
11317 Chung-Lin Tang <cltang@codesourcery.com>
11319 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11320 TARGET_THUMB1_ONLY. Add comments.
11322 2014-06-19 Tom de Vries <tom@codesourcery.com>
11324 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11325 return type to void.
11326 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11328 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11330 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11331 as "move", from depends_on.
11333 2014-06-19 Terry Guo <terry.guo@arm.com>
11335 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11338 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11340 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11342 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11344 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11347 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11348 addresses here if reload in progress or completed.
11350 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11352 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11353 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11354 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11355 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11356 (mips_register_priority): New function that implements the target
11357 hook TARGET_REGISTER_PRIORITY.
11358 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11359 (mips_lra_p): Likewise for TARGET_LRA_P.
11360 (TARGET_REGISTER_PRIORITY): Define macro.
11361 (TARGET_SPILL_CLASS): Likewise.
11362 (TARGET_LRA_P): Likewise.
11363 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11365 (REG_CLASS_NAMES): Likewise.
11366 (REG_CLASS_CONTENTS): Likewise.
11367 (BASE_REG_CLASS): Use M16_SP_REGS.
11368 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11369 New set attribute to enable alternatives depending on the register
11371 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11372 (*lea64): Disable pattern for MIPS16.
11373 * config/mips/mips.opt (mlra): New option.
11375 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11377 * lra-constraints.c (base_to_reg): New function.
11378 (process_address): Use new function.
11380 2014-06-18 Tom de Vries <tom@codesourcery.com>
11382 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11383 * config/aarch64/aarch64.c
11384 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11385 (aarch64_emit_call_insn): New function.
11386 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11388 * config/aarch64/aarch64.md (define_expand "call_internal")
11389 (define_expand "call_value_internal", define_expand "sibcall_internal")
11390 (define_expand "sibcall_value_internal"): New.
11391 (define_expand "call", define_expand "call_value")
11392 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11393 expand variant and aarch64_emit_call_insn.
11395 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11396 Tom de Vries <tom@codesourcery.com>
11398 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11399 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11401 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11402 clobbers to CALL_INSN_FUNCTION_USAGE.
11403 (define_expand "sibcall_internal")
11404 (define_expand "sibcall_value_internal"): New.
11405 (define_expand "call", define_expand "call_value"): Add argument to
11406 arm_emit_call_insn.
11407 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11408 (define_expand "sibcall_value"): Use sibcall_value_internal and
11409 arm_emit_call_insn.
11411 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11413 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11415 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11417 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11420 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11422 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11423 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11424 annotations. Fix DWARF information.
11426 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11428 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11429 __udivmoddi4, and fixups for negative operands.
11431 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11433 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11435 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11437 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11440 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11442 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11445 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11447 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11448 describing register usage on function entry and exit.
11450 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11452 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11453 (__aeabi_ldivmod): Fix whitespace.
11455 2014-06-18 Andreas Schwab <schwab@suse.de>
11457 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11458 Remove blank line after @item.
11460 2014-06-18 Richard Henderson <rth@redhat.com>
11463 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11465 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11467 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11468 POST_MODIFY for neon loads and stores.
11469 (arm_print_operand): Output post-index register for neon loads and
11472 2014-06-18 Richard Biener <rguenther@suse.de>
11474 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11476 2014-06-18 Richard Biener <rguenther@suse.de>
11478 * tree-pass.h (make_pass_dce_loop): Remove.
11479 * passes.def: Replace pass_dce_loop with pass_dce.
11480 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11481 changed free niter estimates and reset the scev cache.
11482 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11483 make_pass_dce_loop): Remove.
11484 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11485 (fini_copy_prop): Return whether something changed. Always
11486 let substitute_and_fold perform DCE and free niter estimates
11487 and reset the scev cache if so.
11488 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11489 (pass_data_copy_prop): Do not unconditionally schedule
11490 cleanup-cfg or update-ssa.
11492 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11494 PR tree-optimization/61518
11495 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11496 reduction var is used in reduction stmt or phi-function only.
11498 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11500 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11502 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11504 PR tree-optimization/61517
11505 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11506 whose rhs's first tree is the source expression instead of the
11508 (find_bswap_or_nop): Likewise.
11509 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11510 gimple stmt whose rhs's first tree is the source. In the memory source
11511 case, move the stmt to be replaced close to one of the original load to
11512 avoid the problem of a store between the load and the stmt's original
11514 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11517 2014-06-18 Andreas Schwab <schwab@suse.de>
11519 PR rtl-optimization/54555
11520 * postreload.c (move2add_use_add2_insn): Substitute
11521 STRICT_LOW_PART only if it is cheaper.
11523 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11525 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11526 Do not use unspec as call operand. Use memory_operand instead of
11527 memory_nox32_operand and add "m" operand constraint. Disable
11528 pattern for TARGET_X32.
11529 (*sibcall_pop_memory): Ditto.
11530 (*sibcall_value_memory): Ditto.
11531 (*sibcall_value_pop_memory): Ditto.
11532 (sibcall peepholes): Merge SImode and DImode patterns using
11533 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11534 Disable pattern for TARGET_X32. Check if eliminated register is
11535 really dead after call insn. Generate call RTX without unspec operand.
11536 (sibcall_value peepholes): Ditto.
11537 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11538 instead of memory_nox32_operand. Check if eliminated register is
11539 really dead after call insn. Generate call RTX without unspec operand.
11540 (sibcall_value_pop peepholes): Ditto.
11541 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11543 2014-06-18 Terry Guo <terry.guo@arm.com>
11546 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11549 2014-06-18 Olivier Hainque <hainque@adacore.com>
11551 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11552 memorization of the end of block source location.
11553 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11554 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11555 end source location info we have on the block entry/exit code we
11558 2014-06-18 Richard Biener <rguenther@suse.de>
11560 * common.opt (fssa-phiopt): New option.
11561 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11563 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11564 * doc/invoke.texi (-fssa-phiopt): Document.
11566 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11568 * genattrtab.c (n_bypassed): New variable.
11569 (process_bypasses): Initialise n_bypassed.
11570 Count number of bypassed reservations.
11571 (make_automaton_attrs): Allocate space for bypassed reservations
11572 rather than number of bypasses.
11574 2014-06-18 Richard Biener <rguenther@suse.de>
11576 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11577 we propagated anything.
11578 (substitute_and_fold_dom_walker::before_dom_children): Something
11579 changed if we propagated into PHI arguments.
11580 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11583 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11585 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11587 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11588 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11589 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11590 Introduces alternative way of loads group permutaions.
11591 (vect_transform_grouped_load): Try alternative way of permutations.
11593 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11595 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11596 changed in ORT_TARGET region, don't jump to do_outer.
11597 (struct gimplify_adjust_omp_clauses_data): New type.
11598 (gimplify_adjust_omp_clauses_1): Adjust for data being
11599 a struct gimplify_adjust_omp_clauses_data pointer instead
11600 of tree *. Pass pre_p as a new argument to
11601 lang_hooks.decls.omp_finish_clause hook.
11602 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11603 splay_tree_foreach to pass both list_p and pre_p.
11604 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11605 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11606 gimplify_adjust_omp_clauses callers.
11607 * langhooks.c (lhd_omp_finish_clause): New function.
11608 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11609 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11610 * langhooks.h (struct lang_hooks_for_decls): Add a new
11611 gimple_seq * argument to omp_finish_clause hook.
11612 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11613 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11614 (scan_omp_parallel, lower_omp_for): When adding
11615 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11616 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11617 * tree-nested.c (convert_nonlocal_omp_clauses,
11618 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11619 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11621 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11623 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11624 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11626 2014-06-17 Xinliang David Li <davidxl@google.com>
11628 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11629 * passes.c (pass_init_dump_file): Do not set initialize
11630 flag to false unconditionally.
11632 2014-06-17 Richard Biener <rguenther@suse.de>
11634 * genopinit.c (main): Use vec<>::qsort method.
11635 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11637 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11639 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11641 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11642 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11643 (mips_move_to_gpr_cost): Remove ST_REGS case.
11644 (mips_move_from_gpr_cost): Likewise.
11645 (mips_register_move_cost): Likewise.
11646 (mips_secondary_reload_class): Likewise.
11648 2014-06-17 Richard Biener <rguenther@suse.de>
11650 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11651 (pass_all_optimizations): Move 3rd copy-prop pass from after
11652 fre to before ifcombine/phiopt.
11654 2014-06-17 Richard Biener <rguenther@suse.de>
11656 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11657 and allow all blocks to be forwarders.
11659 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11662 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11663 variable 'size'; calculate 'size' right in the front; use
11664 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11665 pcum->aapcs_stack_words.
11667 2014-06-17 Nick Clifton <nickc@redhat.com>
11669 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11670 (umulhi3, mulsidi3, umulsidi3): Likewise.
11672 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11674 PR middle-end/61508
11675 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11676 check for section name.
11678 2014-06-17 Richard Biener <rguenther@suse.de>
11680 * tree-ssa-propagate.c: Include domwalk.h.
11681 (substitute_and_fold): Outline main worker into a domwalker ...
11682 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11683 Schedule stmts we can fully propagate for removal. Remove
11685 (substitute_and_fold): Apply a dominator walk to perform
11686 substitution. Process stmts scheduled for removal here.
11688 2014-06-17 Richard Biener <rguenther@suse.de>
11690 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11691 of PHI node moving.
11693 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11695 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11696 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11697 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11698 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11699 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11701 (get_fpscr) : Likewise.
11703 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11705 PR rtl-optimization/61325
11706 * lra-constraints.c (valid_address_p): Add forward declaration.
11707 (simplify_operand_subreg): Check address validity before and after
11708 alter_reg of memory subreg.
11710 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11712 * config/i386/i386.c (decide_alg): Correctly handle
11713 maximum size of stringop algorithm.
11715 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11717 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11719 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11721 PR rtl-optimization/61522
11722 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11724 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11727 * symtab.c (symtab_node::reset_section): New method.
11728 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11730 * cgraph.h (reset_section): Declare.
11731 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11732 do not consider comdat locals.
11733 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11735 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11736 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11737 reset sections of symbols dragged out of the comdats.
11738 (function_and_variable_visibility): Reset sections of
11741 2014-06-16 Richard Biener <rguenther@suse.de>
11743 PR tree-optimization/61482
11744 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11745 [-INF(OVF), +INF(OVF)] range.
11747 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11749 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11750 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11751 handling 32-bit multiplication.
11753 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11755 PR middle-end/61430
11756 * lra-lives.c (process_bb_lives): Skip creating copy during
11757 insn scan when src/dest has constrained to same regno.
11759 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11761 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11762 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11764 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11766 * asan.c (check_func): New function.
11767 (maybe_create_ssa_name): Likewise.
11768 (build_check_stmt_with_calls): Likewise.
11769 (use_calls_p): Likewise.
11770 (report_error_func): Change interface.
11771 (build_check_stmt): Allow non-integer lengths; add support
11773 (asan_instrument): Likewise.
11774 (instrument_mem_region_access): Moved code to build_check_stmt.
11775 (instrument_derefs): Likewise.
11776 (instrument_strlen_call): Likewise.
11777 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11778 * doc/invoke.texi: Describe new parameter.
11779 * params.def: Define new parameter.
11780 * params.h: Likewise.
11781 * sanitizer.def: Describe new builtins.
11783 2014-06-16 Richard Biener <rguenther@suse.de>
11785 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11786 Make all defs available at the end.
11787 (eliminate): If we remove a PHI node schedule cfg-cleanup.
11789 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11792 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11794 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11797 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11798 initialization. Replace remaining use of uid.
11800 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11802 * c-family/c-common.c (handle_tls_model_attribute): Use
11803 set_decl_tls_model.
11804 * c-family/c-common.c (handle_tls_model_attribute): Use
11805 set_decl_tls_model.
11806 * cgraph.h (struct varpool_node): Add tls_model.
11807 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11808 * tree.h (DECL_TLS_MODEL): Update.
11809 (DECL_THREAD_LOCAL_P): Check that variable is static.
11810 (decl_tls_model): Declare.
11811 (set_decl_tls_model): Declare.
11812 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
11813 set symbol prorperties.
11814 (get_emutls_init_templ_addr): Cleanup.
11815 (new_emutls_decl): Update.
11816 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
11817 (lto_input_varpool_node): Likewise.
11818 * lto-streamer-out.c (hash_tree): Likewise.
11819 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11820 not stream DECL_TLS_MODEL.
11821 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
11822 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
11824 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11826 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
11828 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11830 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
11831 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
11833 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
11834 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
11835 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
11836 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
11837 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
11838 (df_get_artificial_defs, df_get_artificial_uses)
11839 (df_single_def, df_single_use): Update accordingly.
11840 (df_refs_chain_dump): Take the first element in a linked list as
11841 parameter, rather than a pointer to an array of pointers.
11842 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
11843 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
11844 (df_chain_create_bb_process_use): Likewise.
11845 (df_md_bb_local_compute_process_def): Likewise.
11846 * fwprop.c (process_defs, process_uses): Likewise.
11847 (register_active_defs, update_uses): Likewise.
11848 (forward_propagate_asm): Update for new df_ref linking.
11849 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
11850 (df_null_ref_rec, df_null_mw_rec): Likewise.
11851 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
11853 (df_scan_free_bb_info): Remove check for null artificial_defs.
11854 (df_install_ref_incremental): Adjust for new df_ref linking.
11855 Use a single-element insertion rather than a full sort.
11856 (df_ref_chain_delete_du_chain): Take the first element
11857 in a linked list as parameter, rather than a pointer to an array of
11859 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
11860 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
11861 (df_insn_info_delete): Remove check for null defs and call to
11862 df_scan_free_mws_vec.
11863 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
11864 null rather than df_null_*_rec.
11865 (df_insn_rescan_debug_internal): Likewise, and update null
11866 checks in the same way. Remove check for null defs.
11867 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
11868 Move a single element rather doing a full sort.
11869 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
11871 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
11872 Initialize df_ref and df_mw_hardreg lists to null rather than
11874 (df_ref_compare): Take df_refs as parameter, transferring the
11875 old interface to...
11876 (df_ref_ptr_compare): ...this new function.
11877 (df_sort_and_compress_refs): Update accordingly.
11878 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
11879 old interface to...
11880 (df_mw_ptr_compare): ...this new function.
11881 (df_sort_and_compress_mws): Update accordingly.
11882 (df_install_refs, df_install_mws): Return a linked list rather than
11883 an array of pointers.
11884 (df_refs_add_to_chains): Assert that old lists are empty rather
11886 (df_insn_refs_verify): Don't handle null defs speciailly.
11887 * web.c (union_match_dups): Update for new df_ref linking.
11889 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11891 * df.h (df_ref_create, df_ref_remove): Delete.
11892 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
11893 (df_ref_remove): Likewise.
11895 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11897 * df.h (df_single_def, df_single_use): New functions.
11898 * ira.c (find_moveable_pseudos): Use them.
11900 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11902 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
11903 * df-problems.c (df_note_bb_compute): Use it.
11904 * regstat.c (regstat_bb_compute_ri): Likewise.
11906 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11908 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
11909 * cse.c (cse_extended_basic_block): Use them.
11910 * dce.c (mark_artificial_use): Likewise.
11911 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
11912 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11913 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
11914 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
11915 (df_simulate_initialize_backwards): Likewise.
11916 (df_simulate_finalize_backwards): Likewise.
11917 (df_simulate_initialize_forwards): Likewise.
11918 (df_md_simulate_artificial_defs_at_top): Likewise.
11919 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11920 * regrename.c (init_rename_info): Likewise.
11921 * regstat.c (regstat_bb_compute_ri): Likewise.
11922 (regstat_bb_compute_calls_crossed): Likewise.
11924 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11926 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
11927 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
11928 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
11929 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
11930 * combine.c (create_log_links): Likewise.
11931 * compare-elim.c (find_flags_uses_in_insn): Likewise.
11932 (try_eliminate_compare): Likewise.
11933 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
11934 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
11935 (remove_reg_equal_equiv_notes_for_defs): Likewise.
11936 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
11937 (word_dce_process_block, dce_process_block): Likewise.
11938 * ddg.c (def_has_ccmode_p): Likewise.
11939 * df-core.c (df_bb_regno_first_def_find): Likewise.
11940 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
11941 * df-problems.c (df_rd_simulate_one_insn): Likewise.
11942 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11943 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
11944 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
11945 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
11946 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
11947 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
11948 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
11949 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
11950 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11951 * fwprop.c (local_ref_killed_between_p): Likewise.
11952 (all_uses_available_at, free_load_extend): Likewise.
11953 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
11954 * hw-doloop.c (scan_loop): Likewise.
11955 * ifcvt.c (dead_or_predicable): Likewise.
11956 * init-regs.c (initialize_uninitialized_regs): Likewise.
11957 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
11958 (process_bb_node_lives): Likewise.
11959 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
11960 (find_moveable_pseudos): Likewise.
11961 * loop-invariant.c (check_dependencies, record_uses): Likewise.
11962 * recog.c (peep2_find_free_register): Likewise.
11963 * ree.c (get_defs): Likewise.
11964 * regstat.c (regstat_bb_compute_ri): Likewise.
11965 (regstat_bb_compute_calls_crossed): Likewise.
11966 * sched-deps.c (find_inc, find_mem): Likewise.
11967 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
11968 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
11969 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11970 (prepare_shrink_wrap): Likewise.
11971 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
11972 * web.c (union_defs, pass_web::execute): Likewise.
11973 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
11974 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
11976 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
11978 * lra-assign.c (assign_by_spills): Add code to assign vector regs
11979 to inheritance pseudos.
11980 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
11982 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
11985 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
11986 (BU_MISC_2): Rename to ...
11987 (BU_LDBL128_2): ... this.
11988 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
11989 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
11990 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
11991 RS6000_BTM_LDBL128.
11992 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
11993 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
11994 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
11995 (unpacktf_1): Likewise.
11996 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
11997 (__builtin_longdouble_dw1): Likewise.
11998 * doc/sourcebuild.texi (longdouble128): Document.
12000 2014-06-13 Jeff Law <law@redhat.com>
12002 PR rtl-optimization/61094
12003 PR rtl-optimization/61446
12004 * ree.c (combine_reaching_defs): Get the mode for the copy from
12005 the extension insn rather than the defining insn.
12007 2014-06-13 Dehao Chen <dehao@google.com>
12009 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12011 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12013 * doc/install.texi (--enable-linker-plugin-configure-flags)
12014 (--enable-linker-plugin-flags): Document new flags.
12016 2014-06-13 Martin Jambor <mjambor@suse.cz>
12019 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12020 cache_token if returning early.
12022 2014-06-13 Nick Clifton <nickc@redhat.com>
12024 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12025 requested alignment is active.
12026 (LABEL_ALIGN): Likewise.
12027 (LOOP_ALIGN): Likewise.
12029 2014-06-13 Richard Biener <rguenther@suse.de>
12031 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12032 Rewrite to propagate the VN result into all uses where
12033 possible and to remove stmts becoming dead because of that.
12034 (eliminate): Generalize stmt removal handling, remove in
12035 reverse dominator order to support proper debug stmt
12036 generation. Update stmts before removing stmts.
12037 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12039 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12041 PR tree-optimization/61375
12042 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12043 symbolic number cannot be represented in an uint64_t.
12044 (find_bswap_or_nop_1): Likewise.
12046 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12048 * symtab.c (symtab_node::reset_section): New method.
12049 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12051 * cgraph.h (reset_section): Declare.
12052 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12053 do not consider comdat locals.
12054 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12056 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12057 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12058 reset sections of symbols dragged out of the comdats.
12059 (function_and_variable_visibility): Reset sections of
12062 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12064 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12065 to use symtab and decl_binds_to_current_def_p
12066 * tree-vectorizer.c (increase_alignment): Increase alignment
12067 of alias target, too.
12069 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12071 PR middle-end/61486
12072 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12073 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12074 if outer combined construct is distribute.
12075 (gimplify_omp_for): For OMP_DISTRIBUTE set
12076 gimplify_omp_ctxp->distribute.
12077 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12078 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12079 mapping into decl map.
12081 2014-06-12 Jason Merrill <jason@redhat.com>
12083 * common.opt (fabi-version): Change default to 0.
12085 2014-06-12 Jason Merrill <jason@redhat.com>
12087 * toplev.c (process_options): Reject -fabi-version=1.
12089 2014-06-12 Jeff Law <law@redhat.com>
12091 PR tree-optimization/61009
12092 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12093 value when we stop processing a block due to problematic PHIs.
12095 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12097 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12098 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12099 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12100 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12101 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12102 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12103 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12104 are not in the spec.
12106 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12109 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12110 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12113 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12115 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12117 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12120 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12121 loading from address spaces.
12123 2014-06-12 Martin Liska <mliska@suse.cz>
12126 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12127 statement is reachable.
12129 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12131 * symtab.c (section_hash): New hash.
12132 (symtab_unregister_node): Clear section before freeing.
12133 (hash_section_hash_entry): New haser.
12134 (eq_sections): New function.
12135 (symtab_node::set_section_for_node): New method.
12136 (set_section_1): Update.
12137 (symtab_node::set_section): Take string instead of tree as parameter.
12138 (symtab_resolve_alias): Update.
12139 * cgraph.h (section_hash_entry_d): New structure.
12140 (section_hash_entry): New typedef.
12141 (cgraph_node): Change comdat_group_ to x_comdat_group,
12142 change section_ to x_section and turn into section_hash_entry;
12143 update accestors; put set_section_for_node offline.
12144 * tree.c (decl_section_name): Turn into string.
12145 (set_decl_section_name): Change parameter to be string.
12146 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12147 * sdbout.c (sdbout_one_type): Update.
12148 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12149 * varasm.c (IN_NAMED_SECTION, get_named_section,
12150 resolve_unique_section, hot_function_section, get_named_text_section,
12151 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12152 make_decl_rtl, default_unique_section): Update.
12153 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12154 (c6x_elf_unique_section): Update.
12155 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12156 * config/pa/pa.c (pa_function_section): Update.
12157 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12158 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12159 * config/arc/arc.c (arc_in_small_data_p): Update.
12160 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12161 * config/mcore/mcore.c (mcore_unique_section): Update.
12162 * config/mips/mips.c (mips16_build_function_stub): Update.
12163 (mips16_build_call_stub): Update.
12164 (mips_function_rodata_section): Update.
12165 (mips_in_small_data_p): Update.
12166 * config/score/score.c (score_in_small_data_p): Update.
12167 * config/rx/rx.c (rx_in_small_data): Update.
12168 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12169 (rs6000_xcoff_asm_named_section): Update.
12170 (rs6000_xcoff_unique_section): Update.
12171 * config/frv/frv.c (frv_string_begins_with): Update.
12172 (frv_in_small_data_p): Update.
12173 * config/v850/v850.c (v850_encode_data_area): Update.
12174 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12175 (bfin_handle_l1_data_attribute): Update.
12176 (bfin_handle_l2_attribute): Update.
12177 * config/mep/mep.c (mep_unique_section): Update.
12178 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12180 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12181 (h8300_handle_tiny_data_attribute): Update.
12182 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12183 (m32r_in_small_data_p): Update.
12184 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12185 * config/i386/i386.c (ix86_in_large_data_p): Update.
12186 * config/i386/winnt.c (i386_pe_unique_section): Update.
12187 * config/darwin.c (darwin_function_section): Update.
12188 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12189 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12190 (new_emutls_decl): Update.
12191 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12192 input_varpool_node): Update.
12193 (ead_string_cst): Turn to ...
12194 (read_string): ... this one.
12195 * dwarf2out.c (secname_for_decl): Update.
12196 * asan.c (asan_protect_global): Update.
12198 2014-06-11 DJ Delorie <dj@redhat.com>
12200 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12202 * config/rx/rx.c (rx_option_override): Likewise.
12203 (rx_align_for_label): Likewise.
12205 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12207 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12209 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12212 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12214 * common.md: New file.
12215 * doc/md.texi: Update description of generic, machine-independent
12217 * config/s390/constraints.md (e): Delete.
12218 * Makefile.in (md_file): Include common.md.
12219 * config/m32c/t-m32c (md_file): Likewise.
12220 * genpreds.c (general_mem): New array.
12221 (generic_constraint_letters): Remove constraints now defined by
12223 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12224 Allow the first character to be '<' or '>' as well.
12225 * genoutput.c (general_mem): New array.
12226 (indep_constraints): Remove constraints now defined by common.md.
12227 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12228 Remove special handling of 'm'.
12229 * ira-costs.c (record_reg_classes): Remove special handling of
12230 constraints now defined by common.md.
12231 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12232 * ira-lives.c (single_reg_class): Likewise.
12233 (ira_implicitly_set_insn_hard_regs): Likewise.
12234 * lra-constraints.c (reg_class_from_constraints): Likewise.
12235 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12236 * postreload.c (reload_cse_simplify_operands): Likewise.
12237 * reload.c (push_secondary_reload, scratch_reload_class)
12238 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12239 * reload1.c (maybe_fix_stack_asms): Likewise.
12240 * targhooks.c (default_secondary_reload): Likewise.
12241 * stmt.c (parse_output_constraint): Likewise.
12242 * recog.c (preprocess_constraints): Likewise.
12243 (constrain_operands, peep2_find_free_register): Likewise.
12244 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12245 must be handled specially.
12247 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12249 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12250 * genpreds.c (have_const_dbl_constraints): Delete.
12251 (add_constraint): Don't set it.
12252 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12253 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12254 constraints using the lookup_constraint logic.
12255 * ira-lives.c (single_reg_class): Likewise.
12256 * ira.c (ira_setup_alts): Likewise.
12257 * lra-constraints.c (process_alt_operands): Likewise.
12258 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12259 * reload.c (find_reloads): Likewise.
12261 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12263 * genpreds.c (const_int_start, const_int_end): New variables.
12264 (choose_enum_order): Output CONST_INT constraints before memory
12266 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12268 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12269 * ira.c (ira_setup_alts): Likewise.
12270 * lra-constraints.c (process_alt_operands): Likewise.
12271 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12272 * reload.c (find_reloads): Likewise.
12274 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12276 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12277 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12278 * recog.c (preprocess_constraints): Update accordingly.
12280 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12282 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12283 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12284 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12285 * genpreds.c (print_type_tree): New function.
12286 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12287 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12288 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12289 Write out enum constraint_type and get_constraint_type.
12290 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12291 constraint_num rather than a constraint string.
12292 (satisfies_address_constraint_p): Likewise.
12293 (reg_class_from_constraints): Avoid old constraint macros.
12294 (process_alt_operands, process_address_1): Likewise.
12295 (curr_insn_transform): Likewise.
12296 * ira-costs.c (record_reg_classes): Likewise.
12297 (record_operand_costs): Likewise.
12298 * ira-lives.c (single_reg_class): Likewise.
12299 (ira_implicitly_set_insn_hard_regs): Likewise.
12300 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12301 * postreload.c (reload_cse_simplify_operands): Likewise.
12302 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12303 (constrain_operands, peep2_find_free_register): Likewise.
12304 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12305 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12306 * reload1.c (maybe_fix_stack_asms): Likewise.
12307 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12308 * targhooks.c (default_secondary_reload): Likewise.
12309 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12310 to EXTRA_CONSTRAINT_STR.
12311 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12313 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12315 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12316 (write_constraint_satisfied_p_array): ...this new function.
12317 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12319 (write_insn_preds_c): Update accordingly.
12321 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12323 * genpreds.c (write_lookup_constraint): Rename to...
12324 (write_lookup_constraint_1): ...this.
12325 (write_lookup_constraint_array): New function.
12326 (write_tm_preds_h): Define lookup_constraint as an inline function
12327 that uses write_lookup_constraint_array where possible.
12328 (write_insn_preds_c): Update for the changes above.
12330 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12332 * doc/md.texi (regclass_for_constraint): Rename to...
12333 (reg_class_for_constraint): ...this.
12334 * genpreds.c (num_constraints, enum_order, register_start)
12335 (register_end, satisfied_start, memory_start, memory_end)
12336 (address_start, address_end): New variables.
12337 (add_constraint): Count the number of constraints.
12338 (choose_enum_order): New function.
12339 (write_enum_constraint_num): Iterate over enum_order.
12340 (write_regclass_for_constraint): Rename to...
12341 (write_reg_class_for_constraint_1): ...this and update output
12343 (write_constraint_satisfied_p): Rename to...
12344 (write_constraint_satisfied_p_1): ...this and update output
12345 accordingly. Do nothing if all extra constraints are register
12347 (write_insn_extra_memory_constraint): Delete.
12348 (write_insn_extra_address_constraint): Delete.
12349 (write_range_function): New function.
12350 (write_tm_preds_h): Define constraint_satisfied_p and
12351 reg_class_for_constraint as inline functions that do a range check
12352 before calling the out-of-line function. Use write_range_function
12353 to implement insn_extra_{register,memory,address}_constraint,
12354 the first of which is new.
12355 (write_insn_preds_c): Update after above changes to write_* functions.
12356 (main): Call choose_enum_order.
12358 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12360 PR tree-optimization/61306
12361 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12362 expression instead of its size.
12363 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12364 false to prevent optimization when the result is unpredictable due to
12365 arithmetic right shift of signed type with highest byte is set.
12366 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12367 (init_symbolic_number): Likewise.
12368 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12369 when the result is unpredictable due to sign extension.
12371 2014-06-11 Terry Guo <terry.guo@arm.com>
12373 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12374 (*thumb1_addsi3): Ditto.
12375 (*thumb_subdi3): Ditto.
12376 (thumb1_subsi3_insn): Ditto.
12377 (*thumb_mulsi3): Ditto.
12378 (*thumb_mulsi3_v6): Ditto.
12379 (*thumb1_andsi3_insn): Ditto.
12380 (thumb1_bicsi3): Ditto.
12381 (*thumb1_iorsi3_insn): Ditto.
12382 (*thumb1_xorsi3_insn): Ditto.
12383 (*thumb1_ashlsi3): Ditto.
12384 (*thumb1_ashrsi3): Ditto.
12385 (*thumb1_lshrsi3): Ditto.
12386 (*thumb1_rotrsi3): Ditto.
12387 (*thumb1_negdi2): Ditto.
12388 (*thumb1_negsi2): Ditto.
12389 (*thumb1_abssi2): Ditto.
12390 (*thumb1_neg_abssi2): Ditto.
12391 (*thumb1_one_cmplsi2): Ditto.
12392 (*thumb1_zero_extendhisi2): Ditto.
12393 (*thumb1_zero_extendqisi2): Ditto.
12394 (*thumb1_zero_extendqisi2_v6): Ditto.
12395 (thumb1_extendhisi2): Ditto.
12396 (thumb1_extendqisi2): Ditto.
12397 (*thumb1_movdi_insn): Ditto.
12398 (*thumb1_movsi_insn): Ditto.
12399 (*thumb1_movhi_insn): Ditto.
12400 (thumb_movhi_clobber): Ditto.
12401 (*thumb1_movqi_insn): Ditto.
12402 (*thumb1_movhf): Ditto.
12403 (*thumb1_movsf_insn): Ditto.
12404 (*thumb_movdf_insn): Ditto.
12405 (movmem12b): Ditto.
12407 (cbranchqi4): Ditto.
12408 (cbranchsi4_insn): Ditto.
12409 (cbranchsi4_scratch): Ditto.
12410 (*negated_cbranchsi4): Ditto.
12411 (*tbit_cbranch): Ditto.
12412 (*tlobits_cbranch): Ditto.
12413 (*tstsi3_cbranch): Ditto.
12414 (*cbranchne_decr1): Ditto.
12415 (*addsi3_cbranch): Ditto.
12416 (*addsi3_cbranch_scratch): Ditto.
12417 (*thumb_cmpdi_zero): Ditto.
12418 (cstoresi_eq0_thumb1): Ditto.
12419 (cstoresi_ne0_thumb1): Ditto.
12420 (*cstoresi_eq0_thumb1_insn): Ditto.
12421 (*cstoresi_ne0_thumb1_insn): Ditto.
12422 (cstoresi_nltu_thumb1): Ditto.
12423 (cstoresi_ltu_thumb1): Ditto.
12424 (thumb1_addsi3_addgeu): Ditto.
12425 (*thumb_jump): Ditto.
12426 (*call_reg_thumb1_v5): Ditto.
12427 (*call_reg_thumb1): Ditto.
12428 (*call_value_reg_thumb1_v5): Ditto.
12429 (*call_value_reg_thumb1): Ditto.
12430 (*call_insn): Ditto.
12431 (*call_value_insn): Ditto.
12432 (thumb1_casesi_internal_pic): Ditto.
12433 (thumb1_casesi_dispatch): Ditto.
12434 (*thumb1_indirect_jump): Ditto.
12435 (prologue_thumb1_interwork): Ditto.
12436 (*epilogue_insns): Ditto.
12437 (consttable_1): Ditto.
12438 (consttable_2): Ditto.
12439 (tablejump): Ditto.
12440 (*thumb1_tablejump): Ditto.
12441 (thumb_eh_return): Ditto.
12442 (define_peephole2): Two of them are thumb1 only and got moved into
12443 new file thumb1.md.
12444 (define_split): Six of them are thumb1 only and got moved into new
12446 * config/arm/thumb1.md: New file comprised of above thumb1 only
12449 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12451 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12452 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12454 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12455 (aarch64_crc_builtin_datum): New struct.
12456 (aarch64_crc_builtin_data): New.
12457 (aarch64_init_crc32_builtins): New function.
12458 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12459 (aarch64_crc32_expand_builtin): New.
12460 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12461 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12462 __ARM_FEATURE_CRC32 when appropriate.
12463 (TARGET_CRC32): Define.
12464 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12465 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12466 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12467 (aarch64_<crc_variant>): New pattern.
12468 * config/aarch64/arm_acle.h: New file.
12469 * config/aarch64/iterators.md (CRC): New int iterator.
12470 (crc_variant, crc_mode): New int attributes.
12471 * doc/aarch64-acle-intrinsics.texi: New file.
12472 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12473 Include aarch64-acle-intrinsics.texi.
12475 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12477 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12478 check for stores group of length 3.
12479 (vect_permute_store_chain): New permutations for stores group of
12481 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12482 of vec_perm_shuffle for the new permutations.
12484 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12486 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12487 table rewriting temporarily on targets not supporting ONE_ONLY.
12489 2014-06-11 Richard Biener <rguenther@suse.de>
12491 PR middle-end/61437
12493 2014-06-04 Richard Biener <rguenther@suse.de>
12495 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12496 TREE_PUBLIC and DECL_EXTERNAL decls.
12498 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12500 * varasm.c (set_implicit_section): New function.
12501 (resolve_unique_section): Use it to set implicit section
12503 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12504 (default_function_section): Likewise.
12505 (decl_binds_to_current_def_p): Constify argument.
12506 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12507 * asan.c (asan_protect_global): Use
12508 symtab_get_node (decl)->implicit_section.
12509 * symtab.c (dump_symtab_base): Dump implicit sections.
12510 (verify_symtab_base): Verify sanity of sectoins and comdats.
12511 (symtab_resolve_alias): Alias share the section of its target.
12512 (set_section_1): New function.
12513 (symtab_node::set_section): Move here, recurse to aliases.
12514 (verify_symtab): Check for duplicated symtab lists.
12515 * tree-core.h (implicit_section_name_p): Remove.
12516 * tree-vect-data-refs.c: Include varasm.h.
12517 (vect_can_force_dr_alignment_p): Fix conditional on when
12518 decl bints to current definition; use
12519 symtab_get_node (decl)->implicit_section.
12520 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12521 * cgraph.h (struct symtab_node): Add implicit_section.
12522 (set_section): Rename to ...
12523 (set_section_for_node): ... this one.
12524 (set_section): Declare.
12525 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12526 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12527 input_overwrite_node, input_varpool_node): Stream implicit_section.
12528 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12529 removal; it will fail in LTO.
12531 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12533 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12534 Change second alternative type to f_mcr.
12535 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12536 and 12th alternatives' types to f_mcr and f_mrc.
12537 (*movdi_aarch64): Same for 12th and 13th alternatives.
12538 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12539 (aarch64_movtilow_tilow): Change type to fmov.
12541 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12543 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12544 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12546 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12548 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12550 (aarch64_sqrdmulh_lane<mode>): Likewise.
12551 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12552 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12553 (aarch64_sqdmulh_laneq<mode>): New expander.
12554 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12555 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12556 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12557 (aarch64_sqdmulh_lane<mode>): New expander.
12558 (aarch64_sqrdmulh_lane<mode>): Likewise.
12559 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12560 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12561 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12562 (aarch64_sqdmlal_laneq<mode>): Likewise.
12563 (aarch64_sqdmlsl_lane<mode>): Likewise.
12564 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12565 (aarch64_sqdmlal2_lane<mode>): Likewise.
12566 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12567 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12568 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12569 (aarch64_sqdmull_lane<mode>): Likewise.
12570 (aarch64_sqdmull_laneq<mode>): Likewise.
12571 (aarch64_sqdmull2_lane<mode>): Likewise.
12572 (aarch64_sqdmull2_laneq<mode>): Likewise.
12574 2014-06-10 Richard Biener <rguenther@suse.de>
12576 PR tree-optimization/61438
12577 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12578 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12579 insertion of IVs if running PRE.
12580 (eliminate): Adjust.
12581 (pass_pre::execute): Likewise.
12582 (pass_fre::execute): Likewise.
12584 2014-06-10 Richard Biener <rguenther@suse.de>
12586 PR middle-end/61456
12587 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12588 Do not use the main variant for the type comparison.
12589 (ncr_compar): Likewise.
12590 (nonoverlapping_component_refs_p): Likewise.
12592 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12594 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12595 REG_CFA_RESTORE mode.
12597 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12599 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12600 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12601 expand_vec_perm_pblendv.
12603 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12605 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12607 Simplify description of __crc32d and __crc32cd intrinsics.
12608 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12611 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12614 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12615 * config.in: Regenerate.
12616 * configure: Likewise.
12618 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12620 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12622 (intersect_static_var_sets): Remove.
12623 (propagate): Do not prune local statics.
12625 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12628 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12629 Set lastprivate_firstprivate even if omp_private_outer_ref
12630 langhook returns true.
12631 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12632 langhook, call unshare_expr on new_var and call
12633 build_outer_var_ref to get the last argument.
12635 2014-06-10 Marek Polacek <polacek@redhat.com>
12638 * doc/extend.texi: Add cindex for transparent_union.
12640 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12642 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12643 init_symbolic_number ().
12645 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12647 PR middle-end/61141
12648 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12649 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12650 (verify_rtl_sharing): Likewise.
12652 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12655 * tree.c (build_qualified_type): Use a canonical type for
12658 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12660 * config/arm/arm-modes.def: Remove XFmode.
12662 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12665 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12666 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12667 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12668 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12669 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12670 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12671 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12672 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12673 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12675 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12677 * tree-core.h (tree_decl_with_vis): Remove section_name.
12679 2014-06-09 Kito Cheng <kito@0xlab.org>
12681 * ira.c (ira): Don't call init_caller_save if LRA enabled
12682 since LRA use its own infrastructure to handle that.
12684 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12686 * symtab.c (dump_symtab_base): Update dumping.
12687 (symtab_make_decl_local): Clear only DECL_COMDAT.
12688 * tree-vect-data-refs.c (Check that variable is static before
12689 tampering with sections.
12690 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12691 (cgraph_create_virtual_clone): Likewise.
12692 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12693 (decl_section_name, set_decl_section_name): New accessors.
12694 (find_decls_types_r): Do not walk section name
12695 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12696 (decl_comdat_group, decl_comdat_group_id): Constify.
12697 (decl_section_name, set_decl_section_name): Update.
12698 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12699 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12700 (cgraph_make_node_local_1): Clear section and comdat group.
12701 * cgraph.h (set_comdat_group): Sanity check.
12702 (get_section, set_section): New.
12703 * ipa-comdats.c (ipa_comdats): Use get_section.
12704 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12705 * lto-streamer-out.c: Do not follow section names.
12706 * c-family/c-common.c (handle_section_attribute): Update.
12707 * lto-cgraph.c (lto_output_node): Output section.
12708 (lto_output_varpool_node): Likewise.
12709 (read_comdat_group): Rename to ...
12710 (read_identifier): ... this one.
12711 (read_string_cst): New function.
12712 (input_node, input_varpool_node): Input section names.
12713 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12714 (new_emutls_decl): Update.
12715 (secname_for_decl): Check section names only of static vars.
12716 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12717 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12718 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12719 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12720 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12721 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12722 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12723 * config/v850/v850.c (v850_insert_attributes): Likewise.
12724 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12726 (h8300_handle_tiny_data_attribute): Likewise.
12727 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12728 (bfin_handle_l2_attribute): Likewise.
12730 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12732 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12733 remove static initializer.
12735 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12737 * varasm.c (use_blocks_for_decl_p): Check symbol table
12738 instead of alias attribute.
12739 (place_block_symbol): Recurse on aliases.
12741 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12743 * ipa-visibility.c: Include varasm.h
12744 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12746 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12748 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12749 outputting aliases.
12751 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12753 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12754 from test_insn into GGC space escape via SET_SRC.
12756 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12758 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12759 call statement, if any.
12760 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12761 statements, if any. Tidy up.
12763 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12766 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12767 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12768 handles swapping the two 64-bit double words on little endian
12769 systems. Include V1TImode and optionally TImode in VSX_LE so that
12770 these types are properly swapped. Change all of the insns and
12771 splits that do the 64-bit swaps to use VSX_LE.
12772 (vsx_le_perm_load_<mode>): Likewise.
12773 (vsx_le_perm_store_<mode>): Likewise.
12774 (splitters for little endian memory operations): Likewise.
12775 (vsx_xxpermdi2_le_<mode>): Likewise.
12776 (vsx_lxvd2x2_le_<mode>): Likewise.
12777 (vsx_stxvd2x2_le_<mode>): Likewise.
12779 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12782 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12783 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12784 and corresponding splitters. Zero extend general register
12785 or memory input operand to XMM temporary. Enable for
12786 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12787 (floatunssi<mode>2): Update expander predicate.
12789 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
12791 PR rtl-optimization/61325
12792 * lra-constraints.c (process_address_1): Check scale equal to one
12793 to prevent transformation: base + scale * index => base + new_reg.
12795 2014-06-06 Richard Biener <rguenther@suse.de>
12797 PR tree-optimization/59299
12798 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12800 (nearest_common_dominator_of_uses): Likewise.
12801 (statement_sink_location): Adjust. Support sinking loads.
12803 2014-06-06 Martin Jambor <mjambor@suse.cz>
12805 * ipa-prop.c (get_place_in_agg_contents_list): New function.
12806 (build_agg_jump_func_from_list): Likewise.
12807 (determine_known_aggregate_parts): Renamed to
12808 determine_locally_known_aggregate_parts. Moved some functionality
12809 to the two functions above, removed bound checks.
12811 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
12813 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
12814 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
12815 (aarch64_progress_pointer): Likewise.
12816 (aarch64_copy_one_part_and_move_pointers): Likewise.
12817 (aarch64_expand_movmen): Likewise.
12818 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
12819 * config/aarch64/aarch64.md (movmem<mode>): New.
12821 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
12823 * targhooks.c (default_add_stmt_cost): Call target specific
12824 hook instead of default one.
12826 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12828 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
12829 endianness instead of host endianness.
12830 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
12833 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12836 * function.c (instantiate_decls): Process the saved static chain.
12837 (expand_function_start): If not optimizing, save the static chain
12839 * tree-nested.c (convert_all_function_calls): Always create the static
12840 chain for nested functions if not optimizing.
12842 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12844 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
12846 2014-06-06 Richard Biener <rguenther@suse.de>
12848 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
12849 (construct_init_block): Likewise.
12850 (construct_exit_block): Likewise.
12851 (pass_expand::execute): Likewise.
12852 * graphite.c (graphite_transforms): Replace check for current_loops
12853 with a check for > 1 loops.
12854 (pass_graphite_transforms::execute): Adjust.
12855 * ipa-split.c (split_function): Remove check for current_loops.
12856 * omp-low.c (expand_parallel_call): Likewise.
12857 (expand_omp_for_init_counts): Likewise.
12858 (extract_omp_for_update_vars): Likewise.
12859 (expand_omp_for_generic): Likewise.
12860 (expand_omp_sections): Likewise.
12861 (expand_omp_target): Likewise.
12862 * tracer.c (tail_duplicate): Likewise.
12863 (pass_tracer::execute): Likewise.
12864 * trans-mem.c (expand_transaction): Likewise.
12865 * tree-complex.c (expand_complex_div_wide): Likewise.
12866 * tree-eh.c (lower_resx): Likewise.
12867 (cleanup_empty_eh_merge_phis): Likewise.
12868 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
12869 current_loops with a check for > 1 loops.
12870 (pass_predcom::execute): Adjust.
12871 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
12872 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
12873 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
12874 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
12875 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12876 * tree-switch-conversion.c (process_switch): Likewise.
12877 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12878 * tree-vrp.c (vrp_visit_phi_node): Likewise.
12879 (execute_vrp): Likewise.
12880 * ubsan.c (ubsan_expand_null_ifn): Likewise.
12882 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12884 * rtl.h (insn_location): Declare.
12885 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
12886 with UNKNOWN_LOCATION.
12887 * emit-rtl.c (insn_location): New function.
12888 * final.c (notice_source_line): Check that the instruction has a
12889 location before retrieving it and use insn_location.
12890 * modulo-sched.c (loop_single_full_bb_p): Likewise.
12891 * print-rtl.c (print_rtx): Likewise.
12893 2014-06-06 Richard Biener <rguenther@suse.de>
12895 * passes.def: Move 2nd VRP pass before phi-only-cprop.
12897 2014-06-06 Christian Bruel <christian.bruel@st.com>
12899 PR tree-optimization/43934
12900 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
12903 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
12905 * ira-lives.c (single_reg_class): Add missing break. Explicitly
12906 return NO_REGS for extra address and memory constraints. Handle
12907 operands that match (or are equivalent to something that matches)
12908 extra constant constraints. Ignore other non-register operands.
12910 2014-06-06 Alan Modra <amodra@gmail.com>
12913 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
12914 * doc/tm.texi: Regenerate.
12915 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
12916 Use throughout in place of REG_PARM_STACK_SPACE.
12917 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
12918 "incoming" param. Pass to rs6000_function_parms_need_stack.
12919 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
12920 prototype_p when incoming. Use function decl when incoming
12921 to handle K&R style functions.
12922 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
12923 (INCOMING_REG_PARM_STACK_SPACE): Define.
12925 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12928 * cfgexpand.c (expand_debug_expr): Use address space of nested
12929 TREE_TYPE for ADDR_EXPR and MEM_REF.
12931 2014-06-05 Jeff Law <law@redhat.com>
12933 PR tree-optimization/61289
12934 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
12935 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
12936 looking for those which match LHS. All callers changed.
12937 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
12938 parameters and code which manipulated them. All callers changed.
12939 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
12940 and DST_MAP parameters. Simplify invalidation code by just calling
12941 invalidate_equivalences. All callers changed.
12942 (thread_across_edge): Simplify now that we don't need to maintain
12943 the map of equivalences to invalidate.
12945 2014-06-05 Kai Tietz <ktietz@redhat.com>
12946 Richard Henderson <rth@redhat.com>
12949 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
12950 checking for !TARGET_X32.
12951 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
12952 (sibcall_intern): New define_insn, plus required peepholes.
12953 (sibcall_pop_intern): Likewise.
12954 (sibcall_value_intern): Likewise.
12955 (sibcall_value_pop_intern): Likewise.
12957 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
12959 * tree-inline.c (tree_function_versioning): Check DF info existence
12960 before accessing it.
12962 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12964 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
12966 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
12967 aarch64_frame hard_fp_offset and frame_size.
12968 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
12969 frame_size; remove original_frame_size.
12970 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
12971 (aarch64_initial_elimination_offset): Remove frame_size and
12972 offset. Use aarch64_frame frame_size.
12974 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12975 Jiong Wang <jiong.wang@arm.com>
12976 Renlin <renlin.li@arm.com>
12978 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
12979 initialization of R30 offset. Update offset. Iterate core
12980 regisers upto X30. Remove X29, X30 specific code.
12982 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12983 Jiong Wang <jiong.wang@arm.com>
12985 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
12986 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
12987 (aarch64_register_saved_on_entry): Adjust test.
12989 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12991 * config/aarch64/aarch64.h (machine_function): Move
12992 saved_varargs_size from here...
12993 (aarch64_frame): ... to here.
12995 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12996 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
12997 (aarch64_initial_elimination_offset)
12998 (aarch64_setup_incoming_varargs): Adjust location of
12999 saved_varargs_size.
13001 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13003 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13006 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13007 Prachi Godbole <Prachi.Godbole@imgtec.com>
13009 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13010 mips32r5 entry to use PROCESSOR_P5600.
13011 * config/mips/mips-tables.opt: Regenerate.
13012 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13013 * config/mips/mips.c (mips_fmadd_bypass): New function.
13014 (mips_rtx_cost_data): Add costs for p5600.
13015 (mips_issue_rate): Add support for p5600.
13016 (mips_multipass_dfa_lookahead): Likewise.
13017 * config/mips/mips.h (TUNE_P5600): New define.
13018 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13019 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13020 * config/mips/mips.md: Include p5600.md.
13021 (processor): Add p5600.
13022 * config/mips/p5600.md: New file.
13024 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13026 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13027 * config/i386/predicates.md (palignr_operand): New.
13028 Indicates if permutation is suitable for palignr instruction.
13030 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13032 PR tree-optimization/61319
13033 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13034 stmt belongs to loop.
13036 2014-06-05 Richard Biener <rguenther@suse.de>
13038 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13039 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13040 (lookup_tmp_var): Adjust.
13041 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13043 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13045 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13047 2014-06-05 Marek Polacek <polacek@redhat.com>
13050 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13052 2014-06-04 Tom de Vries <tom@codesourcery.com>
13054 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13057 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13059 PR tree-optimization/61385
13060 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13062 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13064 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13065 changed to use fatal_error.
13066 (main): Ensure lto_wrapper_cleanup is run atexit.
13068 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13070 * lra-constraints.c (valid_address_p): Move earlier in file.
13071 (address_eliminator): New structure.
13072 (satisfies_memory_constraint_p): New function.
13073 (satisfies_address_constraint_p): Likewise.
13074 (process_alt_operands, process_address, curr_insn_transform): Use them.
13076 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13078 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13080 (target_lra_int, default_target_lra_int, this_target_lra_int)
13081 (op_alt_data): Delete.
13082 * lra.h (lra_init): Delete.
13083 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13084 (init_insn_code_data_once): Remove op_alt_data handling.
13085 (finish_insn_code_data_once): Likewise.
13086 (init_op_alt_data): Delete.
13087 (get_static_insn_data): Initialize operand_alternative to null.
13088 (free_insn_recog_data): Cast operand_alternative before freeing it.
13089 (setup_operand_alternative): Take the operand_alternative as
13090 parameter and assume it isn't already cached in the static
13092 (lra_set_insn_recog_data): Update accordingly.
13093 (lra_init): Delete.
13094 * ira.c (ira_init): Don't call lra_init.
13095 * target-globals.h (this_target_lra_int): Declare.
13096 (target_globals): Remove lra_int.
13097 (restore_target_globals): Update accordingly.
13098 * target-globals.c: Don't include lra-int.h.
13099 (default_target_globals, save_target_globals): Remove lra_int.
13101 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13103 * recog.h (operand_alternative): Convert reg_class, reject,
13104 matched and matches into bitfields.
13105 (preprocess_constraints): New overload.
13106 (preprocess_insn_constraints): New function.
13107 (preprocess_constraints): Take the insn as parameter.
13108 (recog_op_alt): Change into a pointer.
13109 (target_recog): Add x_op_alt.
13110 * recog.c (asm_op_alt): New variable.
13111 (recog_op_alt): Change into a pointer.
13112 (preprocess_constraints): New overload, replacing the old function
13113 definition with one that doesn't use global state.
13114 (preprocess_insn_constraints): New function.
13115 (preprocess_constraints): Use them. Take the insn as parameter.
13116 Use asm_op_alt for asms.
13117 (recog_init): Free existing x_op_alt entries.
13118 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13120 (make_early_clobber_and_input_conflicts): Likewise.
13121 (process_bb_node_lives): Pass the insn to process_constraints.
13122 * reg-stack.c (check_asm_stack_operands): Likewise.
13123 (subst_asm_stack_regs): Likewise.
13124 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13125 * regrename.c (build_def_use): Likewise.
13126 * sched-deps.c (sched_analyze_insn): Likewise.
13127 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13128 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13129 (note_invalid_constants): Likewise.
13130 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13131 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13134 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13136 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13137 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13139 (make_early_clobber_and_input_conflicts): Likewise.
13140 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13142 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13144 * recog.h (alternative_class): New function.
13145 (which_op_alt): Return a const recog_op_alt.
13146 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13147 (subst_asm_stack_regs): Likewise.
13148 * config/arm/arm.c (note_invalid_constants): Likewise.
13149 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13150 the operand_alternative; use alternative class instead.
13151 * sel-sched.c (get_reg_class): Likewise.
13152 * regrename.c (build_def_use): Likewise.
13153 (hide_operands, restore_operands, record_out_operands): Update type
13156 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13158 * recog.h (recog_op_alt): Convert to a flat array.
13159 (which_op_alt): New function.
13160 * recog.c (recog_op_alt): Convert to a flat array.
13161 (preprocess_constraints): Update accordingly, grouping all
13162 operands of the same alternative together, rather than the
13164 * ira-lives.c (check_and_make_def_conflict): Likewise.
13165 (make_early_clobber_and_input_conflicts): Likewise.
13166 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13167 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13168 (subst_asm_stack_regs): Likewise.
13169 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13170 * regrename.c (hide_operands, record_out_operands): Likewise.
13171 (build_def_use): Likewise.
13172 * sel-sched.c (get_reg_class): Likewise.
13173 * config/arm/arm.c (note_invalid_constants): Likewise.
13175 2014-06-04 Jason Merrill <jason@redhat.com>
13179 * gimplify.c (gimplify_arg): Non-static.
13180 * gimplify.h: Declare it.
13182 2014-06-04 Richard Biener <rguenther@suse.de>
13184 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13185 TREE_PUBLIC and DECL_EXTERNAL decls.
13187 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13189 * regcprop.c (copyprop_hardreg_forward_1): Account for
13190 HARD_REGNO_CALL_PART_CLOBBERED.
13192 2014-06-04 Richard Biener <rguenther@suse.de>
13194 * configure.ac: Check whether the underlying type of int64_t
13195 is long or long long.
13196 * configure: Regenerate.
13197 * config.in: Likewise.
13198 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13199 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13201 2014-06-04 Richard Biener <rguenther@suse.de>
13203 PR tree-optimization/60098
13204 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13206 (dse_optimize_stmt): Simplify, now that we found a kill
13209 2014-06-04 Richard Biener <rguenther@suse.de>
13211 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13212 of accesses with non-invariant address.
13214 2014-06-04 Martin Liska <mliska@suse.cz>
13216 * cgraph.h (cgraph_make_wrapper): New function introduced.
13217 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13218 * ipa-inline.h (inline_analyze_function): The function is global.
13219 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13221 2014-06-04 Martin Liska <mliska@suse.cz>
13223 * tree.h (private_lookup_attribute_starting): New function.
13224 (lookup_attribute_starting): Likewise.
13225 * tree.c (private_lookup_attribute_starting): Likewise.
13227 2014-06-04 Martin Liska <mliska@suse.cz>
13229 * cgraph.h (expand_thunk): New argument added.
13230 (address_taken_from_non_vtable_p): New global function.
13231 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13232 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13233 * cgraphunit.c (analyze_function): Likewise.
13234 (assemble_thunks_and_aliases): Argument added to call.
13235 (expand_thunk): New argument forces to produce GIMPLE thunk.
13237 2014-06-04 Martin Liska <mliska@suse.cz>
13239 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13240 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13241 * profile.c (branch_prob): Likewise.
13243 2014-06-04 Martin Jambor <mjambor@suse.cz>
13246 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13247 handler for switch on an ipa_ref_use enum.
13248 * ipa-reference.c (analyze_function): Likewise.
13250 2014-06-04 Kai Tietz <ktietz@redhat.com>
13252 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13253 from old call-instruction.
13255 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13257 * config/aarch64/aarch64.c (aarch64_classify_address)
13258 (aarch64_legitimize_reload_address): Support full addressing modes
13260 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13261 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13263 2014-06-03 Andrew Pinski <apinski@cavium.com>
13265 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13268 2014-06-03 Andrew Pinski <apinski@cavium.com>
13270 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13271 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13273 2014-06-03 Kai Tietz <ktietz@redhat.com>
13275 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13278 2014-06-03 Dehao Chen <dehao@google.com>
13280 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13283 2014-06-03 Marek Polacek <polacek@redhat.com>
13286 * doc/invoke.texi: Document -Wswitch-bool.
13287 * function.c (stack_protect_epilogue): Cast controlling expression of
13289 * gengtype.c (walk_type): Generate switch expression with its
13290 controlling expression cast to int.
13292 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13294 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13296 * config/avr/avr-tables.opt: Regenerate.
13297 * config/avr/t-multilib: Regenerate.
13298 * doc/avr-mmcu.texi: Regenerate.
13300 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13301 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13303 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13304 (ata6617c, ata664251): Add new avr35 devices.
13305 (ata6612c): Add new avr4 device.
13306 (ata6613c, ata6614q): Add new avr5 devices.
13307 * config/avr/avr-tables.opt: Regenerate.
13308 * config/avr/t-multilib: Regenerate.
13309 * doc/avr-mmcu.texi: Regenerate.
13311 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13313 * gcc/config/aarch64/aarch64-builtins.c
13314 (aarch64_types_binop_ssu_qualifiers): New static data.
13315 (TYPES_BINOP_SSU): Define.
13316 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13317 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13318 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13319 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13320 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13321 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13322 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13323 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13324 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13325 suffix to builtin function name, remove cast.
13326 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13327 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13328 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13330 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13332 * gcc/config/aarch64/aarch64-builtins.c
13333 (aarch64_types_binop_uus_qualifiers,
13334 aarch64_types_shift_to_unsigned_qualifiers,
13335 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13336 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13337 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13338 sqshlu_n, uqshl_n): Update qualifiers.
13339 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13340 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13341 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13342 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13343 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13344 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13345 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13346 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13347 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13348 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13349 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13350 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13351 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13352 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13353 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13354 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13355 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13356 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13357 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13358 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13359 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13360 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13361 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13362 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13363 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13364 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13365 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13367 2014-06-03 Teresa Johnson <tejohnson@google.com>
13369 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13371 2014-06-02 Jason Merrill <jason@redhat.com>
13374 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13376 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13378 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13381 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13383 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13385 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13386 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13387 * config/aarch64/iterators.md (REVERSE): New iterator.
13388 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13389 (rev_op): New int_attribute.
13390 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13391 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13392 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13393 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13394 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13395 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13396 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13397 Replace temporary __asm__ with __builtin_shuffle.
13399 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13401 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13403 * config/mips/mips-tables.opt: Regenerate.
13404 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13405 to use mips_isa_rev rather than ISA_MIPS32R2.
13406 * config/mips/mips.h (ISA_MIPS32R3): New define.
13407 (ISA_MIPS32R5): New define.
13408 (ISA_MIPS64R3): New define.
13409 (ISA_MIPS64R5): New define.
13410 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13411 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13412 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13414 (MIPS_ISA_SYNCI_SPEC): Likewise.
13415 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13416 (LINK_SPEC): Added mips32r3 and mips32r5.
13417 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13418 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13419 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13420 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13421 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13422 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13423 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13425 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13427 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13429 * config/mips/mips.opt (mxpa): New option.
13430 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13433 2014-06-03 Martin Jambor <mjambor@suse.cz>
13436 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13439 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13441 PR tree-optimization/61328
13442 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13443 initialization from find_bswap_or_nop_1.
13444 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13445 in source_expr2 before using the size value the function sets. Also
13446 make use of init_symbolic_number () in both the old place and
13447 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13448 doing recursion in the GIMPLE_BINARY_RHS case.
13450 2014-06-03 Richard Biener <rguenther@suse.de>
13452 PR tree-optimization/61383
13453 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13456 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13458 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13459 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13460 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13461 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13463 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13464 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13465 * system.h: ...here and make it unconditional.
13466 * target.def (conditional_register_usage): Mention
13467 define_register_constraint instead of old-style constraint macros.
13468 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13469 * doc/tm.texi: Regenerate.
13470 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13471 protected by !USE_MD_CONSTRAINTS.
13472 * config/frv/frv.md: Remove quote from old version of documentation.
13473 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13474 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13475 CONST_DOUBLE_OK_FOR_LETTER.
13476 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13478 2014-06-02 Andrew Pinski <apinski@cavium.com>
13480 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13481 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13482 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13483 file whose name depends on -mabi= and -mbig-endian.
13484 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13485 Handle LP64 better and handle ilp32 too.
13486 (MULTILIB_OPTIONS): Delete.
13487 (MULTILIB_DIRNAMES): Delete.
13489 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13491 * expr.h: Remove prototypes of functions defined in builtins.c.
13492 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13493 Remove prototypes of functions defined in builtins.c.
13494 * builtins.h: Update prototype list to include all exported functions.
13495 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13496 no_c99_libc_has_function): Move to targhooks.c
13497 (build_string_literal, build_call_expr_loc_array,
13498 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13500 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13501 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13502 no_c99_libc_has_function): Relocate from builtins.c.
13503 * tree.c: Include builtins.h.
13504 (build_call_expr_loc_array, build_call_expr_loc_vec,
13505 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13507 * fold-const.h (fold_fma): Move prototype to builtins.h.
13508 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13509 * asan.c: Include builtins.h.
13510 * cfgexpand.c: Likewise.
13511 * convert.c: Likewise.
13512 * emit-rtl.c: Likewise.
13513 * except.c: Likewise.
13514 * expr.c: Likewise.
13515 * fold-const.c: Likewise.
13516 * gimple-fold.c: Likewise.
13517 * gimple-ssa-strength-reduction.c: Likewise.
13518 * gimplify.c: Likewise.
13519 * ipa-inline.c: Likewise.
13520 * ipa-prop.c: Likewise.
13521 * lto-streamer-out.c: Likewise.
13522 * stmt.c: Likewise.
13523 * tree-inline.c: Likewise.
13524 * tree-object-size.c: Likewise.
13525 * tree-sra.c: Likewise.
13526 * tree-ssa-ccp.c: Likewise.
13527 * tree-ssa-forwprop.c: Likewise.
13528 * tree-ssa-loop-ivcanon.c: Likewise.
13529 * tree-ssa-loop-ivopts.c: Likewise.
13530 * tree-ssa-math-opts.c: Likewise.
13531 * tree-ssa-reassoc.c: Likewise.
13532 * tree-ssa-threadedge.c: Likewise.
13533 * tree-streamer-in.c: Likewise.
13534 * tree-vect-data-refs.c: Likewise.
13535 * tree-vect-patterns.c: Likewise.
13536 * tree-vect-stmts.c: Likewise.
13537 * config/aarch64/aarch64.c: Likewise.
13538 * config/alpha/alpha.c: Likewise.
13539 * config/arc/arc.c: Likewise.
13540 * config/arm/arm.c: Likewise.
13541 * config/avr/avr.c: Likewise.
13542 * config/bfin/bfin.c: Likewise.
13543 * config/c6x/c6x.c: Likewise.
13544 * config/cr16/cr16.c: Likewise.
13545 * config/cris/cris.c: Likewise.
13546 * config/epiphany/epiphany.c: Likewise.
13547 * config/fr30/fr30.c: Likewise.
13548 * config/frv/frv.c: Likewise.
13549 * config/h8300/h8300.c: Likewise.
13550 * config/i386/i386.c: Likewise.
13551 * config/i386/winnt.c: Likewise.
13552 * config/ia64/ia64.c: Likewise.
13553 * config/iq2000/iq2000.c: Likewise.
13554 * config/lm32/lm32.c: Likewise.
13555 * config/m32c/m32c.c: Likewise.
13556 * config/m32r/m32r.c: Likewise.
13557 * config/m68k/m68k.c: Likewise.
13558 * config/mcore/mcore.c: Likewise.
13559 * config/mep/mep.c: Likewise.
13560 * config/microblaze/microblaze.c: Likewise.
13561 * config/mips/mips.c: Likewise.
13562 * config/mmix/mmix.c: Likewise.
13563 * config/mn10300/mn10300.c: Likewise.
13564 * config/moxie/moxie.c: Likewise.
13565 * config/msp430/msp430.c: Likewise.
13566 * config/nds32/nds32.c: Likewise.
13567 * config/pa/pa.c: Likewise.
13568 * config/pdp11/pdp11.c: Likewise.
13569 * config/picochip/picochip.c: Likewise.
13570 * config/rl78/rl78.c: Likewise.
13571 * config/rs6000/rs6000.c: Likewise.
13572 * config/rx/rx.c: Likewise.
13573 * config/s390/s390.c: Likewise.
13574 * config/score/score.c: Likewise.
13575 * config/sh/sh.c: Likewise.
13576 * config/sparc/sparc.c: Likewise.
13577 * config/spu/spu.c: Likewise.
13578 * config/stormy16/stormy16.c: Likewise.
13579 * config/tilegx/tilegx.c: Likewise.
13580 * config/tilepro/tilepro.c: Likewise.
13581 * config/v850/v850.c: Likewise.
13582 * config/vax/vax.c: Likewise.
13583 * config/xtensa/xtensa.c: Likewise.
13585 2014-06-02 Jeff Law <law@redhat.com>
13587 PR rtl-optimization/61094
13588 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13589 was marked as do_no_reextend. If a copy is needed to eliminate
13590 an extension, then mark it as do_not_reextend.
13592 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13594 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13596 2014-06-02 Richard Henderson <rth@redhat.com>
13599 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13600 addresses inside asms. Use output_operand_lossage instead of
13603 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13606 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13607 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13609 2014-06-02 Tom de Vries <tom@codesourcery.com>
13611 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13612 case that x has VOIDmode.
13614 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13616 * varasm.c (copy_constant): Delete function.
13617 (build_constant_desc): Don't call it.
13619 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13622 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13623 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13624 with immediate_operand.
13626 2014-06-02 Andreas Schwab <schwab@suse.de>
13628 * config/ia64/ia64.c
13629 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13630 pending_data_specs first.
13632 2014-06-02 Richard Biener <rguenther@suse.de>
13634 PR tree-optimization/61378
13635 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13636 valueized_anything.
13638 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13640 * config/i386/constraints.md (Bw): Rename from 'w'.
13641 (Bz): Rename from 'z'.
13642 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13644 2014-06-01 Kai Tietz <ktietz@redhat.com>
13647 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13648 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13649 instead of m constraint.
13651 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13653 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13654 a separate alternative where the scratch operand 2 is marked as
13657 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13659 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13660 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13661 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13662 and __builtins_arm_get_fpscr.
13663 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13664 __builtins_arm_get_fpscr.
13665 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13666 __builtins_arm_ldfpscr.
13667 (arm_atomic_assign_expand_fenv): New function.
13668 * config/arm/vfp.md (set_fpscr): New pattern.
13669 (get_fpscr) : Likewise.
13670 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13672 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13673 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13675 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13677 * asan.c (report_error_func): Add SLOW_P argument, use
13678 BUILT_IN_ASAN_*_N if set.
13679 (build_check_stmt): Likewise.
13680 (instrument_derefs): If T has insufficient alignment,
13681 force same handling as for odd sizes.
13683 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13684 BUILT_IN_ASAN_REPORT_STORE_N): New.
13685 * asan.c (struct asan_mem_ref): Change access_size type to
13687 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13688 update_mem_ref_hash_table): Likewise.
13689 (asan_mem_ref_hasher::hash): Hash in a HWI.
13690 (report_error_func): Change size_in_bytes argument to HWI.
13691 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13693 (build_shadow_mem_access): New function.
13694 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13695 Handle size_in_bytes not power of two or larger than 16.
13696 (instrument_derefs): Don't give up if size_in_bytes is not
13697 power of two or is larger than 16.
13699 2014-05-30 Kai Tietz <ktietz@redhat.com>
13702 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13703 for sibling-tail-calls.
13704 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13706 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13707 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13709 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13711 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13712 * config/avr/avr-tables.opt: Regenerate.
13713 * config/avr/t-multilib: Regenerate.
13714 * doc/avr-mmcu.texi: Regenerate.
13716 2014-05-30 Ian Lance Taylor <iant@google.com>
13718 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13721 2014-05-30 Tom de Vries <tom@codesourcery.com>
13723 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13726 2014-05-30 Tom de Vries <tom@codesourcery.com>
13728 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13729 * lra.c (initialize_lra_reg_info_element): Add init of
13730 actual_call_used_reg_set field.
13731 (lra): Call lra_create_live_ranges before lra_inheritance for
13733 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13735 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13736 instead of call_used_reg_set for -fuse-caller-save.
13737 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13739 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13741 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13743 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13745 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13747 * ira.c (ira_get_dup_out_num): Check for output operands at
13748 the start of the loop. Handle cases where an included alternative
13749 follows an excluded one.
13751 2014-05-29 Mike Stump <mikestump@comcast.net>
13754 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13755 post ld passes when lto is used.
13757 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13759 PR rtl-optimization/61325
13760 * lra-constraints.c (process_address): Rename to process_address_1.
13761 (process_address): New function.
13763 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13765 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13766 TYPES_BINOPV): New static data.
13767 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13769 * config/aarch64/aarch64-simd.md (aarch64_ext,
13770 aarch64_im_lane_boundsi): New patterns.
13771 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13773 (aarch64_evpc_ext): New function.
13775 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13777 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13778 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13779 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13780 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13781 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13783 2014-05-29 Tom de Vries <tom@codesourcery.com>
13785 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13787 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
13788 Richard Sandiford <rdsandiford@googlemail.com>
13790 * arm/iterators.md (shiftable_ops): New code iterator.
13791 (t2_binop0, arith_shift_insn): New code attributes.
13792 * arm/predicates.md (shift_nomul_operator): New predicate.
13793 * arm/arm.md (insn_enabled): Delete.
13794 (enabled): Remove insn_enabled test.
13795 (*arith_shiftsi): Delete. Replace with ...
13796 (*<arith_shift_insn>_multsi): ... new pattern.
13797 (*<arith_shift_insn>_shiftsi): ... new pattern.
13798 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13800 2014-05-29 Radovan Obradovic <robradovic@mips.com>
13801 Tom de Vries <tom@codesourcery.com>
13803 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13804 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13806 (mips_split_call): Use POST_CALL_TMP_REG.
13807 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13809 2014-05-29 Tom de Vries <tom@codesourcery.com>
13811 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
13812 with #ifdef STACK_REGS.
13814 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
13816 * varasm.c (get_variable_section): Walk aliases.
13817 (place_block_symbol): Walk aliases.
13819 2014-05-28 Tom de Vries <tom@codesourcery.com>
13822 2014-05-28 Tom de Vries <tom@codesourcery.com>
13824 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13825 * lra.c (initialize_lra_reg_info_element): Add init of
13826 actual_call_used_reg_set field.
13827 (lra): Call lra_create_live_ranges before lra_inheritance for
13829 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13831 * lra-constraints.c (need_for_call_save_p): Use
13832 actual_call_used_reg_set instead of call_used_reg_set for
13834 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13836 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13838 * doc/md.texi: Document that the % constraint character must
13839 be at the beginning of the string.
13840 * genoutput.c (validate_insn_alternatives): Check that '=',
13841 '+' and '%' only appear at the beginning of a constraint.
13842 * ira.c (commutative_constraint_p): Delete.
13843 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
13844 at the start of the string.
13845 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
13847 * config/arm/neon.md (bicdi3_neon): Likewise.
13848 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
13849 (slt_si, sltu_si): Likewise.
13850 * config/vax/vax.md (sbcdi3): Likewise.
13851 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
13852 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
13853 (mul64): Move '%' to beginning of constraint.
13854 * config/arm/arm.md (*xordi3_insn): Likewise.
13855 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
13856 (xorsi3): Likewise.
13858 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13860 * doc/md.texi: Document the restrictions on the "enabled" attribute.
13862 2014-05-28 Jason Merrill <jason@redhat.com>
13865 * cgraph.h (symtab_node::get_comdat_group_id): New.
13866 * cgraphunit.c (analyze_functions): Call it.
13867 * symtab.c (dump_symtab_node): Likewise.
13868 * tree.c (decl_comdat_group_id): New.
13869 * tree.h: Declare it.
13870 * lto-streamer-out.c (write_symbol): Use it.
13871 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
13873 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13875 PR bootstrap/PR61146
13876 * wide-int.cc: Do not include longlong.h when compiling with clang.
13878 2014-05-28 Richard Biener <rguenther@suse.de>
13880 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
13881 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
13882 (vrp_visit_assignment_or_call): Print less vertical space.
13883 (vrp_visit_stmt): Likewise.
13884 (vrp_visit_phi_node): Likewise. For a PHI argument with
13885 VR_VARYING range consider recording it as copy.
13887 2014-05-28 Richard Biener <rguenther@suse.de>
13890 2014-05-28 Richard Biener <rguenther@suse.de>
13892 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13894 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13896 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
13897 sufficiently aligned and an offset is used at the same time.
13898 (expand_expr_real_1): Likewise.
13900 2014-05-28 Richard Biener <rguenther@suse.de>
13902 PR middle-end/61045
13903 * fold-const.c (fold_comparison): When folding
13904 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
13905 the sign of the remaining constant operand stays the same.
13907 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
13909 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13910 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
13911 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
13913 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
13914 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
13915 (m32bit-doubles) Likewise.
13916 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
13917 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
13920 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13922 * configure.ac ($gcc_cv_ld_clearcap): New test.
13923 * configure: Regenerate.
13924 * config.in: Regenerate.
13925 * config/sol2.opt (mclear-hwcap): New option.
13926 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
13927 * config/sol2-clearcap.map: Moved here from
13928 testsuite/gcc.target/i386/clearcap.map.
13929 * config/sol2-clearcapv2.map: Move here from
13930 gcc.target/i386/clearcapv2.map.
13931 * config/t-sol2 (install): Depend on install-clearcap-map.
13932 (install-clearcap-map): New target.
13933 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
13936 2014-05-28 Richard Biener <rguenther@suse.de>
13938 * hwint.h (*_HALF_WIDE_INT*): Move to ...
13939 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
13940 ... here and remove the rest.
13941 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13943 2014-05-28 Richard Biener <rguenther@suse.de>
13945 PR tree-optimization/61335
13946 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
13947 new range fails, drop to varying.
13949 2014-05-28 Olivier Hainque <hainque@adacore.com>
13951 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
13952 (CPP_SPEC): Add entry for -mcpu=8548.
13953 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
13954 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
13956 2014-05-28 Tom de Vries <tom@codesourcery.com>
13958 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13959 * lra.c (initialize_lra_reg_info_element): Add init of
13960 actual_call_used_reg_set field.
13961 (lra): Call lra_create_live_ranges before lra_inheritance for
13963 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13965 * lra-constraints.c (need_for_call_save_p): Use
13966 actual_call_used_reg_set instead of call_used_reg_set for
13968 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13970 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13971 Tom de Vries <tom@codesourcery.com>
13973 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
13975 (@item -fuse-caller-save): New item.
13977 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13978 Tom de Vries <tom@codesourcery.com>
13980 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
13981 OPT_fuse_caller_save.
13983 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13984 Tom de Vries <tom@codesourcery.com>
13986 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
13987 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
13988 get_call_reg_set_usage.
13989 * resource.c (mark_set_resources, mark_target_live_regs): Use
13990 get_call_reg_set_usage.
13991 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
13993 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
13994 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
13995 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13996 * ira-build.c (ira_create_allocno): Init
13997 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13998 (create_cap_allocno, propagate_allocno_info)
13999 (propagate_some_info_from_allocno)
14000 (copy_info_to_removed_store_destinations): Handle
14001 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14002 * ira-costs.c (ira_tune_allocno_costs): Use
14003 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14005 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14006 Tom de Vries <tom@codesourcery.com>
14008 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14009 and function_used_regs_valid fields.
14010 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14011 find_all_hard_reg_sets.
14012 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14013 (get_call_reg_set_usage): New function.
14014 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14015 * regs.h (get_call_reg_set_usage): Declare.
14017 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14020 * config/dbx.h (License): Add Runtime Library Exception.
14021 * config/newlib-stdint.h (License): Same.
14022 * config/rtems.h (License): Same
14023 * config/initfini-array.h (License): Same
14024 * config/v850/v850.h (License): Same.
14025 * config/v850/v850-opts.h (License): Same
14026 * config/v850/rtems.h (License): Same.
14028 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14031 * doc/extend.texi (Local Labels): Note that label differences are
14032 not supported for AVR.
14034 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14035 Olivier Hainque <hainque@adacore.com>
14037 * rtl.h (set_for_reg_notes): Declare.
14038 * emit-rtl.c (set_for_reg_notes): New function.
14039 (set_unique_reg_note): Use it.
14040 * optabs.c (add_equal_note): Likewise
14042 2014-05-27 Andrew Pinski <apinski@cavium.com>
14044 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14045 Use <w> for the register in assembly template.
14046 (stack_protect_test): Use the mode of operands[0] for the result.
14047 (stack_protect_test_<mode>): Use <w> for the register
14048 in assembly template.
14050 2014-05-27 DJ Delorie <dj@redhat.com>
14052 * config/rx/rx.c (add_vector_labels): New.
14053 (rx_output_function_prologue): Call it.
14054 (rx_handle_func_attribute): Don't require empty arguments.
14055 (rx_handle_vector_attribute): New.
14056 (rx_attribute_table): Add "vector" attribute.
14057 * doc/extend.texi (interrupt, vector): Document new/changed
14058 RX-specific attributes.
14060 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14062 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14064 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14065 predicate to detect a negative quotient.
14067 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14069 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14070 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14071 Add X - Y CMP 0 to X CMP Y transformation.
14072 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14074 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14076 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14079 2014-05-27 Steve Ellcey <sellcey@mips.com>
14081 * config/mips/mips.c: Add include of cgraph.h.
14083 2014-05-27 Richard Biener <rguenther@suse.de>
14085 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14087 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14090 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14091 * config/arm/arm-cores.def (License): Same.
14092 * config/arm/arm-opts.h (License): Same.
14093 * config/arm/aout.h (License): Same.
14094 * config/arm/bpabi.h (License): Same.
14095 * config/arm/elf.h (License): Same.
14096 * config/arm/linux-elf.h (License): Same.
14097 * config/arm/linux-gas.h (License): Same.
14098 * config/arm/netbsd-elf.h (License): Same.
14099 * config/arm/uclinux-eabi.h (License): Same.
14100 * config/arm/uclinux-elf.h (License): Same.
14101 * config/arm/vxworks.h (License): Same.
14103 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14105 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14106 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14107 (arm_init_neon_builtins): Handle NEON_BSWAP.
14108 Define required type nodes.
14109 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14110 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14111 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14112 * config/arm/iterators.md (VDQHSD): New mode iterator.
14114 2014-05-27 Richard Biener <rguenther@suse.de>
14116 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14117 Try using literal operands when comparing value-ranges failed.
14119 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14121 * ira.c (commutative_operand): Adjust for change to recog_data.
14122 [Missing from previous commit.]
14124 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14126 * system.h (TEST_BIT): New macro.
14127 * recog.h (alternative_mask): New type.
14128 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14129 (recog_data_d): Replace alternative_enabled_p array with
14130 enabled_alternatives.
14131 (target_recog): New structure.
14132 (default_target_recog, this_target_recog): Declare.
14133 (get_enabled_alternatives, recog_init): Likewise.
14134 * recog.c (default_target_recog, this_target_recog): New variables.
14135 (get_enabled_alternatives): New function.
14136 (extract_insn): Use it.
14137 (recog_init): New function.
14138 (preprocess_constraints, constrain_operands): Adjust for change to
14140 * postreload.c (reload_cse_simplify_operands): Likewise.
14141 * reload.c (find_reloads): Likewise.
14142 * ira-costs.c (record_reg_classes): Likewise.
14143 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14144 all alternatives after a disabled one would be skipped.
14145 (ira_implicitly_set_insn_hard_regs): Likewise.
14146 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14147 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14148 with enabled_alternatives.
14149 * lra.c (free_insn_recog_data): Update accordingly.
14150 (lra_update_insn_recog_data): Likewise.
14151 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14152 * lra-constraints.c (process_alt_operands): Likewise. Handle
14153 only_alternative as part of the enabled mask.
14154 * target-globals.h (this_target_recog): Declare.
14155 (target_globals): Add a recog field.
14156 (restore_target_globals): Restore this_target_recog.
14157 * target-globals.c: Include recog.h.
14158 (default_target_globals): Initialize recog field.
14159 (save_target_globals): Likewise.
14160 * reginfo.c (reinit_regs): Call recog_init.
14161 * toplev.c (backend_init_target): Likewise.
14163 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14165 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14166 rather than any named insn's code.
14168 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14171 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14172 * config/arm/arm-cores.def (License): Same.
14174 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14176 * tree.h (decl_comdat_group): Declare.
14177 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14178 * tree.c (decl_comdat_group): Here.
14180 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14182 PR rtl-optimization/61222
14183 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14184 the shift, truncate the PLUS operand to the result mode.
14186 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14189 * config/i386/i386.c (ix86_rtx_costs)
14190 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14193 2014-05-26 Martin Jambor <mjambor@suse.cz>
14195 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14198 2014-05-26 Richard Biener <rguenther@suse.de>
14200 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14201 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14202 Provide specializations.
14203 (wi::int_traits <HOST_WIDE_INT>,
14204 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14206 2014-05-26 Alan Modra <amodra@gmail.com>
14209 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14210 params and return a bool. Remove dead code. Update comment.
14211 Assert we have a const_int source. Remove bogus code from
14212 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14213 handling of constants > 2G and reg_equal note, from..
14214 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14215 return value. Update comment. If we can, use a new pseudo
14216 for intermediate calculations.
14217 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14219 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14220 call to rs6000_emit_set_const in splitter.
14221 (movdi_internal64+2, +3): Likewise.
14223 2014-05-26 Richard Biener <rguenther@suse.de>
14225 * system.h: Define __STDC_FORMAT_MACROS before
14226 including inttypes.h.
14227 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14228 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14229 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14230 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14231 HOST_WIDEST_INT_C): Remove.
14232 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14233 if C99 inttypes.h is not available.
14234 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14235 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14236 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14237 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14238 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14239 (struct output_info): Likewise.
14240 (print_statistics): Adjust.
14241 (dump_bitmap_statistics): Likewise.
14242 * bt-load.c (migrate_btr_defs): Print with PRId64.
14243 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14244 (MAX_SAFE_MULTIPLIER): Adjust.
14245 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14246 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14247 dump_cgraph_node): Likewise.
14248 * final.c (dump_basic_block_info): Likewise.
14249 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14250 * gcov.c (format_gcov): Likewise.
14251 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14253 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14254 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14255 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14256 Use PRId64 for dumping.
14257 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14258 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14259 (add_allocno_hard_regs): Adjust.
14260 * loop-doloop.c (doloop_modify): Print using PRId64.
14261 * loop-iv.c (inverse): Compute in uint64_t.
14262 (determine_max_iter, iv_number_of_iterations): Likewise.
14263 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14264 Print using PRId64.
14265 * lto-streamer-out.c (write_symbol): Use uint64_t.
14266 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14267 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14268 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14269 * modulo-sched.c (const_iteration_count): Use int64_t.
14270 (sms_schedule): Dump using PRId64.
14271 * predict.c (dump_prediction): Likewise.
14272 * pretty-print.h (pp_widest_integer): Remove.
14273 * profile.c (get_working_sets, is_edge_inconsistent,
14274 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14275 * tree-pretty-print.c (pp_double_int): Remove case handling
14276 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14277 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14279 (pass_optimize_bswap::execute): Remove restriction on hosts.
14280 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14281 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14282 * tree.c (widest_int_cst_value): Remove.
14283 * tree.h (widest_int_cst_value): Likewise.
14284 * value-prof.c (dump_histogram_value): Print using PRId64.
14285 * gengtype.c (main): Also inject int64_t.
14286 * ggc-page.c (struct max_alignment): Use int64_t.
14287 * alloc-pool.c (struct allocation_object_def): Likewise.
14288 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14290 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14291 * doc/tm.texi: Regenerated.
14292 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14293 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14294 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14295 mmix_output_register_setting): Use [u]int64_t in prototypes.
14296 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14297 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14298 mmix_output_octa, mmix_output_shifted_value): Adjust.
14299 (mmix_intval): Adjust. Remove unreachable case.
14300 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14302 2014-05-26 Richard Biener <rguenther@suse.de>
14304 * configure.ac: Drop __int64 type check. Insist that we
14305 found uint64_t and int64_t.
14306 * hwint.h (HOST_BITS_PER___INT64): Remove.
14307 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14308 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14309 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14310 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14311 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14312 for dst_q_src_df_rms_cdt.
14313 * configure: Regenerate.
14314 * config.in: Likewise.
14316 2014-05-26 Michael Tautschnig <mt@debian.org>
14319 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14320 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14322 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14324 PR rtl-optimization/61278
14325 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14327 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14329 PR rtl-optimization/61220
14330 Part of PR rtl-optimization/61225
14331 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14332 insn; skip split_edge for a block with only one successor.
14334 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14336 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14339 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14341 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14342 (update_vtable_references): New function.
14343 (function_and_variable_visibility): Rewrite also vtable initializers.
14344 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14346 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14348 * ggc.h (ggc_grow): New function.
14349 * ggc-none.c (ggc_grow): New function.
14350 * ggc-page.c (ggc_grow): Likewise.
14352 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14354 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14355 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14356 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14357 varpool_externally_visible_p, can_replace_by_local_alias,
14358 update_visibility_by_resolution_info, function_and_variable_visibility,
14359 pass_data_ipa_function_and_variable_visibility,
14360 make_pass_ipa_function_and_variable_visibility,
14361 whole_program_function_and_variable_visibility,
14362 pass_data_ipa_whole_program_visibility,
14363 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14364 * cgraph.h (cgraph_local_node_p): Declare.
14365 * ipa-visibility.c: New file.
14366 * Makefile.in (OBJS): Add ipa-visiblity.o
14368 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14370 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14371 that var decl is available.
14373 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14375 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14376 symtab_node pointer.
14377 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14378 (find_decls_types_r): Do not walk COMDAT_GROUP.
14379 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14380 * varasm.c (make_decl_one_only): Use set_comdat_group;
14381 create node if needed.
14382 * ipa-inline-transform.c (save_inline_function_body): Update
14383 way we decl->symtab mapping.
14384 * symtab.c (symtab_hash, hash_node, eq_node
14385 symtab_insert_node_to_hashtable): Remove.
14386 (symtab_register_node): Update.
14387 (symtab_unregister_node): Update.
14388 (symtab_get_node): Reimplement as inline function.
14389 (symtab_add_to_same_comdat_group): Update.
14390 (symtab_dissolve_same_comdat_group_list): Update.
14391 (dump_symtab_base): Update.
14392 (verify_symtab_base): Update.
14393 (symtab_make_decl_local): Update.
14394 (fixup_same_cpp_alias_visibility): Update.
14395 (symtab_nonoverwritable_alias): Update.
14396 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14397 * ipa.c (update_visibility_by_resolution_info): UPdate.
14398 * bb-reorder.c: Include cgraph.h
14399 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14400 with comdat groups.
14401 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14402 * cgraph.c (cgraph_get_create_node): Update.
14403 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14405 (symtab_get_node): Make inline.
14406 (symtab_insert_node_to_hashtable): Remove.
14407 (symtab_can_be_discarded): Update.
14408 (decl_comdat_group): New function.
14409 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14411 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14413 (read_comdat_group): New function.
14414 (input_node, input_varpool_node): Use it.
14415 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14417 * mips.c (mips_start_unique_function): Likewise.
14418 (ix86_code_end): Likewise.
14419 (rs6000_code_end): Likweise.
14420 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14422 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14424 * gengtype-state.c (fatal_reading_state): Bring offline.
14425 * optabs.c (widening_optab_handler): Bring offline.
14426 * optabs.h (widening_optab_handler): Likewise.
14427 * final.c (get_attr_length_1): Likewise.
14429 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14431 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14433 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14435 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14436 (ppc440-compare): Include shift with dot.
14437 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14438 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14440 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14442 (e6500_sfx2): Include it.
14443 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14444 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14445 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14446 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14447 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14448 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14449 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14450 *lshiftrt_internal1le, *lshiftrt_internal1be,
14451 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14452 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14453 *rotldi3_internal10le, *rotldi3_internal10be,
14454 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14455 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14456 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14457 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14458 define_insns): Use type "shift" in the appropriate alternatives.
14460 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14462 * config/rs6000/rs6000.md (type): Add "logical". Delete
14464 (dot): Adjust comment.
14465 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14466 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14467 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14468 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14469 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14470 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14471 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14472 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14474 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14475 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14476 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14477 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14478 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14479 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14480 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14481 * config/rs6000/8540.md (ppc8540_su): Adjust.
14482 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14483 cell-cmp-microcoded): Adjust.
14484 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14485 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14486 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14487 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14488 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14489 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14490 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14491 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14492 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14494 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14495 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14496 Adjust. Adjust comment.
14497 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14498 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14500 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14502 * config/rs6000/rs6000.md (type): Add "add".
14503 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14504 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14505 define_insns): Use it.
14506 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14508 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14509 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14510 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14511 * config/rs6000/601.md (ppc601-integer): Adjust.
14512 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14513 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14514 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14515 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14516 * config/rs6000/8540.md (ppc8540_su): Adjust.
14517 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14518 cell-cmp-microcoded): Adjust.
14519 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14520 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14521 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14522 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14523 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14524 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14525 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14526 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14527 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14529 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14530 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14531 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14532 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14534 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14536 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14537 "delayed_compare", "var_delayed_compare".
14538 (var_shift): New attribute.
14539 (cell_micro): Adjust.
14540 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14541 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14542 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14543 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14544 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14545 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14546 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14547 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14548 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14549 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14550 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14551 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14552 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14553 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14554 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14555 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14556 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14557 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14558 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14559 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14560 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14561 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14562 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14563 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14564 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14566 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14567 * config/rs6000/440.md (ppc440-integer): Adjust.
14568 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14569 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14570 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14571 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14572 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14573 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14574 * config/rs6000/8540.md (ppc8540_su): Adjust.
14575 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14576 cell-cmp-microcoded): Adjust.
14577 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14578 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14579 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14580 e500mc64_delayed): Adjust.
14581 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14582 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14583 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14584 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14585 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14586 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14587 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14588 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14589 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14591 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14592 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14594 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14596 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14597 (bits): New mode_attr.
14598 (idiv_ldiv): Delete mode_attr.
14599 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14600 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14601 rs6000_adjust_priority, is_nonpipeline_insn,
14602 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14604 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14605 * config/rs6000/440.md (ppc440-idiv): Adjust.
14606 * config/rs6000/476.md (ppc476-idiv): Adjust.
14607 * config/rs6000/601.md (ppc601-idiv): Adjust.
14608 * config/rs6000/603.md (ppc603-idiv): Adjust.
14609 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14610 ppc620-ldiv): Adjust.
14611 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14612 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14613 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14614 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14615 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14616 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14617 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14618 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14619 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14620 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14621 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14622 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14623 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14624 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14625 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14626 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14627 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14628 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14630 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14632 * config/rs6000/rs6000.md (type): Delete "insert_word",
14633 "insert_dword". Add "insert".
14634 (size): Update comment.
14635 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14636 insn_must_be_first_in_group): Adjust.
14637 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14638 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14639 *insvsi_internal6, insvdi_internal): Adjust.
14641 * config/rs6000/40x.md (ppc403-integer): Adjust.
14642 * config/rs6000/440.md (ppc440-integer): Adjust.
14643 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14644 * config/rs6000/601.md (ppc601-integer): Adjust.
14645 * config/rs6000/603.md (ppc603-integer): Adjust.
14646 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14647 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14648 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14649 * config/rs6000/8540.md (ppc8540_su): Adjust.
14650 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14651 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14652 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14653 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14654 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14655 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14656 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14657 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14658 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14659 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14660 * config/rs6000/power7.md (power7-integer): Adjust.
14661 * config/rs6000/power8.md (power8-1cyc): Adjust.
14662 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14663 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14665 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14667 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14668 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14669 (size): New attribute.
14670 (dot): New attribute.
14671 (cell_micro): Adjust.
14672 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14673 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14674 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14675 umuldi3_highpart): Adjust.
14676 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14677 rs6000_adjust_priority, is_nonpipeline_insn,
14678 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14680 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14681 ppc405-imul3): Adjust.
14682 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14683 * config/rs6000/476.md (ppc476-imul): Adjust.
14684 * config/rs6000/601.md (ppc601-imul): Adjust.
14685 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14686 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14687 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14688 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14689 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14691 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14692 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14693 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14694 cell-imul): Adjust.
14695 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14696 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14697 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14698 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14699 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14700 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14701 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14702 power4-lmul, power4-imul, power4-imul3): Adjust.
14703 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14704 power5-lmul, power5-imul, power5-imul3): Adjust.
14705 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14706 power6-lmul, power6-imul, power6-imul3): Adjust.
14707 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14708 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14710 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14711 rs64a-lmul): Adjust.
14712 * config/rs6000/titan.md (titan_imul): Adjust.
14714 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14716 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14717 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14718 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14719 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14720 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14721 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14722 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14723 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14724 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14725 * config/rs6000/titan.md: Delete nonsensical comment.
14726 (titan_imul): Add type imul3.
14727 (titan_mulhw): Remove type imul3; add type halfmul.
14729 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14731 * config/rs6000/rs6000.md (type): Reorder, reformat.
14733 2014-05-23 Martin Jambor <mjambor@suse.cz>
14735 PR tree-optimization/53787
14736 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14737 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14738 analysis_done, update all uses.
14739 * ipa-prop.c: Include domwalk.h
14740 (param_analysis_info): Removed.
14741 (param_aa_status): New type.
14742 (ipa_bb_info): Likewise.
14743 (func_body_info): Likewise.
14744 (ipa_get_bb_info): New function.
14745 (aa_overwalked): Likewise.
14746 (find_dominating_aa_status): Likewise.
14747 (parm_bb_aa_status_for_bb): Likewise.
14748 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14749 (load_from_unmodified_param): Accept func_body_info as a parameter
14750 instead of parms_ainfo.
14751 (parm_ref_data_preserved_p): Changed to use new param AA info.
14752 (parm_ref_data_pass_through_p): Likewise.
14753 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14754 (compute_complex_assign_jump_func): Changed to use new param AA info.
14755 (compute_complex_ancestor_jump_func): Likewise.
14756 (ipa_compute_jump_functions_for_edge): Likewise.
14757 (ipa_compute_jump_functions): Removed.
14758 (ipa_compute_jump_functions_for_bb): New function.
14759 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14761 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14762 and info, moved variable declarations down.
14763 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14765 (ipa_analyze_stmt_uses): Likewise.
14766 (ipa_analyze_params_uses): Removed.
14767 (ipa_analyze_params_uses_in_bb): New function.
14768 (ipa_analyze_controlled_uses): Likewise.
14769 (free_ipa_bb_info): Likewise.
14770 (analysis_dom_walker): New class.
14771 (ipa_analyze_node): Handle node-specific forbidden analysis,
14772 initialize and free func_body_info, use dominator walker.
14773 (ipcp_modif_dom_walker): New class.
14774 (ipcp_transform_function): Create and free func_body_info, use
14775 ipcp_modif_dom_walker, moved a lot of functionality there.
14777 2014-05-23 Marek Polacek <polacek@redhat.com>
14778 Jakub Jelinek <jakub@redhat.com>
14780 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14781 * gcc.c (sanitize_spec_function): Likewise.
14782 * convert.c (convert_to_integer): Include "ubsan.h". Add
14783 floating-point to integer instrumentation.
14784 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14785 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14786 SANITIZE_NONDEFAULT.
14787 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14788 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14789 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14790 * ubsan.c: Include "realmpfr.h" and "dfp.h".
14791 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14792 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14793 float/double/long double.
14794 (ubsan_instrument_float_cast): New function.
14795 * ubsan.h (ubsan_instrument_float_cast): Declare.
14797 2014-05-23 Jiong Wang <jiong.wang@arm.com>
14799 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14801 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
14802 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14803 Adjust for tailcalling through registers.
14804 * config/aarch64/aarch64.h (enum reg_class): New caller save
14806 (REG_CLASS_NAMES): Likewise.
14807 (REG_CLASS_CONTENTS): Likewise.
14808 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14809 Allow tailcalling without decls.
14811 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14813 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14814 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
14816 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
14817 gsi, and variables v_* to v*.
14819 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
14821 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
14823 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14825 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
14826 * omp-low.c: Update accordingly.
14828 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
14829 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
14830 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
14831 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
14832 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
14833 GF_OMP_TARGET_KIND_UPDATE.
14835 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14836 Explicitly enumerate the expected region types.
14838 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
14841 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
14842 documentation; the old documentation didn't clearly state the
14843 constraints on the contents of the pointed-to storage.
14845 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14847 Fix bootstrap error on ia64
14848 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
14849 Return default value.
14851 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
14853 PR tree-optimization/54733
14854 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
14856 (find_bswap_or_nop_load): New.
14857 (find_bswap_1): Renamed to ...
14858 (find_bswap_or_nop_1): This. Also add support for memory source.
14859 (find_bswap): Renamed to ...
14860 (find_bswap_or_nop): This. Also add support for memory source and
14861 detection of bitwise operations equivalent to load in target
14863 (execute_optimize_bswap): Likewise. Also move its leading comment back
14864 in place and split statement transformation into ...
14865 (bswap_replace): This.
14867 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14869 PR rtl-optimization/61215
14870 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
14871 simplify_gen_subreg until final substitution.
14873 2014-05-23 Alan Modra <amodra@gmail.com>
14876 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
14877 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
14878 Use "Y" constraint rather than "m".
14880 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14882 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
14884 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
14885 New function declaration.
14886 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
14887 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
14888 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
14889 (aarch64_init_builtins) : Initialize builtins
14890 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14891 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14892 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
14893 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
14894 and __builtins_aarch64_set_fpsr.
14895 (aarch64_atomic_assign_expand_fenv): New function.
14896 * config/aarch64/aarch64.md (set_fpcr): New pattern.
14897 (get_fpcr) : Likewise.
14898 (set_fpsr) : Likewise.
14899 (get_fpsr) : Likewise.
14900 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
14901 and UNSPECV_SET_FPSR.
14902 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14903 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14904 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14906 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14908 PR rtl-optimization/60969
14909 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
14910 constraints. Set up mem cost for NO_REGS case.
14912 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
14914 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
14916 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
14918 * config/darwin.c: Include "lto-section-names.h".
14919 (LTO_SEGMENT_NAME): Don't define.
14920 * config/i386/winnt.c: Include "lto-section-names.h".
14921 * lto-streamer.c: Include "lto-section-names.h".
14922 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
14923 * lto-wrapper.c: Include "lto-section-names.h".
14924 (LTO_SECTION_NAME_PREFIX): Don't define.
14925 * lto-section-names.h: New file.
14926 * cgraphunit.c: Include "lto-section-names.h".
14928 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
14930 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
14932 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
14935 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
14937 2014-05-22 Nick Clifton <nickc@redhat.com>
14939 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
14941 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
14943 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
14944 -> (T)A transformation to integer types.
14946 2014-05-22 Teresa Johnson <tejohnson@google.com>
14948 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
14949 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
14950 (gcov_rewrite): Use gcov_nonruntime_assert.
14951 (gcov_open): Ditto.
14952 (gcov_write_words): Ditto.
14953 (gcov_write_length): Ditto.
14954 (gcov_read_words): Use gcov_nonruntime_assert, and remove
14955 gcc_assert from IN_LIBGCOV code.
14956 (gcov_read_summary): Use gcov_error to flag profile corruption.
14957 (gcov_sync): Use gcov_nonruntime_assert.
14958 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
14959 (gcov_histo_index): Use gcov_nonruntime_assert.
14960 (static void gcov_histogram_merge): Ditto.
14961 (compute_working_sets): Ditto.
14962 * gcov-io.h (gcov_nonruntime_assert): Define.
14963 (gcov_error): Define for !IN_LIBGCOV
14965 2014-05-22 Richard Biener <rguenther@suse.de>
14967 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14968 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
14969 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
14970 and deallocation site.
14971 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14972 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
14973 passing through the incoming points-to set.
14974 (handle_lhs_call): Use flags argument instead of recomputing it.
14975 (find_func_aliases_for_call): Call handle_lhs_call with proper
14978 2014-05-22 Jakub Jelinek <jakub@redhat.com>
14980 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
14981 all padding bits in REAL_VALUE_TYPE are cleared.
14983 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14985 Cleanup and improve multipass_dfa_lookahead_guard
14986 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
14987 (core2i7_first_cycle_multipass_begin,)
14988 (core2i7_first_cycle_multipass_issue,)
14989 (core2i7_first_cycle_multipass_backtrack): Update signature.
14990 * config/ia64/ia64.c
14991 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
14992 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
14993 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
14995 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
14996 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
14998 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15000 * doc/tm.texi: Regenerate.
15002 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15003 * haifa-sched.c (ready_try): Make signed to allow negative values.
15004 (rebug_ready_list_1): Update.
15005 (choose_ready): Simplify.
15006 (sched_extend_ready_list): Update.
15008 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15010 Remove IA64 speculation tweaking flags
15011 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15012 speculation tuning flags.
15013 (msched-prefer-non-data-spec-insns,)
15014 (msched-prefer-non-control-spec-insns): Obsolete options.
15015 * haifa-sched.c (choose_ready): Remove handling of
15016 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15017 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15018 and PREFER_NON_DATA_SPEC.
15019 * sel-sched.c (process_spec_exprs): Remove handling of
15020 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15022 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15024 Improve scheduling debug output
15025 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15026 (advance_one_cycle): Update.
15027 (schedule_insn, queue_to_ready): Add debug printouts.
15028 (debug_ready_list_1): New static function.
15029 (debug_ready_list): Update.
15030 (max_issue): Add debug printouts.
15031 (dump_insn_stream): New static function.
15032 (schedule_block): Use it. Also better indent printouts.
15034 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15036 Fix sched_insn debug counter
15037 * haifa-sched.c (schedule_insn): Update.
15038 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15039 (save_backtrack_point, restore_backtrack_point): Update.
15040 (first_nonscheduled_insn): New static function.
15041 (queue_to_ready, choose_ready): Use it.
15042 (schedule_block): Init nonscheduled_insns_begin.
15043 (sched_emit_insn): Update.
15046 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15048 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15050 (aarch64_secondary_reload) : LikeWise.
15051 (aarch64_class_max_nregs) : Remove CORE_REGS.
15052 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15053 (REG_CLASS_NAMES) : Likewise.
15054 (REG_CLASS_CONTENTS) : LikeWise.
15055 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15057 2014-05-21 Guozhi Wei <carrot@google.com>
15060 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15062 (vqdmulhq_n_s16): Likewise.
15064 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15066 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15068 2014-05-21 Marek Polacek <polacek@redhat.com>
15071 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15073 2014-05-21 Martin Jambor <mjambor@suse.cz>
15075 * doc/invoke.texi (Optimize Options): Document parameters
15076 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15077 ipa-cp-array-index-hint-bonus.
15079 2014-05-21 Mark Wielaard <mjw@redhat.com>
15082 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15083 version >= 3 or not strict DWARF.
15084 * langhooks.h (struct lang_hooks_for_types): Add
15085 enum_underlying_base_type.
15086 * langhooks.c (lhd_enum_underlying_base_type): New function.
15087 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15088 enum_underlying_base_type.
15089 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15090 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15091 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15093 2014-05-21 Richard Biener <rguenther@suse.de>
15095 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15097 2014-05-21 John Marino <gnugcc@marino.st>
15099 * config.gcc (*-*-dragonfly*): New target.
15100 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15101 * configure: Regenerate.
15102 * config/dragonfly-stdint.h: New.
15103 * config/dragonfly.h: New.
15104 * config/dragonfly.opt: New.
15105 * config/i386/dragonfly.h: New.
15106 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15108 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15110 * tree.def (VOID_CST): New.
15111 * tree-core.h (TI_VOID): New.
15112 * tree.h (void_node): New.
15113 * tree.c (tree_node_structure_for_code, tree_code_size)
15114 (iterative_hash_expr): Handle VOID_CST.
15115 (build_common_tree_nodes): Initialize void_node.
15117 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15119 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15121 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15123 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15126 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15127 flag_reorder_blocks_and_partition.
15128 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15130 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15133 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15135 (*addc_r_t): Add new insn_and_split.
15137 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15139 PR middle-end/61252
15140 * omp-low.c (handle_simd_reference): New function.
15141 (lower_rec_input_clauses): Use it. Defer adding reference
15142 initialization even for reduction without placeholder if in simd,
15143 handle it properly later on.
15145 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15147 PR tree-optimization/60899
15148 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15149 assume all static symbols will have definition wile parsing and
15150 check the do have definition later in compilation; check that
15151 variable referring symbol will be output before concluding that
15152 reference is safe; be conservative for referring local statics;
15153 be more precise about when comdat is output in other partition.
15155 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15158 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15160 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15161 (ipa_inline): Loop inline_to_all_callers until no more aliases
15164 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15166 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15167 set writeonly flag only for vars actually written to.
15169 2014-05-20 Dehao Chen <dehao@google.com>
15171 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15172 and callee count to get clone count.
15173 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15174 count in copy_body.
15176 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15178 PR rtl-optimization/61243
15179 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15181 2014-05-20 Xinliang David Li <davidxl@google.com>
15183 * cgraphunit.c (walk_polymorphic_call_targets): Add
15184 dbgcnt and fopt-info support.
15185 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15186 * ipa-devirt.c (ipa_devirt): Ditto.
15187 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15188 * ipa.c (walk_polymorphic_call_targets): Ditto.
15189 * gimple-fold.c (fold_gimple_assign): Ditto.
15190 (gimple_fold_call): Ditto.
15191 * dbgcnt.def: New counter.
15193 2014-05-20 DJ Delorie <dj@redhat.com>
15195 * config/msp430/msp430.md (split): Don't allow subregs when
15196 splitting SImode adds.
15197 (andneghi): Fix subtraction logic.
15198 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15200 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15202 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15204 * except.c (switch_to_exception_section, resolve_unique_section,
15205 get_named_text_section, default_function_rodata_section,
15206 align_variable, get_block_for_decl, default_section_type_flags):
15207 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15208 * symtab.c (symtab_add_to_same_comdat_group,
15209 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15210 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15212 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15213 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15214 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15215 (c6x_function_in_section_p): Likewise.
15216 * config/darwin.c (machopic_select_section): Likewise.
15217 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15218 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15219 * config/mep/mep.c (mep_select_section): LIkewise.
15220 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15222 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15224 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15225 EH region of calls to pure functions that can throw an exception.
15226 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15227 (copy_reference_ops_from_call): Also copy the EH region of the call if
15228 it can throw an exception.
15230 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15232 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15233 nested VEC_SELECTs that are inverses of each other.
15235 2014-05-20 Richard Biener <rguenther@suse.de>
15237 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15238 (extract_and_process_scc_for_name): not here.
15239 (cond_dom_walker::before_dom_children): Only process
15240 stmts that end the BB in interesting ways.
15241 (run_scc_vn): Mark param uses as visited.
15243 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15245 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15248 2014-05-20 Nick Clifton <nickc@redhat.com>
15250 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15251 (msp430_gimplify_va_arg_expr): New function.
15252 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15254 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15255 operand 0 in order to prevent confusion about the number of
15256 registers involved.
15258 2014-05-20 Richard Biener <rguenther@suse.de>
15260 PR tree-optimization/61221
15261 * tree-ssa-pre.c (el_to_update): Remove.
15262 (eliminate_dom_walker::before_dom_children): Handle released
15263 VDEFs by value-numbering them to the associated VUSE. Update
15264 stmt immediately for substituted call address.
15265 (eliminate): Remove delayed stmt updating code.
15266 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15267 possibly late re-numbered vuses.
15268 (vn_reference_lookup_2): Adjust.
15269 (vn_reference_lookup_pieces): Likewise.
15270 (vn_reference_lookup): Likewise.
15272 2014-05-20 Richard Biener <rguenther@suse.de>
15274 * config.gcc: Remove need_64bit_hwint.
15275 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15276 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15278 * config.in: Regenerate.
15279 * configure: Likewise.
15281 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15283 * doc/extend.texi: Create Label Attributes section,
15284 move all label attributes into it and reference it.
15286 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15288 * arm.c (thumb1_reorg): When scanning backwards skip anything
15289 that's not a proper insn.
15291 2014-05-19 Richard Biener <rguenther@suse.de>
15293 PR tree-optimization/61221
15294 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15295 Do nothing for unreachable blocks.
15296 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15297 Improve unreachability detection.
15299 2014-05-19 Richard Biener <rguenther@suse.de>
15301 PR tree-optimization/61209
15302 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15304 2014-05-19 Nick Clifton <nickc@redhat.com>
15306 * except.c (init_eh): Fix computation of builtin setjmp buffer
15307 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15309 2014-05-19 Richard Biener <rguenther@suse.de>
15311 PR tree-optimization/61184
15312 * tree-vrp.c (is_negative_overflow_infinity): Use
15313 TREE_OVERFLOW_P and do that check first.
15314 (is_positive_overflow_infinity): Likewise.
15315 (is_overflow_infinity): Likewise.
15316 (vrp_operand_equal_p): Properly treat operands with
15317 differing overflow as not equal.
15319 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15321 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15322 shift simplification where it was intended.
15324 2014-05-19 Christian Bruel <christian.bruel@st.com>
15327 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15329 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15332 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15335 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15337 * reg-notes.def (CROSSING_JUMP): Likewise.
15338 * rtl.h (rtx_def): Update comment for jump flag.
15339 (CROSSING_JUMP_P): Define.
15340 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15341 of a REG_CROSSING_JUMP note.
15342 * cfghooks.c (tidy_fallthru_edges): Likewise.
15343 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15344 * emit-rtl.c (try_split): Likewise.
15345 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15346 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15347 * jump.c (redirect_jump_2): Likewise.
15348 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15349 (relax_delay_slots): Likewise.
15350 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15351 (bbit_di): Likewise.
15352 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15353 * config/sh/sh.md (jump_compact): Likewise.
15354 * bb-reorder.c (rotate_loop): Likewise.
15355 (pass_duplicate_computed_gotos::execute): Likewise.
15356 (add_reg_crossing_jump_notes): Rename to...
15357 (update_crossing_jump_flags): ...this.
15358 (pass_partition_blocks::execute): Update accordingly.
15360 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15362 * tree.h: Remove extraneous template <>.
15364 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15366 * ipa.c (symtab_remove_unreachable_nodes): Remove
15367 symbol from comdat group if its body was eliminated.
15368 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15369 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15370 (symtab_unregister_node): ... this one.
15371 (verify_symtab_base): More strict checking of comdats.
15372 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15374 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15376 * tree-pass.h (make_pass_ipa_comdats): New pass.
15377 * timevar.def (TV_IPA_COMDATS): New timevar.
15378 * passes.def (pass_ipa_comdats): Add.
15379 * Makefile.in (OBJS): Add ipa-comdats.o
15380 * ipa-comdats.c: New file.
15382 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15384 * ipa.c (update_visibility_by_resolution_info): New function.
15385 (function_and_variable_visibility): Use it.
15387 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15389 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15391 (FOR_EACH_DEFINED_SYMBOL): New macro.
15392 (varpool_first_static_initializer, varpool_next_static_initializer,
15393 varpool_first_defined_variable, varpool_next_defined_variable):
15395 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15397 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15399 * ggc-page.c (ggc_handle_finalizers): Add comment.
15401 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15403 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15404 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15405 (ggc_internal_cleared_alloc): Likewise.
15406 * ggc-page.c (finalizer): New class.
15407 (vec_finalizer): Likewise.
15408 (globals::finalizers): New member.
15409 (globals::vec_finalizers): Likewise.
15410 (ggc_internal_alloc): Record the finalizer if any for the block being
15412 (ggc_handle_finalizers): New function.
15413 (ggc_collect): Call ggc_handle_finalizers.
15414 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15416 (ggc_internal_cleared_alloc): Likewise.
15417 (finalize): New function.
15418 (need_finalization_p): Likewise.
15419 (ggc_alloc): Install the type's destructor as the finalizer if it
15420 might do something.
15421 (ggc_cleared_alloc): Likewise.
15422 (ggc_vec_alloc): Likewise.
15423 (ggc_cleared_vec_alloc): Likewise.
15425 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15427 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15429 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15431 * alias.c (record_alias_subset): Adjust.
15432 * bitmap.c (bitmap_element_allocate): Likewise.
15433 (bitmap_gc_alloc_stat): Likewise.
15434 * cfg.c (init_flow): Likewise.
15435 (alloc_block): Likewise.
15436 (unchecked_make_edge): Likewise.
15437 * cfgloop.c (alloc_loop): Likewise.
15438 (flow_loops_find): Likewise.
15439 (rescan_loop_exit): Likewise.
15440 * cfgrtl.c (init_rtl_bb_info): Likewise.
15441 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15442 (cgraph_allocate_node): Likewise.
15443 (cgraph_create_edge_1): Likewise.
15444 (cgraph_allocate_init_indirect_info): Likewise.
15445 * cgraphclones.c (cgraph_clone_edge): Likewise.
15446 * cgraphunit.c (add_asm_node): Likewise.
15447 (init_lowered_empty_function): Likewise.
15448 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15449 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15450 (alpha_use_linkage): Likewise.
15451 * config/arc/arc.c (arc_init_machine_status): Likewise.
15452 * config/arm/arm.c (arm_init_machine_status): Likewise.
15453 * config/avr/avr.c (avr_init_machine_status): Likewise.
15454 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15455 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15456 * config/cris/cris.c (cris_init_machine_status): Likewise.
15457 * config/darwin.c (machopic_indirection_name): Likewise.
15458 (darwin_build_constant_cfstring): Likewise.
15459 (darwin_enter_string_into_cfstring_table): Likewise.
15460 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15461 * config/frv/frv.c (frv_init_machine_status): Likewise.
15462 * config/i386/i386.c (get_dllimport_decl): Likewise.
15463 (ix86_init_machine_status): Likewise.
15464 (assign_386_stack_local): Likewise.
15465 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15466 (i386_pe_maybe_record_exported_symbol): Likewise.
15467 (i386_pe_record_stub): Likewise.
15468 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15469 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15470 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15471 (m32c_note_pragma_address): Likewise.
15472 * config/mep/mep.c (mep_init_machine_status): Likewise.
15473 (mep_note_pragma_flag): Likewise.
15474 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15475 (mips16_local_alias): Likewise.
15476 (mips_init_machine_status): Likewise.
15477 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15478 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15479 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15480 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15481 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15482 * config/pa/pa.c (pa_init_machine_status): Likewise.
15483 (pa_get_deferred_plabel): Likewise.
15484 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15485 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15486 (rs6000_init_machine_status): Likewise.
15487 (output_toc): Likewise.
15488 * config/s390/s390.c (s390_init_machine_status): Likewise.
15489 * config/score/score.c (score_output_external): Likewise.
15490 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15491 * config/spu/spu.c (spu_init_machine_status): Likewise.
15492 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15493 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15494 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15495 * coverage.c (coverage_end_function): Likewise.
15496 * dbxout.c (dbxout_init): Likewise.
15497 * doc/gty.texi: Don't mention variable_size attribute.
15498 * dwarf2cfi.c (new_cfi): Adjust.
15499 (new_cfi_row): Likewise.
15500 (copy_cfi_row): Likewise.
15501 (create_cie_data): Likewise.
15502 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15503 (new_loc_descr): Likewise.
15504 (find_AT_string_in_table): Likewise.
15505 (add_addr_table_entry): Likewise.
15506 (new_die): Likewise.
15507 (add_var_loc_to_decl): Likewise.
15508 (clone_die): Likewise.
15509 (clone_as_declaration): Likewise.
15510 (break_out_comdat_types): Likewise.
15511 (new_loc_list): Likewise.
15512 (add_loc_descr_to_each): Likewise.
15513 (add_location_or_const_value_attribute): Likewise.
15514 (add_linkage_name): Likewise.
15515 (lookup_filename): Likewise.
15516 (dwarf2out_var_location): Likewise.
15517 (new_line_info_table): Likewise.
15518 (dwarf2out_init): Likewise.
15519 (mem_loc_descriptor): Likewise.
15520 (loc_descriptor): Likewise.
15521 (add_const_value_attribute): Likewise.
15522 (tree_add_const_value_attribute): Likewise.
15523 (comp_dir_string): Likewise.
15524 (dwarf2out_vms_debug_main_pointer): Likewise.
15525 (string_cst_pool_decl): Likewise.
15526 * emit-rtl.c (set_mem_attrs): Likewise.
15527 (get_reg_attrs): Likewise.
15528 (start_sequence): Likewise.
15529 (init_emit): Likewise.
15530 (init_emit_regs): Likewise.
15531 * except.c (init_eh_for_function): Likewise.
15532 (gen_eh_region): Likewise.
15533 (gen_eh_region_catch): Likewise.
15534 (gen_eh_landing_pad): Likewise.
15535 (add_call_site): Likewise.
15536 * function.c (add_frame_space): Likewise.
15537 (insert_temp_slot_address): Likewise.
15538 (assign_stack_temp_for_type): Likewise.
15539 (get_hard_reg_initial_val): Likewise.
15540 (allocate_struct_function): Likewise.
15541 (prepare_function_start): Likewise.
15542 (types_used_by_var_decl_insert): Likewise.
15543 * gengtype.c (variable_size_p): Remove function.
15544 (enum alloc_quantity): Remove enum.
15545 (write_typed_alloc_def): Remove function.
15546 (write_typed_struct_alloc_def): Likewise.
15547 (write_typed_typedef_alloc_def): Likewise.
15548 (write_typed_alloc_defns): Likewise.
15550 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15551 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15552 * ggc.h (ggc_alloc): new function.
15553 (ggc_cleared_alloc): Likewise.
15554 (ggc_vec_alloc): Template on type of vector element, and remove
15555 element size argument.
15556 (ggc_cleared_vec_alloc): Likewise.
15557 * gimple.c (gimple_build_omp_for): Adjust.
15558 (gimple_copy): Likewise.
15559 * ipa-cp.c (get_replacement_map): Likewise.
15560 (find_aggregate_values_for_callers_subset): Likewise.
15561 (known_aggs_to_agg_replacement_list): Likewise.
15562 * ipa-devirt.c (get_odr_type): Likewise.
15563 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15564 (read_agg_replacement_chain): Likewise.
15565 * loop-iv.c (get_simple_loop_desc): Likewise.
15566 * lto-cgraph.c (input_node_opt_summary): Likewise.
15567 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15568 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15569 (input_eh_region): Likewise.
15570 (input_eh_lp): Likewise.
15571 (input_cfg): Likewise.
15572 * optabs.c (set_optab_libfunc): Likewise.
15573 (init_tree_optimization_optabs): Likewise.
15574 (set_conv_libfunc): Likewise.
15575 * passes.c (do_per_function_toporder): Likewise.
15576 * rtl.h: Don't use variable_size gty attribute.
15577 * sese.c (if_region_set_false_region): Adjust.
15578 * stringpool.c (gt_pch_save_stringpool): Likewise.
15579 * target-globals.c (save_target_globals): Likewise.
15580 * toplev.c (general_init): Likewise.
15581 * trans-mem.c (record_tm_replacement): Likewise.
15582 (split_bb_make_tm_edge): Likewise.
15583 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15584 * tree-data-ref.h (lambda_vector_new): Likewise.
15585 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15586 * tree-iterator.c (tsi_link_before): Likewise.
15587 (tsi_link_after): Likewise.
15588 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15589 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15590 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15591 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15592 * tree-ssa.c (init_tree_ssa): Adjust.
15593 * tree-ssanames.c (set_range_info): Likewise.
15594 (get_ptr_info): Likewise.
15595 (duplicate_ssa_name_ptr_info): Likewise.
15596 (duplicate_ssa_name_range_info): Likewise.
15597 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15598 (unpack_ts_fixed_cst_value_fields): Likewise.
15599 * tree.c (build_fixed): Likewise.
15600 (build_real): Likewise.
15601 (build_string): Likewise.
15602 (decl_priority_info): Likewise.
15603 (decl_debug_expr_insert): Likewise.
15604 (decl_value_expr_insert): Likewise.
15605 (decl_debug_args_insert): Likewise.
15606 (type_hash_add): Likewise.
15607 (build_omp_clause): Likewise.
15608 * ubsan.c (decl_for_type_insert): Likewise.
15609 * varasm.c (get_unnamed_section): Likewise.
15610 (get_noswitch_section): Likewise.
15611 (get_section): Likewise.
15612 (get_block_for_section): Likewise.
15613 (create_block_symbol): Likewise.
15614 (build_constant_desc): Likewise.
15615 (create_constant_pool): Likewise.
15616 (force_const_mem): Likewise.
15617 (record_tm_clone_pair): Likewise.
15618 * varpool.c (varpool_create_empty_node): Likewise.
15620 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15622 * dwarf2out.c (tree_add_const_value_attribute): Call
15623 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15624 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15625 instead of ggc_internal_<x>alloc_stat.
15626 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15627 (ggc_realloc): Likewise.
15628 * ggc-none.c (ggc_internal_alloc): Likewise.
15629 (ggc_internal_cleared_alloc): Likewise.
15630 * ggc-page.c: Likewise.
15631 * ggc.h (ggc_internal_alloc_stat): Likewise.
15632 (ggc_internal_alloc): Remove macro.
15633 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15634 (ggc_internal_cleared_alloc): Remove macro.
15635 (GGC_RESIZEVEC): Adjust.
15636 (ggc_resizevar): Remove macro.
15637 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15638 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15639 (ggc_internal_vec_cleared_alloc): Remove macro.
15640 (ggc_alloc_atomic_stat): Drop _stat suffix.
15641 (ggc_alloc_atomic): Remove macro.
15642 (ggc_alloc_cleared_atomic): Remove macro.
15643 (ggc_alloc_string_stat): Drop _stat suffix.
15644 (ggc_alloc_string): Remove macro.
15645 (ggc_alloc_rtx_def_stat): Adjust.
15646 (ggc_alloc_tree_node_stat): Likewise.
15647 (ggc_alloc_cleared_tree_node_stat): Likewise.
15648 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15649 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15650 * gimple.c (gimple_build_omp_for): Likewise.
15651 (gimple_copy): Likewise.
15652 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15653 * toplev.c (realloc_for_line_map): Adjust.
15654 * tree-data-ref.h (lambda_vector_new): Likewise.
15655 * tree-phinodes.c (allocate_phi_node): Likewise.
15656 * tree.c (grow_tree_vec_stat): Likewise.
15657 * vec.h (va_gc::reserve): Adjust.
15659 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15661 * config/microblaze/microblaze.c (break_handler): New Declaration.
15662 (microblaze_break_function_p,microblaze_is_break_handler): New.
15663 (compute_frame_size): Use microblaze_break_function_p.
15664 Add the test of break_handler.
15665 (microblaze_function_prologue) : Add the test of variable
15666 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15667 (microblaze_function_epilogue) : Add the test of break_handler.
15668 (microblaze_globalize_label) : Add the test of break_handler.
15669 Check the name by BREAK_HANDLER_NAME.
15671 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15673 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15674 microblaze_is_break_handler test.
15675 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15676 Use SYMBOL_REF_DECL.
15678 * config/microblaze/microblaze-protos.h
15679 (microblaze_break_function_p,microblaze_is_break_handler):
15682 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15683 new MicroBlaze break_handler functions.
15685 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15687 * doc/extend.texi (Size of an asm): Move node text according
15688 to its @menu entry position.
15690 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15692 PR tree-optimization/61140
15693 PR tree-optimization/61150
15694 PR tree-optimization/61197
15695 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15697 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15699 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15701 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15703 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15704 __SIZEOF_INT128__ is defined.
15706 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15708 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15709 (rs6000_delegitimize_address): Use it.
15711 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15713 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15714 inplace argument. Store the new address in the original MEM when true.
15715 * emit-rtl.c (change_address_1): Likewise.
15716 (adjust_address_1, adjust_automodify_address_1, offset_address):
15717 Update accordingly.
15718 * rtl.h (plus_constant): Add an inplace argument.
15719 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15720 when true. Avoid generating (plus X (const_int 0)).
15721 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15722 in-place. Pass true to plus_constant.
15723 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15725 2014-05-16 Dehao Chen <dehao@google.com>
15727 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15729 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15732 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15734 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15736 2014-05-16 Dehao Chen <dehao@google.com>
15738 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15739 optimize_function_for_size_p.
15740 * regs.h (REG_FREQ_FROM_BB): Likewise.
15742 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15745 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15746 negt_reg_operand cases.
15747 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15749 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15751 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15753 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15756 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15759 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15761 * tree-cfg.c (dump_function_to_file): Dump the return type of
15762 functions, in a line to itself before the function body, mimicking
15763 the layout of a C function.
15765 2014-05-16 Dehao Chen <dehao@google.com>
15767 * cfghooks.c (make_forwarder_block): Use direct computation to
15768 get fall-through edge's count and frequency.
15770 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15772 * config/arc/arc.c (arc_init): Fix typo in error message.
15773 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15774 (split_stack_prologue_scratch_regno): Likewise.
15775 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15776 word from error message.
15778 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15780 * ira-costs.c: Fix typo in comment.
15782 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15784 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15786 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
15788 * varpool.c (dump_varpool_node): Dump write-only flag.
15789 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15791 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15792 write-only variables.
15793 * ipa.c (process_references): New function.
15794 (set_readonly_bit): New function.
15795 (set_writeonly_bit): New function.
15796 (clear_addressable_bit): New function.
15797 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15798 fix handling of aliases.
15799 * cgraph.h (struct varpool_node): Add writeonly flag.
15801 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
15803 PR rtl-optimization/60969
15804 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15805 Calculate costs for this case.
15807 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
15809 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
15810 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
15812 2014-05-16 Richard Biener <rguenther@suse.de>
15814 PR tree-optimization/61194
15815 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
15816 bool patterns ending in a COND_EXPR.
15818 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15820 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
15822 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15824 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
15825 where we were unable to cost an RTX.
15827 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15829 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
15832 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15833 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15835 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
15837 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15838 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15840 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
15841 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
15843 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15844 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15846 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
15849 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15850 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15852 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15855 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15856 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15858 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
15859 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
15861 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15862 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15864 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15865 rotates and shifts.
15867 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15868 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15870 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
15871 ZERO_EXTEND and SIGN_EXTEND better.
15873 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15874 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15876 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
15877 logical operations.
15879 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15880 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15882 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
15883 costs when costing loads and stores to memory.
15885 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15886 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
15888 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
15891 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15893 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
15895 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15896 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15898 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
15900 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
15902 (aarch64_rtx_mult_cost): New.
15903 (aarch64_rtx_costs): Use it, refactor as appropriate.
15905 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15906 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15908 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
15909 emit instructions, return number of instructions which would
15911 (aarch64_add_constant): Update call to aarch64_build_constant.
15912 (aarch64_output_mi_thunk): Likewise.
15913 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
15916 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15918 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
15919 (TARGET_RTX_COSTS): Call it.
15921 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15923 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
15924 (cortexa57_vector_cost): Likewise.
15925 (cortexa57_tunings): Use them.
15927 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15929 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
15930 (cpu_addrcost_table): Use it.
15931 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
15932 (aarch64_address_cost): Rewrite using aarch64_classify_address,
15935 2014-05-16 Richard Biener <rguenther@suse.de>
15937 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
15938 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
15939 (visit_phi): Ignore edges marked as not executable.
15940 (class cond_dom_walker): New.
15941 (cond_dom_walker::before_dom_children): Value-number
15942 control statements and mark successor edges as not
15943 executable if possible.
15944 (run_scc_vn): First walk all control statements in
15945 dominator order, marking edges as not executable.
15946 * tree-inline.c (copy_edges_for_bb): Be not confused
15947 about random edge flags.
15949 2014-05-16 Richard Biener <rguenther@suse.de>
15951 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
15953 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
15956 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
15957 (__TM_simple_begin): Use it.
15958 (__TM_begin): Likewise.
15960 2014-05-15 Martin Jambor <mjambor@suse.cz>
15963 * ipa-prop.c (update_indirect_edges_after_inlining): Check
15964 type_preserved flag when the indirect edge is polymorphic.
15966 2014-05-15 Martin Jambor <mjambor@suse.cz>
15968 PR tree-optimization/61090
15969 * tree-sra.c (sra_modify_expr): Pass the current gsi to
15970 build_ref_for_model.
15972 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15974 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
15975 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
15977 2014-05-15 Jakub Jelinek <jakub@redhat.com>
15979 PR tree-optimization/61158
15980 * fold-const.c (fold_binary_loc): If X is zero-extended and
15981 shiftc >= prec, make sure zerobits is all ones instead of
15982 invoking undefined behavior.
15984 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15986 * regcprop.h: New file.
15987 * regcprop.c (skip_debug_insn_p): New decl.
15988 (replace_oldest_value_reg): Check skip_debug_insn_p.
15989 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
15990 * shrink-wrap.c: Include regcprop.h.
15991 (prepare_shrink_wrap): Call
15992 copyprop_hardreg_forward_bb_without_debug_insn.
15994 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15996 * shrink-wrap.h: Update comment.
15997 * shrink-wrap.c: Update comment.
15998 (next_block_for_reg): Rename to live_edge_for_reg.
15999 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16000 (move_insn_for_shrink_wrap): Split live_edge.
16001 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16003 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16005 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16007 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16008 * config/sparc/sparc.md (fptype_ut699): New attribute.
16009 (in_branch_delay): Return false if -mfix-ut699 is specified and
16010 fptype_ut699 is set to single.
16011 (truncdfsf2): Add fptype_ut699 attribute.
16012 (fix_truncdfsi2): Likewise.
16013 (floatsisf2): Change fptype attribute.
16014 (fix_truncsfsi2): Likewise.
16015 (negtf2_notv9): Delete.
16016 (negtf2_v9): Likewise.
16017 (negtf2_hq): New instruction.
16018 (negtf2): New instruction and splitter.
16019 (negdf2_notv9): Rewrite.
16020 (abstf2_notv9): Delete.
16021 (abstf2_hq_v9): Likewise.
16022 (abstf2_v9): Likewise.
16023 (abstf2_hq): New instruction.
16024 (abstf2): New instruction and splitter.
16025 (absdf2_notv9): Rewrite.
16027 2014-05-14 Cary Coutant <ccoutant@google.com>
16030 * opts.c (common_handle_option): Don't special-case "-g".
16031 (set_debug_level): Default to at least level 2 with "-g".
16033 2014-05-14 DJ Delorie <dj@redhat.com>
16035 * config/msp430/msp430.c (msp430_builtin): Add
16036 MSP430_BUILTIN_DELAY_CYCLES.
16037 (msp430_init_builtins): Register void __delay_cycles(long long).
16038 (msp430_builtin_decl): Add it.
16039 (cg_magic_constant): New.
16040 (msp430_expand_delay_cycles): New.
16041 (msp430_expand_builtin): Call it.
16042 (msp430_print_operand_raw): Change integer printing from "int" to
16044 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16045 (delay_cycles_start): New.
16046 (delay_cycles_end): New.
16047 (delay_cycles_32): New.
16048 (delay_cycles_32x): New.
16049 (delay_cycles_16): New.
16050 (delay_cycles_16x): New.
16051 (delay_cycles_2): New.
16052 (delay_cycles_1): New.
16053 * doc/extend.texi: Document __delay_cycles().
16055 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16057 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16058 length attribute computation.
16060 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16063 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16065 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16068 * config/sparc/sparc.md: Fix types of low and high in DI constant
16069 splitter. Use gen_int_mode in some other splitters.
16071 2014-05-14 Martin Jambor <mjambor@suse.cz>
16074 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16076 2014-05-14 James Norris <jnorris@codesourcery.com>
16078 * omp-low.c (expand_parallel_call): Remove shadow variable.
16079 (expand_omp_taskreg): Likewise.
16081 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16083 * common/config/i386/i386-common.c
16084 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16085 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16086 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16087 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16088 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16089 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16090 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16091 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16092 xsavecintrin.h, xsavesintrin.h.
16093 (x86_64-*-*): Ditto.
16094 * config/i386/clflushoptintrin.h: New.
16095 * config/i386/xsavecintrin.h: Ditto.
16096 * config/i386/xsavesintrin.h: Ditto.
16097 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16098 (bit_XSAVES): Ditto.
16099 (bit_XSAVES): Ditto.
16100 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16101 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16103 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16104 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16105 OPTION_MASK_ISA_XSAVES.
16106 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16107 -mxsavec, -mxsaves.
16108 (PTA_CLFLUSHOPT) Define.
16109 (PTA_XSAVEC): Ditto.
16110 (PTA_XSAVES): Ditto.
16111 (ix86_option_override_internal): Handle new options.
16112 (ix86_valid_target_attribute_inner_p): Ditto.
16113 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16114 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16115 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16116 (bdesc_special_args): Add __builtin_ia32_xsaves,
16117 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16118 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16119 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16120 (ix86_expand_builtin): Handle new builtins.
16121 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16122 (TARGET_CLFLUSHOPT_P): Ditto.
16123 (TARGET_XSAVEC): Ditto.
16124 (TARGET_XSAVEC_P): Ditto.
16125 (TARGET_XSAVES): Ditto.
16126 (TARGET_XSAVES_P): Ditto.
16127 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16128 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16129 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16131 (ANY_XRSTOR64): Ditto.
16133 (xrstor): Change into <xrstor>.
16134 (xrstor_rex64): Change into <xrstor>_rex64.
16135 (xrstor64): Change into <xrstor>64
16137 * config/i386/i386.opt (mclflushopt): New.
16140 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16142 * doc/invoke.texi: Document new options.
16144 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16146 PR rtl-optimization/60866
16147 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16148 Default it to -1. Pass it down to init_simplejump_data.
16149 (init_simplejump_data): New parameter old_seqno. Pass it down
16150 to get_seqno_for_a_jump.
16151 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16152 initializing new jump seqno as a last resort. Add comment.
16153 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16154 jump and pass it down to sel_init_new_insn.
16155 (sel_redirect_edge_and_branch_force): Likewise.
16157 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16159 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16160 shifted values to avoid build warning.
16162 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16164 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16165 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16166 (cfg_layout_merge_blocks): Likewise.
16167 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16169 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16171 PR rtl-optimization/60901
16172 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16173 bb predecessor belongs to the same scheduling region. Adjust comment.
16175 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16177 * doc/sourcebuild.texi: (dfp_hw): Document.
16178 (p8vector_hw): Likewise.
16179 (powerpc_eabi_ok): Likewise.
16180 (powerpc_elfv2): Likewise.
16181 (powerpc_htm_ok): Likewise.
16182 (ppc_recip_hw): Likewise.
16183 (vsx_hw): Likewise.
16185 2014-05-13 Cary Coutant <ccoutant@google.com>
16187 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16189 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16191 * gengtype-parse.c (require3): Eliminate in favor of...
16193 (require_template_declaration): Update to support optional single *
16196 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16197 (create_user_defined_type): Handle a single level of explicit
16198 pointerness within template arguments.
16199 (struct write_types_data): Add field "kind".
16200 (filter_type_name): Handle "*" character.
16201 (write_user_func_for_structure_ptr): Require a write_types_data
16202 rather than just a prefix string, so that we can look up the kind
16203 of the wtd and use it as an index into wrote_user_func_for_ptr,
16204 ensuring that such functions are written at most once. Support
16205 subclasses by invoking the marking function of the ultimate base class.
16206 (write_user_func_for_structure_body): Require a write_types_data
16207 rather than just a prefix string, so that we can pass this to
16208 write_user_func_for_structure_ptr.
16209 (write_func_for_structure): Likewise.
16210 (ggc_wtd): Add initializer of new "kind" field.
16211 (pch_wtd): Likewise.
16213 * gengtype.h (enum write_types_kinds): New.
16214 (struct type): Add field wrote_user_func_for_ptr to the "s"
16217 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16219 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16220 instead of const_binop.
16221 (fold_binary_loc): Likewise.
16223 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16225 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16226 calculation to match get_ref_base_and_extent.
16228 2014-05-13 Catherine Moore <clm@codesourcery.com>
16229 Sandra Loosemore <sandra@codesourcery.com>
16231 * configure.ac: Fix assembly for explicit JALR relocation check.
16232 * configure: Regenerate.
16234 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16236 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16237 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16238 Remove associated type declarations and initialisations.
16239 (arm_expand_neon_builtin): Likewise.
16240 (neon_emit_pair_result_insn): Delete.
16241 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16242 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16243 (neon_vzip<mode>): Likewise.
16244 (neon_vuzp<mode>): Likewise.
16246 2014-05-13 Richard Biener <rguenther@suse.de>
16249 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16250 it needs revisiting whether the call still may be tail-called.
16252 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16254 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16255 * rtl.h (block_symbol): Reduce number of fields to 2.
16256 (rtx_def): Add u2.symbol_ref_flags.
16257 (SYMBOL_REF_FLAGS): Use it.
16258 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16259 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16260 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16261 Lower index of SYMBOL_REF_DATA.
16262 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16263 Print SYMBOL_REF_FLAGS at the same time.
16264 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16266 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16268 * rtl.def (VAR_LOCATION): Remove "i" field.
16269 * rtl.h (rtx_def): Add u2.var_location_status.
16270 (PAT_VAR_LOCATION_STATUS): Use it.
16271 (gen_rtx_VAR_LOCATION): Declare.
16272 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16273 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16274 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16276 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16278 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16279 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16281 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16283 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16284 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16285 * rtl.h (rtx_def): Add insn_uid to u2 field.
16286 (RTX_FLAG_CHECK8): Delete in favor of...
16287 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16288 (INSN_DELETED_P): Update accordingly.
16289 (INSN_UID): Use u2.insn_uid.
16290 (INSN_CHAIN_CODE_P): Define.
16291 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16292 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16293 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16294 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16295 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16296 indices accordingly.
16297 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16298 Update indices for insn-chain rtxes.
16299 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16300 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16301 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16302 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16303 * combine.c (try_combine): Likewise.
16304 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16306 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16308 * rtl.def (REG): Remove middle field.
16309 * rtl.h (rtx_def): Add orignal_regno to u2.
16310 (ORIGINAL_REGNO): Use it instead of field 1.
16311 (REG_ATTRS): Lower field index accordingly.
16312 * gengtype.c (adjust_field_rtx_def): Remove handling of
16313 ORIGINAL_REGNO. Move REG_ATTRS index down.
16314 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16315 code that prints the REGNO.
16317 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16319 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16322 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16324 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16326 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16328 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16329 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16331 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16333 * config/aarch64/aarch64-protos.h
16334 (aarch64_hard_regno_caller_save_mode): New prototype.
16335 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16337 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16339 2014-05-13 Christian Bruel <christian.bruel@st.com>
16341 * target.def (mode_switching): New hook vector.
16342 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16343 (mode_exit, modepriority_to_mode): Likewise.
16344 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16345 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16346 * target.h: Include tm.h and hard-reg-set.h.
16347 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16348 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16349 * doc/tm.texi Regenerate.
16350 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16351 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16352 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16353 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16354 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16355 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16356 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16357 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16358 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16359 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16360 (ix86_emit_mode_set): Hookify.
16361 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16363 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16364 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16365 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16366 (epiphany_mode_priority_to_mode): Remove declaration.
16367 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16368 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16369 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16371 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16372 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16373 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16375 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16378 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16379 is const0_rtx, return immediately. Don't test count == 0 when
16382 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16384 * Makefile.in: add shrink-wrap.o.
16385 * config/i386/i386.c: include "shrink-wrap.h"
16386 * function.c: Likewise.
16387 (requires_stack_frame_p, next_block_for_reg,
16388 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16389 dup_block_and_redirect): Move to shrink-wrap.c
16390 (thread_prologue_and_epilogue_insns): Extract three code segments
16391 as functions in shrink-wrap.c
16392 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16394 * shrink-wrap.c: New file.
16395 * shrink-wrap.h: New file.
16397 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16399 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16400 reference to Solaris.
16402 2014-05-12 Mike Stump <mikestump@comcast.net>
16405 * genattrtab.c (filename): Add.
16406 (convert_set_attr_alternative): Improve error message.
16407 (check_defs): Restore read_md_filename for error messages.
16408 (gen_insn): Save filename.
16410 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16412 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16413 -fno-local-ivars and -fivar-visibility.
16414 * c-family/c.opt: Make -Wshadow also implicitly enable
16417 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16419 * doc/tm.texi: Remove reference to deleted macro.
16420 * doc/tm.texi.in: Likewise.
16422 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16425 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16428 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16431 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16432 * config/arm/aout.h (License): Same.
16433 * config/arm/bpabi.h (License): Same.
16434 * config/arm/elf.h (License): Same.
16435 * config/arm/linux-elf.h (License): Same.
16436 * config/arm/linux-gas.h (License): Same.
16437 * config/arm/netbsd-elf.h (License): Same.
16438 * config/arm/uclinux-eabi.h (License): Same.
16439 * config/arm/uclinux-elf.h (License): Same.
16440 * config/arm/vxworks.h (License): Same.
16442 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16444 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16445 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16446 number of operands to 3.
16447 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16448 * tree-nested.c (convert_nonlocal_omp_clauses,
16449 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16450 * gimplify.c (gimplify_scan_omp_clauses): Handle
16451 OMP_CLAUSE_LINEAR_STMT.
16452 * omp-low.c (lower_rec_input_clauses): Fix typo.
16453 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16454 cast between Fortran boolean_type_node and C _Bool if
16457 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16459 PR tree-optimization/61136
16460 * wide-int.h (multiple_of_p): Define a version that doesn't return
16462 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16463 integer_zerop/const_binop pair.
16464 (multiple_of_p): Likewise, converting both operands to widest_int
16467 2014-05-09 Teresa Johnson <tejohnson@google.com>
16469 * cgraphunit.c (analyze_functions): Use correct dump file.
16471 2014-05-09 Florian Weimer <fweimer@redhat.com>
16473 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16475 (stack_protect_return_slot_p): New function.
16476 (expand_used_vars): Call stack_protect_decl_p and
16477 stack_protect_return_slot_p for -fstack-protector-strong.
16479 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16480 Andrew Haley <aph@redhat.com>
16481 Richard Sandiford <rdsandiford@googlemail.com>
16483 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16486 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16488 PR middle-end/61111
16489 * fold-const.c (fold_binary_loc): Changed width of mask.
16491 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16493 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16494 unsigned int initializers for regno_in, regno_out.
16496 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16499 * config/avr/avr.md (cc): Add new attribute set_vzn.
16500 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16501 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16502 with INC, DEC or NEG.
16503 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16504 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16505 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16507 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16510 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16512 * wide-int.cc (UTItype): Define.
16513 (UDWtype): Define for appropriate W_TYPE_SIZE.
16515 2014-05-09 Richard Biener <rguenther@suse.de>
16517 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16518 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16519 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16520 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16521 ssa_propagate): Adjust.
16523 2014-05-08 Jeff Law <law@redhat.com>
16525 PR tree-optimization/61009
16526 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16527 tri-state rather than a boolean. When a block is too big to
16528 thread through, inform caller via negative return value.
16529 (thread_across_edge): If a block was too big for normal threading,
16530 then it's too big for a joiner too, so remove temporary equivalences
16531 and return immediately.
16533 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16534 Matthias Klose <doko@ubuntu.com>
16537 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16539 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16542 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16544 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16547 * config/alpha/alpha.c: Include gimple-iterator.h.
16548 (alpha_gimple_fold_builtin): New function. Move
16549 ALPHA_BUILTIN_UMULH folding from ...
16550 (alpha_fold_builtin): ... here.
16551 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16553 2014-05-08 Wei Mi <wmi@google.com>
16556 * config/i386/i386.c (ix86_compute_frame_layout): Update
16557 preferred_stack_boundary for call, expanded from tls descriptor.
16558 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16559 to depend on SP register.
16560 (*tls_local_dynamic_base_32_gnu): Ditto.
16561 (*tls_local_dynamic_32_once): Ditto.
16562 (tls_global_dynamic_64_<mode>): Set
16563 ix86_tls_descriptor_calls_expanded_in_cfun.
16564 (tls_local_dynamic_base_64_<mode>): Ditto.
16565 (tls_global_dynamic_32): Set
16566 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16567 to depend on SP register.
16568 (tls_local_dynamic_base_32): Ditto.
16570 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16572 * config/arm/arm_neon.h: Update comment.
16573 * config/arm/neon-docgen.ml: Delete.
16574 * config/arm/neon-gen.ml: Delete.
16575 * doc/arm-neon-intrinsics.texi: Update comment.
16577 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16579 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16581 (vand, vorr, veor, vorn, vbic): Remove.
16582 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16584 (neon_vsub_unspec): Likewise.
16585 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16587 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16589 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16590 (vadd_s16): Likewise.
16591 (vadd_s32): Likewise.
16592 (vadd_f32): Likewise.
16593 (vadd_u8): Likewise.
16594 (vadd_u16): Likewise.
16595 (vadd_u32): Likewise.
16596 (vadd_s64): Likewise.
16597 (vadd_u64): Likewise.
16598 (vaddq_s8): Likewise.
16599 (vaddq_s16): Likewise.
16600 (vaddq_s32): Likewise.
16601 (vaddq_s64): Likewise.
16602 (vaddq_f32): Likewise.
16603 (vaddq_u8): Likewise.
16604 (vaddq_u16): Likewise.
16605 (vaddq_u32): Likewise.
16606 (vaddq_u64): Likewise.
16607 (vmul_s8): Likewise.
16608 (vmul_s16): Likewise.
16609 (vmul_s32): Likewise.
16610 (vmul_f32): Likewise.
16611 (vmul_u8): Likewise.
16612 (vmul_u16): Likewise.
16613 (vmul_u32): Likewise.
16614 (vmul_p8): Likewise.
16615 (vmulq_s8): Likewise.
16616 (vmulq_s16): Likewise.
16617 (vmulq_s32): Likewise.
16618 (vmulq_f32): Likewise.
16619 (vmulq_u8): Likewise.
16620 (vmulq_u16): Likewise.
16621 (vmulq_u32): Likewise.
16622 (vsub_s8): Likewise.
16623 (vsub_s16): Likewise.
16624 (vsub_s32): Likewise.
16625 (vsub_f32): Likewise.
16626 (vsub_u8): Likewise.
16627 (vsub_u16): Likewise.
16628 (vsub_u32): Likewise.
16629 (vsub_s64): Likewise.
16630 (vsub_u64): Likewise.
16631 (vsubq_s8): Likewise.
16632 (vsubq_s16): Likewise.
16633 (vsubq_s32): Likewise.
16634 (vsubq_s64): Likewise.
16635 (vsubq_f32): Likewise.
16636 (vsubq_u8): Likewise.
16637 (vsubq_u16): Likewise.
16638 (vsubq_u32): Likewise.
16639 (vsubq_u64): Likewise.
16640 (vand_s8): Likewise.
16641 (vand_s16): Likewise.
16642 (vand_s32): Likewise.
16643 (vand_u8): Likewise.
16644 (vand_u16): Likewise.
16645 (vand_u32): Likewise.
16646 (vand_s64): Likewise.
16647 (vand_u64): Likewise.
16648 (vandq_s8): Likewise.
16649 (vandq_s16): Likewise.
16650 (vandq_s32): Likewise.
16651 (vandq_s64): Likewise.
16652 (vandq_u8): Likewise.
16653 (vandq_u16): Likewise.
16654 (vandq_u32): Likewise.
16655 (vandq_u64): Likewise.
16656 (vorr_s8): Likewise.
16657 (vorr_s16): Likewise.
16658 (vorr_s32): Likewise.
16659 (vorr_u8): Likewise.
16660 (vorr_u16): Likewise.
16661 (vorr_u32): Likewise.
16662 (vorr_s64): Likewise.
16663 (vorr_u64): Likewise.
16664 (vorrq_s8): Likewise.
16665 (vorrq_s16): Likewise.
16666 (vorrq_s32): Likewise.
16667 (vorrq_s64): Likewise.
16668 (vorrq_u8): Likewise.
16669 (vorrq_u16): Likewise.
16670 (vorrq_u32): Likewise.
16671 (vorrq_u64): Likewise.
16672 (veor_s8): Likewise.
16673 (veor_s16): Likewise.
16674 (veor_s32): Likewise.
16675 (veor_u8): Likewise.
16676 (veor_u16): Likewise.
16677 (veor_u32): Likewise.
16678 (veor_s64): Likewise.
16679 (veor_u64): Likewise.
16680 (veorq_s8): Likewise.
16681 (veorq_s16): Likewise.
16682 (veorq_s32): Likewise.
16683 (veorq_s64): Likewise.
16684 (veorq_u8): Likewise.
16685 (veorq_u16): Likewise.
16686 (veorq_u32): Likewise.
16687 (veorq_u64): Likewise.
16688 (vbic_s8): Likewise.
16689 (vbic_s16): Likewise.
16690 (vbic_s32): Likewise.
16691 (vbic_u8): Likewise.
16692 (vbic_u16): Likewise.
16693 (vbic_u32): Likewise.
16694 (vbic_s64): Likewise.
16695 (vbic_u64): Likewise.
16696 (vbicq_s8): Likewise.
16697 (vbicq_s16): Likewise.
16698 (vbicq_s32): Likewise.
16699 (vbicq_s64): Likewise.
16700 (vbicq_u8): Likewise.
16701 (vbicq_u16): Likewise.
16702 (vbicq_u32): Likewise.
16703 (vbicq_u64): Likewise.
16704 (vorn_s8): Likewise.
16705 (vorn_s16): Likewise.
16706 (vorn_s32): Likewise.
16707 (vorn_u8): Likewise.
16708 (vorn_u16): Likewise.
16709 (vorn_u32): Likewise.
16710 (vorn_s64): Likewise.
16711 (vorn_u64): Likewise.
16712 (vornq_s8): Likewise.
16713 (vornq_s16): Likewise.
16714 (vornq_s32): Likewise.
16715 (vornq_s64): Likewise.
16716 (vornq_u8): Likewise.
16717 (vornq_u16): Likewise.
16718 (vornq_u32): Likewise.
16719 (vornq_u64): Likewise.
16721 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16723 * wide-int.cc (UTItype): Define.
16724 (UDWtype): Define for appropriate W_TYPE_SIZE.
16726 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16728 PR tree-optimization/59100
16729 * tree-ssa-phiopt.c: Include tree-inline.h.
16730 (neutral_element_p, absorbing_element_p): New functions.
16731 (value_replacement): Handle conditional binary operations with a
16732 neutral or absorbing element.
16734 2014-05-08 Richard Biener <rguenther@suse.de>
16736 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16737 folding the expression.
16738 (valueize_expr): Remove.
16739 (visit_reference_op_load): Do not valueize the result of
16741 (simplify_binary_expression): Likewise.
16742 (simplify_unary_expression): Likewise.
16744 2014-05-08 Richard Biener <rguenther@suse.de>
16746 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16747 looking at TYPE_ARG_TYPES.
16749 2014-05-08 Richard Biener <rguenther@suse.de>
16751 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16752 pointer propagation special-case.
16754 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16756 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16757 core part of address expressions.
16759 2014-05-08 Alan Modra <amodra@gmail.com>
16762 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16763 loads and stores when -mno-strict-align at any alignment.
16764 (expand_block_clear): Similarly. Also correct calculation of
16767 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16769 PR middle-end/39246
16770 * tree-complex.c (expand_complex_move): Keep line info when expanding
16772 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16773 of complex expression. Use new argument to display correct location
16774 for values coming from phi statement.
16775 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16776 (warn_uninitialized_phi): Pass location of phi argument to
16778 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16779 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16781 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16783 * config/rs6000/predicates.md (indexed_address_mem): New.
16784 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16785 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16786 fpstore_ux, fpstore_u.
16787 (sign_extend, indexed, update): New.
16788 (cell_micro): Adjust.
16789 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16790 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16791 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16792 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16793 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16794 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16795 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16796 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16797 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16798 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16799 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16800 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16801 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16802 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16803 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16805 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16806 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16807 *vsx_extract_<mode>_store): Adjust.
16808 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16809 is_cracked_insn, insn_must_be_first_in_group,
16810 insn_must_be_last_in_group): Adjust.
16812 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
16814 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
16815 ppc440-fpstore): Adjust.
16816 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
16817 ppc476-fpstore): Adjust.
16818 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
16819 ppc601-fpstore): Adjust.
16820 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
16822 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
16824 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
16825 ppc7450-fpstore): Adjust.
16826 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
16827 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
16828 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
16830 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
16831 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
16832 cell-fpstore, cell-fpstore-update): Adjust.
16833 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
16834 ppce300c3_store, ppce300c3_fpstore): Adjust.
16835 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
16836 e500mc_fpstore): Adjust.
16837 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
16838 e500mc64_store, e500mc64_fpstore): Adjust.
16839 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
16840 e5500_fpstore): Adjust.
16841 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
16842 e6500_fpstore): Adjust.
16843 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
16845 * config/rs6000/power4.md (power4-load, power4-load-ext,
16846 power4-load-ext-update, power4-load-ext-update-indexed,
16847 power4-load-update-indexed, power4-load-update, power4-fpload,
16848 power4-fpload-update, power4-store, power4-store-update,
16849 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
16851 * config/rs6000/power5.md (power5-load, power5-load-ext,
16852 power5-load-ext-update, power5-load-ext-update-indexed,
16853 power5-load-update-indexed, power5-load-update, power5-fpload,
16854 power5-fpload-update, power5-store, power5-store-update,
16855 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
16857 * config/rs6000/power6.md (power6-load, power6-load-ext,
16858 power6-load-update, power6-load-update-indexed,
16859 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
16860 power6-fpload-update, power6-store, power6-store-update,
16861 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
16863 * config/rs6000/power7.md (power7-load, power7-load-ext,
16864 power7-load-update, power7-load-update-indexed,
16865 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
16866 power7-fpload-update, power7-store, power7-store-update,
16867 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
16869 * config/rs6000/power8.md (power8-load, power8-load-update,
16870 power8-load-ext, power8-load-ext-update, power8-fpload,
16871 power8-fpload-update, power8-store, power8-store-update-indexed,
16872 power8-fpstore, power8-fpstore-update): Adjust.
16873 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
16875 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
16876 titan_lsu_store, titan_lsu_fpstore): Adjust.
16877 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
16879 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16882 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
16883 unrolled byte insns. Emit address increments after move insns.
16885 2014-05-07 David Malcolm <dmalcolm@redhat.com>
16887 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
16888 const_gimple, rather than a gimple.
16889 (gimple_call_builtin_p): Likewise, for the three variants.
16891 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
16892 (gimple_call_builtin_p): Likewise, for the three variants.
16894 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16896 PR tree-optimization/61095
16897 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
16899 2014-05-07 Richard Biener <rguenther@suse.de>
16901 PR tree-optimization/61034
16902 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
16903 (maybe_skip_until): Use translate to take into account
16904 lattices when trying to do disambiguations.
16905 (get_continuation_for_phi_1): Likewise.
16906 (get_continuation_for_phi): Adjust for added translate arguments.
16907 (walk_non_aliased_vuses): Likewise.
16908 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
16909 (walk_non_aliased_vuses): Likewise.
16910 (call_may_clobber_ref_p_1): Declare.
16911 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
16912 calls. Stop early if we are only supposed to disambiguate.
16913 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
16915 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
16917 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
16918 Emit an error when the function has arguments.
16920 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16922 * cfgloop.h (unswitch_loops): Remove.
16923 * doc/passes.texi: Remove references to loop-unswitch.c
16924 * timevar.def (TV_LOOP_UNSWITCH): Remove.
16926 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
16928 * tree-vect-data-refs.c (vect_grouped_load_supported): New
16929 check for loads group of length 3.
16930 (vect_permute_load_chain): New permutations for loads group of
16932 * tree-vect-stmts.c (vect_model_load_cost): Change cost
16933 of vec_perm_shuffle for the new permutations.
16935 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
16937 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
16938 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
16939 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
16940 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
16941 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
16942 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
16943 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
16944 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
16946 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16948 * loop-unswitch.c: Delete.
16950 2014-05-07 Richard Biener <rguenther@suse.de>
16952 * config.gcc: Always set need_64bit_hwint to yes.
16954 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
16956 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
16957 of using optimize_size.
16959 2014-05-06 Mike Stump <mikestump@comcast.net>
16961 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
16963 2014-05-06 Joseph Myers <joseph@codesourcery.com>
16965 * config/i386/sse.md (*mov<mode>_internal)
16966 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
16967 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
16968 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
16969 (*<code><mode>3, *andnot<mode>3<mask_name>)
16970 (<mask_codefor><code><mode>3<mask_name>): Only consider
16971 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
16973 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16976 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
16978 * lra-constraints.c (valid_address_p): Move earlier in file.
16979 Add a constraint argument to the address_info version.
16980 (satisfies_memory_constraint_p): New function.
16981 (satisfies_address_constraint_p): Likewise.
16982 (process_alt_operands, curr_insn_transform): Use them.
16983 (process_address): Pass the constraint to valid_address_p when
16984 checking address operands.
16986 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
16988 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
16989 to their respective blocks. Fix inadvertent use of "node".
16991 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16993 * emit-rtl.c (init_derived_machine_modes): New functionm, split
16995 (init_emit_once): ...here.
16996 * rtl.h (init_derived_machine_modes): Declare.
16997 * toplev.c (do_compile): Call it even if no_backend.
16999 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17000 Mike Stump <mikestump@comcast.net>
17001 Richard Sandiford <rdsandiford@googlemail.com>
17002 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17004 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17005 (rtx_equal_for_memref_p): Update comment.
17006 (adjust_offset_for_component_ref): Use wide-int interfaces.
17007 * builtins.c (get_object_alignment_2): Likewise.
17008 (c_readstr): Likewise.
17009 (target_char_cast): Add comment.
17010 (determine_block_size): Use wide-int interfaces.
17011 (expand_builtin_signbit): Likewise.
17012 (fold_builtin_int_roundingfn): Likewise.
17013 (fold_builtin_bitop): Likewise.
17014 (fold_builtin_bswap): Likewise.
17015 (fold_builtin_logarithm): Use signop.
17016 (fold_builtin_pow): Likewise.
17017 (fold_builtin_memory_op): Use wide-int interfaces.
17018 (fold_builtin_object_size): Likewise.
17019 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17020 nb_iterations_estimate.
17021 (record_niter_bound): Use wide-int interfaces.
17022 (get_estimated_loop_iterations_int): Likewise.
17023 (get_estimated_loop_iterations): Likewise.
17024 (get_max_loop_iterations): Likewise.
17025 * cfgloop.h: Include wide-int.h.
17026 (struct nb_iter_bound): Change bound to widest_int.
17027 (struct loop): Change nb_iterations_upper_bound and
17028 nb_iterations_estimate to widest_int.
17029 (record_niter_bound): Switch to use widest_int.
17030 (get_estimated_loop_iterations): Likewise.
17031 (get_max_loop_iterations): Likewise.
17032 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17033 update for wide-int.
17034 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17035 * combine.c (try_combine): Likewise.
17036 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17037 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17039 (aarch64_float_const_representable_p): Likewise.
17040 * config/arc/arc.c: Include wide-int.h.
17041 (arc_can_use_doloop_p): Use wide-int interfaces.
17042 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17043 (vfp3_const_double_index): Likewise.
17044 * config/avr/avr.c (avr_out_round): Likewise.
17045 (avr_fold_builtin): Likewise.
17046 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17047 (bfin_can_use_doloop_p): Likewise.
17048 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17049 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17050 * config/i386/i386.c: Include wide-int.h.
17051 (ix86_data_alignment): Use wide-int interfaces.
17052 (ix86_local_alignment): Likewise.
17053 (ix86_emit_swsqrtsf): Update real_from_integer.
17054 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17055 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17056 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17057 (zero_constant): Likewise.
17058 (input_operand): Likewise.
17059 (splat_input_operand): Likewise.
17060 (non_logical_cint_operand): Change const_double to const_wide_int.
17061 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17062 (easy_altivec_constant): Remove comment.
17063 (paired_expand_vector_init): Use CONSTANT_P.
17064 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17065 (rs6000_emit_move): Update checks.
17066 (rs6000_aggregate_candidate): Use wide-int interfaces.
17067 (rs6000_expand_ternop_builtin): Likewise.
17068 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17069 (rs6000_assemble_integer): Likewise.
17070 (rs6000_hash_constant): Likewise.
17071 (output_toc): Likewise.
17072 (rs6000_rtx_costs): Likewise.
17073 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17074 * config/rs6000/rs6000-c.c: Include wide-int.h.
17075 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17076 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17077 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17078 Handle CONST_WIDE_INT.
17079 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17080 Use tree_fits_uhwi_p.
17081 * config/sparc/sparc.c: Include wide-int.h.
17082 (sparc_fold_builtin): Use wide-int interfaces.
17083 * config/vax/vax.c: Include wide-int.h.
17084 (vax_float_literal): Use real_from_integer.
17085 * coretypes.h (struct hwivec_def): New.
17087 (const_hwivec): New.
17088 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17089 (equiv_constant): Handle CONST_WIDE_INT.
17090 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17091 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17092 * dbxout.c (stabstr_U): Use wide-int interfaces.
17093 (dbxout_type): Update to use cst_fits_shwi_p.
17094 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17095 (TARGET_SUPPORTS_WIDE_INT): Add default.
17096 * dfp.c: Include wide-int.h.
17097 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17098 decimal_real_to_integer.
17099 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17100 decimal_real_to_integer.
17101 * doc/generic.texi (Constant expressions): Update for wide_int.
17102 * doc/rtl.texi (const_double): Likewise.
17103 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17104 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17105 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17106 (REAL_VALUE_FROM_INT): Remove.
17107 (TARGET_SUPPORTS_WIDE_INT): New.
17108 * doc/tm.texi: Regenerate.
17109 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17110 * double-int.h: Include wide-int.h.
17111 (struct wi::int_traits): New.
17112 * dwarf2out.c (get_full_len): New.
17113 (dw_val_equal_p): Add case dw_val_class_wide_int.
17114 (size_of_loc_descr): Likewise.
17115 (output_loc_operands): Likewise.
17116 (insert_double): Remove.
17117 (insert_wide_int): New.
17118 (add_AT_wide): New.
17119 (print_die): Add case dw_val_class_wide_int.
17120 (attr_checksum): Likewise.
17121 (attr_checksum_ordered): Likewise.
17122 (same_dw_val_p): Likewise.
17123 (size_of_die): Likewise.
17124 (value_format): Likewise.
17125 (output_die): Likewise.
17126 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17128 (clz_loc_descriptor): Use wide-int interfaces.
17129 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17130 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17131 (round_up_to_align): Use wide-int interfaces.
17132 (field_byte_offset): Likewise.
17133 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17134 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17135 CONST_DOUBLE handling. Use wide-int interfaces.
17136 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17137 (gen_enumeration_type_die): Use add_AT_wide.
17138 (hash_loc_operands): Add case dw_val_class_wide_int.
17139 (compare_loc_operands): Likewise.
17140 * dwarf2out.h: Include wide-int.h.
17141 (wide_int_ptr): New.
17142 (enum dw_val_class): Add dw_val_class_wide_int.
17143 (struct dw_val_struct): Add val_wide.
17144 * emit-rtl.c (const_wide_int_htab): New.
17145 (const_wide_int_htab_hash): New.
17146 (const_wide_int_htab_eq): New.
17147 (lookup_const_wide_int): New.
17148 (const_double_htab_hash): Use wide-int interfaces.
17149 (const_double_htab_eq): Likewise.
17150 (rtx_to_double_int): Conditionally compile for wide-int.
17151 (immed_double_int_const): Rename to immed_wide_int_const and
17152 update for wide-int.
17153 (immed_double_const): Conditionally compile for wide-int.
17154 (init_emit_once): Use wide-int interfaces.
17155 * explow.c (plus_constant): Likewise.
17156 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17157 (lshift_value): Use wide-int interfaces.
17158 (expand_mult): Likewise.
17159 (choose_multiplier): Likewise.
17160 (expand_smod_pow2): Likewise.
17161 (make_tree): Likewise.
17162 * expr.c (convert_modes): Consolidate handling of constants.
17163 Use wide-int interfaces.
17164 (emit_group_load_1): Add note.
17165 (store_expr): Update comment.
17166 (get_inner_reference): Use wide-int interfaces.
17167 (expand_constructor): Update comment.
17168 (expand_expr_real_2): Use wide-int interfaces.
17169 (expand_expr_real_1): Likewise.
17170 (reduce_to_bit_field_precision): Likewise.
17171 (const_vector_from_tree): Likewise.
17172 * final.c: Include wide-int-print.h.
17173 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17174 * fixed-value.c: Include wide-int.h.
17175 (fixed_from_string): Use wide-int interfaces.
17176 (fixed_to_decimal): Likewise.
17177 (fixed_convert_from_real): Likewise.
17178 (real_convert_from_fixed): Likewise.
17179 * fold-const.h (mem_ref_offset): Return an offset_int.
17180 (div_if_zero_remainder): Remove code parameter.
17181 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17182 Use wide-int interfaces.
17183 (may_negate_without_overflow_p): Use wide-int interfaces.
17184 (negate_expr_p): Likewise.
17185 (fold_negate_expr): Likewise.
17186 (int_const_binop_1): Likewise.
17187 (const_binop): Likewise.
17188 (fold_convert_const_int_from_int): Likewise.
17189 (fold_convert_const_int_from_real): Likewise.
17190 (fold_convert_const_int_from_fixed): Likewise.
17191 (fold_convert_const_fixed_from_int): Likewise.
17192 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17193 (sign_bit_p): Use wide-int interfaces.
17194 (make_range_step): Likewise.
17195 (build_range_check): Likewise. Pass an integer of the correct type
17196 instead of using integer_one_node.
17197 (range_predecessor): Pass an integer of the correct type instead
17198 of using integer_one_node.
17199 (range_successor): Likewise.
17200 (merge_ranges): Likewise.
17201 (unextend): Use wide-int interfaces.
17202 (extract_muldiv_1): Likewise.
17203 (fold_div_compare): Likewise.
17204 (fold_single_bit_test): Likewise.
17205 (fold_sign_changed_comparison): Likewise.
17206 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17207 (fold_plusminus_mult_expr): Use wide-int interfaces.
17208 (native_encode_int): Likewise.
17209 (native_interpret_int): Likewise.
17210 (fold_unary_loc): Likewise.
17211 (pointer_may_wrap_p): Likewise.
17212 (size_low_cst): Likewise.
17213 (mask_with_tz): Likewise.
17214 (fold_binary_loc): Likewise.
17215 (fold_ternary_loc): Likewise.
17216 (multiple_of_p): Likewise.
17217 (tree_call_nonnegative_warnv_p): Update calls to
17218 tree_int_cst_min_precision and real_from_integer.
17219 (fold_negate_const): Use wide-int interfaces.
17220 (fold_abs_const): Likewise.
17221 (fold_relational_const): Use tree_int_cst_lt.
17222 (round_up_loc): Use wide-int interfaces.
17223 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17224 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17225 * gengtype.c: Remove include of double-int.h.
17226 (do_typedef): Use wide-int interfaces.
17227 (open_base_files): Add wide-int.h.
17228 (main): Add offset_int and widest_int typedefs.
17229 * gengtype-lex.l: Handle "^".
17230 (CXX_KEYWORD): Add "static".
17231 * gengtype-parse.c (require3): New.
17232 (require_template_declaration): Handle constant template arguments
17233 and nested templates.
17234 * gengtype-state.c: Don't include "double-int.h".
17235 * genpreds.c (write_one_predicate_function): Update comment.
17236 (write_tm_constrs_h): Add check for hval and lval use in
17238 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17239 (add_to_sequence): Likewise.
17240 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17241 and const_double_operand.
17242 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17244 * gimple-fold.c (get_base_constructor): Likewise.
17245 (fold_array_ctor_reference): Likewise.
17246 (fold_nonarray_ctor_reference): Likewise.
17247 (fold_const_aggregate_ref_1): Likewise.
17248 (gimple_val_nonnegative_real_p): Likewise.
17249 (gimple_fold_indirect_ref): Likewise.
17250 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17251 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17252 (struct slsr_cand_d): Change index to be widest_int.
17253 (struct incr_info_d): Change incr to be widest_int.
17254 (alloc_cand_and_find_basis): Use wide-int interfaces.
17255 (slsr_process_phi): Likewise.
17256 (backtrace_base_for_ref): Likewise. Return a widest_int.
17257 (restructure_reference): Take a widest_int instead of a double_int.
17258 (slsr_process_ref): Use wide-int interfaces.
17259 (create_mul_ssa_cand): Likewise.
17260 (create_mul_imm_cand): Likewise.
17261 (create_add_ssa_cand): Likewise.
17262 (create_add_imm_cand): Take a widest_int instead of a double_int.
17263 (slsr_process_add): Use wide-int interfaces.
17264 (slsr_process_cast): Likewise.
17265 (slsr_process_copy): Likewise.
17266 (dump_candidate): Likewise.
17267 (dump_incr_vec): Likewise.
17268 (replace_ref): Likewise.
17269 (cand_increment): Likewise. Return a widest_int.
17270 (cand_abs_increment): Likewise.
17271 (replace_mult_candidate): Take a widest_int instead of a double_int.
17272 (replace_unconditional_candidate): Use wide-int interfaces.
17273 (incr_vec_index): Take a widest_int instead of a double_int.
17274 (create_add_on_incoming_edge): Likewise.
17275 (create_phi_basis): Use wide-int interfaces.
17276 (replace_conditional_candidate): Likewise.
17277 (record_increment): Take a widest_int instead of a double_int.
17278 (record_phi_increments): Use wide-int interfaces.
17279 (phi_incr_cost): Take a widest_int instead of a double_int.
17280 (lowest_cost_path): Likewise.
17281 (total_savings): Likewise.
17282 (analyze_increments): Use wide-int interfaces.
17283 (ncd_with_phi): Take a widest_int instead of a double_int.
17284 (ncd_of_cand_and_phis): Likewise.
17285 (nearest_common_dominator_for_cands): Likewise.
17286 (insert_initializers): Use wide-int interfaces.
17287 (all_phi_incrs_profitable): Likewise.
17288 (replace_one_candidate): Likewise.
17289 (replace_profitable_candidates): Likewise.
17290 * godump.c: Include wide-int-print.h.
17291 (go_output_typedef): Use wide-int interfaces.
17292 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17293 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17294 (build_loop_iteration_domains): Likewise.
17295 * hooks.h: Include wide-int.h rather than double-int.h.
17296 (hook_bool_dint_dint_uint_bool_true): Delete.
17297 (hook_bool_wint_wint_uint_bool_true): Declare.
17298 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17299 (hook_bool_wint_wint_uint_bool_true): New.
17300 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17302 (ubsan_expand_si_overflow_mul_check): Likewise.
17303 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17304 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17305 (get_ancestor_addr_info): Likewise.
17306 (ipa_modify_call_arguments): Likewise.
17307 * loop-doloop.c (doloop_modify): Likewise.
17308 (doloop_optimize): Likewise.
17309 * loop-iv.c (iv_number_of_iterations): Likewise.
17310 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17311 (unroll_loop_constant_iterations): Likewise.
17312 (decide_unroll_runtime_iterations): Likewise.
17313 (unroll_loop_runtime_iterations): Likewise.
17314 (decide_peel_simple): Likewise.
17315 (decide_unroll_stupid): Likewise.
17316 * lto-streamer-in.c (streamer_read_wi): Add.
17317 (input_cfg): Use wide-int interfaces.
17318 (lto_input_tree_1): Likewise.
17319 * lto-streamer-out.c (streamer_write_wi): Add.
17320 (hash_tree): Use wide-int interfaces.
17321 (output_cfg): Likewise.
17322 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17323 (GTFILES): Add wide-int.h and signop.h.
17324 (TAGS): Look for .cc files too.
17325 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17326 * optabs.c (expand_subword_shift): Likewise.
17327 (expand_doubleword_shift): Likewise.
17328 (expand_absneg_bit): Likewise.
17329 (expand_copysign_absneg): Likewise.
17330 (expand_copysign_bit): Likewise.
17331 * postreload.c (reload_cse_simplify_set): Likewise.
17332 * predict.c (predict_iv_comparison): Likewise.
17333 * pretty-print.h: Include wide-int-print.h.
17335 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17336 * print-tree.c: Include wide-int-print.h.
17337 (print_node_brief): Use wide-int interfaces.
17338 (print_node): Likewise.
17339 * read-rtl.c (validate_const_wide_int): New.
17340 (read_rtx_code): Add CONST_WIDE_INT case.
17341 * real.c: Include wide-int.h.
17342 (real_to_integer2): Delete.
17343 (real_to_integer): New function, returning a wide_int.
17344 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17345 (ten_to_ptwo): Update call to real_from_integer.
17346 (real_digit): Likewise.
17347 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17348 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17349 (REAL_VALUE_TO_INT): Delete.
17350 (real_to_integer): Declare a wide-int form.
17351 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17352 * recog.c (const_int_operand): Improve comment.
17353 (const_scalar_int_operand): New.
17354 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17355 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17356 (split_double): Likewise.
17357 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17358 (rtx_size): Likewise.
17359 (rtx_alloc_stat_v): New.
17360 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17361 (cwi_output_hex): New.
17362 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17363 (cwi_check_failed_bounds): New.
17364 * rtl.def (CONST_WIDE_INT): New.
17365 * rtl.h: Include <utility> and wide-int.h.
17366 (struct hwivec_def): New.
17367 (CWI_GET_NUM_ELEM): New.
17368 (CWI_PUT_NUM_ELEM): New.
17369 (struct rtx_def): Add num_elem and hwiv.
17370 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17371 (CASE_CONST_UNIQUE): Likewise.
17372 (CASE_CONST_ANY): Likewise.
17373 (CONST_SCALAR_INT_P): Likewise.
17374 (CONST_WIDE_INT_P): New.
17376 (HWIVEC_CHECK): New.
17377 (cwi_check_failed_bounds): New.
17379 (HWIVEC_CHECK): New.
17380 (CONST_WIDE_INT_VEC) New.
17381 (CONST_WIDE_INT_NUNITS) New.
17382 (CONST_WIDE_INT_ELT) New.
17383 (rtx_mode_t): New type.
17384 (wi::int_traits <rtx_mode_t>): New.
17386 (wi::min_value): New.
17387 (wi::max_value): New.
17389 (const_wide_int_alloc): New.
17390 (immed_wide_int_const): New.
17391 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17392 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17393 * signop.h: New file.
17394 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17395 (simplify_const_unary_operation): Use wide-int interfaces.
17396 (simplify_binary_operation_1): Likewise.
17397 (simplify_const_binary_operation): Likewise.
17398 (simplify_const_relational_operation): Likewise.
17399 (simplify_immed_subreg): Likewise.
17400 * stmt.c (expand_case): Likewise.
17401 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17402 signop rather than a bool.
17403 * stor-layout.c (layout_type): Use wide-int interfaces.
17404 (initialize_sizetypes): Update calls to
17405 set_min_and_max_values_for_integral_type.
17406 (set_min_and_max_values_for_integral_type): Take a signop rather
17407 than a bool. Use wide-int interfaces.
17408 (fixup_signed_type): Update accordingly. Remove
17409 HOST_BITS_PER_DOUBLE_INT limit.
17410 (fixup_unsigned_type): Likewise.
17411 * system.h (STATIC_CONSTANT_P): New.
17412 (STATIC_ASSERT): New.
17413 * target.def (can_use_doloop_p): Take widest_ints rather than
17415 * target.h: Include wide-int.h rather than double-int.h.
17416 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17418 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17419 rather than INT_CST_LT_UNSIGNED.
17420 (can_use_doloop_if_innermost): Take widest_ints rather than
17422 * tree-affine.c: Include wide-int-print.h.
17423 (double_int_ext_for_comb): Delete.
17424 (wide_int_ext_for_comb): New.
17425 (aff_combination_zero): Use wide-int interfaces.
17426 (aff_combination_const): Take a widest_int instead of a double_int.
17427 (aff_combination_elt): Use wide-int interfaces.
17428 (aff_combination_scale): Take a widest_int instead of a double_int.
17429 (aff_combination_add_elt): Likewise.
17430 (aff_combination_add_cst): Likewise.
17431 (aff_combination_add): Use wide-int interfaces.
17432 (aff_combination_convert): Likewise.
17433 (tree_to_aff_combination): Likewise.
17434 (add_elt_to_tree): Take a widest_int instead of a double_int.
17435 (aff_combination_to_tree): Use wide-int interfaces.
17436 (aff_combination_remove_elt): Likewise.
17437 (aff_combination_add_product): Take a widest_int instead of
17439 (aff_combination_mult): Use wide-int interfaces.
17440 (aff_combination_expand): Likewise.
17441 (double_int_constant_multiple_p): Delete.
17442 (wide_int_constant_multiple_p): New.
17443 (aff_combination_constant_multiple_p): Take a widest_int pointer
17444 instead of a double_int pointer.
17445 (print_aff): Use wide-int interfaces.
17446 (get_inner_reference_aff): Take a widest_int pointer
17447 instead of a double_int pointer.
17448 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17449 * tree-affine.h: Include wide-int.h.
17450 (struct aff_comb_elt): Change type of coef to widest_int.
17451 (struct affine_tree_combination): Change type of offset to widest_int.
17452 (double_int_ext_for_comb): Delete.
17453 (wide_int_ext_for_comb): New.
17454 (aff_combination_const): Use widest_int instead of double_int.
17455 (aff_combination_scale): Likewise.
17456 (aff_combination_add_elt): Likewise.
17457 (aff_combination_constant_multiple_p): Likewise.
17458 (get_inner_reference_aff): Likewise.
17459 (aff_comb_cannot_overlap_p): Likewise.
17460 (aff_combination_zero_p): Use wide-int interfaces.
17461 * tree.c: Include tree.h.
17462 (init_ttree): Use make_int_cst.
17463 (tree_code_size): Removed code for INTEGER_CST case.
17464 (tree_size): Add INTEGER_CST case.
17465 (make_node_stat): Update comment.
17466 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17467 (build_int_cst_type): Use wide-int interfaces.
17468 (double_int_to_tree): Likewise.
17469 (double_int_fits_to_tree_p): Delete.
17470 (force_fit_type_double): Delete.
17471 (force_fit_type): New.
17472 (int_cst_hash_hash): Use wide-int interfaces.
17473 (int_cst_hash_eq): Likewise.
17474 (build_int_cst_wide): Delete.
17475 (wide_int_to_tree): New.
17476 (cache_integer_cst): Use wide-int interfaces.
17477 (build_low_bits_mask): Likewise.
17478 (cst_and_fits_in_hwi): Likewise.
17479 (real_value_from_int_cst): Likewise.
17480 (make_int_cst_stat): New.
17481 (integer_zerop): Use wide_int interfaces.
17482 (integer_onep): Likewise.
17483 (integer_all_onesp): Likewise.
17484 (integer_pow2p): Likewise.
17485 (integer_nonzerop): Likewise.
17486 (tree_log2): Likewise.
17487 (tree_floor_log2): Likewise.
17488 (tree_ctz): Likewise.
17489 (int_size_in_bytes): Likewise.
17490 (mem_ref_offset): Return an offset_int rather than a double_int.
17491 (build_type_attribute_qual_variant): Use wide_int interfaces.
17492 (type_hash_eq): Likewise
17493 (tree_int_cst_equal): Likewise.
17494 (tree_int_cst_lt): Delete.
17495 (tree_int_cst_compare): Likewise.
17496 (tree_fits_shwi_p): Use wide_int interfaces.
17497 (tree_fits_uhwi_p): Likewise.
17498 (tree_int_cst_sign_bit): Likewise.
17499 (tree_int_cst_sgn): Likewise.
17500 (tree_int_cst_min_precision): Take a signop rather than a bool.
17501 (simple_cst_equal): Use wide_int interfaces.
17502 (compare_tree_int): Likewise.
17503 (iterative_hash_expr): Likewise.
17504 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17506 (get_type_static_bounds): Use wide_int interfaces.
17507 (tree_int_cst_elt_check_failed): New.
17508 (build_common_tree_nodes): Reordered to set prec before filling in
17510 (int_cst_value): Check cst_and_fits_in_hwi.
17511 (widest_int_cst_value): Use wide_int interfaces.
17512 (upper_bound_in_type): Likewise.
17513 (lower_bound_in_type): Likewise.
17514 (num_ending_zeros): Likewise.
17515 (drop_tree_overflow): Likewise.
17516 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17517 (gen_conditions_for_pow_cst_base): Likewise.
17518 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17519 (group_case_labels_stmt): Use wide-int interfaces.
17520 (verify_gimple_assign_binary): Likewise.
17521 (print_loop): Likewise.
17522 * tree-chrec.c (tree_fold_binomial): Likewise.
17523 * tree-core.h (struct tree_base): Add int_length.
17524 (struct tree_int_cst): Change rep of value.
17525 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17526 (dr_may_alias_p): Likewise.
17527 (max_stmt_executions_tree): Likewise.
17528 * tree.def (INTEGER_CST): Update comment.
17529 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17530 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17531 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17532 (dequeue_and_dump): Use wide-int interfaces.
17533 * tree.h: Include wide-int.h.
17534 (NULL_TREE): Moved to earlier loc in file.
17535 (TREE_INT_CST_ELT_CHECK): New.
17536 (tree_int_cst_elt_check_failed): New.
17538 (TREE_INT_CST): Delete.
17539 (TREE_INT_CST_LOW): Use wide-int interfaces.
17540 (TREE_INT_CST_HIGH): Delete.
17541 (TREE_INT_CST_NUNITS): New.
17542 (TREE_INT_CST_EXT_NUNITS): Likewise.
17543 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17544 (TREE_INT_CST_ELT): Likewise.
17545 (INT_CST_LT): Delete.
17546 (tree_int_cst_elt_check): New (two forms).
17547 (type_code_size): Update comment.
17548 (make_int_cst_stat, make_int_cst): New.
17549 (tree_to_double_int): Delete.
17550 (double_int_fits_to_tree_p): Delete.
17551 (force_fit_type_double): Delete.
17552 (build_int_cstu): Replace with out-of-line function.
17553 (build_int_cst_wide): Delete.
17554 (tree_int_cst_lt): Define inline.
17555 (tree_int_cst_le): New.
17556 (tree_int_cst_compare): Define inline.
17557 (tree_int_cst_min_precision): Take a signop rather than a bool.
17558 (wi::int_traits <const_tree>): New.
17559 (wi::int_traits <tree>): New.
17560 (wi::extended_tree): New.
17561 (wi::int_traits <wi::extended_tree>): New.
17562 (wi::to_widest): New.
17563 (wi::to_offset): New.
17564 (wi::fits_to_tree_p): New.
17565 (wi::min_value): New.
17566 (wi::max_value): New.
17567 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17568 (copy_tree_body_r): Likewise.
17569 * tree-object-size.c (compute_object_offset): Likewise.
17570 (addr_object_size): Likewise.
17571 * tree-predcom.c: Include wide-int-print.h.
17572 (struct dref_d): Change type of offset to widest_int.
17573 (dump_dref): Call wide-int printer.
17574 (aff_combination_dr_offset): Use wide-int interfaces.
17575 (determine_offset): Take a widest_int pointer rather than a
17576 double_int pointer.
17577 (split_data_refs_to_components): Use wide-int interfaces.
17578 (suitable_component_p): Likewise.
17579 (order_drefs): Likewise.
17580 (add_ref_to_chain): Likewise.
17581 (valid_initializer_p): Likewise.
17582 (determine_roots_comp): Likewise.
17583 * tree-pretty-print.c: Include wide-int-print.h.
17584 (dump_generic_node): Use wide-int interfaces.
17585 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17586 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17587 (move_fixed_address_to_symbol): Likewise.
17588 (move_hint_to_base): Likewise.
17589 (move_pointer_to_base): Likewise.
17590 (move_variant_to_index): Likewise.
17591 (most_expensive_mult_to_index): Likewise.
17592 (addr_to_parts): Likewise.
17593 (copy_ref_info): Likewise.
17594 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17595 (indirect_refs_may_alias_p): Likewise.
17596 (stmt_kills_ref_p_1): Likewise.
17597 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17598 * tree-ssa-ccp.c: Update comment at top of file. Include
17600 (struct prop_value_d): Change type of mask to widest_int.
17601 (extend_mask): New function.
17602 (dump_lattice_value): Use wide-int interfaces.
17603 (get_default_value): Likewise.
17604 (set_constant_value): Likewise.
17605 (set_value_varying): Likewise.
17606 (valid_lattice_transition): Likewise.
17607 (set_lattice_value): Likewise.
17608 (value_to_double_int): Delete.
17609 (value_to_wide_int): New.
17610 (get_value_from_alignment): Use wide-int interfaces.
17611 (get_value_for_expr): Likewise.
17612 (do_dbg_cnt): Likewise.
17613 (ccp_finalize): Likewise.
17614 (ccp_lattice_meet): Likewise.
17615 (bit_value_unop_1): Use widest_ints rather than double_ints.
17616 (bit_value_binop_1): Likewise.
17617 (bit_value_unop): Use wide-int interfaces.
17618 (bit_value_binop): Likewise.
17619 (bit_value_assume_aligned): Likewise.
17620 (evaluate_stmt): Likewise.
17621 (ccp_fold_stmt): Likewise.
17622 (visit_cond_stmt): Likewise.
17623 (ccp_visit_stmt): Likewise.
17624 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17625 (constant_pointer_difference): Likewise.
17626 (associate_pointerplus): Likewise.
17627 (combine_conversions): Likewise.
17628 * tree-ssa-loop.h: Include wide-int.h.
17629 (struct tree_niter_desc): Change type of max to widest_int.
17630 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17631 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17632 (remove_redundant_iv_tests): Likewise.
17633 (canonicalize_loop_induction_variables): Likewise.
17634 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17635 (constant_multiple_of): Take a widest_int pointer instead of
17636 a double_int pointer.
17637 (get_computation_aff): Use wide-int interfaces.
17638 (ptr_difference_cost): Likewise.
17639 (difference_cost): Likewise.
17640 (get_loop_invariant_expr_id): Likewise.
17641 (get_computation_cost_at): Likewise.
17642 (iv_elimination_compare_lt): Likewise.
17643 (may_eliminate_iv): Likewise.
17644 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17645 instead of double_int.
17646 (max_loop_iterations): Likewise.
17647 (max_stmt_executions): Likewise.
17648 (estimated_stmt_executions): Likewise.
17649 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17650 (split_to_var_and_offset): Use wide-int interfaces.
17651 (determine_value_range): Likewise.
17652 (bound_difference_of_offsetted_base): Likewise.
17653 (bounds_add): Take a widest_int instead of a double_int.
17654 (number_of_iterations_ne_max): Use wide-int interfaces.
17655 (number_of_iterations_ne): Likewise.
17656 (number_of_iterations_lt_to_ne): Likewise.
17657 (assert_loop_rolls_lt): Likewise.
17658 (number_of_iterations_lt): Likewise.
17659 (number_of_iterations_le): Likewise.
17660 (number_of_iterations_cond): Likewise.
17661 (number_of_iterations_exit): Likewise.
17662 (finite_loop_p): Likewise.
17663 (derive_constant_upper_bound_assign): Likewise.
17664 (derive_constant_upper_bound): Return a widest_int.
17665 (derive_constant_upper_bound_ops): Likewise.
17666 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17667 (record_estimate): Take a widest_int rather than a double_int.
17668 (record_nonwrapping_iv): Use wide-int interfaces.
17669 (double_int_cmp): Delete.
17670 (wide_int_cmp): New.
17671 (bound_index): Take a widest_int rather than a double_int.
17672 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17673 (maybe_lower_iteration_bound): Likewise.
17674 (estimate_numbers_of_iterations_loop): Likewise.
17675 (estimated_loop_iterations): Take a widest_int pointer than than
17676 a double_int pointer.
17677 (estimated_loop_iterations_int): Use wide-int interfaces.
17678 (max_loop_iterations): Take a widest_int pointer than than
17679 a double_int pointer.
17680 (max_loop_iterations_int): Use wide-int interfaces.
17681 (max_stmt_executions): Take a widest_int pointer than than
17682 a double_int pointer.
17683 (estimated_stmt_executions): Likewise.
17684 (n_of_executions_at_most): Use wide-int interfaces.
17685 (scev_probably_wraps_p): Likewise.
17686 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17687 to real_to_integer.
17688 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17690 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17691 double_ints. Adjust for trailing_wide_ints <3> representation.
17692 (set_nonzero_bits): Likewise.
17693 (get_range_info): Return wide_ints rather than double_ints.
17694 Adjust for trailing_wide_ints <3> representation.
17695 (get_nonzero_bits): Likewise.
17696 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17698 * tree-ssanames.h (struct range_info_def): Replace min, max and
17699 nonzero_bits with a trailing_wide_ints <3>.
17700 (set_range_info): Use wide_int_refs rather than double_ints.
17701 (set_nonzero_bits): Likewise.
17702 (get_range_info): Return wide_ints rather than double_ints.
17703 (get_nonzero_bits): Likewise.
17704 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17705 * tree-ssa-pre.c (phi_translate_1): Likewise.
17706 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17707 (acceptable_pow_call): Likewise.
17708 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17710 (vn_reference_fold_indirect): Likewise.
17711 (vn_reference_maybe_forwprop_address): Likewise.
17712 (valueize_refs_1): Likewise.
17713 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17714 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17715 tree_int_cst_lt and tree_int_cst_le.
17716 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17718 (streamer_alloc_tree): Likewise.
17719 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17720 (streamer_write_tree_header): Likewise.
17721 (streamer_write_integer_cst): Likewise.
17722 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17723 (build_constructors): Likewise.
17724 (array_value_type): Likewise.
17725 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17726 (vect_check_gather): Likewise.
17727 * tree-vect-generic.c (build_replicated_const): Likewise.
17728 (expand_vector_divmod): Likewise.
17729 * tree-vect-loop.c (vect_transform_loop): Likewise.
17730 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17731 (vect_do_peeling_for_alignment): Likewise.
17732 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17733 * tree-vrp.c: Include wide-int.h.
17734 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17735 (extract_range_from_assert): Use wide-int interfaces.
17736 (vrp_int_const_binop): Likewise.
17737 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17738 double_int pointers.
17739 (ranges_from_anti_range): Use wide-int interfaces.
17740 (quad_int_cmp): Delete.
17741 (quad_int_pair_sort): Likewise.
17742 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17743 (extract_range_from_unary_expr_1): Likewise.
17744 (adjust_range_with_scev): Likewise.
17745 (masked_increment): Take and return wide_ints rather than double_ints.
17746 (register_edge_assert_for_2): Use wide-int interfaces.
17747 (check_array_ref): Likewise.
17748 (search_for_addr_array): Likewise.
17749 (maybe_set_nonzero_bits): Likewise.
17750 (union_ranges): Pass an integer of the correct type instead of
17751 using integer_one_node.
17752 (intersect_ranges): Likewise.
17753 (simplify_truth_ops_using_ranges): Likewise.
17754 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17755 (range_fits_type_p): Likewise.
17756 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17758 (simplify_conversion_using_ranges): Use wide-int interfaces.
17759 (simplify_float_conversion_using_ranges): Likewise.
17760 (vrp_finalize): Likewise.
17761 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17762 (gimple_stringops_transform): Likewise.
17763 * varasm.c (decode_addr_const): Likewise.
17764 (const_hash_1): Likewise.
17765 (const_rtx_hash_1): Likewise
17766 (output_constant): Likewise.
17767 (array_size_for_constructor): Likewise.
17768 (output_constructor_regular_field): Likewise.
17769 (output_constructor_bitfield): Likewise.
17770 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17771 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17773 * gencheck.c: Define BITS_PER_UNIT.
17774 * wide-int.cc: New.
17776 * wide-int-print.cc: New.
17777 * wide-int-print.h: New.
17779 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17781 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17783 2014-05-06 Richard Biener <rguenther@suse.de>
17785 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17786 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17787 (TODO_verify_all): Adjust.
17788 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17789 TODO_verify_stmts and TODO_verify_rtl_sharing.
17790 * bb-reorder.c: Likewise.
17791 * cfgexpand.c: Likewise.
17792 * cprop.c: Likewise.
17794 * function.c: Likewise.
17795 * fwprop.c: Likewise.
17796 * gcse.c: Likewise.
17797 * gimple-ssa-isolate-paths.c: Likewise.
17798 * gimple-ssa-strength-reduction.c: Likewise.
17799 * ipa-split.c: Likewise.
17800 * loop-init.c: Likewise.
17801 * loop-unroll.c: Likewise.
17802 * lower-subreg.c: Likewise.
17803 * modulo-sched.c: Likewise.
17804 * postreload-gcse.c: Likewise.
17805 * predict.c: Likewise.
17806 * recog.c: Likewise.
17807 * sched-rgn.c: Likewise.
17808 * store-motion.c: Likewise.
17809 * tracer.c: Likewise.
17810 * trans-mem.c: Likewise.
17811 * tree-call-cdce.c: Likewise.
17812 * tree-cfg.c: Likewise.
17813 * tree-cfgcleanup.c: Likewise.
17814 * tree-complex.c: Likewise.
17815 * tree-eh.c: Likewise.
17816 * tree-emutls.c: Likewise.
17817 * tree-if-conv.c: Likewise.
17818 * tree-into-ssa.c: Likewise.
17819 * tree-loop-distribution.c: Likewise.
17820 * tree-object-size.c: Likewise.
17821 * tree-parloops.c: Likewise.
17822 * tree-pass.h: Likewise.
17823 * tree-sra.c: Likewise.
17824 * tree-ssa-ccp.c: Likewise.
17825 * tree-ssa-copy.c: Likewise.
17826 * tree-ssa-copyrename.c: Likewise.
17827 * tree-ssa-dce.c: Likewise.
17828 * tree-ssa-dom.c: Likewise.
17829 * tree-ssa-dse.c: Likewise.
17830 * tree-ssa-forwprop.c: Likewise.
17831 * tree-ssa-ifcombine.c: Likewise.
17832 * tree-ssa-loop-ch.c: Likewise.
17833 * tree-ssa-loop-ivcanon.c: Likewise.
17834 * tree-ssa-loop.c: Likewise.
17835 * tree-ssa-math-opts.c: Likewise.
17836 * tree-ssa-phiopt.c: Likewise.
17837 * tree-ssa-phiprop.c: Likewise.
17838 * tree-ssa-pre.c: Likewise.
17839 * tree-ssa-reassoc.c: Likewise.
17840 * tree-ssa-sink.c: Likewise.
17841 * tree-ssa-strlen.c: Likewise.
17842 * tree-ssa-tail-merge.c: Likewise.
17843 * tree-ssa-uncprop.c: Likewise.
17844 * tree-switch-conversion.c: Likewise.
17845 * tree-tailcall.c: Likewise.
17846 * tree-vect-generic.c: Likewise.
17847 * tree-vectorizer.c: Likewise.
17848 * tree-vrp.c: Likewise.
17849 * tsan.c: Likewise.
17850 * var-tracking.c: Likewise.
17851 * bt-load.c: Likewise.
17852 * cfgcleanup.c: Likewise.
17853 * combine-stack-adj.c: Likewise.
17854 * combine.c: Likewise.
17855 * compare-elim.c: Likewise.
17856 * config/epiphany/resolve-sw-modes.c: Likewise.
17857 * config/i386/i386.c: Likewise.
17858 * config/mips/mips.c: Likewise.
17859 * config/s390/s390.c: Likewise.
17860 * config/sh/sh_treg_combine.cc: Likewise.
17861 * config/sparc/sparc.c: Likewise.
17864 * final.c: Likewise.
17865 * ifcvt.c: Likewise.
17866 * mode-switching.c: Likewise.
17867 * passes.c: Likewise.
17868 * postreload.c: Likewise.
17870 * reg-stack.c: Likewise.
17871 * regcprop.c: Likewise.
17872 * regrename.c: Likewise.
17875 2014-05-06 Richard Biener <rguenther@suse.de>
17877 PR middle-end/61070
17878 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
17879 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
17881 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
17884 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
17886 2014-05-05 Radovan Obradovic <robradovic@mips.com>
17887 Tom de Vries <tom@codesourcery.com>
17889 * target.def (call_fusage_contains_non_callee_clobbers): New
17891 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
17893 (@node Miscellaneous Register Hooks): New node.
17894 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
17895 * doc/tm.texi: Regenerate.
17897 2014-05-05 Marek Polacek <polacek@redhat.com>
17900 * opts.c (common_handle_option): Call error_at instead of warning_at.
17902 2014-05-05 Richard Biener <rguenther@suse.de>
17904 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
17905 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
17906 under the TODO_verify_il umbrella.
17908 2014-05-05 Richard Biener <rguenther@suse.de>
17910 * passes.c (execute_function_todo): Move TODO_verify_flow under
17911 the TODO_verify_ul umbrella.
17913 2014-05-05 Richard Biener <rguenther@suse.de>
17915 PR middle-end/61010
17916 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
17917 X & CST away from a CST that is the mask of a mode.
17919 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17921 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
17922 int argument to enum machine_mode.
17923 (picochip_class_max_nregs): Ditto.
17924 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
17925 (picochip_class_max_nregs): Ditto.
17927 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17929 * target.def: Add new target hook.
17930 * doc/tm.texi: Regenerate.
17931 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
17932 * targhooks.c (default_keep_leaf_when_profiled): New function.
17934 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
17935 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
17937 2014-05-05 Bin Cheng <bin.cheng@arm.com>
17939 PR tree-optimization/60363
17940 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
17941 (copy_phi_args): New parameters. Call get_value_locus_in_path.
17942 (update_destination_phis): New parameter.
17943 (create_edge_and_update_destination_phis): Ditto.
17944 (ssa_fix_duplicate_block_edges): Pass new arguments.
17945 (thread_single_edge): Ditto.
17947 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
17949 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
17950 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
17951 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
17952 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
17953 Use RS6000_BTM_HARD_FLOAT.
17954 (BU_MISC_2): Likewise.
17955 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17956 RS6000_BTM_HARD_FLOAT.
17957 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
17958 is explicitly used.
17959 (rs6000_invalid_builtin): Add hard floating builtin support.
17960 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
17961 hard float builtins.
17962 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
17964 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17966 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
17967 Add missing function* argument.
17969 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17971 * lra-constraints.c (valid_address_p): Move earlier in file.
17972 Add a constraint argument to the address_info version.
17973 (satisfies_memory_constraint_p): New function.
17974 (satisfies_address_constraint_p): Likewise.
17975 (process_alt_operands, curr_insn_transform): Use them.
17976 (process_address): Pass the constraint to valid_address_p when
17977 checking address operands.
17979 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17981 * config/mips/mips.c (mips_isa_rev): New variable.
17982 (mips_set_architecture): Set it.
17983 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
17985 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
17986 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
17987 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
17988 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
17989 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
17990 conditions in terms of mips_isa_rev.
17991 (mips_isa_rev): Declare.
17993 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17995 * config/sh/sh-mem.cc: Use tabs instead of spaces.
17996 (prob_unlikely, prob_likely): Make variables const.
17998 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18000 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18002 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18004 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18006 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18008 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18009 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18010 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18012 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18013 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18015 Replace usage of ROUND_REG with sh_round_reg.
18016 Use CEIL instead of ROUND_ADVANCE.
18018 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18021 * config/sh/sh.c: Include stdlib headers before everything else.
18023 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18025 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18026 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18027 (gimplify_adjust_omp_clauses): Simd region is never
18028 directly nested in combined parallel. Instead, for linear
18029 with copyin/copyout, if in combined for simd loop, make decl
18030 firstprivate/lastprivate on OMP_FOR.
18031 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18032 expand_omp_for_static_chunk): When setting endvar, also set
18033 fd->loop.v to the same value.
18035 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18037 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18039 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18041 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18044 2014-05-02 Marek Polacek <polacek@redhat.com>
18046 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18048 2014-05-02 Kito Cheng <kito@0xlab.org>
18050 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18051 to a C expression marco.
18052 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18053 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18054 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18055 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18056 HONOR_REG_ALLOC_ORDER.
18057 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18059 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18061 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18063 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18065 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18067 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18069 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18070 (convert_scalar_cond_reduction): Likewise.
18071 (predicate_scalar_phi): Add recognition and transformation
18072 of simple conditioanl reduction to be vectorizable.
18074 2014-05-01 Marek Polacek <polacek@redhat.com>
18077 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18079 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18081 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18082 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18083 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18084 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18085 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18086 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18087 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18088 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18090 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18092 * config/arc/arc.opt (mlra): Move comment above option name
18093 to avoid mis-parsing as language options.
18095 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18097 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18098 * config/sol2.h: ... here.
18099 * config/sol2-10.h: Remove.
18101 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18102 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18103 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18104 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18105 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18106 * config/sol2.h: ... here.
18107 (SECTION_NAME_FORMAT): Don't redefine.
18108 (STARTFILE_ARCH32_SPEC): Rename to ...
18109 (STARTFILE_ARCH_SPEC): ... this.
18110 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18111 * config/sparc/sol2.h: ... here.
18112 (SECTION_NAME_FORMAT): Don't undef.
18113 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18114 (SUBTARGET_EXTRA_SPECS): Remove.
18115 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18117 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18118 (MD_STARTFILE_PREFIX): Remove.
18119 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18120 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18121 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18122 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18123 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18124 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18125 * config/i386/sol2.h: ... here.
18126 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18127 * config/i386/sol2-bi.h: Remove.
18128 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18129 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18131 * config/i386/t-sol2-64: Rename to ...
18132 * config/i386/t-sol2: ... this.
18133 * config/sparc/t-sol2-64: Rename to ...
18134 * config/sparc/t-sol2: ... this.
18136 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18137 sol2_tm_file_head, sol2_tm_file_tail.
18138 Include ${cpu_type}/sol2.h before sol2.h.
18140 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18141 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18142 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18143 Reflect i386/t-sol2-64 renaming.
18144 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18145 Reflect sparc/t-sol2-64 renaming.
18147 2014-04-30 Richard Biener <rguenther@suse.de>
18149 * passes.c (execute_function_todo): Move TODO_verify_stmts
18150 and TODO_verify_ssa under the TODO_verify_il umbrella.
18151 * tree-ssa.h (verify_ssa): Adjust prototype.
18152 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18153 we should verify SSA operands.
18154 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18155 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18156 whether we should verify whether not throwing stmts have EH info.
18157 * graphite-scop-detection.c (create_sese_edges): Adjust.
18158 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18159 * tree-eh.c (lower_try_finally_switch): Do not add the
18160 default case label twice.
18162 2014-04-30 Marek Polacek <polacek@redhat.com>
18164 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18165 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18166 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18167 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18169 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18171 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18172 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18173 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18174 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18175 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18176 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18177 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18178 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18180 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18182 * tree-cfg.c (dump_function_to_file): Dump the return type of
18183 functions, in a line to itself before the function body, mimicking
18184 the layout of a C function.
18186 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18188 PR tree-optimization/60971
18189 * tree-tailcall.c (process_assignment): Reject conversions which
18192 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18194 * calls.c (initialize_argument_information): Always treat
18195 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18196 (expand_call): Likewise.
18197 (emit_library_call_calue_1): Likewise.
18198 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18199 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18202 2014-04-29 Nick Clifton <nickc@redhat.com>
18204 * config/msp430/msp430.md (umulsidi): Fix typo.
18205 (mulhisi3): Enable even inside interrupt handlers.
18206 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18207 bigger return address pushed in large mode.
18209 2014-04-29 Nick Clifton <nickc@redhat.com>
18211 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18212 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18214 * config/m32r/m32r.c (init_reg_tables): Likewise.
18215 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18216 enum to hold the modes.
18218 2014-04-29 Richard Biener <rguenther@suse.de>
18220 * dominance.c (free_dominance_info): Add overload with
18221 function parameter.
18222 (dom_info_state): Likewise.
18223 (dom_info_available_p): Likewise.
18224 * basic-block.h (free_dominance_info, dom_info_state,
18225 dom_info_available_p): Declare overloads.
18226 * passes.c (execute_function_todo): Verify that verifiers
18227 don't change dominator info state. Drop dominator info
18228 for IPA pass invocations.
18229 * cgraph.c (release_function_body): Restore asserts that
18230 dominator information is released.
18232 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18234 * doc/invoke.texi: Fix typo.
18235 * tree-vrp.c: Fix typos.
18236 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18238 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18240 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18242 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18244 * config/aarch64/aarch64-builtins.c
18245 (aarch64_types_storestruct_lane_qualifiers): New.
18246 (TYPES_STORESTRUCT_LANE): Likewise.
18247 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18248 (st3_lane): Likewise.
18249 (st4_lane): Likewise.
18250 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18251 (vec_store_lanesci_lane<mode>): Likewise.
18252 (vec_store_lanesxi_lane<mode>): Likewise.
18253 (aarch64_st2_lane<VQ:mode>): Likewise.
18254 (aarch64_st3_lane<VQ:mode>): Likewise.
18255 (aarch64_st4_lane<VQ:mode>): Likewise.
18256 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18257 * config/aarch64/arm_neon.h
18258 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18259 use new macro arguments.
18260 (__ST3_LANE_FUNC): Likewise.
18261 (__ST4_LANE_FUNC): Likewise.
18262 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18263 (V_THREE_ELEM): Likewise.
18264 (V_FOUR_ELEM): Likewise.
18266 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18268 * doc/gimple.texi: Replace the description of the now-defunct
18269 union gimple_statement_d with a diagram showing the
18270 gimple_statement_base class hierarchy and its relationships to
18271 the GSS_ and GIMPLE_ enums.
18273 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18275 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18276 * config/aarch64/aarch64.c
18277 (aarch64_cannot_change_mode_class): Weaken conditions.
18278 (aarch64_modes_tieable_p): New.
18279 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18281 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18283 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18284 (loadsync_<mode>): Change mode.
18285 (load_quadpti, store_quadpti): New.
18286 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18287 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18289 2014-04-28 Martin Jambor <mjambor@suse.cz>
18291 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18292 same alias type as the original statement.
18293 (subreplacement_assignment_data): New type.
18294 (handle_unscalarized_data_in_subtree): New type of parameter,
18295 generate new memory accesses with same alias type as the original
18297 (load_assign_lhs_subreplacements): Likewise.
18298 (sra_modify_constructor_assign): Generate new memory accesses with
18299 same alias type as the original statement.
18301 2014-04-28 Richard Biener <rguenther@suse.de>
18303 * tree-pass.h (TODO_verify_il): Define.
18304 (TODO_verify_all): Complete properly.
18305 * passes.c (execute_function_todo): Move existing loop-closed
18306 SSA verification under TODO_verify_il.
18307 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18308 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18309 Fix tree sharing issue.
18311 2014-04-28 Richard Biener <rguenther@suse.de>
18313 PR middle-end/60092
18314 * builtins.def (DEF_C11_BUILTIN): Add.
18315 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18316 * coretypes.h (enum function_class): Add function_c11_misc.
18317 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18318 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18319 (call_may_clobber_ref_p_1): Likewise.
18320 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18321 (mark_all_reaching_defs_necessary_1): Likewise.
18322 (propagate_necessity): Likewise.
18323 (eliminate_unnecessary_stmts): Likewise.
18324 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18326 2014-04-28 Richard Biener <rguenther@suse.de>
18328 * tree-vrp.c (vrp_var_may_overflow): Remove.
18329 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18330 with overflow immediately bump to one before that value and
18331 let iteration figure out overflow status.
18333 2014-04-28 Richard Biener <rguenther@suse.de>
18335 * configure.ac: Do valgrind header checks unconditionally.
18336 Add --enable-valgrind-annotations.
18337 * system.h: Guard valgrind header inclusion with
18338 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18339 * alloc-pool.c (pool_alloc, pool_free): Use
18340 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18341 to guard possibly dead code.
18342 * config.in: Regenerated.
18343 * configure: Likewise.
18345 2014-04-28 Jeff Law <law@redhat.com>
18347 PR tree-optimization/60902
18348 * tree-ssa-threadedge.c
18349 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18350 over real defs when invalidating outputs from statements that do not
18351 produce useful outputs for threading.
18353 2014-04-28 Richard Biener <rguenther@suse.de>
18355 PR tree-optimization/60979
18356 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18357 SCOPs that end in a block with a successor with abnormal
18360 2014-04-28 Richard Biener <rguenther@suse.de>
18362 * tree-pass.h (execute_pass_list): Adjust prototype.
18363 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18364 (do_per_function): Change callback signature, push all actual
18365 work to the callbals.
18366 (do_per_function_toporder): Likewise.
18367 (execute_function_dump): Adjust.
18368 (execute_function_todo): Likewise.
18369 (clear_last_verified): Likewise.
18370 (verify_curr_properties): Likewise.
18371 (update_properties_after_pass): Likewise.
18372 (execute_pass_list_1): Split out from ...
18373 (execute_pass_list): ... here. Adjust.
18374 (execute_ipa_pass_list): Likewise.
18375 * cgraphunit.c (cgraph_add_new_function): Adjust.
18376 (analyze_function): Likewise.
18377 (expand_function): Likewise.
18378 * cgraph.c (release_function_body): Free dominance info
18379 here instead of asserting it was magically freed elsewhere.
18381 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18383 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18384 * configure: Regenerate.
18385 * config/sparc/sparc.opt (muser-mode): New option.
18386 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18388 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18389 * doc/invoke.texi (SPARC options): Document -muser-mode.
18391 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18393 * cselib.c (find_slot_memmode): Delete.
18394 (cselib_hasher): Change compare_type to a struct.
18395 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18397 (preserve_constants_and_equivs): Adjust for new compare_type.
18398 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18399 (wrap_constant): Delete.
18400 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18402 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18404 * doc/install.texi (Building with profile feedback): Remove
18407 2014-04-26 Tom de Vries <tom@codesourcery.com>
18409 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18412 2014-04-25 Cary Coutant <ccoutant@google.com>
18415 * dwarf2out.c (should_move_die_to_comdat): A type definition
18416 can contain a subprogram definition, but don't move it to a
18418 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18419 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18421 (clone_tree_hash): Rename to...
18422 (clone_tree_partial): ...this; change callers. Copy
18423 DW_TAG_subprogram DIEs as declarations.
18424 (copy_decls_walk): Don't copy children of a declaration into a
18427 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18430 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18433 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18435 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18436 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18438 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18441 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18443 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18445 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18447 PR tree-optimization/60930
18448 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18449 creating a multiply candidate by folding two constant
18450 multiplicands when the result overflows.
18452 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18454 PR tree-optimization/60960
18455 * tree-vect-generic.c (expand_vector_operation): Only call
18456 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18458 2014-04-25 Tom de Vries <tom@codesourcery.com>
18460 * expr.c (clobber_reg_mode): New function.
18461 * expr.h (clobber_reg): New function.
18463 2014-04-25 Tom de Vries <tom@codesourcery.com>
18465 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18468 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18469 Tom de Vries <tom@codesourcery.com>
18471 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18473 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18474 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18475 new argument to find_all_hard_reg_sets call.
18477 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18479 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18480 Use HOST_WIDE_INT_C for mask literal.
18481 (aarch_rev16_shleft_mask_imm_p): Likewise.
18483 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18486 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18488 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18490 PR preprocessor/56540
18491 * config/i386/i386-c.c (ix86_target_macros): Define
18492 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18494 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18496 * configure.ac (tga_func): Remove.
18497 (LIB_TLS_SPEC): Remove.
18498 * configure: Regenerate.
18499 * config.in: Regenerate.
18500 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18502 2014-04-25 Richard Biener <rguenther@suse.de>
18505 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18506 call stmt use/clobber sets during stmt walk instead of
18507 walking the possibly incomplete set of caller edges.
18509 2014-04-25 Richard Biener <rguenther@suse.de>
18512 * passes.c (apply_ipa_transforms): Inline into only caller ...
18513 (execute_one_pass): ... here. Properly bring in function
18514 bodies for nodes we want to apply IPA transforms to.
18516 2014-04-24 Cong Hou <congh@google.com>
18518 PR tree-optimization/60896
18519 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18520 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18521 (vect_mark_pattern_stmts): Set the def type of all statements in
18522 PATTERN_DEF_SEQ as vect_internal_def.
18524 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18526 * doc/extend.texi (PowerPC Built-in Functions): Document new
18527 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18528 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18530 * config/rs6000/predicates.md (const_0_to_3_operand): New
18531 predicate to match 0..3 integer constants.
18533 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18534 to support adding miscellaneous builtin functions.
18535 (BU_DFP_MISC_2): Likewise.
18536 (BU_P7_MISC_1): Likewise.
18537 (BU_P7_MISC_2): Likewise.
18538 (BU_P8V_MISC_3): Likewise.
18539 (BU_MISC_1): Likewise.
18540 (BU_MISC_2): Likewise.
18541 (DIVWE): Add extended divide builtin functions.
18542 (DIVWEO): Likewise.
18543 (DIVWEU): Likewise.
18544 (DIVWEUO): Likewise.
18546 (DIVDEO): Likewise.
18547 (DIVDEU): Likewise.
18548 (DIVDEUO): Likewise.
18549 (DXEX): Add decimal floating-point builtin functions.
18551 (DDEDPD): Likewise.
18552 (DDEDPDQ): Likewise.
18553 (DENBCD): Likewise.
18554 (DENBCDQ): Likewise.
18558 (DSCLIQ): Likewise.
18560 (DSCRIQ): Likewise.
18561 (CDTBCD): Add new BCD builtin functions.
18562 (CBCDTD): Likewise.
18563 (ADDG6S): Likewise.
18564 (BCDADD): Likewise.
18565 (BCDADD_LT): Likewise.
18566 (BCDADD_EQ): Likewise.
18567 (BCDADD_GT): Likewise.
18568 (BCDADD_OV): Likewise.
18569 (BCDSUB): Likewise.
18570 (BCDSUB_LT): Likewise.
18571 (BCDSUB_EQ): Likewise.
18572 (BCDSUB_GT): Likewise.
18573 (BCDSUB_OV): Likewise.
18574 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18575 (UNPACK_TD): Likewise.
18576 (PACK_TF): Likewise.
18577 (UNPACK_TF): Likewise.
18578 (UNPACK_TF_0): Likewise.
18579 (UNPACK_TF_1): Likewise.
18580 (PACK_V1TI): Likewise.
18581 (UNPACK_V1TI): Likewise.
18583 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18584 support for decimal floating point builtin functions.
18585 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18586 functions that take constant arguments.
18587 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18588 (rs6000_init_builtins): Setup long double, _Decimal64, and
18589 _Decimal128 types for new builtin functions.
18590 (builtin_function_type): Set the unsigned flags appropriately for
18591 the new builtin functions.
18592 (rs6000_opt_masks): Add support for decimal floating point builtin
18595 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18596 floating point builtin functions.
18597 (RS6000_BTM_COMMON): Likewise.
18598 (RS6000_BTI_long_double): Likewise.
18599 (RS6000_BTI_dfloat64): Likewise.
18600 (RS6000_BTI_dfloat128): Likewise.
18601 (long_double_type_internal_node): Likewise.
18602 (dfloat64_type_internal_node): Likewise.
18603 (dfloat128_type_internal_node): Likewise.
18605 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18606 2.07 bcd arithmetic instructions.
18607 (UNSPEC_BCDSUB): Likewise.
18608 (UNSPEC_BCD_OVERFLOW): Likewise.
18609 (UNSPEC_BCD_ADD_SUB): Likewise.
18610 (bcd_add_sub): Likewise.
18611 (BCD_TEST): Likewise.
18612 (bcd<bcd_add_sub>): Likewise.
18613 (bcd<bcd_add_sub>_test): Likewise.
18614 (bcd<bcd_add_sub>_test2): Likewise.
18615 (bcd<bcd_add_sub>_<code>): Likewise.
18616 (peephole2 for combined bcd ops): Likewise.
18618 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18619 decimal floating point builtin functions.
18620 (UNSPEC_DENBCD): Likewise.
18621 (UNSPEC_DXEX): Likewise.
18622 (UNSPEC_DIEX): Likewise.
18623 (UNSPEC_DSCLI): Likewise.
18624 (UNSPEC_DSCRI): Likewise.
18625 (D64_D128): Likewise.
18626 (dfp_suffix): Likewise.
18627 (dfp_ddedpd_<mode>): Likewise.
18628 (dfp_denbcd_<mode>): Likewise.
18629 (dfp_dxex_<mode>): Likewise.
18630 (dfp_diex_<mode>): Likewise.
18631 (dfp_dscli_<mode>): Likewise.
18632 (dfp_dscri_<mode>): Likewise.
18634 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18636 (UNSPEC_CDTBCD): Likewise.
18637 (UNSPEC_CBCDTD): Likewise.
18638 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18639 (UNSPEC_DIVEO): Likewise.
18640 (UNSPEC_DIVEU): Likewise.
18641 (UNSPEC_DIVEUO): Likewise.
18642 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18643 pack/unpack 128-bit types.
18644 (UNSPEC_PACK_128BIT): Likewise.
18645 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18646 (udiv<mode>3): Use idiv_ldiv mode attribute.
18647 (div<mode>3): Likewise.
18648 (addg6s): Add new BCD builtin functions.
18649 (cdtbcd): Likewise.
18650 (cbcdtd): Likewise.
18651 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18652 (div_extend): Likewise.
18653 (div<div_extend>_<mode>"): Likewise.
18654 (FP128_64): Add support for new builtin functions to pack/unpack
18656 (unpack<mode>): Likewise.
18657 (unpacktf_0): Likewise.
18658 (unpacktf_1): Likewise.
18659 (unpack<mode>_dm): Likewise.
18660 (unpack<mode>_nodm): Likewise.
18661 (pack<mode>): Likewise.
18662 (unpackv1ti): Likewise.
18663 (packv1ti): Likewise.
18665 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18667 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18670 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18672 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18673 * gimplify.c (omp_is_private): Change last argument's type to int.
18674 Only diagnose lastprivate if the simd argument is 1, only diagnose
18675 linear if the simd argument is 2.
18676 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18677 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18678 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18679 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18680 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18681 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18682 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18683 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18684 * tree-nested.c (convert_nonlocal_omp_clauses,
18685 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18687 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18690 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18693 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18695 * flag-types.h (enum ivar_visibility): Add.
18697 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18699 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18700 function * argument.
18702 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18704 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18706 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18707 Tom de Vries <tom@codesourcery.com>
18709 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18710 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18712 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18713 * emit-rtl.c (try_split): Same.
18715 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18716 Tom de Vries <tom@codesourcery.com>
18718 * common.opt (fuse-caller-save): New option.
18720 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18722 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18723 elements for big-endian.
18725 2014-04-24 Richard Biener <rguenther@suse.de>
18727 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18728 during TER and instead use the sepops interface for expanding
18729 non-GIMPLE_SINGLE_RHS.
18731 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18733 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18734 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18736 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18738 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18739 assembler 64-bit option.
18740 * configure: Regenerate.
18742 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18744 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18745 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18746 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18747 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18748 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18750 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18752 * config/aarch64/aarch64-builtins.c
18753 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18754 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18755 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18756 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18758 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18759 (Vrevsuff): New mode attribute.
18761 2014-04-24 Terry Guo <terry.guo@arm.com>
18763 * config/arm/arm.h (machine_function): Define variable
18764 after_arm_reorg here.
18765 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18766 (arm_split_constant): Update the way to access variable
18768 (arm_reorg): Ditto.
18769 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18771 2014-04-23 Tom de Vries <tom@codesourcery.com>
18773 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18775 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18777 * is-a.h: Update comments to reflect the following changes to the
18778 "pointerness" of the API, making the template parameter match the
18779 return type, allowing use of is-a.h with typedefs of pointers.
18780 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18781 that the return type matches the parameter to the is_a_helper.
18783 (dyn_cast): Likewise.
18785 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18786 pointer from the is-a.h API.
18788 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18789 (is_a_helper <cgraph_node *>::test): ...this, matching change to
18791 (is_a_helper <varpool_node>::test): Likewise, convert to...
18792 (is_a_helper <varpool_node *>::test): ...this.
18794 (varpool_first_variable): Update for removal of implicit pointer
18795 from the is-a.h API.
18796 (varpool_next_variable): Likewise.
18797 (varpool_first_static_initializer): Likewise.
18798 (varpool_next_static_initializer): Likewise.
18799 (varpool_first_defined_variable): Likewise.
18800 (varpool_next_defined_variable): Likewise.
18801 (cgraph_first_defined_function): Likewise.
18802 (cgraph_next_defined_function): Likewise.
18803 (cgraph_first_function): Likewise.
18804 (cgraph_next_function): Likewise.
18805 (cgraph_first_function_with_gimple_body): Likewise.
18806 (cgraph_next_function_with_gimple_body): Likewise.
18807 (cgraph_alias_target): Likewise.
18808 (varpool_alias_target): Likewise.
18809 (cgraph_function_or_thunk_node): Likewise.
18810 (varpool_variable_node): Likewise.
18811 (symtab_real_symbol_p): Likewise.
18812 * cgraphunit.c (referred_to_p): Likewise.
18813 (analyze_functions): Likewise.
18814 (handle_alias_pairs): Likewise.
18815 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
18816 * gimple-ssa.h (gimple_vuse_op): Likewise.
18817 (gimple_vdef_op): Likewise.
18818 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
18819 * gimple.c (gimple_build_asm_1): Likewise.
18820 (gimple_build_try): Likewise.
18821 (gimple_build_resx): Likewise.
18822 (gimple_build_eh_dispatch): Likewise.
18823 (gimple_build_omp_for): Likewise.
18824 (gimple_omp_for_set_clauses): Likewise.
18826 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
18827 (is_a_helper <gimple_statement_asm *>::test): ...this.
18828 (is_a_helper <gimple_statement_bind>::test): Convert to...
18829 (is_a_helper <gimple_statement_bind *>::test): ...this.
18830 (is_a_helper <gimple_statement_call>::test): Convert to...
18831 (is_a_helper <gimple_statement_call *>::test): ...this.
18832 (is_a_helper <gimple_statement_catch>::test): Convert to...
18833 (is_a_helper <gimple_statement_catch *>::test): ...this.
18834 (is_a_helper <gimple_statement_resx>::test): Convert to...
18835 (is_a_helper <gimple_statement_resx *>::test): ...this.
18836 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
18837 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
18838 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
18839 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
18840 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
18841 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
18842 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
18843 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
18844 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
18845 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
18846 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
18847 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
18848 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
18849 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
18850 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
18851 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
18852 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
18853 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
18854 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
18855 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
18856 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
18857 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
18858 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
18859 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
18860 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
18861 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
18862 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
18863 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
18864 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
18865 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
18866 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
18867 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
18868 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
18869 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
18870 (is_a_helper <gimple_statement_phi>::test): Convert to...
18871 (is_a_helper <gimple_statement_phi *>::test): ...this.
18872 (is_a_helper <gimple_statement_transaction>::test): Convert to...
18873 (is_a_helper <gimple_statement_transaction *>::test): ...this.
18874 (is_a_helper <gimple_statement_try>::test): Convert to...
18875 (is_a_helper <gimple_statement_try *>::test): ...this.
18876 (is_a_helper <gimple_statement_wce>::test): Convert to...
18877 (is_a_helper <gimple_statement_wce *>::test): ...this.
18878 (is_a_helper <const gimple_statement_asm>::test): Convert to...
18879 (is_a_helper <const gimple_statement_asm *>::test): ...this.
18880 (is_a_helper <const gimple_statement_bind>::test): Convert to...
18881 (is_a_helper <const gimple_statement_bind *>::test): ...this.
18882 (is_a_helper <const gimple_statement_call>::test): Convert to...
18883 (is_a_helper <const gimple_statement_call *>::test): ...this.
18884 (is_a_helper <const gimple_statement_catch>::test): Convert to...
18885 (is_a_helper <const gimple_statement_catch *>::test): ...this.
18886 (is_a_helper <const gimple_statement_resx>::test): Convert to...
18887 (is_a_helper <const gimple_statement_resx *>::test): ...this.
18888 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
18889 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
18890 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
18891 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
18892 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
18894 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
18896 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
18898 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
18900 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
18901 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
18902 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
18904 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
18905 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
18907 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
18908 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
18909 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
18910 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
18911 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
18912 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
18914 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
18915 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
18916 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
18917 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
18919 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
18920 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
18921 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
18922 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
18923 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
18924 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
18925 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
18926 (is_a_helper <const gimple_statement_phi>::test): Convert to...
18927 (is_a_helper <const gimple_statement_phi *>::test): ...this.
18928 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
18929 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
18930 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
18931 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
18932 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
18933 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
18934 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
18936 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
18938 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
18939 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
18941 (gimple_use_ops): Update for removal of implicit pointer from the
18943 (gimple_set_use_ops): Likewise.
18944 (gimple_vuse): Likewise.
18945 (gimple_vdef): Likewise.
18946 (gimple_vuse_ptr): Likewise.
18947 (gimple_vdef_ptr): Likewise.
18948 (gimple_set_vuse): Likewise.
18949 (gimple_set_vdef): Likewise.
18950 (gimple_omp_return_set_lhs): Likewise.
18951 (gimple_omp_return_lhs): Likewise.
18952 (gimple_omp_return_lhs_ptr): Likewise.
18953 (gimple_call_fntype): Likewise.
18954 (gimple_call_set_fntype): Likewise.
18955 (gimple_call_set_internal_fn): Likewise.
18956 (gimple_call_use_set): Likewise.
18957 (gimple_call_clobber_set): Likewise.
18958 (gimple_bind_vars): Likewise.
18959 (gimple_bind_set_vars): Likewise.
18960 (gimple_bind_body_ptr): Likewise.
18961 (gimple_bind_set_body): Likewise.
18962 (gimple_bind_add_stmt): Likewise.
18963 (gimple_bind_block): Likewise.
18964 (gimple_bind_set_block): Likewise.
18965 (gimple_asm_ninputs): Likewise.
18966 (gimple_asm_noutputs): Likewise.
18967 (gimple_asm_nclobbers): Likewise.
18968 (gimple_asm_nlabels): Likewise.
18969 (gimple_asm_input_op): Likewise.
18970 (gimple_asm_input_op_ptr): Likewise.
18971 (gimple_asm_output_op): Likewise.
18972 (gimple_asm_output_op_ptr): Likewise.
18973 (gimple_asm_set_output_op): Likewise.
18974 (gimple_asm_clobber_op): Likewise.
18975 (gimple_asm_set_clobber_op): Likewise.
18976 (gimple_asm_label_op): Likewise.
18977 (gimple_asm_set_label_op): Likewise.
18978 (gimple_asm_string): Likewise.
18979 (gimple_catch_types): Likewise.
18980 (gimple_catch_types_ptr): Likewise.
18981 (gimple_catch_handler_ptr): Likewise.
18982 (gimple_catch_set_types): Likewise.
18983 (gimple_catch_set_handler): Likewise.
18984 (gimple_eh_filter_types): Likewise.
18985 (gimple_eh_filter_types_ptr): Likewise.
18986 (gimple_eh_filter_failure_ptr): Likewise.
18987 (gimple_eh_filter_set_types): Likewise.
18988 (gimple_eh_filter_set_failure): Likewise.
18989 (gimple_eh_must_not_throw_fndecl): Likewise.
18990 (gimple_eh_must_not_throw_set_fndecl): Likewise.
18991 (gimple_eh_else_n_body_ptr): Likewise.
18992 (gimple_eh_else_e_body_ptr): Likewise.
18993 (gimple_eh_else_set_n_body): Likewise.
18994 (gimple_eh_else_set_e_body): Likewise.
18995 (gimple_try_eval_ptr): Likewise.
18996 (gimple_try_cleanup_ptr): Likewise.
18997 (gimple_try_set_eval): Likewise.
18998 (gimple_try_set_cleanup): Likewise.
18999 (gimple_wce_cleanup_ptr): Likewise.
19000 (gimple_wce_set_cleanup): Likewise.
19001 (gimple_phi_capacity): Likewise.
19002 (gimple_phi_num_args): Likewise.
19003 (gimple_phi_result): Likewise.
19004 (gimple_phi_result_ptr): Likewise.
19005 (gimple_phi_set_result): Likewise.
19006 (gimple_phi_arg): Likewise.
19007 (gimple_phi_set_arg): Likewise.
19008 (gimple_resx_region): Likewise.
19009 (gimple_resx_set_region): Likewise.
19010 (gimple_eh_dispatch_region): Likewise.
19011 (gimple_eh_dispatch_set_region): Likewise.
19012 (gimple_omp_critical_name): Likewise.
19013 (gimple_omp_critical_name_ptr): Likewise.
19014 (gimple_omp_critical_set_name): Likewise.
19015 (gimple_omp_for_clauses): Likewise.
19016 (gimple_omp_for_clauses_ptr): Likewise.
19017 (gimple_omp_for_set_clauses): Likewise.
19018 (gimple_omp_for_collapse): Likewise.
19019 (gimple_omp_for_index): Likewise.
19020 (gimple_omp_for_index_ptr): Likewise.
19021 (gimple_omp_for_set_index): Likewise.
19022 (gimple_omp_for_initial): Likewise.
19023 (gimple_omp_for_initial_ptr): Likewise.
19024 (gimple_omp_for_set_initial): Likewise.
19025 (gimple_omp_for_final): Likewise.
19026 (gimple_omp_for_final_ptr): Likewise.
19027 (gimple_omp_for_set_final): Likewise.
19028 (gimple_omp_for_incr): Likewise.
19029 (gimple_omp_for_incr_ptr): Likewise.
19030 (gimple_omp_for_set_incr): Likewise.
19031 (gimple_omp_for_pre_body_ptr): Likewise.
19032 (gimple_omp_for_set_pre_body): Likewise.
19033 (gimple_omp_parallel_clauses): Likewise.
19034 (gimple_omp_parallel_clauses_ptr): Likewise.
19035 (gimple_omp_parallel_set_clauses): Likewise.
19036 (gimple_omp_parallel_child_fn): Likewise.
19037 (gimple_omp_parallel_child_fn_ptr): Likewise.
19038 (gimple_omp_parallel_set_child_fn): Likewise.
19039 (gimple_omp_parallel_data_arg): Likewise.
19040 (gimple_omp_parallel_data_arg_ptr): Likewise.
19041 (gimple_omp_parallel_set_data_arg): Likewise.
19042 (gimple_omp_task_clauses): Likewise.
19043 (gimple_omp_task_clauses_ptr): Likewise.
19044 (gimple_omp_task_set_clauses): Likewise.
19045 (gimple_omp_task_child_fn): Likewise.
19046 (gimple_omp_task_child_fn_ptr): Likewise.
19047 (gimple_omp_task_set_child_fn): Likewise.
19048 (gimple_omp_task_data_arg): Likewise.
19049 (gimple_omp_task_data_arg_ptr): Likewise.
19050 (gimple_omp_task_set_data_arg): Likewise.
19051 (gimple_omp_taskreg_clauses): Likewise.
19052 (gimple_omp_taskreg_clauses_ptr): Likewise.
19053 (gimple_omp_taskreg_set_clauses): Likewise.
19054 (gimple_omp_taskreg_child_fn): Likewise.
19055 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19056 (gimple_omp_taskreg_set_child_fn): Likewise.
19057 (gimple_omp_taskreg_data_arg): Likewise.
19058 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19059 (gimple_omp_taskreg_set_data_arg): Likewise.
19060 (gimple_omp_task_copy_fn): Likewise.
19061 (gimple_omp_task_copy_fn_ptr): Likewise.
19062 (gimple_omp_task_set_copy_fn): Likewise.
19063 (gimple_omp_task_arg_size): Likewise.
19064 (gimple_omp_task_arg_size_ptr): Likewise.
19065 (gimple_omp_task_set_arg_size): Likewise.
19066 (gimple_omp_task_arg_align): Likewise.
19067 (gimple_omp_task_arg_align_ptr): Likewise.
19068 (gimple_omp_task_set_arg_align): Likewise.
19069 (gimple_omp_single_clauses): Likewise.
19070 (gimple_omp_single_clauses_ptr): Likewise.
19071 (gimple_omp_single_set_clauses): Likewise.
19072 (gimple_omp_target_clauses): Likewise.
19073 (gimple_omp_target_clauses_ptr): Likewise.
19074 (gimple_omp_target_set_clauses): Likewise.
19075 (gimple_omp_target_child_fn): Likewise.
19076 (gimple_omp_target_child_fn_ptr): Likewise.
19077 (gimple_omp_target_set_child_fn): Likewise.
19078 (gimple_omp_target_data_arg): Likewise.
19079 (gimple_omp_target_data_arg_ptr): Likewise.
19080 (gimple_omp_target_set_data_arg): Likewise.
19081 (gimple_omp_teams_clauses): Likewise.
19082 (gimple_omp_teams_clauses_ptr): Likewise.
19083 (gimple_omp_teams_set_clauses): Likewise.
19084 (gimple_omp_sections_clauses): Likewise.
19085 (gimple_omp_sections_clauses_ptr): Likewise.
19086 (gimple_omp_sections_set_clauses): Likewise.
19087 (gimple_omp_sections_control): Likewise.
19088 (gimple_omp_sections_control_ptr): Likewise.
19089 (gimple_omp_sections_set_control): Likewise.
19090 (gimple_omp_for_set_cond): Likewise.
19091 (gimple_omp_for_cond): Likewise.
19092 (gimple_omp_atomic_store_set_val): Likewise.
19093 (gimple_omp_atomic_store_val): Likewise.
19094 (gimple_omp_atomic_store_val_ptr): Likewise.
19095 (gimple_omp_atomic_load_set_lhs): Likewise.
19096 (gimple_omp_atomic_load_lhs): Likewise.
19097 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19098 (gimple_omp_atomic_load_set_rhs): Likewise.
19099 (gimple_omp_atomic_load_rhs): Likewise.
19100 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19101 (gimple_omp_continue_control_def): Likewise.
19102 (gimple_omp_continue_control_def_ptr): Likewise.
19103 (gimple_omp_continue_set_control_def): Likewise.
19104 (gimple_omp_continue_control_use): Likewise.
19105 (gimple_omp_continue_control_use_ptr): Likewise.
19106 (gimple_omp_continue_set_control_use): Likewise.
19107 (gimple_transaction_body_ptr): Likewise.
19108 (gimple_transaction_label): Likewise.
19109 (gimple_transaction_label_ptr): Likewise.
19110 (gimple_transaction_set_body): Likewise.
19111 (gimple_transaction_set_label): Likewise.
19113 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19114 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19115 * ipa-ref.c (ipa_record_reference): Likewise.
19116 * ipa-reference.c (analyze_function): Likewise.
19117 (ipa_reference_write_optimization_summary): Likewise.
19118 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19119 (address_taken_from_non_vtable_p): Likewise.
19120 (comdat_can_be_unshared_p_1): Likewise.
19121 * lto-cgraph.c (lto_output_ref): Likewise.
19122 (add_references): Likewise.
19123 (compute_ltrans_boundary): Likewise.
19124 (output_symtab): Likewise.
19125 (input_ref): Likewise.
19126 (input_cgraph_1): Likewise.
19127 (output_cgraph_opt_summary): Likewise.
19128 * lto-streamer-out.c (lto_output): Likewise.
19129 (output_symbol_p): Likewise.
19130 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19131 (lsei_start_function_in_partition): Likewise.
19132 (lsei_next_variable_in_partition): Likewise.
19133 (lsei_start_variable_in_partition): Likewise.
19134 * symtab.c (insert_to_assembler_name_hash): Likewise.
19135 (unlink_from_assembler_name_hash): Likewise.
19136 (symtab_unregister_node): Likewise.
19137 (symtab_remove_node): Likewise.
19138 (dump_symtab_node): Likewise.
19139 (verify_symtab_base): Likewise.
19140 (verify_symtab_node): Likewise.
19141 (symtab_make_decl_local): Likewise.
19142 (symtab_alias_ultimate_target): Likewise.
19143 (symtab_resolve_alias): Likewise.
19144 (symtab_get_symbol_partitioning_class): Likewise.
19145 * tree-phinodes.c (allocate_phi_node): Likewise.
19146 (reserve_phi_args_for_new_edge): Likewise.
19147 (remove_phi_args): Likewise.
19148 * varpool.c (varpool_node_for_asm): Likewise.
19149 (varpool_remove_unreferenced_decls): Likewise.
19151 2014-04-23 Jeff Law <law@redhat.com>
19153 PR tree-optimization/60902
19154 * tree-ssa-threadedge.c
19155 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19156 invalidate outputs from statements that do not produce useful
19157 outputs for threading.
19159 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19161 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19162 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19163 machine descriptions for Stack Smashing Protector.
19165 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19167 * aarch64.md (<optab>_rol<mode>3): New pattern.
19168 (<optab>_rolsi3_uxtw): Likewise.
19169 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19171 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19173 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19174 (arm_cortex_a12_tune): Likewise.
19176 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19178 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19180 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19182 * config/arm/arm.md (arm_rev16si2): New pattern.
19183 (arm_rev16si2_alt): Likewise.
19184 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19186 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19188 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19189 (rev16<mode>2_alt): Likewise.
19190 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19191 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19192 (aarch_rev16_shleft_mask_imm_p): Likewise.
19193 (aarch_rev16_p_1): Likewise.
19194 (aarch_rev16_p): Likewise.
19195 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19196 (aarch_rev16_shright_mask_imm_p): Likewise.
19197 (aarch_rev16_shleft_mask_imm_p): Likewise.
19199 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19201 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19202 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19204 (cortex_a53_extra_costs): Likewise.
19205 (cortex_a57_extra_costs): Likewise.
19206 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19207 (cortexa7_extra_costs): Likewise.
19208 (cortexa8_extra_costs): Likewise.
19209 (cortexa12_extra_costs): Likewise.
19210 (cortexa15_extra_costs): Likewise.
19211 (v7m_extra_costs): Likewise.
19212 (arm_new_rtx_costs): Handle BSWAP.
19214 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19216 * config/arm/arm.c (cortexa8_extra_costs): New table.
19217 (arm_cortex_a8_tune): New tuning struct.
19218 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19220 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19222 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19224 2014-04-23 Richard Biener <rguenther@suse.de>
19226 * Makefile.in (OBJS): Remove loop-unswitch.o.
19227 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19228 * passes.def (pass_rtl_unswitch): Likewise.
19229 * loop-init.c (gate_rtl_unswitch): Likewise.
19230 (rtl_unswitch): Likewise.
19231 (pass_data_rtl_unswitch): Likewise.
19232 (pass_rtl_unswitch): Likewise.
19233 (make_pass_rtl_unswitch): Likewise.
19234 * rtl.h (reversed_condition): Likewise.
19235 (compare_and_jump_seq): Likewise.
19236 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19238 * loop-unroll.c (compare_and_jump_seq): Likewise.
19240 2014-04-23 Richard Biener <rguenther@suse.de>
19242 PR tree-optimization/60903
19243 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19244 commented code block.
19245 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19246 loop flags to newly created BBs and edges.
19248 2014-04-23 Nick Clifton <nickc@redhat.com>
19250 * config/msp430/msp430.c (msp430_handle_option): Move function
19252 (msp430_option_override): Simplify mcu and mcpu option handling.
19253 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19254 support for -mhwmult command line option.
19255 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19256 -mhwmult command line option.
19257 (msp430_hwmult_enabled): Delete.
19258 (msp43o_output_labelref): Add support for -mhwmult command line option.
19259 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19260 (umulsidi3): Likewise.
19261 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19262 (mcpu, mlarge, msmall): Likewise.
19263 (mhwmult): New option.
19264 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19266 (msp430_is_f5_mcu): Remove prototype.
19267 (msp430_use_f5_series_hwmult): Add prototype.
19268 * config/msp430/msp430-opts.h: New file.
19269 * common/config/msp430: New directory.
19270 * common/config/msp430/msp430-common.c: New file.
19271 * config.gcc (msp430): Remove target_has_targetm_common.
19272 * doc/invoke.texi: Document -mhwmult command line option.
19274 2014-04-23 Nick Clifton <nickc@redhat.com>
19276 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19277 default-manifest.o if it can be found in the search path.
19278 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19280 2014-04-23 Terry Guo <terry.guo@arm.com>
19282 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19284 2014-04-23 Richard Biener <rguenther@suse.de>
19286 PR middle-end/60895
19287 * tree-inline.c (declare_return_variable): Use mark_addressable.
19289 2014-04-23 Richard Biener <rguenther@suse.de>
19291 PR middle-end/60891
19292 * loop-init.c (loop_optimizer_init): Make sure to apply
19293 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19295 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19298 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19300 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19301 if flag_sanitize_undefined_trap_on_error.
19302 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19303 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19304 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19305 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19306 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19307 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19308 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19309 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19310 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19311 * ubsan.c (ubsan_instrument_unreachable): Return
19312 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19313 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19314 if flag_sanitize_undefined_trap_on_error and
19315 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19316 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19317 instrument_bool_enum_load): Emit __builtin_trap () if
19318 flag_sanitize_undefined_trap_on_error and
19319 __builtin_handle_*_abort () if !flag_sanitize_recover.
19320 * doc/invoke.texi (-fsanitize-recover,
19321 -fsanitize-undefined-trap-on-error): Document.
19323 2014-04-22 Christian Bruel <christian.bruel@st.com>
19325 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19326 Force immediates to SImode.
19328 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19330 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19331 (lroundsfsi2): New.
19332 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19333 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19334 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19335 (nios2_fpu_insn): Add entry for round.
19336 (N2FPU_NO_ERRNO_P): Define.
19337 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19339 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19341 2014-04-22 Richard Henderson <rth@redhat.com>
19343 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19344 (add<GPI>3_compare0): Remove leading * from name.
19345 (add<GPI>3_carryin): Likewise.
19346 (sub<GPI>3_compare0): Likewise.
19347 (sub<GPI>3_carryin): Likewise.
19348 (<su_optab>mulditi3): New expander.
19349 (multi3): New expander.
19350 (madd<GPI>): Remove leading * from name.
19352 2014-04-22 Martin Jambor <mjambor@suse.cz>
19354 * cgraphclones.c (cgraph_function_versioning): Copy
19355 ipa_transforms_to_apply instead of asserting it is empty.
19357 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19360 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19361 on count_exp to get mode.
19363 2014-04-22 Andrew Pinski <apinski@cavium.com>
19365 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19366 Handle TLS for ILP32.
19367 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19368 (tlsie_small_<mode>): this and handle PTR.
19369 (tlsie_small_sidi): New pattern.
19370 (tlsle_small): Change to an expand to handle ILP32.
19371 (tlsle_small_<mode>): New pattern.
19372 (tlsdesc_small): Rename to ...
19373 (tlsdesc_small_<mode>): this and handle PTR.
19375 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19377 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19379 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19381 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19382 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19383 (aarch64_types_signed_poly_qualifiers): Likewise.
19384 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19385 (aarch64_types_poly_signed_qualifiers): Likewise.
19386 (TYPES_REINTERP_SS): Type macro added.
19387 (TYPES_REINTERP_SU): Likewise.
19388 (TYPES_REINTERP_SP): Likewise.
19389 (TYPES_REINTERP_US): Likewise.
19390 (TYPES_REINTERP_PS): Likewise.
19391 (aarch64_fold_builtin): New expression folding added.
19392 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19393 Declarations removed.
19394 (REINTERP_SS): Declarations added.
19395 (REINTERP_US): Likewise.
19396 (REINTERP_PS): Likewise.
19397 (REINTERP_SU): Likewise.
19398 (REINTERP_SP): Likewise.
19399 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19400 (vreinterpretq_p8_f64): Likewise.
19401 (vreinterpret_p16_f64): Likewise.
19402 (vreinterpretq_p16_f64): Likewise.
19403 (vreinterpret_f32_f64): Likewise.
19404 (vreinterpretq_f32_f64): Likewise.
19405 (vreinterpret_f64_f32): Likewise.
19406 (vreinterpret_f64_p8): Likewise.
19407 (vreinterpret_f64_p16): Likewise.
19408 (vreinterpret_f64_s8): Likewise.
19409 (vreinterpret_f64_s16): Likewise.
19410 (vreinterpret_f64_s32): Likewise.
19411 (vreinterpret_f64_s64): Likewise.
19412 (vreinterpret_f64_u8): Likewise.
19413 (vreinterpret_f64_u16): Likewise.
19414 (vreinterpret_f64_u32): Likewise.
19415 (vreinterpret_f64_u64): Likewise.
19416 (vreinterpretq_f64_f32): Likewise.
19417 (vreinterpretq_f64_p8): Likewise.
19418 (vreinterpretq_f64_p16): Likewise.
19419 (vreinterpretq_f64_s8): Likewise.
19420 (vreinterpretq_f64_s16): Likewise.
19421 (vreinterpretq_f64_s32): Likewise.
19422 (vreinterpretq_f64_s64): Likewise.
19423 (vreinterpretq_f64_u8): Likewise.
19424 (vreinterpretq_f64_u16): Likewise.
19425 (vreinterpretq_f64_u32): Likewise.
19426 (vreinterpretq_f64_u64): Likewise.
19427 (vreinterpret_s64_f64): Likewise.
19428 (vreinterpretq_s64_f64): Likewise.
19429 (vreinterpret_u64_f64): Likewise.
19430 (vreinterpretq_u64_f64): Likewise.
19431 (vreinterpret_s8_f64): Likewise.
19432 (vreinterpretq_s8_f64): Likewise.
19433 (vreinterpret_s16_f64): Likewise.
19434 (vreinterpretq_s16_f64): Likewise.
19435 (vreinterpret_s32_f64): Likewise.
19436 (vreinterpretq_s32_f64): Likewise.
19437 (vreinterpret_u8_f64): Likewise.
19438 (vreinterpretq_u8_f64): Likewise.
19439 (vreinterpret_u16_f64): Likewise.
19440 (vreinterpretq_u16_f64): Likewise.
19441 (vreinterpret_u32_f64): Likewise.
19442 (vreinterpretq_u32_f64): Likewise.
19444 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19446 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19447 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19448 (vreinterpret_p8_s8): Likewise.
19449 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19450 (vreinterpret_p8_s16): Likewise.
19451 (vreinterpret_p8_s32): Likewise.
19452 (vreinterpret_p8_s64): Likewise.
19453 (vreinterpret_p8_f32): Likewise.
19454 (vreinterpret_p8_u8): Likewise.
19455 (vreinterpret_p8_u16): Likewise.
19456 (vreinterpret_p8_u32): Likewise.
19457 (vreinterpret_p8_u64): Likewise.
19458 (vreinterpret_p8_p16): Likewise.
19459 (vreinterpretq_p8_s8): Likewise.
19460 (vreinterpretq_p8_s16): Likewise.
19461 (vreinterpretq_p8_s32): Likewise.
19462 (vreinterpretq_p8_s64): Likewise.
19463 (vreinterpretq_p8_f32): Likewise.
19464 (vreinterpretq_p8_u8): Likewise.
19465 (vreinterpretq_p8_u16): Likewise.
19466 (vreinterpretq_p8_u32): Likewise.
19467 (vreinterpretq_p8_u64): Likewise.
19468 (vreinterpretq_p8_p16): Likewise.
19469 (vreinterpret_p16_s8): Likewise.
19470 (vreinterpret_p16_s16): Likewise.
19471 (vreinterpret_p16_s32): Likewise.
19472 (vreinterpret_p16_s64): Likewise.
19473 (vreinterpret_p16_f32): Likewise.
19474 (vreinterpret_p16_u8): Likewise.
19475 (vreinterpret_p16_u16): Likewise.
19476 (vreinterpret_p16_u32): Likewise.
19477 (vreinterpret_p16_u64): Likewise.
19478 (vreinterpret_p16_p8): Likewise.
19479 (vreinterpretq_p16_s8): Likewise.
19480 (vreinterpretq_p16_s16): Likewise.
19481 (vreinterpretq_p16_s32): Likewise.
19482 (vreinterpretq_p16_s64): Likewise.
19483 (vreinterpretq_p16_f32): Likewise.
19484 (vreinterpretq_p16_u8): Likewise.
19485 (vreinterpretq_p16_u16): Likewise.
19486 (vreinterpretq_p16_u32): Likewise.
19487 (vreinterpretq_p16_u64): Likewise.
19488 (vreinterpretq_p16_p8): Likewise.
19489 (vreinterpret_f32_s8): Likewise.
19490 (vreinterpret_f32_s16): Likewise.
19491 (vreinterpret_f32_s32): Likewise.
19492 (vreinterpret_f32_s64): Likewise.
19493 (vreinterpret_f32_u8): Likewise.
19494 (vreinterpret_f32_u16): Likewise.
19495 (vreinterpret_f32_u32): Likewise.
19496 (vreinterpret_f32_u64): Likewise.
19497 (vreinterpret_f32_p8): Likewise.
19498 (vreinterpret_f32_p16): Likewise.
19499 (vreinterpretq_f32_s8): Likewise.
19500 (vreinterpretq_f32_s16): Likewise.
19501 (vreinterpretq_f32_s32): Likewise.
19502 (vreinterpretq_f32_s64): Likewise.
19503 (vreinterpretq_f32_u8): Likewise.
19504 (vreinterpretq_f32_u16): Likewise.
19505 (vreinterpretq_f32_u32): Likewise.
19506 (vreinterpretq_f32_u64): Likewise.
19507 (vreinterpretq_f32_p8): Likewise.
19508 (vreinterpretq_f32_p16): Likewise.
19509 (vreinterpret_s64_s8): Likewise.
19510 (vreinterpret_s64_s16): Likewise.
19511 (vreinterpret_s64_s32): Likewise.
19512 (vreinterpret_s64_f32): Likewise.
19513 (vreinterpret_s64_u8): Likewise.
19514 (vreinterpret_s64_u16): Likewise.
19515 (vreinterpret_s64_u32): Likewise.
19516 (vreinterpret_s64_u64): Likewise.
19517 (vreinterpret_s64_p8): Likewise.
19518 (vreinterpret_s64_p16): Likewise.
19519 (vreinterpretq_s64_s8): Likewise.
19520 (vreinterpretq_s64_s16): Likewise.
19521 (vreinterpretq_s64_s32): Likewise.
19522 (vreinterpretq_s64_f32): Likewise.
19523 (vreinterpretq_s64_u8): Likewise.
19524 (vreinterpretq_s64_u16): Likewise.
19525 (vreinterpretq_s64_u32): Likewise.
19526 (vreinterpretq_s64_u64): Likewise.
19527 (vreinterpretq_s64_p8): Likewise.
19528 (vreinterpretq_s64_p16): Likewise.
19529 (vreinterpret_u64_s8): Likewise.
19530 (vreinterpret_u64_s16): Likewise.
19531 (vreinterpret_u64_s32): Likewise.
19532 (vreinterpret_u64_s64): Likewise.
19533 (vreinterpret_u64_f32): Likewise.
19534 (vreinterpret_u64_u8): Likewise.
19535 (vreinterpret_u64_u16): Likewise.
19536 (vreinterpret_u64_u32): Likewise.
19537 (vreinterpret_u64_p8): Likewise.
19538 (vreinterpret_u64_p16): Likewise.
19539 (vreinterpretq_u64_s8): Likewise.
19540 (vreinterpretq_u64_s16): Likewise.
19541 (vreinterpretq_u64_s32): Likewise.
19542 (vreinterpretq_u64_s64): Likewise.
19543 (vreinterpretq_u64_f32): Likewise.
19544 (vreinterpretq_u64_u8): Likewise.
19545 (vreinterpretq_u64_u16): Likewise.
19546 (vreinterpretq_u64_u32): Likewise.
19547 (vreinterpretq_u64_p8): Likewise.
19548 (vreinterpretq_u64_p16): Likewise.
19549 (vreinterpret_s8_s16): Likewise.
19550 (vreinterpret_s8_s32): Likewise.
19551 (vreinterpret_s8_s64): Likewise.
19552 (vreinterpret_s8_f32): Likewise.
19553 (vreinterpret_s8_u8): Likewise.
19554 (vreinterpret_s8_u16): Likewise.
19555 (vreinterpret_s8_u32): Likewise.
19556 (vreinterpret_s8_u64): Likewise.
19557 (vreinterpret_s8_p8): Likewise.
19558 (vreinterpret_s8_p16): Likewise.
19559 (vreinterpretq_s8_s16): Likewise.
19560 (vreinterpretq_s8_s32): Likewise.
19561 (vreinterpretq_s8_s64): Likewise.
19562 (vreinterpretq_s8_f32): Likewise.
19563 (vreinterpretq_s8_u8): Likewise.
19564 (vreinterpretq_s8_u16): Likewise.
19565 (vreinterpretq_s8_u32): Likewise.
19566 (vreinterpretq_s8_u64): Likewise.
19567 (vreinterpretq_s8_p8): Likewise.
19568 (vreinterpretq_s8_p16): Likewise.
19569 (vreinterpret_s16_s8): Likewise.
19570 (vreinterpret_s16_s32): Likewise.
19571 (vreinterpret_s16_s64): Likewise.
19572 (vreinterpret_s16_f32): Likewise.
19573 (vreinterpret_s16_u8): Likewise.
19574 (vreinterpret_s16_u16): Likewise.
19575 (vreinterpret_s16_u32): Likewise.
19576 (vreinterpret_s16_u64): Likewise.
19577 (vreinterpret_s16_p8): Likewise.
19578 (vreinterpret_s16_p16): Likewise.
19579 (vreinterpretq_s16_s8): Likewise.
19580 (vreinterpretq_s16_s32): Likewise.
19581 (vreinterpretq_s16_s64): Likewise.
19582 (vreinterpretq_s16_f32): Likewise.
19583 (vreinterpretq_s16_u8): Likewise.
19584 (vreinterpretq_s16_u16): Likewise.
19585 (vreinterpretq_s16_u32): Likewise.
19586 (vreinterpretq_s16_u64): Likewise.
19587 (vreinterpretq_s16_p8): Likewise.
19588 (vreinterpretq_s16_p16): Likewise.
19589 (vreinterpret_s32_s8): Likewise.
19590 (vreinterpret_s32_s16): Likewise.
19591 (vreinterpret_s32_s64): Likewise.
19592 (vreinterpret_s32_f32): Likewise.
19593 (vreinterpret_s32_u8): Likewise.
19594 (vreinterpret_s32_u16): Likewise.
19595 (vreinterpret_s32_u32): Likewise.
19596 (vreinterpret_s32_u64): Likewise.
19597 (vreinterpret_s32_p8): Likewise.
19598 (vreinterpret_s32_p16): Likewise.
19599 (vreinterpretq_s32_s8): Likewise.
19600 (vreinterpretq_s32_s16): Likewise.
19601 (vreinterpretq_s32_s64): Likewise.
19602 (vreinterpretq_s32_f32): Likewise.
19603 (vreinterpretq_s32_u8): Likewise.
19604 (vreinterpretq_s32_u16): Likewise.
19605 (vreinterpretq_s32_u32): Likewise.
19606 (vreinterpretq_s32_u64): Likewise.
19607 (vreinterpretq_s32_p8): Likewise.
19608 (vreinterpretq_s32_p16): Likewise.
19609 (vreinterpret_u8_s8): Likewise.
19610 (vreinterpret_u8_s16): Likewise.
19611 (vreinterpret_u8_s32): Likewise.
19612 (vreinterpret_u8_s64): Likewise.
19613 (vreinterpret_u8_f32): Likewise.
19614 (vreinterpret_u8_u16): Likewise.
19615 (vreinterpret_u8_u32): Likewise.
19616 (vreinterpret_u8_u64): Likewise.
19617 (vreinterpret_u8_p8): Likewise.
19618 (vreinterpret_u8_p16): Likewise.
19619 (vreinterpretq_u8_s8): Likewise.
19620 (vreinterpretq_u8_s16): Likewise.
19621 (vreinterpretq_u8_s32): Likewise.
19622 (vreinterpretq_u8_s64): Likewise.
19623 (vreinterpretq_u8_f32): Likewise.
19624 (vreinterpretq_u8_u16): Likewise.
19625 (vreinterpretq_u8_u32): Likewise.
19626 (vreinterpretq_u8_u64): Likewise.
19627 (vreinterpretq_u8_p8): Likewise.
19628 (vreinterpretq_u8_p16): Likewise.
19629 (vreinterpret_u16_s8): Likewise.
19630 (vreinterpret_u16_s16): Likewise.
19631 (vreinterpret_u16_s32): Likewise.
19632 (vreinterpret_u16_s64): Likewise.
19633 (vreinterpret_u16_f32): Likewise.
19634 (vreinterpret_u16_u8): Likewise.
19635 (vreinterpret_u16_u32): Likewise.
19636 (vreinterpret_u16_u64): Likewise.
19637 (vreinterpret_u16_p8): Likewise.
19638 (vreinterpret_u16_p16): Likewise.
19639 (vreinterpretq_u16_s8): Likewise.
19640 (vreinterpretq_u16_s16): Likewise.
19641 (vreinterpretq_u16_s32): Likewise.
19642 (vreinterpretq_u16_s64): Likewise.
19643 (vreinterpretq_u16_f32): Likewise.
19644 (vreinterpretq_u16_u8): Likewise.
19645 (vreinterpretq_u16_u32): Likewise.
19646 (vreinterpretq_u16_u64): Likewise.
19647 (vreinterpretq_u16_p8): Likewise.
19648 (vreinterpretq_u16_p16): Likewise.
19649 (vreinterpret_u32_s8): Likewise.
19650 (vreinterpret_u32_s16): Likewise.
19651 (vreinterpret_u32_s32): Likewise.
19652 (vreinterpret_u32_s64): Likewise.
19653 (vreinterpret_u32_f32): Likewise.
19654 (vreinterpret_u32_u8): Likewise.
19655 (vreinterpret_u32_u16): Likewise.
19656 (vreinterpret_u32_u64): Likewise.
19657 (vreinterpret_u32_p8): Likewise.
19658 (vreinterpret_u32_p16): Likewise.
19659 (vreinterpretq_u32_s8): Likewise.
19660 (vreinterpretq_u32_s16): Likewise.
19661 (vreinterpretq_u32_s32): Likewise.
19662 (vreinterpretq_u32_s64): Likewise.
19663 (vreinterpretq_u32_f32): Likewise.
19664 (vreinterpretq_u32_u8): Likewise.
19665 (vreinterpretq_u32_u16): Likewise.
19666 (vreinterpretq_u32_u64): Likewise.
19667 (vreinterpretq_u32_p8): Likewise.
19668 (vreinterpretq_u32_p16): Likewise.
19670 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19672 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19674 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19676 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19677 (vqnegd_s64): Likewise.
19678 (vqabs_s64): Likewise.
19679 (vqabsd_s64): Likewise.
19681 2014-04-22 Richard Henderson <rth@redhat.com>
19683 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19684 computation to the top of the loop.
19686 2014-04-22 Renlin <renlin.li@arm.com>
19687 Jiong Wang <jiong.wang@arm.com>
19689 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19690 * config/aarch64/aarch64.c (aarch64_layout_frame)
19691 (aarch64_initial_elimination_offset): Likewise.
19693 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19695 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19698 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19700 * machmode.h (bitwise_mode_for_mode): Declare.
19701 * stor-layout.h (bitwise_type_for_mode): Likewise.
19702 * stor-layout.c (bitwise_mode_for_mode): New function.
19703 (bitwise_type_for_mode): Likewise.
19704 * builtins.c (fold_builtin_memory_op): Use it instead of
19705 int_mode_for_mode and build_nonstandard_integer_type.
19707 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19709 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19710 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19711 (*-*-solaris2*): Simplify.
19712 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19713 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19714 *-*-solaris2.9* handling.
19716 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19718 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19719 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19720 handling, simplify.
19721 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19722 * configure: Regenerate.
19724 * config/i386/sol2-9.h: Remove.
19726 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19727 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19728 Remove Solaris 9 references.
19730 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19732 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19733 (floatuns<GPI:mode><GPF:mode>2): Remove.
19734 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19735 and floatuns conversions.
19736 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19737 and floatuns conversions.
19738 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19739 (w1,w2): New mode attributes for inequal width conversions.
19741 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19743 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19744 the output asm format.
19746 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19748 * config/aarch64/aarch64-simd.md
19749 (aarch64_cm<optab>di): Always split.
19750 (*aarch64_cm<optab>di): New.
19751 (aarch64_cmtstdi): Always split.
19752 (*aarch64_cmtstdi): New.
19754 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19756 PR tree-optimization/60823
19757 * omp-low.c (ipa_simd_modify_function_body): Go through
19758 all SSA_NAMEs and for those refering to vector arguments
19759 which are going to be replaced adjust SSA_NAME_VAR and,
19760 if it is a default definition, change it into a non-default
19761 definition assigned at the beginning of function from new_decl.
19762 (ipa_simd_modify_stmt_ops): Rewritten.
19763 * tree-dfa.c (set_ssa_default_def): When removing default def,
19764 check for NULL loc instead of NULL *loc.
19766 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19768 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19769 restrictions on core registers for DImode values in Thumb2.
19771 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19773 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19774 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19776 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19778 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19779 (*iordi_notzesidi_di): Likewise.
19780 (*iordi_notsesidi_di): Likewise.
19782 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19784 * config/arm/arm-protos.h (tune_params): New struct members.
19785 * config/arm/arm.c: Initialise tune_params per processor.
19786 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19787 for speed, based on new tune_params.
19789 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19791 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19792 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19793 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19794 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19795 * config/aarch64/arm_neon.h (vrnd_f64): Added.
19796 (vrnda_f64): Likewise.
19797 (vrndi_f64): Likewise.
19798 (vrndm_f64): Likewise.
19799 (vrndn_f64): Likewise.
19800 (vrndp_f64): Likewise.
19801 (vrndx_f64): Likewise.
19803 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19805 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19806 GET_MODE_SIZE argument is enum machine_mode.
19808 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19811 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
19812 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
19814 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
19816 PR middle-end/60281
19817 * asan.c (asan_emit_stack_protection): Force the base to align to
19818 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
19819 appropriate bits if STRICT_ALIGNMENT.
19820 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
19822 (expand_used_vars): Leave a space in the stack frame for alignment
19823 if STRICT_ALIGNMENT.
19825 2014-04-21 David Malcolm <dmalcolm@redhat.com>
19827 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
19829 (gimple_store_p): Likewise.
19830 (gimple_assign_load_p): Likewise.
19831 (gimple_assign_cast_p): Likewise.
19832 (gimple_clobber_p): Likewise.
19834 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
19835 rather than a gimple.
19836 (gimple_assign_cast_p): Likewise.
19838 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19841 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
19842 If mode is DDmode and TARGET_E500_DOUBLE allow move.
19844 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
19845 more debug information for E500 if -mdebug=reg.
19847 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
19850 * config/i386/i386.c (ix86_expand_builtin)
19851 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
19852 register for target RTX.
19853 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
19855 2014-04-18 Cong Hou <congh@google.com>
19857 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
19858 the widen-mult pattern by handling two operands with different sizes,
19859 and operands whose size is smaller than half of the result type.
19861 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19863 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
19864 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
19865 (do_estimate_edge_time): Compute it.
19866 * ipa-inline.c (want_inline_small_function_p): Bypass
19867 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
19869 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19871 * ipa-inline.c (spec_rem): New static variable.
19872 (dump_overall_stats): New function.
19873 (dump_inline_stats): New function.
19875 2014-04-18 Richard Henderson <rth@redhat.com>
19877 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
19878 to GET_MODE_SIZE, not a reg_class_t.
19880 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19882 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
19883 (vsx_xxmrglw_<mode>): Likewise.
19885 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
19888 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
19889 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
19890 (rs6000_init_hard_regno_mode_ok): Likewise.
19892 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
19894 * ipa-inline.c (inline_small_functions): Account only non-cold
19896 * doc/invoke.texi (inline-unit-growth): Update documentation.
19898 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
19900 * config/rs6000/rs6000.md (addti3, subti3): New.
19902 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
19905 * config/i386/i386.c (ix86_expand_clear): Remove outdated
19906 comment. Check optimize_insn_for_size_p instead of
19907 optimize_insn_for_speed_p.
19909 2014-04-17 Martin Jambor <mjambor@suse.cz>
19911 * gimple-iterator.c (gsi_start_edge): New function.
19912 * gimple-iterator.h (gsi_start_edge): Declare.
19913 * tree-sra.c (single_non_eh_succ): New function.
19914 (disqualify_ops_if_throwing_stmt): Renamed to
19915 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
19916 having one non-EH successor BB.
19917 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
19918 generate loads into replacements.
19919 (sra_modify_assign): Likewise and and also use the simple path for
19921 (sra_modify_function_body): Commit statements on edges.
19923 2014-04-17 Richard Biener <rguenther@suse.de>
19925 PR middle-end/60849
19926 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
19927 comparison results and add clarifying comment.
19929 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19931 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
19932 (blank_mode): Initialize it.
19933 (emit_mode_size_inline, emit_mode_nunits_inline,
19934 emit_mode_inner_inline): New functions.
19935 (emit_insn_modes_h): Call them and surround their output with
19936 #if GCC_VERSION >= 4001 ... #endif.
19937 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
19938 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
19939 mode_* arrays if the argument is __builtin_constant_p.
19940 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
19941 is enum machine_mode.
19943 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19945 * passes.c (opt_pass::execute): Adjust.
19946 (pass_manager::execute_pass_mode_switching): Likewise.
19947 (early_local_passes::execute): Likewise.
19948 (execute_one_pass): Pass cfun to the pass's execute method.
19949 * tree-pass.h (opt_pass::execute): Add function * argument.
19950 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19951 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19952 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19953 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19954 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19955 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
19956 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
19957 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19958 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19959 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
19960 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
19961 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
19962 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
19963 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
19964 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19965 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19966 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19967 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
19968 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19969 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19970 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19971 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19972 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19973 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19974 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19975 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19976 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19977 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19978 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19981 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19983 * passes.c (opt_pass::gate): Take function * argument.
19984 (gate_all_early_local_passes): Merge into
19985 (early_local_passes::gate): this.
19986 (gate_all_early_optimizations): Merge into
19987 (all_early_optimizations::gate): this.
19988 (gate_all_optimizations): Mege into
19989 (all_optimizations::gate): this.
19990 (gate_all_optimizations_g): Merge into
19991 (all_optimizations_g::gate): this.
19992 (gate_rest_of_compilation): Mege into
19993 (rest_of_compilation::gate): this.
19994 (gate_postreload): Merge into
19995 (postreload::gate): this.
19996 (dump_one_pass): Pass cfun to the pass's gate method.
19997 (execute_ipa_summary_passes): Likewise.
19998 (execute_one_pass): Likewise.
19999 (ipa_write_summaries_2): Likewise.
20000 (ipa_write_optimization_summaries_1): Likewise.
20001 (ipa_read_summaries_1): Likewise.
20002 (ipa_read_optimization_summaries_1): Likewise.
20003 (execute_ipa_stmt_fixups): Likewise.
20004 * tree-pass.h (opt_pass::gate): Add function * argument.
20005 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20006 combine-stack-adj.c, combine.c, compare-elim.c,
20007 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20008 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20009 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20010 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20011 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20012 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20013 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20014 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20015 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20016 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20017 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20018 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20019 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20020 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20021 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20022 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20023 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20024 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20025 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20026 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20027 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20028 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20029 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20030 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20031 var-tracking.c, vtable-verify.c, web.c: Adjust.
20033 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20035 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20036 * configure: Regenerate.
20038 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20040 * passes.c (dump_one_pass): don't check pass->has_gate.
20041 (execute_ipa_summary_passes): Likewise.
20042 (execute_one_pass): Likewise.
20043 (ipa_write_summaries_2): Likewise.
20044 (ipa_write_optimization_summaries_1): Likewise.
20045 (ipa_read_optimization_summaries_1): Likewise.
20046 (execute_ipa_stmt_fixups): Likewise.
20047 * tree-pass.h (pass_data::has_gate): Remove.
20048 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20049 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20050 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20051 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20052 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20053 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20054 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20055 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20056 gimple-low.c, gimple-ssa-isolate-paths.c,
20057 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20058 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20059 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20060 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20061 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20062 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20063 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20064 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20065 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20066 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20067 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20068 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20069 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20070 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20071 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20072 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20073 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20074 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20075 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20076 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20077 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20078 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20081 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20083 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20085 * passes.c (pass_manager::register_dump_files_1): Merge into
20086 (pass_manager::register_dump_files): this, and remove its handling of
20087 properties since the pass always has the properties anyway.
20088 (pass_manager::pass_manager): Adjust.
20090 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20092 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20093 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20094 dealing with properties.
20095 (pass_manager::register_dump_files): Adjust.
20097 2014-03-20 Mark Wielaard <mjw@redhat.com>
20099 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20100 then represent the bound as normal constant value.
20102 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20105 Forward port from 4.8 branch
20106 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20108 * config/i386/bmiintrin.h (_blsi_u32): New.
20109 (_blsi_u64): Ditto.
20110 (_blsr_u32): Ditto.
20111 (_blsr_u64): Ditto.
20112 (_blsmsk_u32): Ditto.
20113 (_blsmsk_u64): Ditto.
20114 (_tzcnt_u32): Ditto.
20115 (_tzcnt_u64): Ditto.
20117 2014-04-17 Kito Cheng <kito@0xlab.org>
20119 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20121 2014-04-17 Richard Biener <rguenther@suse.de>
20123 PR middle-end/60849
20124 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20125 boolean results for comparisons.
20127 2014-04-17 Richard Biener <rguenther@suse.de>
20129 PR tree-optimization/60836
20130 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20131 initial PHI args to be gimple values.
20133 2014-04-17 Richard Biener <rguenther@suse.de>
20135 PR tree-optimization/60841
20136 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20137 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20138 of stmts to SLP build.
20139 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20140 (vect_analyze_slp): Likewise.
20141 (vect_analyze_slp_instance): Likewise.
20142 (vect_build_slp_tree): Limit overall SLP tree growth.
20143 * tree-vectorizer.h (vect_analyze_data_refs,
20144 vect_analyze_slp): Adjust prototypes.
20146 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20148 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20151 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20153 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20154 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20155 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20156 for TARGET_SLOW_PSHUFB
20158 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20160 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20161 * config/i386/i386.c (intel_cost): Ditto.
20163 2014-04-17 Joey Ye <joey.ye@arm.com>
20165 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20167 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20169 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20170 with -fuse-profile.
20172 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20174 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20175 (type_all_derivations_known_p): New predicate.
20176 (type_all_ctors_visible_p): New predicate.
20177 (type_possibly_instantiated_p): New predicate.
20178 (get_odr_type): Compute all_derivations_known.
20179 (dump_odr_type): Dump the flag.
20180 (maybe_record_type): Cleanup.
20181 (record_target_from_binfo): Add bases_to_consider array;
20182 record bases for types w/o instances and skip CXX destructor.
20183 (possible_polymorphic_call_targets_1): Add bases_to_consider
20184 and consider_construction parameters; check if type may have instance.
20185 (get_polymorphic_call_info): Set maybe_in_construction to true
20186 when we know nothing.
20187 (record_targets_from_bases): Skip CXX destructors; they are
20188 never called for types in construction.
20189 (possible_polymorphic_call_targets): Do not record target when
20190 type may not have instance.
20192 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20195 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20196 external aliases alive, too.
20198 2014-04-16 Andrew Pinski <apinski@cavium.com>
20200 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20203 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20205 * final.c (compute_alignments): Do not apply loop alignment to a block
20206 falling through to the exit.
20208 2014-04-16 Catherine Moore <clm@codesourcery.com>
20210 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20211 Adjust constraints for microMIPS store patterns.
20213 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20215 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20217 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20219 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20220 (append_use): Run at -O0.
20221 (append_vdef): Likewise.
20222 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20223 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20225 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20227 PR tree-optimization/60844
20228 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20229 (propagate_op_to_single_use, remove_visited_stmt_chain,
20230 linearize_expr, repropagate_negates, reassociate_bb): Use it
20231 instead of gsi_remove.
20233 2014-04-16 Martin Jambor <mjambor@suse.cz>
20235 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20236 ipa_transforms_to_apply.
20237 (cgraph_function_versioning): Assert that old_node has empty
20238 ipa_transforms_to_apply.
20239 * trans-mem.c (ipa_tm_create_version): Likewise.
20240 * tree-inline.c (tree_function_versioning): Do not duplicate
20241 ipa_transforms_to_apply.
20243 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20246 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20248 Pass necessary as flags on 64-bit Solaris/x86.
20249 Use lowercase relocs for x86_64-*-*.
20250 * configure: Regenerate.
20252 2014-04-15 Jan Hubicka <jh@suse.cz>
20254 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20255 (maybe_record_node, likely_target_p): Use it.
20257 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20260 Revert following patch
20262 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20265 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20266 software floating point or no floating point registers, do not
20267 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20268 in GPRs that occurs after we tested for GPRs that would never be
20271 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20272 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20273 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20274 specifically allow DDmode, since that does not use the SPE SIMD
20277 2014-03-21 Mark Wielaard <mjw@redhat.com>
20279 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20280 as unsigned or int depending on type and value used.
20282 2014-04-15 Richard Biener <rguenther@suse.de>
20284 PR rtl-optimization/56965
20285 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20286 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20288 * alias.c (true_dependence_1): Do not call
20289 nonoverlapping_component_refs_p.
20290 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20291 nonoverlapping_component_refs_p.
20292 (indirect_refs_may_alias_p): Likewise.
20294 2014-04-15 Teresa Johnson <tejohnson@google.com>
20296 * cfg.c (dump_bb_info): Fix flags check.
20297 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20299 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20301 PR rtl-optimization/60663
20302 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20305 2014-04-15 Richard Biener <rguenther@suse.de>
20307 * lto-streamer.h (LTO_major_version): Bump to 4.
20309 2014-04-15 Richard Biener <rguenther@suse.de>
20311 * common.opt (lto_partition_model): New enum.
20312 (flto-partition=): Merge separate options with a single with argument,
20313 add -flto-partition=one support.
20314 * flag-types.h (enum lto_partition_model): Declare.
20315 * opts.c (finish_options): Remove duplicate -flto-partition=
20317 * lto-wrapper.c (run_gcc): Adjust.
20319 2014-04-15 Richard Biener <rguenther@suse.de>
20321 * alias.c (ncr_compar): New function.
20322 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20324 2014-04-15 Richard Biener <rguenther@suse.de>
20326 * alias.c (record_component_aliases): Do not walk BINFOs.
20328 2014-04-15 Richard Biener <rguenther@suse.de>
20330 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20331 Add struct function argument and adjust.
20332 (find_func_aliases_for_call): Likewise.
20333 (find_func_aliases): Likewise.
20334 (find_func_clobbers): Likewise.
20335 (intra_create_variable_infos): Likewise.
20336 (compute_points_to_sets): Likewise.
20337 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20339 2014-04-15 Richard Biener <rguenther@suse.de>
20341 * tree.c (iterative_hash_expr): Use enum tree_code_class
20342 to store TREE_CODE_CLASS.
20343 (tree_block): Likewise.
20344 (tree_set_block): Likewise.
20345 * tree.h (fold_build_pointer_plus_loc): Use
20346 convert_to_ptrofftype_loc.
20348 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20351 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20354 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20356 * cfgloop.h (struct loop): Move force_vectorize down.
20357 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20358 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20359 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20360 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20361 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20362 * tree-core.h (enum annot_expr_kind): Add new kind values.
20363 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20364 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20366 * tree.def (ANNOTATE_EXPR): Tweak comment.
20368 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20370 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20373 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20375 * tree.h (TYPE_IDENTIFIER): Declare.
20376 * tree.c (subrange_type_for_debug_p): Use it.
20377 * godump.c (go_format_type): Likewise.
20378 * dwarf2out.c (is_cxx_auto, modified_type_die,
20379 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20380 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20382 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20385 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20387 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20389 * config/i386/i386.c (examine_argument): Return bool. Return true if
20390 parameter should be passed in memory.
20391 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20392 (construct_container): Update calls to examine_argument.
20393 (function_arg_advance_64): Ditto.
20394 (return_in_memory_32): Merge with ix86_return_in_memory.
20395 (return_in_memory_64): Ditto.
20396 (return_in_memory_ms_64): Ditto.
20398 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20400 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20401 * coverage.c (coverage_compute_profile_id): Handle externally visible
20404 2014-04-14 Martin Jambor <mjambor@suse.cz>
20406 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20407 DECL_DISREGARD_INLINE_LIMITS functions.
20409 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20412 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20414 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20417 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20418 optimize_insn_for_speed_p instead of
20419 optimize_function_for_speed_p.
20421 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20423 * doc/invoke.texi (free): Document AArch64.
20425 2014-04-14 Richard Biener <rguenther@suse.de>
20427 PR tree-optimization/60042
20428 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20429 (insert_into_preds_of_block): Do not prevent PHI insertion
20430 for REFERENCE exprs here ...
20431 (eliminate_dom_walker::before_dom_children): ... but prevent
20432 their use here under similar conditions when applied to the
20433 IL after PRE optimizations.
20435 2014-04-14 Richard Biener <rguenther@suse.de>
20437 * passes.def: Move early points-to after early SRA.
20439 2014-04-14 Richard Biener <rguenther@suse.de>
20441 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20442 check for which sign-changes we allow when forwarding
20443 a converted value into a switch.
20445 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20447 * stor-layout.c (place_field): Finalize non-constant offset for the
20450 2014-04-14 Richard Biener <rguenther@suse.de>
20452 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20454 (expand_switch_using_bit_tests_p): Likewise.
20455 (process_switch): Compute and pass on speed_p based on the
20457 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20458 optimize_bb_for_speed_p.
20460 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20462 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20463 * function.h (struct function): Rename has_force_vect_loops into
20464 has_force_vectorize_loops.
20465 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20466 (input_struct_function_base): Likewise.
20467 * lto-streamer-out.c (output_cfg): Likewise.
20468 (output_struct_function_base): Likewise.
20469 * omp-low.c (expand_omp_simd): Likewise.
20470 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20471 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20472 (version_loop_for_if_conversion): Likewise.
20473 (tree_if_conversion): Likewise.
20474 (main_tree_if_conversion): Likewise.
20475 (gate_tree_if_conversion): Likewise.
20476 * tree-inline.c (copy_loops): Likewise.
20477 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20478 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20479 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20480 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20481 * tree-vectorizer.c (vectorize_loops): Likewise.
20482 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20484 2014-04-14 Richard Biener <rguenther@suse.de>
20487 * lto-streamer-out.c (wrap_refs): New function.
20488 (lto_output): Wrap symbol references in global initializes in
20489 type-preserving MEM_REFs.
20491 2014-04-14 Christian Bruel <christian.bruel@st.com>
20493 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20495 2014-04-14 Christian Bruel <christian.bruel@st.com>
20497 * config/sh/sh.md (setmemqi): New expand pattern.
20498 * config/sh/sh.h (CLEAR_RATIO): Define.
20499 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20500 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20502 2014-04-14 Richard Biener <rguenther@suse.de>
20504 PR middle-end/55022
20505 * fold-const.c (negate_expr_p): Don't negate directional rounding
20507 (fold_negate_expr): Likewise.
20509 2014-04-14 Richard Biener <rguenther@suse.de>
20511 PR tree-optimization/59817
20512 PR tree-optimization/60453
20513 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20514 recursion to catch all CHRECs in the scalar evolution and restrict
20515 the predicate for the remains appropriately.
20517 2014-04-12 Catherine Moore <clm@codesourcery.com>
20519 * config/mips/constraints.md: Add new register constraint "kb".
20520 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20521 (*movhi_internal): Likewise.
20522 (*movqi_internal): Likewise.
20523 * config/mips/mips.h (M16_STORE_REGS): New register class.
20524 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20525 (REG_CLASS_CONTENTS): Likewise.
20526 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20528 2014-04-11 Tobias Burnus <burnus@net-b.de>
20531 * doc/invoke.texi (-Wformat-signedness): Document it.
20532 (Wformat=2): Mention that this enables -Wformat-signedness.
20534 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20536 * common/config/epiphany/epiphany-common.c
20537 (epiphany_option_optimization_table): Enable section anchors by
20538 default at -O1 or higher.
20539 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20540 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20541 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20542 carries no extra cost.
20543 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20544 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20545 * config/epiphany/predicates.md (memclob_operand): New predicate.
20546 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20547 Use memclob_operand predicate and X constraint for operand 3.
20549 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20551 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20552 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20555 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20557 PR rtl-optimization/60651
20558 * mode-switching.c (optimize_mode_switching): Make sure to emit
20559 sets of a lower numbered entity before sets of a higher numbered
20560 entity to a mode of the same or lower priority.
20561 When creating a seginfo for a basic block that starts with a code
20562 label, move the insertion point past the code label.
20563 (new_seginfo): Document and enforce requirement that
20564 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20565 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20566 * doc/tm.texi: Regenerate.
20568 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20571 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20573 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20575 * BASE-VER: Set to 4.10.0.
20577 2014-04-11 Tobias Burnus <burnus@net-b.de>
20580 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20581 * doc/gcc.texi (Service): Update description in the @menu
20582 * doc/invoke.texi (Option Summary): Remove misplaced and
20585 2014-04-11 Steve Ellcey <sellcey@mips.com>
20586 Jakub Jelinek <jakub@redhat.com>
20588 PR middle-end/60556
20589 * expr.c (convert_move): Use emit_store_flag_force instead of
20590 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20593 2014-04-11 Richard Biener <rguenther@suse.de>
20595 PR middle-end/60797
20596 * varasm.c (assemble_alias): Avoid endless error reporting
20597 recursion by setting TREE_ASM_WRITTEN.
20599 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20601 * config/s390/s390.md: Add a splitter for NOT rtx.
20603 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20605 PR rtl-optimization/60663
20606 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20608 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20609 Jakub Jelinek <jakub@redhat.com>
20612 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20613 flag from decl_node to node.
20615 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20618 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20619 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20620 ameliorating the cases where it can be.
20622 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20625 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20627 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20628 (loadsync_<mode>): Change mode.
20629 (load_quadpti, store_quadpti): New.
20630 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20631 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20632 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20634 2014-04-09 Cong Hou <congh@google.com>
20637 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20640 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20642 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20643 instead of vnor to exploit possible fusion opportunity in the
20645 (altivec_expand_vec_perm_const_le): Likewise.
20647 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20649 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20650 (loadsync_<mode>): Change mode.
20651 (load_quadpti, store_quadpti): New.
20652 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20653 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20655 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20658 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20659 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20660 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20662 2014-04-08 Richard Biener <rguenther@suse.de>
20664 PR middle-end/60706
20665 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20666 a 64bit widest int print double-int similar to on HWI64 hosts.
20668 2014-04-08 Richard Biener <rguenther@suse.de>
20670 PR tree-optimization/60785
20671 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20672 default defs properly.
20674 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20676 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20677 (Weffc++): Likewise.
20679 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20681 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20682 set completep to false rather than true.
20684 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20687 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20688 ARM_TARGET2_DWARF_FORMAT.
20690 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20693 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20694 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20697 2014-04-07 Richard Biener <rguenther@suse.de>
20699 PR tree-optimization/60766
20700 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20701 (may_eliminate_iv): Convert cand_value_at result to desired type.
20703 2014-04-07 Jason Merrill <jason@redhat.com>
20706 * common.opt (-fno-gnu-unique): Add.
20707 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20709 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20711 * haifa-sched.c: Fix outdated function reference and minor
20712 grammar errors in introductory comment.
20714 2014-04-07 Richard Biener <rguenther@suse.de>
20716 PR middle-end/60750
20717 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20718 for noreturn calls.
20719 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20721 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20724 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20725 size accounting for thunks.
20726 (pa_asm_output_mi_thunk): Use final_start_function() and
20727 final_end_function() to output function start and end directives.
20729 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20731 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20732 device specific ISA/ feature information. Remove short_sp and
20733 errata_skip ds. Add avr_device_specific_features enum to have device
20735 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20736 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20737 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20738 updated device specific info.
20739 * config/avr/avr-mcus.def: Merge device specific details to
20740 dev_attribute field.
20741 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20743 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20744 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20745 assembler if RMW isa supported by current device.
20746 * config/avr/genmultilib.awk: Update as device info structure changed.
20747 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20749 2014-04-04 Cong Hou <congh@google.com>
20751 PR tree-optimization/60656
20752 * tree-vect-stmts.c (supportable_widening_operation):
20753 Fix a bug that elements in a vector with vect_used_by_reduction
20754 property are incorrectly reordered when the operation on it is not
20755 consistant with the one in reduction operation.
20757 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20759 PR rtl-optimization/60155
20760 * gcse.c (record_set_data): New function.
20761 (single_set_gcse): New function.
20762 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20763 (hoist_code): Likewise.
20764 (get_pressure_class_and_nregs): Likewise.
20766 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20768 * explow.c (probe_stack_range): Emit a final optimization blockage.
20770 2014-04-04 Anthony Green <green@moxielogic.com>
20772 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20775 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20778 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20779 flags are set only during streaming.
20780 * ipa.c (process_references, walk_polymorphic_call_targets,
20781 symtab_remove_unreachable_nodes): Drop bodies of always inline
20782 after early inlining.
20783 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20785 2014-04-04 Jakub Jelinek <jakub@redhat.com>
20786 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20789 * dwarf2out.c (const_ok_for_output_1): Reject expressions
20792 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20795 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20797 (cortex_a53_fdivd): Likewise.
20799 2014-04-04 Martin Jambor <mjambor@suse.cz>
20802 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20803 Adjust all callers.
20804 * cgraph.c (clone_of_p): Also return true if thunks match.
20805 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20806 cgraph_function_or_thunk_node and an obsolete comment.
20807 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20809 (build_function_decl_skip_args): Likewise.
20810 (set_new_clone_decl_and_node_flags): New function.
20811 (duplicate_thunk_for_node): Likewise.
20812 (redirect_edge_duplicating_thunks): Likewise.
20813 (cgraph_clone_node): New parameter args_to_skip, pass it to
20814 redirect_edge_duplicating_thunks which is called instead of
20815 cgraph_redirect_edge_callee.
20816 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
20817 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
20819 2014-04-04 Jeff Law <law@redhat.com>
20822 * config/arm/predicates.md (const_int_I_operand): New predicate.
20823 (const_int_M_operand): Similarly.
20824 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
20826 (insv_t2, extv_reg, extzv_t2): Likewise.
20827 (load_multiple_with_writeback): Similarly for const_int_I_operand.
20828 (pop_multiple_with_writeback_and_return): Likewise.
20829 (vfp_pop_multiple_with_writeback): Likewise
20831 2014-04-04 Richard Biener <rguenther@suse.de>
20834 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
20835 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
20837 * gimplify.h (gimple_add_tmp_var_fn): Declare.
20838 * gimplify.c (gimple_add_tmp_var_fn): New function.
20839 * gimple-expr.h (create_tmp_reg_fn): Declare.
20840 * gimple-expr.c (create_tmp_reg_fn): New function.
20841 * gimple-low.c (record_vars_into): Don't change cfun.
20842 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
20843 code generation without cfun.
20845 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
20848 * Makefile.in (install-driver): Fix shell scripting.
20850 2014-04-03 Cong Hou <congh@google.com>
20852 PR tree-optimization/60505
20853 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
20854 threshold of number of iterations below which no vectorization
20856 * tree-vect-loop.c (new_loop_vec_info):
20857 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
20858 * tree-vect-loop.c (vect_analyze_loop_operations):
20859 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
20860 * tree-vect-loop.c (vect_transform_loop):
20861 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
20862 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
20863 of iterations of the loop and see if we should build the epilogue.
20865 2014-04-03 Richard Biener <rguenther@suse.de>
20867 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
20868 (streamer_tree_cache_create): Adjust.
20869 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
20870 to allow optional nodes array.
20871 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
20872 (streamer_tree_cache_append): Likewise.
20873 (streamer_tree_cache_create): Create nodes array optionally
20874 as specified by parameter.
20875 * lto-streamer-out.c (create_output_block): Avoid maintaining
20876 the node array in the writer cache.
20877 (DFS_write_tree): Remove assertion.
20878 (produce_asm_for_decls): Free the out decl state hash table early.
20879 * lto-streamer-in.c (lto_data_in_create): Adjust for
20880 streamer_tree_cache_create prototype change.
20882 2014-04-03 Richard Biener <rguenther@suse.de>
20884 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
20885 set TREE_CHAIN to NULL_TREE.
20887 2014-04-03 Richard Biener <rguenther@suse.de>
20889 PR tree-optimization/60740
20890 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
20891 over all GIMPLE_COND operands.
20893 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
20895 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
20896 (Weffc++): Remove Scott's numbering, merge lists and reference
20899 2014-04-03 Nick Clifton <nickc@redhat.com>
20901 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
20904 2014-04-03 Martin Jambor <mjambor@suse.cz>
20906 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
20907 mention gcc_unreachable before failing.
20908 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
20911 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
20914 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
20915 inconsistent code and instead mark the context inconsistent.
20916 (possible_polymorphic_call_targets): For inconsistent contexts
20917 return empty complete list.
20919 2014-04-02 Anthony Green <green@moxielogic.com>
20921 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
20922 (extendqisi2, extendhisi2): Define.
20923 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
20924 (WCHAR_TYPE): Change to unsigned int.
20926 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20928 PR tree-optimization/60733
20929 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
20930 insertion point for PHI candidates to be the end of the feeding
20931 block for the PHI argument.
20933 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
20935 PR rtl-optimization/60650
20936 * lra-constraints.c (process_alt_operands): Decrease reject for
20937 earlyclobber matching.
20939 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20941 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
20943 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20945 * config/spu/spu.c (pad_bb): Do not crash when the last
20946 insn is CODE_FOR_blockage.
20948 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20950 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
20951 lies outside the target mode.
20953 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20956 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20957 software floating point or no floating point registers, do not
20958 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20959 in GPRs that occurs after we tested for GPRs that would never be
20962 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20963 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20964 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20965 specifically allow DDmode, since that does not use the SPE SIMD
20968 2014-04-02 Richard Biener <rguenther@suse.de>
20970 PR middle-end/60729
20971 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
20972 MODE_INTs. Properly use negv_optab.
20973 (expand_abs): Likewise.
20975 2014-04-02 Richard Biener <rguenther@suse.de>
20978 * Makefile.in (install-driver): Guard extra installs with special
20981 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
20983 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20984 Document vec_vgbbd.
20986 2014-04-01 Richard Henderson <rth@redhat.com>
20989 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
20990 alternative enabled before register allocation.
20992 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
20994 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
20995 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
20997 (nios2_large_got_address): Remove unneeded 'sym' parameter.
20998 (nios2_got_address): Update nios2_large_got_address call site.
20999 (nios2_delegitimize_address): New function.
21000 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21001 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21002 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21004 2014-04-01 Martin Husemann <martin@duskware.de>
21006 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21009 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21011 PR rtl-optimization/60604
21012 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21013 check from register_operand.
21014 (register_operand): Redefine in terms of general_operand.
21015 (nonmemory_operand): Use register_operand for the non-constant cases.
21017 2014-04-01 Richard Biener <rguenther@suse.de>
21019 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21021 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21023 * doc/invoke.texi (mapp-regs): Clarify.
21025 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21027 * config/i386/avx512fintrin.h (__v32hi): Define type.
21028 (__v64qi): Likewise.
21029 (_mm512_set1_epi8): Define.
21030 (_mm512_set1_epi16): Define.
21031 (_mm512_set4_epi32): Define.
21032 (_mm512_set4_epi64): Define.
21033 (_mm512_set4_pd): Define.
21034 (_mm512_set4_ps): Define.
21035 (_mm512_setr4_epi64): Define.
21036 (_mm512_setr4_epi32): Define.
21037 (_mm512_setr4_pd): Define.
21038 (_mm512_setr4_ps): Define.
21039 (_mm512_setzero_epi32): Define.
21041 2014-03-31 Martin Jambor <mjambor@suse.cz>
21043 PR middle-end/60647
21044 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21045 callsite_arguments_match_p. Updated all callers. Also check types of
21046 corresponding formal parameters and actual arguments.
21047 (not_all_callers_have_enough_arguments_p) Renamed to
21048 some_callers_have_mismatched_arguments_p.
21050 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21052 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21054 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21057 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21060 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21062 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21063 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21065 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21066 Use FMAMODE_NOVF512 mode iterator.
21067 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21068 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21069 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21070 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21072 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21073 Use VF_128_256 mode iterator.
21074 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21077 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21079 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21080 static chain if needed.
21082 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21085 * lra-constraints.c (index_part_to_reg): New.
21086 (process_address): Use it.
21088 2014-03-27 Jeff Law <law@redhat.com>
21089 Jakub Jelinek <jakub@redhat.com>
21092 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21093 gen_rtx_{PLUS,MULT} to build up the address expression.
21095 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21096 creating non-canonical RTL.
21098 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21101 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21102 functions; reorganize to make cheap checks first.
21103 (inline_small_functions): Do not estimate growth when dumping;
21105 * ipa-inline.h (inline_summary): Add min_size.
21106 (growth_likely_positive): New function.
21107 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21108 (set_cond_stmt_execution_predicate): Cleanup.
21109 (estimate_edge_size_and_time): Compute min_size.
21110 (estimate_calls_size_and_time): Likewise.
21111 (estimate_node_size_and_time): Likewise.
21112 (inline_update_overall_summary): Update min_size.
21113 (do_estimate_edge_time): Likewise.
21114 (do_estimate_edge_size): Update.
21115 (do_estimate_edge_hints): Update.
21116 (growth_likely_positive): New function.
21118 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21121 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21122 also if addr has VOIDmode.
21124 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21126 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21127 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21129 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21130 instructions as well as AdvancedSIMD loads.
21132 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21134 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21135 Use crypto_aese type.
21136 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21137 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21138 crypto_aese, crypto_aesmc. Move to types.md.
21139 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21141 * config/arm/iterators.md (crypto_type): Likewise.
21143 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21145 * cgraph.c: Include expr.h and tree-dfa.h.
21146 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21149 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21152 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21153 regs from checking multi-reg pseudos.
21155 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21157 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21159 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21161 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21162 if it would clobber the stack pointer, even temporarily.
21164 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21166 * mode-switching.c: Make small adjustments to the top comment.
21168 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21170 * config/rs6000/constraints.md (wD constraint): New constraint to
21171 match the constant integer to get the top DImode/DFmode out of a
21172 vector in a VSX register.
21174 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21175 match the constant integer to get the top DImode/DFmode out of a
21176 vector in a VSX register.
21178 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21181 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21184 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21185 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21187 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21188 Optimize vec_extract of 64-bit values, where the value being
21189 extracted is in the top word, where we can use scalar
21190 instructions. Add direct move and store support. Combine the big
21191 endian/little endian vector select load support into a single insn.
21192 (vsx_extract_<mode>_internal1): Likewise.
21193 (vsx_extract_<mode>_internal2): Likewise.
21194 (vsx_extract_<mode>_load): Likewise.
21195 (vsx_extract_<mode>_store): Likewise.
21196 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21197 combined into vsx_extract_<mode>_load.
21198 (vsx_extract_<mode>_one_le): Likewise.
21200 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21201 define the top 64-bit vector element.
21203 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21206 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21207 Document vec_vbpermq builtin.
21210 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21211 enable use of xxsldwi and xxpermdi builtin functions.
21212 (vec_xxpermdi): Likewise.
21214 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21215 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21217 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21219 PR rtl-optimization/60650
21220 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21222 (find_spills_for): New.
21223 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21224 Spill all pseudos on the second iteration.
21226 2014-03-27 Marek Polacek <polacek@redhat.com>
21229 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21232 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21234 * config/s390/s390.c (s390_can_use_return_insn): Check for
21235 call-saved FPRs on 31 bit.
21237 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21239 PR middle-end/60682
21240 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21241 if they need regimplification, just drop them instead of
21242 calling gimple_regimplify_operands on them.
21244 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21247 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21248 (aarch64_frame_pointer_required): Adjust logic.
21249 (aarch64_can_eliminate): Adjust logic.
21250 (aarch64_override_options_after_change): Adjust logic.
21252 2014-03-27 Dehao Chen <dehao@google.com>
21254 * ipa-inline.c (early_inliner): Update node's inline info.
21256 2014-03-26 Dehao Chen <dehao@google.com>
21258 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21259 compiler inserted conditional jumps for NAN float check.
21261 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21263 * ubsan.h (ubsan_create_data): Change second argument's type
21264 to const location_t *.
21265 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21267 (ubsan_create_data): Change second argument to const location_t *PLOC.
21268 Create Loc field whenever PLOC is non-NULL.
21269 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21270 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21274 * real.c (real_to_integer2): Change type of low to UHWI.
21276 2014-03-26 Tobias Burnus <burnus@net-b.de>
21278 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21279 (CILK_SELF_SPECS): New define.
21280 (driver_self_specs): Use it.
21282 2014-03-26 Richard Biener <rguenther@suse.de>
21284 * tree-pretty-print.c (percent_K_format): Implement special
21285 case for LTO and its stripped down BLOCK tree.
21287 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21290 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21292 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21293 one range is range_int_cst_p, but not both, at least optimize
21294 addition/subtraction of 0 and multiplication by 0 or 1.
21295 * gimple-fold.c (gimple_fold_call): Fold
21296 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21297 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21298 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21300 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21302 PR rtl-optimization/60452
21303 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21304 <case REG>: Return 1 for invalid offsets from the frame pointer.
21306 2014-03-26 Marek Polacek <polacek@redhat.com>
21309 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21312 2014-03-26 Marek Polacek <polacek@redhat.com>
21315 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21318 2014-03-26 Marek Polacek <polacek@redhat.com>
21321 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21322 multiplication in unsigned type.
21324 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21326 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21328 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21330 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21332 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21335 * cif-code.def (UNREACHABLE) New code.
21336 * ipa-inline.c (inline_small_functions): Skip edges to
21337 __builtlin_unreachable.
21338 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21339 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21340 predicate to __bulitin_unreachable.
21341 (set_cond_stmt_execution_predicate): Fix issue when
21342 invert_tree_comparison returns ERROR_MARK.
21343 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21344 propagate to inline clones.
21345 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21347 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21348 * cgraphclones.c (cgraph_clone_node): If call destination is already
21349 ureachable, do not redirect it back.
21350 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21353 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21355 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21356 Do not modify inline clones.
21358 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21360 * config/i386/i386.md (general_sext_operand): New mode attr.
21361 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21362 don't generate (sign_extend (const_int)).
21363 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21364 operands[2]. Use We constraint instead of <i> and
21365 <general_sext_operand> predicate instead of <general_operand>.
21366 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21367 * config/i386/constraints.md (We): New constraint.
21368 * config/i386/predicates.md (x86_64_sext_operand,
21369 sext_operand): New predicates.
21371 2014-03-25 Martin Jambor <mjambor@suse.cz>
21374 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21375 inconsistent devirtualizations to __builtin_unreachable.
21377 2014-03-25 Marek Polacek <polacek@redhat.com>
21380 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21382 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21384 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21385 order of elements for big-endian.
21387 2014-03-25 Richard Biener <rguenther@suse.de>
21389 PR middle-end/60635
21390 * gimplify-me.c (gimple_regimplify_operands): Update the
21393 2014-03-25 Martin Jambor <mjambor@suse.cz>
21396 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21397 (lto_output_varpool_node): Likewise.
21398 (input_overwrite_node): Likewise.
21399 (input_varpool_node): Likewise.
21401 2014-03-25 Richard Biener <rguenther@suse.de>
21403 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21404 (run_gcc): Likewise.
21406 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21408 * combine.c (simplify_compare_const): Add MODE argument.
21409 Handle mode_width 0 as very large mode_width.
21410 (try_combine, simplify_comparison): Adjust callers.
21412 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21413 type to avoid signed integer overflow.
21414 * explow.c (plus_constant): Likewise.
21416 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21418 * doc/generic.texi: Correct typos.
21420 2014-03-24 Tobias Burnus <burnus@net-b.de>
21422 * doc/invoke.texi (-flto): Expand section about
21423 using static libraries with LTO.
21425 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21427 PR rtl-optimization/60501
21428 * optabs.def (addptr3_optab): New optab.
21429 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21430 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21431 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21433 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21435 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21437 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21439 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21442 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21443 (_mm256_undefined_ps): Define.
21444 (_mm256_undefined_pd): Define.
21445 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21446 (_mm_undefined_pd): Define.
21447 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21448 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21449 (_mm512_undefined_ps): Define.
21450 (_mm512_undefined_pd): Define.
21451 Use _mm*_undefined_*.
21452 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21454 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21456 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21457 (lshr_simd): DI mode added.
21458 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21459 (aarch64_ushr_simddi): Likewise.
21460 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21461 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21462 (vshrd_n_u64): Likewise.
21464 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21466 * Makefile.in (s-macro_list): Depend on cc1.
21468 2014-03-23 Teresa Johnson <tejohnson@google.com>
21470 * ipa-utils.c (ipa_print_order): Use specified dump file.
21472 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21474 PR rtl-optimization/60601
21475 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21477 * gcc.c (eval_spec_function): Initialize save_growing_value.
21479 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21482 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21483 code == MINUS_EXPR, never swap op0 with op1.
21485 * toplev.c (init_local_tick): Avoid signed integer multiplication
21487 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21488 shift by first operand's bitsize.
21490 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21493 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21494 redefine to 1 or 0.
21495 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21496 TARGET_ISA_64BIT_P(x).
21498 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21500 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21501 pattern for vector nor instead of subtract from splat(-1).
21502 (altivec_expand_vec_perm_const_le): Likewise.
21504 2014-03-21 Richard Henderson <rth@twiddle.net>
21507 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21508 related insns after epilogue_completed.
21510 2014-03-21 Martin Jambor <mjambor@suse.cz>
21513 * cgraph.h (symtab_node): New flag body_removed.
21514 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21515 when removing bodies.
21516 * symtab.c (dump_symtab_base): Dump body_removed flag.
21517 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21518 had their bodies removed.
21520 2014-03-21 Martin Jambor <mjambor@suse.cz>
21523 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21526 2014-03-21 Richard Biener <rguenther@suse.de>
21528 PR tree-optimization/60577
21529 * tree-core.h (struct tree_base): Document nothrow_flag use
21530 in DECL_NONALIASED.
21531 * tree.h (DECL_NONALIASED): New.
21532 (may_be_aliased): Adjust.
21533 * coverage.c (build_var): Set DECL_NONALIASED.
21535 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21537 * expr.c (expand_expr_real_1): Remove outdated comment.
21539 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21541 PR middle-end/60597
21542 * ira.c (adjust_cleared_regs): Call copy_rtx on
21543 *reg_equiv[REGNO (loc)].src_p before passing it to
21544 simplify_replace_fn_rtx.
21547 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21548 into CONST, put pic register as first operand of PLUS. Use
21549 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21551 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21553 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21555 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21557 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21558 around for store forwarding issue in the FPU on the UT699.
21559 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21560 loads and operations if -mfix-ut699 is specified.
21561 (divtf3_hq): Tweak attribute.
21562 (sqrttf2_hq): Likewise.
21564 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21566 * calls.c (store_one_arg): Remove incorrect const qualification on the
21567 type of the temporary.
21568 * cfgexpand.c (expand_return): Likewise.
21569 * expr.c (expand_constructor): Likewise.
21570 (expand_expr_real_1): Likewise.
21572 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21574 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21577 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21580 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21582 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21584 * config/arm/aarch-common-protos.h
21585 (alu_cost_table): Fix spelling of "extend".
21586 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21588 2014-03-19 Richard Biener <rguenther@suse.de>
21590 PR middle-end/60553
21591 * tree-core.h (tree_type_common): Re-order pointer members
21592 to reduce recursion depth during GC walks.
21594 2014-03-19 Marek Polacek <polacek@redhat.com>
21597 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21598 before accessing it.
21600 2014-03-19 Richard Biener <rguenther@suse.de>
21603 * lto-streamer-in.c (input_function): In WPA stage do not drop
21606 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21608 PR tree-optimization/60559
21609 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21610 with build_zero_cst assignment.
21612 2014-03-18 Kai Tietz <ktietz@redhat.com>
21614 PR rtl-optimization/56356
21615 * sdbout.c (sdbout_parms): Verify that parms'
21616 incoming argument is valid.
21617 (sdbout_reg_parms): Likewise.
21619 2014-03-18 Richard Henderson <rth@redhat.com>
21622 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21623 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21624 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21626 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21628 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21629 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21630 Italicize plugin event names in description. Explain that
21631 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21632 Remind that no GCC functions should be called after PLUGIN_FINISH.
21633 Explain what pragmas with expansion are.
21635 2014-03-18 Martin Liska <mliska@suse.cz>
21637 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21638 gimple call statement is update.
21639 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21640 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21642 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21645 * ubsan.c (ubsan_instrument_unreachable): Call
21646 initialize_sanitizer_builtins.
21647 (ubsan_pass): Likewise.
21650 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21651 varpool_finalize_decl instead of rest_of_decl_compilation.
21653 2014-03-18 Richard Biener <rguenther@suse.de>
21655 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21656 by using bitmap_and_compl instead of bitmap_and_compl_into.
21657 (df_rd_transfer_function): Likewise.
21659 2014-03-18 Richard Biener <rguenther@suse.de>
21661 * doc/lto.texi (fresolution): Fix typo.
21663 2014-03-18 Richard Biener <rguenther@suse.de>
21665 * doc/invoke.texi (flto): Update for changes in 4.9.
21667 2014-03-18 Richard Biener <rguenther@suse.de>
21669 * doc/loop.texi: Remove section on the removed lambda framework.
21670 Update loop docs with recent changes in preserving loop structure.
21672 2014-03-18 Richard Biener <rguenther@suse.de>
21674 * doc/lto.texi (-fresolution): Document.
21676 2014-03-18 Richard Biener <rguenther@suse.de>
21678 * doc/contrib.texi: Adjust my name.
21680 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21683 * internal-fn.c: Include diagnostic-core.h.
21684 (expand_BUILTIN_EXPECT): New function.
21685 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21686 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21687 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21688 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21689 IFN_BUILTIN_EXPECT.
21690 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21691 Revert 3 argument __builtin_expect code.
21692 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21693 * gimple-fold.c (gimple_fold_call): Likewise.
21694 * tree.h (fold_builtin_expect): New prototype.
21695 * builtins.c (build_builtin_expect_predicate): Add predictor
21696 argument, if non-NULL, create 3 argument __builtin_expect.
21697 (fold_builtin_expect): No longer static. Add ARG2 argument,
21698 pass it through to build_builtin_expect_predicate.
21699 (fold_builtin_2): Adjust caller.
21700 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21701 * internal-fn.def (BUILTIN_EXPECT): New.
21703 2014-03-18 Tobias Burnus <burnus@net-b.de>
21706 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21707 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21708 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21710 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21713 * predict.c (combine_predictions_for_bb): Fix up formatting.
21714 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21715 fill what it points to if non-NULL.
21716 (tree_predict_by_opcode): Adjust caller, use the predictor.
21717 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21719 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21721 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21722 proper constant for the store mode.
21724 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21726 * symtab.c (change_decl_assembler_name): Fix transparent alias
21727 chain construction.
21729 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21731 * config/aarch64/aarch64.c: Correct the comments about the
21732 aarch64 stack layout.
21734 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21736 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21737 check for GF_OMP_FOR_KIND_FOR.
21739 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21741 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21742 ymm and zmm register names.
21744 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21747 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21748 note creation for the 2010-08-31 changes.
21750 2014-03-17 Marek Polacek <polacek@redhat.com>
21752 PR middle-end/60534
21753 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21754 as -fno-tree-loop-vectorize.
21755 (expand_omp_simd): Likewise.
21757 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21759 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21760 (eligible_for_call_delay): New prototype.
21761 * config/sparc/sparc.c (tls_call_delay): Rename into...
21762 (eligible_for_call_delay): ...this. Return false if the instruction
21763 cannot be put in the delay slot of a branch.
21764 (eligible_for_restore_insn): Simplify.
21765 (eligible_for_return_delay): Return false if the instruction cannot be
21766 put in the delay slot of a branch and simplify.
21767 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21768 put in the delay slot of a branch.
21769 * config/sparc/sparc.md (fix_ut699): New attribute.
21770 (tls_call_delay): Delete.
21771 (in_call_delay): Reimplement.
21772 (eligible_for_sibcall_delay): Rename into...
21773 (in_sibcall_delay): ...this.
21774 (eligible_for_return_delay): Rename into...
21775 (in_return_delay): ...this.
21776 (in_branch_delay): Reimplement.
21777 (in_uncond_branch_delay): Delete.
21778 (in_annul_branch_delay): Delete.
21780 2014-03-14 Richard Henderson <rth@redhat.com>
21783 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21784 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21785 (*floathi<X87MODEF>2_i387_with_temp): Remove.
21786 (floathi splitters): Remove.
21787 (float<SWI48x>xf2): New pattern.
21788 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
21789 code that tried to handle DImode for 32-bit, but which was excluded
21790 by the pattern's condition. Drop allocation of stack temporary.
21791 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21792 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21793 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21794 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21795 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21796 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21797 (*float<SWI48><MODEF>2_sse_interunit): Remove.
21798 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21799 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21800 (*float<SWI48x><X87MODEF>2_i387): Remove.
21801 (all float _with_temp splitters): Remove.
21802 (*float<SWI48x><MODEF>2_i387): New pattern.
21803 (*float<SWI48><MODEF>2_sse): New pattern.
21804 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21805 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21807 2014-03-14 Jakub Jelinek <jakub@redhat.com>
21808 Marek Polacek <polacek@redhat.com>
21810 PR middle-end/60484
21811 * common.opt (dump_base_name_prefixed): New Variable.
21812 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
21813 if x_dump_base_name_prefixed is already set, set it at the end.
21815 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
21817 PR rtl-optimization/60508
21818 * lra-constraints.c (get_reload_reg): Add new parameter
21820 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
21821 Pass the new parameter values.
21823 2014-03-14 Richard Biener <rguenther@suse.de>
21825 * common.opt: Revert unintented changes from r205065.
21826 * opts.c: Likewise.
21828 2014-03-14 Richard Biener <rguenther@suse.de>
21830 PR middle-end/60518
21831 * cfghooks.c (split_block): Properly adjust all loops the
21832 block was a latch of.
21834 2014-03-14 Martin Jambor <mjambor@suse.cz>
21837 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
21840 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
21843 * config/avr/avr.c (avr_set_current_function): Pass function name
21844 through default_strip_name_encoding before sanity checking instead
21845 of skipping the first char of the assembler name.
21847 2014-03-13 Richard Henderson <rth@redhat.com>
21850 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
21851 (ix86_force_to_memory, ix86_free_from_memory): Remove.
21852 * config/i386/i386-protos.h: Likewise.
21853 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
21854 in the expander instead of a splitter.
21855 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
21856 any possibility of requiring a memory.
21857 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
21858 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
21859 (fp branch splitters): Update for ix86_split_fp_branch.
21860 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
21861 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
21862 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
21863 (*fop_<MODEF>_2_i387): Remove f/r alternative.
21864 (*fop_<MODEF>_3_i387): Likewise.
21865 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
21866 (splitters for the fop_* register patterns): Remove.
21867 (fscalexf4_i387): Rename from *fscalexf4_i387.
21868 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
21870 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21872 PR tree-optimization/59779
21873 * tree-dfa.c (get_ref_base_and_extent): Use double_int
21874 type for bitsize and maxsize instead of HOST_WIDE_INT.
21876 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
21878 PR rtl-optimization/57320
21879 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
21880 the CFG after thread_prologue_and_epilogue_insns.
21882 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
21884 PR rtl-optimization/57189
21885 * lra-constraints.c (process_alt_operands): Disfavor spilling
21888 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
21890 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
21892 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21894 PR tree-optimization/59025
21895 PR middle-end/60418
21896 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
21897 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
21899 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
21902 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
21903 calls of avr_out_plus_1.
21905 2014-03-13 Bin Cheng <bin.cheng@arm.com>
21907 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
21908 BB's single pred and update the father loop's latch info later.
21910 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21912 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
21916 (VEC_base): Likewise.
21917 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
21918 registers, we need to swap double words in little endian mode.
21920 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
21921 to be a container mode for 128-bit integer operations added in ISA
21922 2.07. Unlike TImode and PTImode, the preferred register set is
21923 the Altivec/VMX registers for the 128-bit operations.
21925 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
21927 (rs6000_split_128bit_ok_p): Likewise.
21929 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
21930 macros for creating ISA 2.07 normal and overloaded builtin
21931 functions with 3 arguments.
21932 (BU_P8V_OVERLOAD_3): Likewise.
21933 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
21934 for use as overloaded functions.
21935 (VPERM_1TI_UNS): Likewise.
21936 (VSEL_1TI): Likewise.
21937 (VSEL_1TI_UNS): Likewise.
21938 (ST_INTERNAL_1ti): Likewise.
21939 (LD_INTERNAL_1ti): Likewise.
21940 (XXSEL_1TI): Likewise.
21941 (XXSEL_1TI_UNS): Likewise.
21942 (VPERM_1TI): Likewise.
21943 (VPERM_1TI_UNS): Likewise.
21944 (XXPERMDI_1TI): Likewise.
21945 (SET_1TI): Likewise.
21946 (LXVD2X_V1TI): Likewise.
21947 (STXVD2X_V1TI): Likewise.
21948 (VEC_INIT_V1TI): Likewise.
21949 (VEC_SET_V1TI): Likewise.
21950 (VEC_EXT_V1TI): Likewise.
21951 (EQV_V1TI): Likewise.
21952 (NAND_V1TI): Likewise.
21953 (ORC_V1TI): Likewise.
21954 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
21955 added in ISA 2.07. Add both normal 'altivec' builtins, and the
21956 overloaded builtin.
21957 (VADDUQM): Likewise.
21958 (VSUBCUQ): Likewise.
21959 (VADDEUQM): Likewise.
21960 (VADDECUQ): Likewise.
21961 (VSUBEUQM): Likewise.
21962 (VSUBECUQ): Likewise.
21964 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
21965 __int128_t and __uint128_t types.
21966 (__uint128_type): Likewise.
21967 (altivec_categorize_keyword): Add support for vector __int128_t,
21968 vector __uint128_t, vector __int128, and vector unsigned __int128
21969 as a container type for TImode operations that need to be done in
21970 VSX/Altivec registers.
21971 (rs6000_macro_to_expand): Likewise.
21972 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
21973 to support 128-bit integer instructions vaddcuq, vadduqm,
21974 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
21975 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
21977 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
21978 for V1TImode, and set up preferences to use VSX/Altivec registers.
21979 Setup VSX reload handlers.
21980 (rs6000_debug_reg_global): Likewise.
21981 (rs6000_init_hard_regno_mode_ok): Likewise.
21982 (rs6000_preferred_simd_mode): Likewise.
21983 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
21984 (easy_altivec_constant): Likewise.
21985 (output_vec_const_move): Likewise.
21986 (rs6000_expand_vector_set): Convert V1TImode set and extract to
21988 (rs6000_expand_vector_extract): Likewise.
21989 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
21991 (rs6000_const_vec): Add support for V1TImode.
21992 (rs6000_emit_le_vsx_load): Swap double words when loading or
21993 storing TImode/V1TImode.
21994 (rs6000_emit_le_vsx_store): Likewise.
21995 (rs6000_emit_le_vsx_move): Likewise.
21996 (rs6000_emit_move): Add support for V1TImode.
21997 (altivec_expand_ld_builtin): Likewise.
21998 (altivec_expand_st_builtin): Likewise.
21999 (altivec_expand_vec_init_builtin): Likewise.
22000 (altivec_expand_builtin): Likewise.
22001 (rs6000_init_builtins): Add support for V1TImode type. Add
22002 support for ISA 2.07 128-bit integer builtins. Define type names
22003 for the VSX/Altivec vector types.
22004 (altivec_init_builtins): Add support for overloaded vector
22005 functions with V1TImode type.
22006 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22007 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22009 (rs6000_split_128bit_ok_p): Likewise.
22010 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22011 __int128_t and vector __uint128_t.
22013 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22014 and mode attributes.
22016 (VSX_M2): Likewise.
22021 (VS_scalar): Likewise.
22022 (VS_double): Likewise.
22023 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22025 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22026 we support the ISA 2.07 128-bit integer arithmetic instructions.
22027 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22028 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22029 and TImode types for use with the builtin functions.
22030 (V1TI_type_node): Likewise.
22031 (unsigned_V1TI_type_node): Likewise.
22032 (intTI_type_internal_node): Likewise.
22033 (uintTI_type_internal_node): Likewise.
22035 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22036 128-bit builtin functions.
22037 (UNSPEC_VADDEUQM): Likewise.
22038 (UNSPEC_VADDECUQ): Likewise.
22039 (UNSPEC_VSUBCUQ): Likewise.
22040 (UNSPEC_VSUBEUQM): Likewise.
22041 (UNSPEC_VSUBECUQ): Likewise.
22042 (VM): Add V1TImode to vector mode iterators.
22044 (VI_unit): Likewise.
22045 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22046 (altivec_vaddcuq): Likewise.
22047 (altivec_vsubuqm): Likewise.
22048 (altivec_vsubcuq): Likewise.
22049 (altivec_vaddeuqm): Likewise.
22050 (altivec_vaddecuq): Likewise.
22051 (altivec_vsubeuqm): Likewise.
22052 (altivec_vsubecuq): Likewise.
22054 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22056 (BOOL_128): Likewise.
22057 (BOOL_REGS_OUTPUT): Likewise.
22058 (BOOL_REGS_OP1): Likewise.
22059 (BOOL_REGS_OP2): Likewise.
22060 (BOOL_REGS_UNARY): Likewise.
22061 (BOOL_REGS_AND_CR0): Likewise.
22063 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22064 128-bit integer builtin support.
22065 (vec_vadduqm): Likewise.
22066 (vec_vaddecuq): Likewise.
22067 (vec_vaddeuqm): Likewise.
22068 (vec_vsubecuq): Likewise.
22069 (vec_vsubeuqm): Likewise.
22070 (vec_vsubcuq): Likewise.
22071 (vec_vsubuqm): Likewise.
22073 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22074 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22075 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22076 128-bit integer add/subtract to ISA 2.07.
22078 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22080 * config/arc/arc.c (arc_predicate_delay_insns):
22081 Fix third argument passed to conditionalize_nonjump.
22083 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22085 * config/aarch64/aarch64-builtins.c
22086 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22087 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22088 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22089 instead of __builtin_lfloor.
22090 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22092 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22094 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22095 (tree_ssa_ifcombine_bb_1): New function.
22096 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22097 is an empty forwarder block to then_bb or vice versa and then_bb
22098 and else_bb are effectively swapped.
22100 2014-03-12 Christian Bruel <christian.bruel@st.com>
22103 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22104 REG_CFA_DEF_CFA note.
22105 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22106 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22108 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22110 PR tree-optimization/60454
22111 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22113 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22115 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22116 Do not define target_cpu_default2 to generic.
22117 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22118 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22119 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22121 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22122 Marc Glisse <marc.glisse@inria.fr>
22124 PR tree-optimization/60502
22125 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22126 instead of build_low_bits_mask.
22128 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22130 PR middle-end/60482
22131 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22132 if there are multiple uses, but op doesn't live on E edge.
22133 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22134 clobber stmts before __builtin_unreachable.
22136 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22138 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22139 hard_frame_pointer_rtx.
22140 * cse.c (cse_insn): Remove volatile check.
22141 * cselib.c (cselib_process_insn): Likewise.
22142 * dse.c (scan_insn): Likewise.
22144 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22146 * config/arc/arc.c (conditionalize_nonjump): New function,
22148 (arc_ifcvt): ... this.
22149 (arc_predicate_delay_insns): Use it.
22151 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22153 * config/arc/predicates.md (extend_operand): During/after reload,
22154 allow const_int_operand.
22155 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22156 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22157 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22159 (umulsi3_highpart_i): Likewise.
22161 2014-03-11 Richard Biener <rguenther@suse.de>
22163 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22164 Add asserts to guard possible wrong-code bugs.
22166 2014-03-11 Richard Biener <rguenther@suse.de>
22168 PR tree-optimization/60429
22169 PR tree-optimization/60485
22170 * tree-ssa-structalias.c (set_union_with_increment): Properly
22171 take into account all fields that overlap the shifted vars.
22172 (do_sd_constraint): Likewise.
22173 (do_ds_constraint): Likewise.
22174 (get_constraint_for_ptr_offset): Likewise.
22176 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22178 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22179 (nios2_compute_frame_layout):
22180 Add calculation of cfun->machine->fp_save_offset.
22181 (nios2_expand_prologue): Correct setting of frame pointer register
22183 (nios2_expand_epilogue): Update recovery of stack pointer from
22184 frame pointer accordingly.
22185 (nios2_initial_elimination_offset): Update calculation of offset
22186 for eliminating to HARD_FRAME_POINTER_REGNUM.
22188 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22191 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22192 cgraph_get_create_node on VAR_DECLs.
22194 2014-03-10 Richard Biener <rguenther@suse.de>
22196 PR middle-end/60474
22197 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22199 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22201 * config/vms/vms.opt (vms_float_format): New variable.
22203 2014-03-08 Tobias Burnus <burnus@net-b.de>
22205 * doc/invoke.texi (-fcilkplus): Update implementation status.
22207 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22208 Richard Biener <rguenther@suse.de>
22210 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22211 consistently accross all TUs.
22212 (run_gcc): Enable -fshort-double automatically at link at link-time
22213 and disallow override.
22215 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22218 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22219 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22220 if they can't be used.
22222 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22224 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22225 for Solaris 11/x86 ld.
22226 * configure: Regenerate.
22228 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22230 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22231 (LIB_TLS_SPEC): Save as ld_tls_libs.
22232 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22233 (HAVE_AS_IX86_TLSLDM): New test.
22234 * configure, config.in: Regenerate.
22235 * config/i386/i386.c (legitimize_tls_address): Fall back to
22236 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22237 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22238 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22239 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22241 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22243 * common.opt (fira-loop-pressure): Mark as optimization.
22245 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22247 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22248 an OpenMP mappable type.
22250 2014-03-06 Matthias Klose <doko@ubuntu.com>
22252 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22253 MULTILIB_OSDIRNAMES is not defined.
22255 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22256 Meador Inge <meadori@codesourcery.com>
22259 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22260 (arm_legitimize_address): Call legitimize_tls_address for any
22261 arm_tls_referenced_p expression, handle constant addend. Call it
22262 before testing for !TARGET_ARM.
22263 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22265 2014-03-06 Richard Biener <rguenther@suse.de>
22267 PR middle-end/60445
22271 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22273 * tree-streamer.c (record_common_node): Assert we don't record
22274 nodes with type double.
22275 (preload_common_node): Skip type double, complex double and double
22276 pointer since it is now frontend dependent due to fshort-double option.
22278 2014-03-06 Richard Biener <rguenther@suse.de>
22280 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22281 or -fno-lto is specified and the linker has full plugin support.
22282 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22283 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22284 * lto-wrapper.c (merge_and_complain): Merge compile-time
22285 optimization levels.
22286 (run_gcc): And pass it through to the link options.
22288 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22292 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22294 * cselib.c (remove_useless_values): Skip to avoid quadratic
22295 behavior if the condition moved from...
22296 (cselib_process_insn): ... here holds.
22298 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22301 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22302 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22305 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22306 (TM_H): Add x86-tune.def.
22308 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22310 * config/aarch64/aarch64.c (generic_tunings):
22311 Use cortexa57_extra_costs.
22313 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22316 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22317 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22318 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22321 2014-03-04 Heiher <r@hev.cc>
22323 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22324 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22326 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22328 * config/i386/predicates.md (const2356_operand): Change to ...
22329 (const2367_operand): ... this.
22330 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22332 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22333 (*avx512pf_scatterpf<mode>sf): Ditto.
22334 (avx512pf_scatterpf<mode>df): Ditto.
22335 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22336 (*avx512pf_scatterpf<mode>df): Ditto.
22337 * config/i386/i386.c (ix86_expand_builtin): Update
22338 incorrect hint operand error message.
22340 2014-03-04 Richard Biener <rguenther@suse.de>
22342 * lto-section-in.c (lto_get_section_data): Fix const cast.
22344 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22346 * tree-streamer.c (record_common_node): Assert we don't record
22347 nodes with type double.
22348 (preload_common_node): Skip type double, complex double and double
22349 pointer since it is now frontend dependent due to fshort-double option.
22351 2014-03-04 Richard Biener <rguenther@suse.de>
22354 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22355 (lto_input_toplevel_asms): Likewise.
22356 * lto-section-in.c (lto_get_section_data): Instead do it here
22359 2014-03-04 Richard Biener <rguenther@suse.de>
22361 PR tree-optimization/60382
22362 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22363 dead PHIs a reduction.
22365 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22367 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22369 (_mm_prefetch): Move out of GCC target("sse") pragma.
22370 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22371 GCC target("prfchw") pragma.
22372 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22374 * config/i386/i386.c (ix86_option_override_internal): Enable
22375 -mprfchw with -mprefetchwt1.
22377 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22379 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22382 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22384 * opts.h (CL_PCH_IGNORE): Define.
22385 * targhooks.c (option_affects_pch_p):
22386 Return false for options that have CL_PCH_IGNORE set.
22387 * opt-functions.awk: Process PchIgnore.
22388 * doc/options.texi: Document PchIgnore.
22390 * config/arc/arc.opt (misize): Add PchIgnore property.
22392 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22394 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22395 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22396 constraint on constants to permit them being loaded into
22397 GENERAL_REGS or BASE_REGS.
22399 2014-03-03 Nick Clifton <nickc@redhat.com>
22401 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22402 anti-cacnonical alternatives.
22403 (negandhi3_real): New pattern.
22404 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22406 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22408 * config/avr/avr-mcus.def: Remove atxmega16x1.
22409 * config/avr/avr-tables.opt: Regenerate.
22410 * config/avr/t-multilib: Regenerate.
22411 * doc/avr-mmcu.texi: Regenerate.
22413 2014-03-03 Tobias Grosser <tobias@grosser.es>
22414 Mircea Namolaru <mircea.namolaru@inria.fr>
22416 PR tree-optimization/58028
22417 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22420 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22422 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22423 not handled by recognizers.
22425 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22427 PR middle-end/60175
22428 * function.c (expand_function_end): Don't emit
22429 clobber_return_register sequence if clobber_after is a BARRIER.
22430 * cfgexpand.c (construct_exit_block): Append instructions before
22431 return_label to prev_bb.
22433 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22435 * config/rs6000/constraints.md: Document reserved use of "wc".
22437 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22440 * ipa.c (function_and_variable_visibility): When dissolving comdat
22441 group, also set all symbols to local.
22443 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22448 2013-12-14 Jan Hubicka <jh@suse.cz>
22449 PR middle-end/58477
22450 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22452 2014-03-02 Jon Beniston <jon@beniston.com>
22458 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22459 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22460 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22461 (simple_return, *simple_return): New patterns
22462 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22463 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22465 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22467 * dwarf2out.c (gen_subprogram_die): Tidy.
22469 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22472 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22473 (*mov_t_msb_neg_negc): ... this new insn.
22475 2014-02-28 Jason Merrill <jason@redhat.com>
22478 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22481 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22484 * dwarf2out.c (decltype_auto_die): New static.
22485 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22486 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22487 (is_cxx_auto): Likewise.
22489 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22491 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22492 we are not using general regs only.
22494 2014-02-28 Richard Biener <rguenther@suse.de>
22497 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22498 previous fix and only allow to remove trivial pre-headers
22499 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22500 (remove_forwarder_block): Properly update the latch of a loop.
22502 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22505 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22506 (cselib_preserved_hash_table): New.
22507 (preserve_constants_and_equivs): Move preserved vals to it.
22508 (cselib_find_slot): Look it up first.
22509 (cselib_init): Initialize it.
22510 (cselib_finish): Release it.
22511 (dump_cselib_table): Dump it.
22513 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22516 * cselib.c (remove_useless_values): Skip to avoid quadratic
22517 behavior if the condition moved from...
22518 (cselib_process_insn): ... here holds.
22520 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22523 * var-tracking.c (vt_initialize): Apply the same condition to
22524 preserve the CFA base value.
22526 2014-02-28 Joey Ye <joey.ye@arm.com>
22529 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22530 if reload in progress or completed.
22532 2014-02-28 Tobias Burnus <burnus@net-b.de>
22534 PR middle-end/60147
22535 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22538 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22540 * doc/tm.texi.in (Condition Code Status): Update documention for
22541 relative locations of cc0-setter and cc0-user.
22543 2014-02-27 Jeff Law <law@redhat.com>
22545 PR rtl-optimization/52714
22546 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22547 into two independent simple sets, if I3 is a jump, ensure the
22548 pattern we place into I3 is a (set (pc) ...).
22550 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22551 Jeff Law <law@redhat.com>
22553 PR rtl-optimization/49847
22554 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22555 are in different blocks.
22556 * doc/tm.texi (Condition Code Status): Update documention for
22557 relative locations of cc0-setter and cc0-user.
22559 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22562 * lra.c (lra_emit_add): Check SUBREG too.
22564 2014-02-27 Andreas Schwab <schwab@suse.de>
22566 * config/m68k/m68k.c (m68k_option_override): Disable
22567 -flive-range-shrinkage for classic m68k.
22568 (m68k_override_options_after_change): Likewise.
22570 2014-02-27 Marek Polacek <polacek@redhat.com>
22572 PR middle-end/59223
22573 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22574 -Wmaybe-uninitialized.
22576 2014-02-27 Alan Modra <amodra@gmail.com>
22579 * reload1.c (emit_input_reload_insns): When reload_override_in,
22580 set old to rl->in_reg when rl->in_reg is a subreg.
22582 2014-02-26 Richard Biener <rguenther@suse.de>
22585 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22587 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22589 * common/config/i386/predicates.md (const1256_operand): Remove.
22590 (const2356_operand): New.
22591 (const_1_to_2_operand): Remove.
22592 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22593 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22594 (*avx512pf_gatherpf<mode>sf): Ditto.
22595 (avx512pf_gatherpf<mode>df): Ditto.
22596 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22597 (*avx512pf_gatherpf<mode>df): Ditto.
22598 (avx512pf_scatterpf<mode>sf): Ditto.
22599 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22600 (*avx512pf_scatterpf<mode>sf): Ditto.
22601 (avx512pf_scatterpf<mode>df): Ditto.
22602 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22603 (*avx512pf_scatterpf<mode>df): Ditto.
22604 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22606 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22608 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22609 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22610 (_mm512_mask_testn_epi64_mask): Move to ...
22611 * config/i386/avx512cdintrin.h: Here.
22612 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22613 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22614 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22615 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22616 TARGET_AVX512F from TARGET_AVX512CD.
22618 2014-02-26 Richard Biener <rguenther@suse.de>
22621 * ipa.c (walk_polymorphic_call_targets): Properly guard
22622 call to inline_update_overall_summary.
22624 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22627 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22628 and latches only if requested. Fix latch if it is removed.
22629 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22630 LOOPS_HAVE_PREHEADERS.
22632 2014-02-25 Andrew Pinski <apinski@cavium.com>
22634 * builtins.c (expand_builtin_thread_pointer): Create a new target
22635 when the target is NULL.
22637 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22639 PR rtl-optimization/60317
22640 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22641 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22642 * lra-assigns.c: Include params.h.
22643 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22644 other reload pseudos considerations.
22646 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22648 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22649 to use canonical form for nor<mode>3.
22651 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22654 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22657 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22659 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22660 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22661 (ix86_handle_option): Handle OPT_mprefetchwt1.
22662 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22663 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22665 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22666 OPTION_MASK_ISA_PREFETCHWT1.
22667 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22668 (PTA_PREFETCHWT1): New.
22669 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22670 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22671 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22672 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22673 (*prefetch_avx512pf_<mode>_: Change into ...
22674 (*prefetch_prefetchwt1_<mode>: This.
22675 * config/i386/i386.opt (mprefetchwt1): New.
22676 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22677 (_mm_prefetch): Handle intent to write.
22678 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22680 2014-02-25 Richard Biener <rguenther@suse.de>
22682 PR middle-end/60291
22683 * emit-rtl.c (mem_attrs_htab): Remove.
22684 (mem_attrs_htab_hash): Likewise.
22685 (mem_attrs_htab_eq): Likewise.
22686 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22687 (init_emit_once): Do not allocate mem_attrs_htab.
22689 2014-02-25 Richard Biener <rguenther@suse.de>
22692 * lto-opts.c (lto_write_options): Output non-explicit conservative
22693 -fwrapv, -fno-trapv and -fno-strict-overflow.
22694 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22695 (run_gcc): And pass them through.
22697 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22699 * sel-sched.c (calculate_new_fences): New parameter ptime.
22700 Calculate it as a maximum over all fence cycles.
22701 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22702 Print the final schedule timing when sched_verbose.
22704 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22706 PR rtl-optimization/60292
22707 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22708 bit fot the fence instruction.
22710 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22712 * calls.h: Fix typo in comment.
22714 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22716 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22717 adjusting offsetable addresses.
22719 2014-02-24 Guozhi Wei <carrot@google.com>
22721 * sparseset.h (sparseset_pop): Fix the wrong index.
22723 2014-02-24 Walter Lee <walt@tilera.com>
22725 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22726 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22728 * common/config/tilegx/tilegx-common.c
22729 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22730 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22731 (LINK_SPEC): Ditto.
22732 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22733 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22734 (tilegx_gimplify_va_arg_expr): Handle big endian.
22735 (tilegx_expand_unaligned_load): Ditto.
22736 (tilegx_expand_unaligned_store): Ditto.
22737 (TARGET_RETURN_IN_MSB): New.
22738 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22739 (TARGET_ENDIAN_DEFAULT): New.
22740 (TARGET_BIG_ENDIAN): Handle big endian.
22741 (BYTES_BIG_ENDIAN): Ditto.
22742 (WORDS_BIG_ENDIAN): Ditto.
22743 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22744 (ENDIAN_SPEC): New.
22745 (EXTRA_SPECS): New.
22746 * config/tilegx/tilegx.md (extv): Handle big endian.
22748 (insn_st<n>): Ditto.
22749 (insn_st<n>_add<bitsuffix>): Ditto.
22750 (insn_stnt<n>): Ditto.
22751 (insn_stnt<n>_add<bitsuffix>):Ditto.
22752 (vec_interleave_highv8qi): Handle big endian.
22753 (vec_interleave_highv8qi_be): New.
22754 (vec_interleave_highv8qi_le): New.
22755 (insn_v1int_h): Handle big endian.
22756 (vec_interleave_lowv8qi): Handle big endian.
22757 (vec_interleave_lowv8qi_be): New.
22758 (vec_interleave_lowv8qi_le): New.
22759 (insn_v1int_l): Handle big endian.
22760 (vec_interleave_highv4hi): Handle big endian.
22761 (vec_interleave_highv4hi_be): New.
22762 (vec_interleave_highv4hi_le): New.
22763 (insn_v2int_h): Handle big endian.
22764 (vec_interleave_lowv4hi): Handle big endian.
22765 (vec_interleave_lowv4hi_be): New.
22766 (vec_interleave_lowv4hi_le): New.
22767 (insn_v2int_l): Handle big endian.
22768 (vec_interleave_highv2si): Handle big endian.
22769 (vec_interleave_highv2si_be): New.
22770 (vec_interleave_highv2si_le): New.
22771 (insn_v4int_h): Handle big endian.
22772 (vec_interleave_lowv2si): Handle big endian.
22773 (vec_interleave_lowv2si_be): New.
22774 (vec_interleave_lowv2si_le): New.
22775 (insn_v4int_l): Handle big endian.
22776 * config/tilegx/tilegx.opt (mbig-endian): New option.
22777 (mlittle-endian): New option.
22778 * doc/install.texi: Document tilegxbe-linux.
22779 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22781 2014-02-24 Martin Jambor <mjambor@suse.cz>
22784 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22785 there are no parameter descriptors.
22787 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
22789 PR rtl-optimization/60268
22790 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22791 initialization to ...
22792 (sched_rgn_init): ... here.
22793 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22795 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22797 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22800 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22802 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22805 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22807 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22808 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22810 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22812 * config/microblaze/predicates.md: Add cmp_op predicate.
22813 * config/microblaze/microblaze.md: Add branch_compare instruction
22814 which uses cmp_op predicate and emits cmp insn before branch.
22815 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
22816 to microblaze_expand_conditional_branch and consolidate logic.
22817 (microblaze_expand_conditional_branch): emit branch_compare
22818 insn instead of handling cmp op separate from branch insn.
22820 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22822 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
22825 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22827 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
22828 define_insn with define_expand and new define_insn
22829 *altivec_lve<VI_char>x_internal.
22830 (altivec_stve<VI_char>x): Replace define_insn with define_expand
22831 and new define_insn *altivec_stve<VI_char>x_internal.
22832 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
22834 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
22836 (altivec_expand_stvex_be): New function.
22838 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
22840 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
22841 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
22842 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
22843 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
22845 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
22848 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
22849 instead of emit_move_insn.
22851 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22853 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
22854 vspltw with vsldoi.
22855 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
22856 gen_altivec_vsumsws.
22858 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22860 * config/rs6000/altivec.md (altivec_lvxl): Rename as
22861 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
22862 (altivec_lvxl_<mode>): New define_expand incorporating
22863 -maltivec=be semantics where needed.
22864 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
22865 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
22866 semantics where needed.
22867 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
22868 (altivec_stvx_<mode>): New define_expand incorporating
22869 -maltivec=be semantics where needed.
22870 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
22871 VM2 iterator instead of V4SI.
22872 (altivec_stvxl_<mode>): New define_expand incorporating
22873 -maltivec=be semantics where needed.
22874 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
22875 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
22876 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
22877 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
22878 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
22879 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
22880 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
22881 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
22882 ALTIVEC_BUILTIN_STVXL.
22883 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
22884 (altivec_expand_stvx_be): Likewise.
22885 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
22886 (altivec_expand_lvx_be): Likewise.
22887 (altivec_expand_stvx_be): Likewise.
22888 (altivec_expand_builtin): Add cases for
22889 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
22890 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
22891 (altivec_init_builtins): Add definitions for
22892 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
22893 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
22895 2014-02-21 Catherine Moore <clm@codesourcery.com>
22897 * doc/invoke.texi (mvirt, mno-virt): Document.
22898 * config/mips/mips.opt (mvirt): New option.
22899 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
22901 2014-02-21 Richard Biener <rguenther@suse.de>
22903 PR tree-optimization/60276
22904 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
22905 (STMT_VINFO_MIN_NEG_DIST): New macro.
22906 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
22907 STMT_VINFO_MIN_NEG_DIST.
22908 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
22909 made for negative dependence distances still hold.
22911 2014-02-21 Richard Biener <rguenther@suse.de>
22913 PR middle-end/60291
22914 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
22915 DECL_INITIAL for globals not in the current function context.
22917 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22919 PR tree-optimization/56490
22920 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
22921 * tree-ssa-uninit.c: Include params.h.
22922 (compute_control_dep_chain): Add num_calls argument, return false
22923 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
22924 num_calls to recursive call.
22925 (find_predicates): Change dep_chain into normal array,
22926 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
22927 variable and adjust compute_control_dep_chain caller.
22928 (find_def_preds): Likewise.
22930 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
22932 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
22933 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
22935 2014-02-21 Nick Clifton <nickc@redhat.com>
22937 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
22938 (pushhi1): Likewise.
22939 (popqi1): Add mode to pre_dec.
22940 (pophi1): Likewise.
22942 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22944 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
22945 mode for mask of V8SFmode permutation.
22947 2014-02-20 Richard Henderson <rth@redhat.com>
22950 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
22951 a new pseudo for OLDVAL.
22953 2014-02-20 Jakub Jelinek <jakub@redhat.com>
22956 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
22957 gen_reg_rtx if d->testing_p.
22958 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
22959 if d->testing_p and we will certainly return true.
22960 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
22963 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
22965 * emit-rtl.c (gen_reg_rtx): Assert that
22966 crtl->emit.regno_pointer_align_length is non-zero.
22968 2014-02-20 Richard Henderson <rth@redhat.com>
22971 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
22972 on failure the store back into EXPECT.
22974 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
22975 Sandra Loosemore <sandra@codesourcery.com>
22977 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
22978 * config/nios2/nios2.c (nios2_function_profiler): Add
22979 -fPIC (flag_pic == 2) support.
22980 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
22981 (nios2_large_offset_p): New function.
22982 (nios2_unspec_reloc_p): Move up position, update to use
22983 nios2_large_offset_p.
22984 (nios2_unspec_address): Remove function.
22985 (nios2_unspec_offset): New function.
22986 (nios2_large_got_address): New function.
22987 (nios2_got_address): Add large offset support.
22988 (nios2_legitimize_tls_address): Update usage of removed and new
22990 (nios2_symbol_binds_local_p): New function.
22991 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
22992 (nios2_legitimize_address): Update to use nios2_large_offset_p.
22993 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
22994 (nios2_print_operand): Merge H/L processing, add hiadj/lo
22995 processing for (const (unspec ...)).
22996 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
22998 2014-02-20 Richard Biener <rguenther@suse.de>
23000 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23001 doing the substitution.
23002 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23004 2014-02-20 Martin Jambor <mjambor@suse.cz>
23007 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23008 info when checking whether lattices are bottom.
23010 2014-02-20 Richard Biener <rguenther@suse.de>
23012 PR middle-end/60221
23013 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23016 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23019 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23020 parameter specifying the scaling.
23021 (inline_call): Update.
23022 (want_inline_recursively): Guard division by zero.
23023 (recursive_inlining): Update.
23024 * ipa-inline.h (clone_inlined_nodes): Update.
23026 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23029 * config/i386/i386.c (classify_argument): Pass structures of size
23030 64 bytes or less in register.
23032 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23033 Kirill Yukhin <kirill.yukhin@intel.com>
23035 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23036 (_mm_rcp28_round_ss): Ditto.
23037 (_mm_rsqrt28_round_sd): Ditto.
23038 (_mm_rsqrt28_round_ss): Ditto.
23039 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23040 (_mm_rcp14_round_ss): Ditto.
23041 (_mm_rsqrt14_round_sd): Ditto.
23042 (_mm_rsqrt14_round_ss): Ditto.
23043 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23044 the first input operand, get rid of match_dup.
23045 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23047 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23049 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23050 operand as the first input operand, set type attribute.
23051 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23052 Set type attribute.
23053 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23054 operand as the first input operand, set type attribute.
23056 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23058 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23061 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23064 * config/i386/i386.c (construct_container): Remove TFmode check
23065 for X86_64_INTEGER_CLASS.
23067 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23070 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23071 only when -Wpsabi is enabled.
23073 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23076 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23077 passing arrays in registers are the same as for structs, so remove the
23078 special case for them.
23080 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23082 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23083 destination type, extract only the valid bits if the source type is not
23084 integral and has a different mode.
23086 2014-02-19 Richard Biener <rguenther@suse.de>
23089 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23092 2014-02-19 Richard Biener <rguenther@suse.de>
23095 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23096 (ipa_modify_call_arguments): Emit an argument load explicitely and
23097 preserve virtual SSA form there and for the replacement call.
23098 Do not update SSA form nor free dominance info.
23100 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23102 * ipa.c (function_and_variable_visibility): Also clear WEAK
23103 flag when disolving COMDAT_GROUP.
23105 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23107 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23108 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23109 not devirtualizing.
23110 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23111 do more sanity checks.
23112 (detect_type_change): Return true when giving up early.
23113 (compute_complex_assign_jump_func): Fix type parameter of
23114 ipa_set_ancestor_jf.
23115 (compute_complex_ancestor_jump_func): Likewise.
23116 (update_jump_functions_after_inlining): Fix updating of
23118 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23120 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23122 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23123 inline clones when edge disappears.
23125 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23128 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23129 Split 64-bit moves into 2 patterns. Do not allow the use of
23130 direct move for TDmode in little endian, since the decimal value
23131 has little endian bytes within a word, but the 64-bit pieces are
23132 ordered in a big endian fashion, and normal subreg's of TDmode are
23134 (mov<mode>_64bit_dm): Likewise.
23135 (movtd_64bit_nodm): Likewise.
23137 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23139 PR tree-optimization/60174
23140 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23141 statement of an SSA_NAME that occurs in an abnormal PHI node.
23143 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23146 * final.c (SEEN_BB): Remove.
23147 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23148 (final_scan_insn): Don't force_source_line on second
23149 NOTE_INSN_BASIC_BLOCK.
23151 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23154 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23155 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23156 (type_natural_mode): Warn ABI change when %zmm register is not
23157 available for AVX512F vector value passing.
23159 2014-02-18 Kai Tietz <ktietz@redhat.com>
23162 * config/i386/i386.c (ix86_expand_prologue): Use value in
23163 rax register as displacement when restoring %r10 or %rax.
23164 Fix wrong offset when restoring both registers.
23166 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23168 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23169 assertion with conditional return.
23171 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23172 Uros Bizjak <ubizjak@gmail.com>
23175 * config/i386/driver-i386.c (host_detect_local_cpu): If
23176 YMM state is not saved by the OS, also clear has_f16c. Move
23177 CPUID 0x80000001 handling before YMM state saving checking.
23179 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23181 PR rtl-optimization/58960
23182 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23183 factored out from ...
23184 (sched_init): ... here.
23185 (free_global_sched_pressure_data): New, factored out from ...
23186 (sched_finish): ... here.
23187 * sched-int.h (free_global_sched_pressure_data): Declare.
23188 * sched-rgn.c (nr_regions_initial): New static global.
23189 (haifa_find_rgns): Initialize it.
23190 (schedule_region): Disable sched-pressure for the newly
23193 2014-02-17 Richard Biener <rguenther@suse.de>
23195 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23196 release SSA defs of pattern stmts.
23198 2014-02-17 Richard Biener <rguenther@suse.de>
23200 * tree-inline.c (expand_call_inline): Release the virtual
23201 operand defined by the call we are about to inline.
23203 2014-02-17 Richard Biener <rguenther@suse.de>
23205 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23207 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23208 Ilya Tocar <ilya.tocar@intel.com>
23210 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23211 arguments order in builtin.
23212 (_mm512_permutexvar_epi64): Ditto.
23213 (_mm512_mask_permutexvar_epi64): Ditto
23214 (_mm512_maskz_permutexvar_epi32): Ditto
23215 (_mm512_permutexvar_epi32): Ditto
23216 (_mm512_mask_permutexvar_epi32): Ditto
23218 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23220 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23221 (p8_vmrgow): Likewise.
23223 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23225 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23228 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23231 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23232 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23233 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23234 using direct move instructions on ISA 2.07. Also adjust
23235 instruction length for 64-bit.
23236 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23237 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23239 2014-02-15 Alan Modra <amodra@gmail.com>
23243 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23244 find_replacement on parts of insn rtl that might be reloaded.
23246 2014-02-15 Richard Biener <rguenther@suse.de>
23248 PR tree-optimization/60183
23249 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23250 (tree_ssa_phiprop): Calculate and free post-dominators.
23252 2014-02-14 Jeff Law <law@redhat.com>
23254 PR rtl-optimization/60131
23255 * ree.c (get_extended_src_reg): New function.
23256 (combine_reaching_defs): Use it rather than assuming location of REG.
23257 (find_and_remove_re): Verify first operand of extension is
23258 a REG before adding the insns to the copy list.
23260 2014-02-14 Roland McGrath <mcgrathr@google.com>
23262 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23263 * configure: Regenerated.
23264 * config.in: Regenerated.
23265 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23266 instead of ASM_SHORT.
23268 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23269 Richard Earnshaw <rearnsha@arm.com>
23271 PR rtl-optimization/59535
23272 * lra-constraints.c (process_alt_operands): Encourage alternative
23273 when unassigned pseudo class is superset of the alternative class.
23274 (inherit_reload_reg): Don't inherit when optimizing for code size.
23275 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23276 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23277 modes not less than 4 for Thumb1.
23279 2014-02-14 Kyle McMartin <kyle@redhat.com>
23282 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23284 2014-02-14 Richard Biener <rguenther@suse.de>
23286 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23287 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23288 Do not strip INDIRECT_REFs.
23290 2014-02-14 Richard Biener <rguenther@suse.de>
23293 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23294 DECL_FUNCTION_SPECIFIC_TARGET.
23295 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23296 * tree-streamer-out.c (pack_ts_target_option): Remove.
23297 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23298 (write_ts_function_decl_tree_pointers): Do not stream
23299 DECL_FUNCTION_SPECIFIC_TARGET.
23300 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23301 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23302 (lto_input_ts_function_decl_tree_pointers): Do not stream
23303 DECL_FUNCTION_SPECIFIC_TARGET.
23305 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23307 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23308 (get_initial_def_for_induction, vectorizable_induction): Ignore
23309 debug stmts when looking for exit_phi.
23310 (vectorizable_live_operation): Fix up condition.
23312 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23314 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23315 nreverse() because it changes the content of original tree list.
23317 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23319 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23320 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23322 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23324 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23325 GNU coding standards.
23327 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23330 * dwarf2out.c (gen_subprogram_die): Don't call
23331 add_calling_convention_attribute if subr_die is old_die.
23333 2014-02-13 Sharad Singhai <singhai@google.com>
23335 * doc/optinfo.texi: Fix order of nodes.
23337 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23339 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23340 operands[2], not operands[3].
23342 2014-02-13 Richard Biener <rguenther@suse.de>
23345 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23346 mention the possibility of an in-tree build.
23347 (CLooG): Update recommended version to 0.18.1, mention the
23348 possibility of an in-tree build and clarify that the ISL
23349 bundled with CLooG does not work.
23351 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23354 * expr.c (compress_float_constant): If x is a hard register,
23355 extend into a pseudo and then move to x.
23357 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23359 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23360 caused by bad second argument to warning_at() with -mhotpatch and
23361 nested functions (e.g. with gfortran).
23363 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23365 * opts.c (option_name): Remove "enabled by default" rider.
23367 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23369 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23371 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23372 Uros Bizjak <ubizjak@gmail.com>
23375 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23376 * configure: Regenerated.
23378 2014-02-12 Richard Biener <rguenther@suse.de>
23380 * vec.c (vec_prefix::calculate_allocation): Move as
23381 inline variant to vec.h.
23382 (vec_prefix::calculate_allocation_1): New out-of-line version.
23383 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23384 (vec_prefix::m_has_auto_buf): Rename to ...
23385 (vec_prefix::m_using_auto_storage): ... this.
23386 (vec_prefix::calculate_allocation): Inline the easy cases
23387 and dispatch to calculate_allocation_1 which doesn't need the
23389 (va_heap::reserve): Use gcc_checking_assert.
23390 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23391 m_using_auto_storage.
23392 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23394 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23395 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23396 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23398 2014-02-12 Richard Biener <rguenther@suse.de>
23400 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23401 when we found a dependence.
23403 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23405 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23407 (maybe_fold_stmt): ... into this new function.
23408 * omp-low.c (lower_omp): Update comment.
23410 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23413 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23416 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23418 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23419 identifiers in comments.
23420 (cortexa53_extra_costs): Likewise.
23421 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23422 (cortexa7_extra_costs): Likewise.
23423 (cortexa12_extra_costs): Likewise.
23424 (cortexa15_extra_costs): Likewise.
23425 (v7m_extra_costs): Likewise.
23427 2014-02-12 Richard Biener <rguenther@suse.de>
23429 PR middle-end/60092
23430 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23431 of posix_memalign being successful.
23432 (lower_stmt): Restrict lowering of posix_memalign to when
23433 -ftree-bit-ccp is enabled.
23435 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23437 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23439 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23441 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23443 PR rtl-optimization/60116
23444 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23445 other_insn once the combination has been validated.
23447 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23450 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23452 * ipa-devirt.c: Include demangle.h
23453 (odr_violation_reported): New static variable.
23454 (add_type_duplicate): Update odr_violations.
23455 (maybe_record_node): Add completep parameter; update it.
23456 (record_target_from_binfo): Add COMPLETEP parameter;
23457 update it as needed.
23458 (possible_polymorphic_call_targets_1): Likewise.
23459 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23460 rename FINAL to COMPLETE.
23461 (record_targets_from_bases): Sanity check we found the binfo;
23462 fix COMPLETEP updating.
23463 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23464 parameter, fix computing of COMPLETEP.
23465 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23466 at LTO time do demangling.
23467 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23468 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23470 (gimple_get_virt_method_for_binfo): Likewise.
23471 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23472 gimple_get_virt_method_for_vtable): Update prototypes.
23474 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23477 * genautomata.c (add_presence_absence): Fix typo with
23478 {final_}presence_list.
23480 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23483 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23484 for VSX/Altivec vectors that land in GPR registers.
23486 2014-02-11 Richard Henderson <rth@redhat.com>
23487 Jakub Jelinek <jakub@redhat.com>
23490 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23491 around drhs if type conversion to lacc->type is not useless.
23493 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23495 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23497 (cortex-a57.cortex-a53): Likewise.
23498 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23500 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23502 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23505 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23507 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23508 add_options_for_arm_vfp3.
23510 2014-02-11 Jeff Law <law@redhat.com>
23512 PR middle-end/54041
23513 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23514 object with an undesirable mode.
23516 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23519 * config/i386/sol2-9.h: New file.
23520 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23521 *-*-solaris2.9*): Use it.
23523 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23525 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23526 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23528 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23530 * config/microblaze/microblaze.c: Extend mcpu version format
23532 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23534 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23536 2014-02-10 Richard Henderson <rth@redhat.com>
23539 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23540 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23541 ms-abi vs -mno-accumulate-outgoing-args.
23542 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23543 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23546 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23548 PR middle-end/60080
23549 * cfgexpand.c (expand_asm_operands): Attach source location to
23550 ASM_INPUT rtx objects.
23551 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23553 2014-02-10 Nick Clifton <nickc@redhat.com>
23555 * config/mn10300/mn10300.c (popcount): New function.
23556 (mn10300_expand_prologue): Include saved registers in stack usage
23559 2014-02-10 Jeff Law <law@redhat.com>
23561 PR middle-end/52306
23562 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23563 when changing the SET_DEST of a prior insn to avoid an input reload.
23565 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23567 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23568 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23569 -mcall-openbsd, or -mcall-linux.
23570 (CC1_ENDIAN_BIG_SPEC): Remove.
23571 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23572 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23573 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23574 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23575 and %cc1_endian_default.
23576 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23578 2014-02-10 Richard Biener <rguenther@suse.de>
23580 PR tree-optimization/60115
23581 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23582 MEM_REF handling. Properly verify that the accesses are not
23583 out of the objects bound.
23585 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23587 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23590 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23592 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23593 proper constants and fix formatting.
23594 (possible_polymorphic_call_targets): Fix formatting.
23596 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23597 Ilya Tocar <ilya.tocar@intel.com>
23599 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23600 (_mm512_loadu_epi32): Renamed into...
23601 (_mm512_loadu_si512): This.
23602 (_mm512_storeu_epi32): Renamed into...
23603 (_mm512_storeu_si512): This.
23604 (_mm512_maskz_ceil_ps): Removed.
23605 (_mm512_maskz_ceil_pd): Ditto.
23606 (_mm512_maskz_floor_ps): Ditto.
23607 (_mm512_maskz_floor_pd): Ditto.
23608 (_mm512_floor_round_ps): Ditto.
23609 (_mm512_floor_round_pd): Ditto.
23610 (_mm512_ceil_round_ps): Ditto.
23611 (_mm512_ceil_round_pd): Ditto.
23612 (_mm512_mask_floor_round_ps): Ditto.
23613 (_mm512_mask_floor_round_pd): Ditto.
23614 (_mm512_mask_ceil_round_ps): Ditto.
23615 (_mm512_mask_ceil_round_pd): Ditto.
23616 (_mm512_maskz_floor_round_ps): Ditto.
23617 (_mm512_maskz_floor_round_pd): Ditto.
23618 (_mm512_maskz_ceil_round_ps): Ditto.
23619 (_mm512_maskz_ceil_round_pd): Ditto.
23620 (_mm512_expand_pd): Ditto.
23621 (_mm512_expand_ps): Ditto.
23622 * config/i386/i386.c (ix86_builtins): Remove
23623 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23624 (bdesc_args): Ditto.
23625 * config/i386/predicates.md (const1256_operand): New.
23626 (const_1_to_2_operand): Ditto.
23627 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23628 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23629 (*avx512pf_gatherpf<mode>sf): Ditto.
23630 (avx512pf_gatherpf<mode>df): Ditto.
23631 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23632 (*avx512pf_gatherpf<mode>df): Ditto.
23633 (avx512pf_scatterpf<mode>sf): Ditto.
23634 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23635 (*avx512pf_scatterpf<mode>sf): Ditto.
23636 (avx512pf_scatterpf<mode>df): Ditto.
23637 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23638 (*avx512pf_scatterpf<mode>df): Ditto.
23639 (avx512f_expand<mode>): Removed.
23640 (<shift_insn><mode>3<mask_name>): Change predicate type.
23642 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23644 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23645 not at the end of datarefs vector use ordered_remove to avoid
23646 reordering datarefs vector.
23649 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23650 mark local addressable non-static vars as GOVD_PRIVATE
23651 instead of GOVD_LOCAL.
23652 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23653 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23656 PR middle-end/60092
23657 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23658 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23659 assume_aligned or alloc_align attributes.
23660 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23661 arguments. Handle also assume_aligned and alloc_align attributes.
23662 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23663 calls to functions with assume_aligned or alloc_align attributes.
23664 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23666 2014-02-08 Terry Guo <terry.guo@arm.com>
23668 * doc/invoke.texi: Document ARM -march=armv7e-m.
23670 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23672 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23673 flag on __cilkrts_rethrow builtin.
23676 * ipa-cp.c (determine_versionability): Fail at -O0
23677 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23678 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23681 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23684 * tree-inline.c (copy_forbidden): Fail for
23685 __attribute__((optimize (0))) functions.
23687 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23689 * varpool.c: Include pointer-set.h.
23690 (varpool_remove_unreferenced_decls): Variables in other partitions
23691 will not be output; be however careful to not lose information
23692 about partitioning.
23694 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23696 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23697 lookup in the vtable constructor.
23699 2014-02-07 Jeff Law <law@redhat.com>
23702 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23703 define_insn_and_split.
23705 * ipa-inline.c (inline_small_functions): Fix typos.
23707 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23709 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23710 (s390_can_use_return_insn): Declare.
23711 * config/s390/s390.h (EPILOGUE_USES): Define.
23712 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23714 (s390_chunkify_start): Handle return JUMP_LABELs.
23715 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23716 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23717 (s390_can_use_return_insn): New functions.
23718 (s390_fix_long_loop_prediction): Handle conditional returns.
23719 (TARGET_SET_UP_BY_PROLOGUE): Define.
23720 * config/s390/s390.md (ANY_RETURN): New code iterator.
23721 (*creturn, *csimple_return, return, simple_return): New patterns.
23723 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23725 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23726 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23727 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23728 REG_CFA_RESTORE list when deciding not to restore a register.
23730 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23732 * config/s390/s390.c: Include tree-pass.h and context.h.
23733 (s390_early_mach): New function, split out from...
23734 (s390_emit_prologue): ...here.
23735 (pass_data_s390_early_mach): New pass structure.
23736 (pass_s390_early_mach): New class.
23737 (s390_option_override): Create and register early_mach pass.
23738 Move to end of file.
23740 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23742 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23743 to match for the exit block.
23745 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23747 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23748 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23749 Reject misaligned operands.
23751 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23753 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23755 2014-02-07 Richard Biener <rguenther@suse.de>
23757 PR middle-end/60092
23758 * gimple-low.c (lower_builtin_posix_memalign): New function.
23759 (lower_stmt): Call it to lower posix_memalign in a way
23760 to make alignment info accessible.
23762 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23765 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23766 __builtin_setjmp_receiver.
23768 2014-02-07 Richard Biener <rguenther@suse.de>
23770 PR middle-end/60092
23771 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23772 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23773 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23774 Handle BUILT_IN_POSIX_MEMALIGN.
23775 (find_func_clobbers): Likewise.
23776 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23777 (call_may_clobber_ref_p_1): Likewise.
23779 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23782 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23785 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23788 * lto-cgraph.c (lto_output_node): Use
23789 symtab_get_symbol_partitioning_class.
23790 (lto_output_varpool_node): likewise.
23791 (symtab_get_symbol_partitioning_class): Move here from
23792 lto/lto-partition.c
23793 * cgraph.h (symbol_partitioning_class): Likewise.
23794 (symtab_get_symbol_partitioning_class): Declare.
23796 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23798 * ggc.h (ggc_internal_cleared_alloc): New macro.
23799 * vec.h (vec_safe_copy): Handle memory stats.
23800 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23801 * target-globals.c (save_target_globals): Likewise.
23803 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23806 * expr.c (emit_move_resolve_push): Export; be bit more selective
23807 on when to clear alias set.
23808 * expr.h (emit_move_resolve_push): Declare.
23809 * function.h (struct function): Add tail_call_marked.
23810 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
23811 * config/i386/i386-protos.h (ix86_expand_push): Remove.
23812 * config/i386/i386.md (TImode move expander): De not call
23814 (FP push expanders): Preserve memory attributes.
23815 * config/i386/sse.md (push<mode>1): Remove.
23816 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
23817 (ix86_expand_push): Remove.
23818 * config/i386/mmx.md (push<mode>1): Remove.
23820 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23822 PR rtl-optimization/60030
23823 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
23824 lopart with paradoxical subreg before shifting it up by hprec.
23826 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23828 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
23829 Remove extra newline at end of file.
23830 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
23831 (arm_issue_rate): Handle cortexa57.
23832 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
23833 (cortex-a57.cortex-a53): Likewise.
23835 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23838 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
23839 don't record in REG_FRAME_RELATED_EXPR registers not set in that
23841 (arm_expand_prologue): Adjust all callers.
23842 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
23843 info, registers also at the lowest numbered registers side. Use
23844 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
23848 * var-tracking.c (adjust_mems): Before adding a SET to
23849 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
23851 2014-02-06 Alan Modra <amodra@gmail.com>
23854 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
23855 change SDmode to DDmode when lra_in_progress.
23857 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23859 PR middle-end/59150
23860 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
23861 free_data_ref on the dr first, and before goto again also set dr
23862 to the next dr. For simd_lane_access, free old datarefs[i] before
23863 overwriting it. For get_vectype_for_scalar_type failure, don't
23864 free_data_ref if simd_lane_access.
23866 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
23869 * tree.h (opts_for_fn): New inline function.
23870 (opt_for_fn): Define.
23871 * config/i386/i386.c (ix86_function_regparm): Use
23872 opt_for_fn (decl, optimize) instead of optimize.
23874 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
23876 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
23877 for SYMBOL_REF in large memory model.
23879 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23881 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
23882 and crypto support.
23883 (cortex-a57): Likewise.
23884 (cortex-a57.cortex-a53): Likewise.
23886 2014-02-06 Yury Gribov <y.gribov@samsung.com>
23887 Kugan Vivekanandarajah <kuganv@linaro.org>
23889 * config/arm/arm.c (arm_vector_alignment_reachable): Check
23891 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
23893 2014-02-06 Richard Biener <rguenther@suse.de>
23895 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
23896 set_loop_copy and initialize_original_copy_tables.
23898 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
23900 * config/aarch64/aarch64-simd.md
23901 (aarch64_ashr_simddi): Change QI to SI.
23903 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23904 Jakub Jelinek <jakub@redhat.com>
23906 PR middle-end/60013
23907 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
23910 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23912 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
23913 CODE_FOR_altivec_vpku[hw]um to
23914 CODE_FOR_altivec_vpku[hw]um_direct.
23915 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
23916 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
23917 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
23918 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
23920 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23922 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
23923 generation for -maltivec=be.
23924 (altivec_vsumsws): Simplify redundant test.
23926 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23928 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
23929 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
23930 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
23931 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
23932 gen_altivec_vpkuwum.
23933 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
23935 (altivec_vpks<VI_char>ss): Likewise.
23936 (altivec_vpks<VI_char>us): Likewise.
23937 (altivec_vpku<VI_char>us): Likewise.
23938 (altivec_vpku<VI_char>um): Likewise.
23939 (altivec_vpku<VI_char>um_direct): New (copy of
23940 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
23942 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
23943 target is little endian and -maltivec=be is not specified.
23944 (*altivec_vupkhs<VU_char>_direct): New (copy of
23945 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
23946 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
23947 target is little endian and -maltivec=be is not specified.
23948 (*altivec_vupkls<VU_char>_direct): New (copy of
23949 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
23950 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
23951 little endian and -maltivec=be is not specified.
23952 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
23953 little endian and -maltivec=be is not specified.
23955 2014-02-05 Richard Henderson <rth@redhat.com>
23958 * combine-stack-adj.c: Revert r206943.
23959 * sched-int.h (struct deps_desc): Add last_args_size.
23960 * sched-deps.c (init_deps): Initialize it.
23961 (sched_analyze_insn): Add OUTPUT dependencies between insns that
23962 contain REG_ARGS_SIZE notes.
23964 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23966 * lto-cgraph.c (asm_nodes_output): Make global.
23967 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
23968 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
23969 (driver_handle_option): Handle OPT_fwpa.
23971 2014-02-05 Jakub Jelinek <jakub@redhat.com>
23974 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
23975 a comment typo and formatting issue. If odr_hash hasn't been
23976 created, return vNULL and set *completep to false.
23978 PR middle-end/57499
23979 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
23980 bb with no successors.
23982 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
23985 * doc/invoke.texi (-march): Clarify documentation for ARM.
23986 (-mtune): Likewise.
23989 2014-02-05 Richard Biener <rguenther@suse.de>
23991 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
23992 when not vectorizing because of too many alias checks.
23993 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23994 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
23996 2014-02-05 Nick Clifton <nickc@redhat.com>
23998 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
23999 accept extended registers in any mode when compiling for the MN10300.
24001 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24003 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24004 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24005 sanitization attributes.
24006 (can_inline_edge_p): Likewise.
24007 (sanitize_attrs_match_for_inline_p): New function.
24009 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24011 * ipa-prop.c (detect_type_change): Shor circuit testing of
24012 type changes on THIS pointer.
24014 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24017 * config/pa/pa.c (legitimize_tls_address): Return original address
24018 if not passed a SYMBOL_REF rtx.
24019 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24021 (pa_emit_move_sequence): Simplify TLS source operands.
24022 (pa_legitimate_constant_p): Reject all TLS constants.
24023 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24024 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24026 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24028 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24029 groups when we know they are controlled by LTO.
24030 * varasm.c (default_binds_local_p_1): If object is in other partition,
24031 it will be resolved locally.
24033 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24035 * config/host-linux.c (linux_gt_pch_use_address): Don't
24036 use SSIZE_MAX because it is not always defined.
24038 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24041 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24042 threshold for pseudo splitting.
24043 (update_ebb_live_info): Process call argument hard registers and
24044 hard registers from insn definition too.
24045 (max_small_class_regs_num): New constant.
24046 (inherit_in_ebb): Update live hard regs through EBBs. Update
24047 reloads_num only for small register classes. Don't split for
24050 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24053 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24056 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24058 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24059 visibility is safe.
24061 2014-02-04 Marek Polacek <polacek@redhat.com>
24063 * gdbinit.in (pel): Define.
24065 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24067 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24070 2014-02-04 Richard Biener <rguenther@suse.de>
24073 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24074 in function context local.
24075 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24076 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24077 similar to LTO_imported_decl_ref.
24079 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24081 PR tree-optimization/60002
24082 * cgraphclones.c (build_function_decl_skip_args): Clear
24083 DECL_LANG_SPECIFIC.
24085 PR tree-optimization/60023
24086 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24087 false to gsi_replace.
24088 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24089 has been in some EH region and vec_stmt could throw, add
24090 vec_stmt into the same EH region.
24091 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24092 has no lhs, ignore it.
24093 * internal-fn.c (expand_MASK_LOAD): Likewise.
24096 * tree-inline.c (copy_forbidden): Fail for
24097 __attribute__((optimize (0))) functions.
24100 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24101 is set, copy one less argument.
24102 (expand_simd_clones): Don't subtract clone_info->inbranch
24103 from simd_clone_struct_alloc argument.
24105 PR rtl-optimization/57915
24106 * recog.c (simplify_while_replacing): If all unary/binary/relational
24107 operation arguments are constant, attempt to simplify those.
24109 PR middle-end/59261
24110 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24111 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24113 2014-02-04 Richard Biener <rguenther@suse.de>
24115 PR tree-optimization/60012
24116 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24117 TBAA disambiguation to all DDRs.
24119 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24122 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24123 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24125 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24128 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24130 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24132 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24133 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24135 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24138 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24139 to figure out targets of polymorphic calls with known decl.
24140 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24141 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24142 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24143 (get_polymorphic_call_info): ... here.
24144 (get_polymorphic_call_info_from_invariant): New function.
24146 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24148 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24149 lookup via vtable pointer; check for type consistency
24150 and turn inconsitent facts into UNREACHABLE.
24151 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24152 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24153 type inconsistent querries; return UNREACHABLE instead.
24155 2014-02-03 Richard Henderson <rth@twiddle.net>
24158 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24159 already processed this node.
24160 (normalize_one_pred_1): Pass along mark_set.
24161 (normalize_one_pred): Create and destroy a pointer_set_t.
24162 (normalize_one_pred_chain): Likewise.
24164 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24166 PR gcov-profile/58602
24167 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24169 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24172 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24173 -fno-devirtualize; try to devirtualize by the knowledge of
24174 virtual table pointer given by aggregate propagation.
24175 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24176 (ipa_print_node_jump_functions): Dump also offset that
24177 is relevant for polymorphic calls.
24178 (determine_known_aggregate_parts): Add arg_type parameter; use it
24179 instead of determining the type from pointer type.
24180 (ipa_compute_jump_functions_for_edge): Update call of
24181 determine_known_aggregate_parts.
24182 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24183 (gimple_get_virt_method_for_binfo): ... here; simplify using
24184 vtable_pointer_value_to_vtable.
24185 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24186 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24187 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24188 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24190 (vtable_pointer_value_to_binfo): ... here.
24191 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24193 2014-02-03 Teresa Johnson <tejohnson@google.com>
24195 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24196 redef of outer loop index variable.
24198 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24202 * doc/extend.texi (Function Attributes): Typo.
24204 2014-02-03 Cong Hou <congh@google.com>
24206 PR tree-optimization/60000
24207 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24208 if the vectorized statement is a store. A store statement can only
24209 appear at the end of pattern statements.
24211 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24213 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24214 (ix86_option_override_internal): Default long double to 64-bit for
24215 32-bit Bionic and to 128-bit for 64-bit Bionic.
24217 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24218 TARGET_LONG_DOUBLE_128 is true.
24219 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24221 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24222 (mlong-double-64): Negate -mlong-double-128.
24223 (mlong-double-128): New option.
24225 * config/i386/i386-c.c (ix86_target_macros): Define
24226 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24228 * doc/invoke.texi: Document -mlong-double-128.
24230 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24232 PR rtl-optimization/60024
24233 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24235 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24237 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24239 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24241 PR rtl-optimization/57662
24242 * sel-sched.c (code_motion_path_driver): Do not mark already not
24243 existing blocks in the visiting bitmap.
24245 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24247 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24248 on the insn being emitted.
24250 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24251 Will Deacon <will.deacon@arm.com>
24253 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24255 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24257 * config/arm/arm-tables.opt: Regenerate.
24259 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24261 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24262 for vector types other than V16QImode.
24263 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24264 define_expand, and call altivec_expand_vec_perm_le when producing
24265 code with little endian element order.
24266 (*altivec_vperm_<mode>_internal): New insn having previous
24267 behavior of altivec_vperm_<mode>.
24268 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24269 altivec_expand_vec_perm_le when producing code with little endian
24271 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24272 behavior of altivec_vperm_<mode>_uns.
24274 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24276 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24277 (altivec_vsumsws): Add handling for -maltivec=be with a little
24279 (altivec_vsumsws_direct): New.
24280 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24281 gen_altivec_vsumsws.
24283 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24285 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24286 vtable_pointer_value_to_binfo): New functions.
24287 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24288 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24290 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24292 * config/nios2/nios2.md (load_got_register): Initialize GOT
24293 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24294 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24296 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24298 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24299 preserverd by passthrough, do not propagate the type.
24301 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24303 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24304 (mips_atomic_assign_expand_fenv): New function.
24305 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24307 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24309 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24310 (__builtin_mips_set_fcsr): Likewise.
24311 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24312 MIPS_USI_FTYPE_VOID.
24313 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24314 (mips16_expand_set_fcsr): Likewise.
24315 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24316 (mips16_set_fcsr_stub): Likewise.
24317 (mips16_get_fcsr_one_only_stub): New class.
24318 (mips16_set_fcsr_one_only_stub): Likewise.
24319 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24320 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24321 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24322 (hard_float): New availability predicate.
24323 (mips_builtins): Add get_fcsr and set_fcsr.
24324 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24325 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24326 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24327 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24328 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24331 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24333 * config/mips/mips.c (mips_one_only_stub): New class.
24334 (mips_need_mips16_rdhwr_p): Replace with...
24335 (mips16_rdhwr_stub): ...this new variable.
24336 (mips16_stub_call_address): New function.
24337 (mips16_rdhwr_one_only_stub): New class.
24338 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24339 (mips_output_mips16_rdhwr): Delete.
24340 (mips_finish_stub): New function.
24341 (mips_code_end): Use it to handle rdhwr stubs.
24343 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24346 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24347 when calculating size of integer atomic types.
24349 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24351 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24353 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24355 PR tree-optimization/60003
24356 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24357 * profile.c (branch_prob): Use gimple_call_builtin_p
24358 to check for BUILT_IN_SETJMP_RECEIVER.
24359 * tree-inline.c (copy_bb): Call notice_special_calls.
24361 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24364 * lra-constraints.c (process_alt_operands): Update reload_sum only
24367 2014-01-31 Richard Henderson <rth@redhat.com>
24369 PR middle-end/60004
24370 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24371 until after else_eh is processed.
24373 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24375 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24376 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24377 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24378 in smmintrin.h, remove them.
24379 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24380 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24381 * config/i386/i386.md (ROUND_SAE): Fix value.
24382 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24383 (const48_operand): New.
24384 * config/i386/subst.md (round), (round_expand): Use
24385 const_4_or_8_to_11_operand.
24386 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24388 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24390 * config/i386/constraints.md (Yk): Swap meaning with k.
24391 * config/i386/i386.md (movhi_internal): Change Yk to k.
24392 (movqi_internal): Ditto.
24393 (*k<logic><mode>): Ditto.
24396 (kandn<mode>): Ditto.
24397 (*<code>hi_1): Ditto.
24398 (*<code>qi_1): Ditto.
24399 (kxnor<mode>): Ditto.
24400 (kortestzhi): Ditto.
24401 (kortestchi): Ditto.
24403 (*one_cmplhi2_1): Ditto.
24404 (*one_cmplqi2_1): Ditto.
24405 * config/i386/sse.md (): Change k to Yk.
24406 (avx512f_load<mode>_mask): Ditto.
24407 (avx512f_blendm<mode>): Ditto.
24408 (avx512f_store<mode>_mask): Ditto.
24409 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24410 (avx512f_storedqu<mode>_mask): Ditto.
24411 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24413 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24414 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24415 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24416 (avx512f_maskcmp<mode>3): Ditto.
24417 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24418 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24419 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24420 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24421 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24422 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24423 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24424 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24425 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24426 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24427 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24428 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24429 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24430 (vec_extract_lo_<mode>_maskm): Ditto.
24431 (vec_extract_hi_<mode>_maskm): Ditto.
24432 (avx512f_vternlog<mode>_mask): Ditto.
24433 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24434 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24435 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24436 (avx512f_<code>v8div16qi2_mask): Ditto.
24437 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24438 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24439 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24440 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24441 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24442 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24443 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24444 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24445 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24446 (avx512cd_maskb_vec_dupv8di): Ditto.
24447 (avx512cd_maskw_vec_dupv16si): Ditto.
24448 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24449 (avx512f_vpermi2var<mode>3_mask): Ditto.
24450 (avx512f_vpermi2var<mode>3_mask): Ditto.
24451 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24452 (*avx512f_gathersi<mode>): Ditto.
24453 (*avx512f_gathersi<mode>_2): Ditto.
24454 (*avx512f_gatherdi<mode>): Ditto.
24455 (*avx512f_gatherdi<mode>_2): Ditto.
24456 (*avx512f_scattersi<mode>): Ditto.
24457 (*avx512f_scatterdi<mode>): Ditto.
24458 (avx512f_compress<mode>_mask): Ditto.
24459 (avx512f_compressstore<mode>_mask): Ditto.
24460 (avx512f_expand<mode>_mask): Ditto.
24461 * config/i386/subst.md (mask): Change k to Yk.
24462 (mask_scalar_merge): Ditto.
24465 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24467 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24469 2014-01-31 Richard Biener <rguenther@suse.de>
24471 PR middle-end/59990
24472 * builtins.c (fold_builtin_memory_op): Make sure to not
24473 use a floating-point mode or a boolean or enumeral type for
24474 the copy operation.
24476 2014-01-30 DJ Delorie <dj@redhat.com>
24478 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24479 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24480 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24481 whenever main() has an epilogue.
24483 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24485 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24486 unused variable "field".
24487 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24488 (vsx_mergeh_<mode>): Likewise.
24489 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24490 (altivec_vmrghh): Likewise.
24491 (altivec_vmrghw): Likewise.
24492 (altivec_vmrglb): Likewise.
24493 (altivec_vmrglh): Likewise.
24494 (altivec_vmrglw): Likewise.
24495 (altivec_vspltb): Add missing uses.
24496 (altivec_vsplth): Likewise.
24497 (altivec_vspltw): Likewise.
24498 (altivec_vspltsf): Likewise.
24500 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24503 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24504 frame related instructions.
24506 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24508 PR rtl-optimization/59959
24509 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24510 any reload of register whose subreg is invalid.
24512 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24514 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24515 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24516 Add missing return type - void.
24518 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24520 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24521 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24522 remove element index adjustment for endian (now handled in vsx.md
24524 (altivec_expand_vec_perm_const): Use
24525 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24526 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24527 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24528 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24529 define_expand and a new define_insn *altivec_vspltb_internal;
24530 adjust for -maltivec=be on a little endian target.
24531 (altivec_vspltb_direct): New.
24532 (altivec_vsplth): Divide into a define_expand and a new
24533 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24534 little endian target.
24535 (altivec_vsplth_direct): New.
24536 (altivec_vspltw): Divide into a define_expand and a new
24537 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24538 little endian target.
24539 (altivec_vspltw_direct): New.
24540 (altivec_vspltsf): Divide into a define_expand and a new
24541 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24542 a little endian target.
24544 2014-01-30 Richard Biener <rguenther@suse.de>
24546 PR tree-optimization/59993
24547 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24548 can propagate form the earlier stmt and avoid the transform
24549 when the intermediate result is needed.
24551 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24553 * README.Portability: Fix typo.
24555 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24557 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24558 comparison_operator with ordered_comparison_operator.
24560 2014-01-30 Nick Clifton <nickc@redhat.com>
24562 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24563 Rename to mn10300_store_multiple_regs.
24564 * config/mn10300/mn10300.c: Likewise.
24565 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24566 store_multiple_regs.
24567 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24568 Call mn10300_store_multiple_regs.
24570 2014-01-30 Nick Clifton <nickc@redhat.com>
24571 DJ Delorie <dj@redhat.com>
24573 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24574 %fp 2 to keep registers after it properly word-aligned.
24575 (rl78_alloc_physical_registers_umul): Handle the case where both
24576 input operands are the same.
24578 2014-01-30 Richard Biener <rguenther@suse.de>
24580 PR tree-optimization/59903
24581 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24584 2014-01-30 Jason Merrill <jason@redhat.com>
24587 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24590 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24592 2014-01-30 Richard Biener <rguenther@suse.de>
24594 PR tree-optimization/59951
24595 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24597 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24600 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24601 SFmode to DFmode case.
24603 2014-01-29 DJ Delorie <dj@redhat.com>
24605 * config/msp430/msp430.opt (-minrt): New.
24606 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24608 (ENDFILE_SPEC): Likewise.
24610 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24612 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24613 (estimate_function_body_sizes): Use it.
24615 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24618 * dwarf2out.c (is_cxx_auto): New.
24619 (is_base_type): Use it.
24620 (gen_type_die_with_usage): Likewise.
24622 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24624 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24625 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24626 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24627 -maltivec=be with LE targets.
24628 (vsx_mergeh_<mode>): Likewise.
24629 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24630 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24631 (altivec_vmrghb): Replace with define_expand and new
24632 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24633 (altivec_vmrghb_direct): New define_insn.
24634 (altivec_vmrghh): Replace with define_expand and new
24635 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24636 (altivec_vmrghh_direct): New define_insn.
24637 (altivec_vmrghw): Replace with define_expand and new
24638 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24639 (altivec_vmrghw_direct): New define_insn.
24640 (*altivec_vmrghsf): Adjust for endianness.
24641 (altivec_vmrglb): Replace with define_expand and new
24642 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24643 (altivec_vmrglb_direct): New define_insn.
24644 (altivec_vmrglh): Replace with define_expand and new
24645 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24646 (altivec_vmrglh_direct): New define_insn.
24647 (altivec_vmrglw): Replace with define_expand and new
24648 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24649 (altivec_vmrglw_direct): New define_insn.
24650 (*altivec_vmrglsf): Adjust for endianness.
24651 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24652 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24653 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24654 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24655 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24656 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24657 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24658 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24660 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24662 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24663 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24666 2014-01-29 Richard Biener <rguenther@suse.de>
24668 PR tree-optimization/58742
24669 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24670 associate_pointerplus_align.
24671 (associate_pointerplus_diff): New function.
24672 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24673 and associate_pointerplus_diff.
24675 2014-01-29 Richard Biener <rguenther@suse.de>
24677 * lto-streamer.h (LTO_major_version): Bump to 3.
24678 (LTO_minor_version): Reset to 0.
24680 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24682 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24683 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24684 (arm_file_start): Generate correct asm header for armv7ve.
24685 * config/arm/bpabi.h: Add multilib support for armv7ve.
24686 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24687 and cortex-a15 to armv7ve.
24688 * config/arm/t-aprofile: Add multilib support for armv7ve.
24689 * doc/invoke.texi: Document -march=armv7ve.
24691 2014-01-29 Richard Biener <rguenther@suse.de>
24693 PR tree-optimization/58742
24694 * tree-ssa-forwprop.c (associate_plusminus): Return true
24695 if we changed sth, defer EH cleanup to ...
24696 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24697 (simplify_mult): New function.
24699 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24701 PR middle-end/59917
24702 PR tree-optimization/59920
24703 * tree.c (build_common_builtin_nodes): Remove
24704 __builtin_setjmp_dispatcher initialization.
24705 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24706 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24707 instead of gsi_after_labels + manually skipping debug stmts.
24708 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24709 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24710 * tree-inline.c (copy_edges_for_bb): Remove
24711 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24712 argument. Ignore computed_goto_p stmts. Don't call
24713 make_abnormal_goto_edges. If a call might need abnormal edges
24714 for non-local gotos, see if it already has an edge to
24715 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24716 with true argument, don't do anything then, otherwise add
24717 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24718 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24720 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24721 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24722 (lower_stmt): Don't set data->calls_builtin_setjmp.
24723 (lower_builtin_setjmp): Adjust comment.
24724 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24725 * tree-cfg.c (found_computed_goto): Remove.
24726 (factor_computed_gotos): Remove.
24727 (make_goto_expr_edges): Return bool, true for computed gotos.
24728 Don't call make_abnormal_goto_edges.
24729 (build_gimple_cfg): Don't set found_computed_goto, don't call
24730 factor_computed_gotos.
24731 (computed_goto_p): No longer static.
24732 (make_blocks): Don't set found_computed_goto.
24733 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24734 (make_edges): If make_goto_expr_edges returns true, push bb
24735 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24736 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24737 vector. Record mapping between bbs and OpenMP regions if there
24738 are any, adjust make_gimple_omp_edges caller. Call
24739 handle_abnormal_edges.
24740 (make_abnormal_goto_edges): Remove.
24741 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24742 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24743 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24744 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24745 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24746 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24747 filling *region also set *region_idx to (*region)->entry->index.
24750 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24751 For REGs set ORIGINAL_REGNO.
24753 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24755 * doc/md.texi: Mention that a target shouldn't implement
24756 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24759 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24761 PR tree-optimization/59594
24762 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24763 a copy of the datarefs vector rather than the vector itself.
24765 2014-01-28 Jason Merrill <jason@redhat.com>
24768 * dwarf2out.c (auto_die): New static.
24769 (gen_type_die_with_usage): Handle C++1y 'auto'.
24770 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24773 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24776 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24777 (SPEC_X32): Likewise.
24778 (SPEC_64): Likewise.
24779 * config/i386/i386.c (ix86_option_override_internal): Turn off
24780 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24782 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24783 * config/i386/i386.h (TARGET_16BIT): New macro.
24784 (TARGET_16BIT_P): Likewise.
24785 * config/i386/i386.opt: Add m16.
24786 * doc/invoke.texi: Document -m16.
24788 2014-01-28 Jakub Jelinek <jakub@redhat.com>
24790 PR preprocessor/59935
24791 * input.c (location_get_source_line): Bail out on when line number
24792 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24794 2014-01-28 Richard Biener <rguenther@suse.de>
24796 PR tree-optimization/58742
24797 * tree-ssa-forwprop.c (associate_plusminus): Handle
24798 pointer subtraction of the form (T)(P + A) - (T)P.
24800 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24802 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24805 2014-01-28 Richard Biener <rguenther@suse.de>
24808 2014-01-28 Richard Biener <rguenther@suse.de>
24810 PR rtl-optimization/45364
24811 PR rtl-optimization/59890
24812 * var-tracking.c (local_get_addr_clear_given_value): Handle
24813 already cleared slot.
24814 (val_reset): Handle not allocated local_get_addr_cache.
24815 (vt_find_locations): Use post-order on the inverted CFG.
24817 2014-01-28 Richard Biener <rguenther@suse.de>
24819 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
24821 2014-01-28 Richard Biener <rguenther@suse.de>
24823 PR rtl-optimization/45364
24824 PR rtl-optimization/59890
24825 * var-tracking.c (local_get_addr_clear_given_value): Handle
24826 already cleared slot.
24827 (val_reset): Handle not allocated local_get_addr_cache.
24828 (vt_find_locations): Use post-order on the inverted CFG.
24830 2014-01-28 Alan Modra <amodra@gmail.com>
24832 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
24833 * configure.ac <recursive call for build != host>: Define
24834 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
24835 and LD_FOR_BUILD too.
24836 * configure: Regenerate.
24838 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
24840 * config/i386/i386.c (get_builtin_code_for_version): Separate
24841 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
24842 Broadwell from Haswell.
24844 2014-01-27 Steve Ellcey <sellcey@mips.com>
24846 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24847 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
24848 * config/mips/mips.c (mips_option_override): Change setting
24850 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
24851 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
24852 Change from Mask to Var.
24854 2014-01-27 Jeff Law <law@redhat.com>
24856 * ipa-inline.c (inline_small_functions): Fix typo.
24858 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
24860 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
24861 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
24862 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
24863 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
24864 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
24865 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
24866 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
24867 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
24868 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
24869 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
24870 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
24871 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
24872 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
24873 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
24874 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
24875 (_mm512_storeu_epi64): Ditto.
24876 (_mm512_cmpge_epi32_mask): Ditto.
24877 (_mm512_cmpge_epu32_mask): Ditto.
24878 (_mm512_cmpge_epi64_mask): Ditto.
24879 (_mm512_cmpge_epu64_mask): Ditto.
24880 (_mm512_cmple_epi32_mask): Ditto.
24881 (_mm512_cmple_epu32_mask): Ditto.
24882 (_mm512_cmple_epi64_mask): Ditto.
24883 (_mm512_cmple_epu64_mask): Ditto.
24884 (_mm512_cmplt_epi32_mask): Ditto.
24885 (_mm512_cmplt_epu32_mask): Ditto.
24886 (_mm512_cmplt_epi64_mask): Ditto.
24887 (_mm512_cmplt_epu64_mask): Ditto.
24888 (_mm512_cmpneq_epi32_mask): Ditto.
24889 (_mm512_cmpneq_epu32_mask): Ditto.
24890 (_mm512_cmpneq_epi64_mask): Ditto.
24891 (_mm512_cmpneq_epu64_mask): Ditto.
24892 (_mm512_expand_pd): Ditto.
24893 (_mm512_expand_ps): Ditto.
24894 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
24895 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
24896 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
24897 * config/i386/i386.c (ix86_builtins): Add
24898 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
24899 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
24900 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
24901 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
24902 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
24903 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
24904 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
24905 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
24906 IX86_BUILTIN_PMOVUSQW512_MEM.
24907 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
24908 __builtin_ia32_pmovsqd512mem_mask,
24909 __builtin_ia32_pmovqd512mem_mask,
24910 __builtin_ia32_pmovusqw512mem_mask,
24911 __builtin_ia32_pmovsqw512mem_mask,
24912 __builtin_ia32_pmovqw512mem_mask,
24913 __builtin_ia32_pmovusdw512mem_mask,
24914 __builtin_ia32_pmovsdw512mem_mask,
24915 __builtin_ia32_pmovdw512mem_mask,
24916 __builtin_ia32_pmovqb512mem_mask,
24917 __builtin_ia32_pmovusqb512mem_mask,
24918 __builtin_ia32_pmovsqb512mem_mask,
24919 __builtin_ia32_pmovusdb512mem_mask,
24920 __builtin_ia32_pmovsdb512mem_mask,
24921 __builtin_ia32_pmovdb512mem_mask.
24922 (bdesc_args): Add __builtin_ia32_expanddf512,
24923 __builtin_ia32_expandsf512.
24924 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
24925 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
24926 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
24927 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
24928 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
24929 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
24930 (avx512f_<code>v8div16qi2_mask_store): This.
24931 (avx512f_expand<mode>): New.
24933 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
24935 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
24937 (_mm512_mask_prefetch_i64gather_pd): Ditto.
24938 (_mm512_prefetch_i32scatter_pd): Ditto.
24939 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
24940 (_mm512_prefetch_i64scatter_pd): Ditto.
24941 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
24942 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
24943 (_mm512_mask_prefetch_i64gather_ps): Ditto.
24944 (_mm512_prefetch_i32scatter_ps): Ditto.
24945 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
24946 (_mm512_prefetch_i64scatter_ps): Ditto.
24947 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
24948 * config/i386/i386-builtin-types.def: Define
24949 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
24950 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
24951 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
24952 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
24953 IX86_BUILTIN_SCATTERPFQPD.
24954 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
24955 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
24956 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
24957 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
24958 __builtin_ia32_scatterpfqps.
24959 (ix86_expand_builtin): Expand new built-ins.
24960 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
24961 fix memory access data type.
24962 (*avx512pf_gatherpf<mode>_mask): Ditto.
24963 (*avx512pf_gatherpf<mode>): Ditto.
24964 (avx512pf_scatterpf<mode>): Ditto.
24965 (*avx512pf_scatterpf<mode>_mask): Ditto.
24966 (*avx512pf_scatterpf<mode>): Ditto.
24967 (GATHER_SCATTER_SF_MEM_MODE): New.
24968 (avx512pf_gatherpf<mode>df): Ditto.
24969 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24970 (*avx512pf_scatterpf<mode>df): Ditto.
24972 2014-01-27 Jakub Jelinek <jakub@redhat.com>
24975 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
24976 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
24979 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24981 * common/config/arm/arm-common.c
24982 (arm_rewrite_mcpu): Handle multiple names.
24984 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24986 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24988 * gimple-builder.h (create_gimple_tmp): Delete.
24990 2014-01-27 Christian Bruel <christian.bruel@st.com>
24992 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
24995 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
24997 * config/pa/pa.md (call): Generate indirect long calls to non-local
24998 functions when outputing 32-bit code.
24999 (call_value): Likewise except for special call to buggy powf function.
25001 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25002 portable runtime and PIC indirect calls.
25003 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25004 and PIC call sequences. Use ldo instead of blr to set return register
25005 in PIC call sequence.
25007 2014-01-25 Walter Lee <walt@tilera.com>
25009 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25010 avoid clobbering a live register.
25012 2014-01-25 Walter Lee <walt@tilera.com>
25014 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25015 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25016 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25017 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25019 2014-01-25 Walter Lee <walt@tilera.com>
25021 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25022 arguments on even registers.
25023 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25025 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25026 (BIGGEST_ALIGNMENT): Ditto.
25027 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25029 2014-01-25 Walter Lee <walt@tilera.com>
25031 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25032 insns before bundling.
25033 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25035 2014-01-25 Walter Lee <walt@tilera.com>
25037 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25038 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25039 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25041 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25043 * config/mips/constraints.md (kl): Delete.
25044 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25045 define expands, using...
25046 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25047 instructions for MIPS16.
25048 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25049 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25051 2014-01-25 Walter Lee <walt@tilera.com>
25053 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25057 2014-01-25 Walter Lee <walt@tilera.com>
25059 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25060 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25062 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25064 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25067 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25069 * print-rtl.c (in_call_function_usage): New var.
25070 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25071 EXPR_LIST mode as mode and not as reg note name.
25073 PR middle-end/59561
25074 * cfgloopmanip.c (copy_loop_info): If
25075 loop->warned_aggressive_loop_optimizations, make sure
25076 the flag is set in target loop too.
25078 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25080 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25082 * builtins.def: Likewise.
25083 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25084 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25085 * ira.c (ira_setup_eliminable_regset): Likewise.
25086 * omp-low.c (gate_expand_omp): Likewise.
25087 (execute_lower_omp): Likewise.
25088 (diagnose_sb_0): Likewise.
25089 (gate_diagnose_omp_blocks): Likewise.
25090 (simd_clone_clauses_extract): Likewise.
25093 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25095 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25096 correction for little endian...
25097 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25100 2014-01-24 Jeff Law <law@redhat.com>
25102 PR tree-optimization/59919
25103 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25104 for non-returning calls.
25106 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25108 * common/config/aarch64/aarch64-common.c
25109 (aarch64_rewrite_mcpu): Handle multiple names.
25110 * config/aarch64/aarch64.h
25111 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25113 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25115 * input.c (add_file_to_cache_tab): Handle the case where fopen
25118 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25121 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25122 from push operand if code of push isn't PRE_DEC.
25124 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25127 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25128 -mquad-memory-atomic. Update -mquad-memory documentation to say
25129 it is only used for non-atomic loads/stores.
25131 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25132 -mquad-memory or -mquad-memory-atomic switches.
25134 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25135 -mquad-memory-atomic to ISA 2.07 support.
25137 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25138 to separate support of normal quad word memory operations (ldq, stq)
25139 from the atomic quad word memory operations.
25141 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25142 support to separate non-atomic quad word operations from atomic
25143 quad word operations. Disable non-atomic quad word operations in
25144 little endian mode so that we don't have to swap words after the
25145 load and before the store.
25146 (quad_load_store_p): Add comment about atomic quad word support.
25147 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25148 options printed with -mdebug=reg.
25150 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25151 -mquad-memory-atomic as the test for whether we have quad word
25152 atomic instructions.
25153 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25154 or -mp8-vector are used, allow byte/half-word atomic operations.
25156 * config/rs6000/sync.md (load_lockedti): Insure that the address
25157 is a proper indexed or indirect address for the lqarx instruction.
25158 On little endian systems, swap the hi/lo registers after the lqarx
25160 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25161 insure the address is valid for the lqarx instruction.
25162 (store_conditionalti): Insure that the address is a proper indexed
25163 or indirect address for the stqcrx. instruction. On little endian
25164 systems, swap the hi/lo registers before doing the stqcrx.
25166 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25167 insure the address is valid for the stqcrx. instruction.
25169 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25170 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25171 type of quad memory support is available.
25173 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25175 PR regression/59915
25176 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25177 there is a danger of looping.
25179 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25181 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25182 force flag_ira_loop_pressure if set via command line.
25184 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25186 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25187 (ashr_simd): New builtin handling DI mode.
25188 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25189 (aarch64_sshr_simddi): New match pattern.
25190 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25191 (vshrd_n_s64): Likewise.
25192 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25194 2014-01-23 Nick Clifton <nickc@redhat.com>
25196 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25197 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25198 favour of mcu specific scripts.
25199 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25202 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25203 Alex Velenko <Alex.Velenko@arm.com>
25205 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25206 (vaddv_s16): Likewise.
25207 (vaddv_s32): Likewise.
25208 (vaddv_u8): Likewise.
25209 (vaddv_u16): Likewise.
25210 (vaddv_u32): Likewise.
25211 (vaddvq_s8): Likewise.
25212 (vaddvq_s16): Likewise.
25213 (vaddvq_s32): Likewise.
25214 (vaddvq_s64): Likewise.
25215 (vaddvq_u8): Likewise.
25216 (vaddvq_u16): Likewise.
25217 (vaddvq_u32): Likewise.
25218 (vaddvq_u64): Likewise.
25219 (vaddv_f32): Likewise.
25220 (vaddvq_f32): Likewise.
25221 (vaddvq_f64): Likewise.
25222 (vmaxv_f32): Likewise.
25223 (vmaxv_s8): Likewise.
25224 (vmaxv_s16): Likewise.
25225 (vmaxv_s32): Likewise.
25226 (vmaxv_u8): Likewise.
25227 (vmaxv_u16): Likewise.
25228 (vmaxv_u32): Likewise.
25229 (vmaxvq_f32): Likewise.
25230 (vmaxvq_f64): Likewise.
25231 (vmaxvq_s8): Likewise.
25232 (vmaxvq_s16): Likewise.
25233 (vmaxvq_s32): Likewise.
25234 (vmaxvq_u8): Likewise.
25235 (vmaxvq_u16): Likewise.
25236 (vmaxvq_u32): Likewise.
25237 (vmaxnmv_f32): Likewise.
25238 (vmaxnmvq_f32): Likewise.
25239 (vmaxnmvq_f64): Likewise.
25240 (vminv_f32): Likewise.
25241 (vminv_s8): Likewise.
25242 (vminv_s16): Likewise.
25243 (vminv_s32): Likewise.
25244 (vminv_u8): Likewise.
25245 (vminv_u16): Likewise.
25246 (vminv_u32): Likewise.
25247 (vminvq_f32): Likewise.
25248 (vminvq_f64): Likewise.
25249 (vminvq_s8): Likewise.
25250 (vminvq_s16): Likewise.
25251 (vminvq_s32): Likewise.
25252 (vminvq_u8): Likewise.
25253 (vminvq_u16): Likewise.
25254 (vminvq_u32): Likewise.
25255 (vminnmv_f32): Likewise.
25256 (vminnmvq_f32): Likewise.
25257 (vminnmvq_f64): Likewise.
25259 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25261 * config/aarch64/aarch64-simd.md
25262 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25263 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25264 (*aarch64_mul3_elt<mode>): Likewise.
25265 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25266 (*aarch64_mul3_elt_to_64v2df): Likewise.
25267 (*aarch64_mla_elt<mode>): Likewise.
25268 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25269 (*aarch64_mls_elt<mode>): Likewise.
25270 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25271 (*aarch64_fma4_elt<mode>): Likewise.
25272 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25273 (*aarch64_fma4_elt_to_64v2df): Likewise.
25274 (*aarch64_fnma4_elt<mode>): Likewise.
25275 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25276 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25277 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25278 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25279 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25280 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25281 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25282 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25283 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25285 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25287 * config/aarch64/aarch64-simd.md
25288 (aarch64_be_checked_get_lane<mode>): New define_expand.
25289 * config/aarch64/aarch64-simd-builtins.def
25290 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25291 New builtin definition.
25292 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25293 Use new safe be builtin.
25295 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25297 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25299 (aarch64_be_st1<mode>): Likewise.
25300 (aarch_ld1<VALL:mode>): Define_expand modified.
25301 (aarch_st1<VALL:mode>): Likewise.
25302 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25303 (UNSPEC_ST1): Likewise.
25305 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25307 * config/microblaze/microblaze.md: Add trap insn and attribute
25309 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25311 PR preprocessor/58580
25312 * input.h (location_get_source_line): Take an additional line_size
25314 (void diagnostics_file_cache_fini): Declare new function.
25315 * input.c (struct fcache): New type.
25316 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25317 New static constants.
25318 (diagnostic_file_cache_init, total_lines_num)
25319 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25320 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25321 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25322 (get_next_line, read_next_line, goto_next_line, read_line_num):
25323 New static function definitions.
25324 (diagnostic_file_cache_fini): New function.
25325 (location_get_source_line): Take an additional output line_len
25326 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25328 * diagnostic.c (diagnostic_finish): Call
25329 diagnostic_file_cache_fini.
25330 (adjust_line): Take an additional input parameter for the length
25331 of the line, rather than calculating it with strlen.
25332 (diagnostic_show_locus): Adjust the use of
25333 location_get_source_line and adjust_line with respect to their new
25334 signature. While displaying a line now, do not stop at the first
25335 null byte. Rather, display the zero byte as a space and keep
25336 going until we reach the size of the line.
25337 * Makefile.in: Add vec.o to OBJS-libcommon
25339 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25340 Ilya Tocar <ilya.tocar@intel.com>
25342 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25343 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25344 (__builtin_ia32_kmov16): Ditto.
25345 * config/i386/i386.md (UNSPEC_KMOV): New.
25348 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25350 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25351 (_mm512_storeu_si512): Ditto.
25353 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25356 * rtl.h (get_referenced_operands): Declare.
25357 * recog.c (get_referenced_operands): New function.
25358 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25359 operands have been referenced when recording LO_SUM references.
25361 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25363 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25365 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25367 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25368 Enable for generic and recent AMD targets.
25370 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25372 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25373 ARG_SIZE note when adjustment was eliminated.
25375 2014-01-22 Jeff Law <law@redhat.com>
25377 PR tree-optimization/59597
25378 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25379 in file. Accept new argument REGISTERING and use it to modify
25380 dump output appropriately.
25381 (register_jump_thread): Corresponding changes.
25382 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25383 thread paths involving joiner blocks. Add code to dump cancelled
25384 jump threading paths.
25386 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25388 PR rtl-optimization/59477
25389 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25390 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25392 2014-01-22 Tom Tromey <tromey@redhat.com>
25394 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25396 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25398 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25400 PR rtl-optimization/59896
25401 * lra-constraints.c (process_alt_operands): Check unused note for
25402 matched operands of insn with no output reloads.
25404 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25406 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25407 (mips_move_from_gpr_cost): Likewise.
25409 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25411 PR rtl-optimization/59858
25412 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25413 ira_class_hard_regs_num.
25414 (process_alt_operands): Increase reject for dying matched operand.
25416 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25419 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25420 smaller than size, perform several stores or loads and stores
25421 at dst + count - size to store or copy all of size bytes, rather
25422 than just last modesize bytes.
25424 2014-01-20 DJ Delorie <dj@redhat.com>
25426 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25427 that CLOBBERs are REGs before propogating their values.
25429 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25431 PR middle-end/59789
25432 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25433 (cgraph_inline_failed_type): New function.
25434 * cgraph.h (DEFCIFCODE): Add type.
25435 (cgraph_inline_failed_type_t): New enum.
25436 (cgraph_inline_failed_type): New prototype.
25437 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25438 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25439 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25440 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25441 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25442 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25443 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25444 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25445 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25446 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25447 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25448 OPTIMIZATION_MISMATCH.
25449 * tree-inline.c (expand_call_inline): Emit errors during
25450 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25452 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25455 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25456 mode attribute in insn output.
25458 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25460 * output.h (output_constant): Delete.
25461 * varasm.c (output_constant): Make private.
25463 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25465 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25467 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25469 PR middle-end/59860
25470 * tree.h (fold_builtin_strcat): New prototype.
25471 * builtins.c (fold_builtin_strcat): No longer static. Add len
25472 argument, if non-NULL, don't call c_strlen. Optimize
25473 directly into __builtin_memcpy instead of __builtin_strcpy.
25474 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25475 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25477 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25479 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25480 for SImode_address_operand operands, having only a REG argument.
25482 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25484 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25485 loader name using mbig-endian.
25486 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25488 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25490 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25491 (-mtune): Likewise.
25494 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25496 * config/aarch64/aarch64-protos.h
25497 (aarch64_cannot_change_mode_class_ptr): Declare.
25498 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25499 aarch64_cannot_change_mode_class_ptr): New.
25500 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25501 backend hook aarch64_cannot_change_mode_class.
25503 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25505 * common/config/aarch64/aarch64-common.c
25506 (aarch64_handle_option): Don't handle any option order logic here.
25507 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25508 selected_cpu, warn on architecture version mismatch.
25509 (aarch64_override_options): Fix parsing order for option strings.
25511 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25512 Iain Sandoe <iain@codesourcery.com>
25515 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25516 warning. Amend comment to reflect current functionality.
25518 2014-01-20 Richard Biener <rguenther@suse.de>
25520 PR middle-end/59860
25521 * builtins.c (fold_builtin_strcat): Remove case better handled
25522 by tree-ssa-strlen.c.
25524 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25526 * config/aarch64/aarch64.opt
25527 (mcpu, march, mtune): Make case-insensitive.
25529 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25532 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25533 if operands[1] is a REG or ZERO_EXTEND of a REG.
25535 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25537 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25539 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25541 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25542 long non-pic millicode calls.
25544 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25546 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25548 2014-01-19 Kito Cheng <kito@0xlab.org>
25550 * builtins.c (expand_movstr): Check movstr expand done or fail.
25552 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25553 H.J. Lu <hongjiu.lu@intel.com>
25556 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25557 to DImode for zero-extended addresses.
25559 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25561 PR rtl-optimization/57763
25562 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25563 on the new indirect jump_insn and increment LABEL_NUSES (label).
25565 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25569 * config.gcc (x86_archs): New variable.
25570 (x86_64_archs): Likewise.
25571 (x86_cpus): Likewise.
25572 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25573 --with-arch/--with-cpu= options.
25574 Support --with-arch=/--with-cpu={nehalem,westmere,
25575 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25577 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25579 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25580 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25582 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25584 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25586 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25589 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25590 clear cpp_get_options (parse_in)->warn_unused_macros for
25591 ix86_target_macros_internal with cpp_define.
25593 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25595 * jump.c (delete_related_insns): Keep (use (insn))s.
25596 * reorg.c (redundant_insn): Check for barriers too.
25598 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25600 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25602 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25604 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25605 call to $$dyncall when TARGET_LONG_CALLS is true.
25607 2014-01-17 Jeff Law <law@redhat.com>
25609 * ree.c (combine_set_extension): Temporarily disable test for
25610 changing number of hard registers.
25612 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25614 PR middle-end/58125
25615 * ipa-inline-analysis.c (inline_free_summary):
25616 Do not free summary of aliases.
25618 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25620 PR middle-end/59706
25621 * gimplify.c (gimplify_expr): Use create_tmp_var
25622 instead of create_tmp_var_raw. If cond doesn't have
25623 integral type, don't add the IFN_ANNOTATE builtin at all.
25625 2014-01-17 Martin Jambor <mjambor@suse.cz>
25628 * ipa-cp.c (prev_edge_clone): New variable.
25629 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25630 Also resize prev_edge_clone vector.
25631 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25632 (ipcp_edge_removal_hook): New function.
25633 (ipcp_driver): Register ipcp_edge_removal_hook.
25635 2014-01-17 Andrew Pinski <apinski@cavium.com>
25636 Steve Ellcey <sellcey@mips.com>
25639 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25642 2014-01-17 Jeff Law <law@redhat.com>
25644 PR middle-end/57904
25645 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25646 so that pass_ccp runs first.
25648 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25650 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25651 (ix86_adjust_cost): Use !TARGET_XXX.
25652 (do_reorder_for_imul): Likewise.
25653 (swap_top_of_ready_list): Likewise.
25654 (ix86_sched_reorder): Likewise.
25656 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25658 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25659 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25660 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25661 (intel_memset): New. Duplicate slm_memset.
25662 (intel_cost): New. Duplicate slm_cost.
25663 (m_INTEL): New macro.
25664 (processor_target_table): Add "intel".
25665 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25666 with PROCESSOR_INTEL for "intel".
25667 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25668 PROCESSOR_SILVERMONT.
25669 (ix86_issue_rate): Likewise.
25670 (ix86_adjust_cost): Likewise.
25671 (ia32_multipass_dfa_lookahead): Likewise.
25672 (swap_top_of_ready_list): Likewise.
25673 (ix86_sched_reorder): Likewise.
25674 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25675 instead of TARGET_OPT_AGU.
25676 * config/i386/i386.h (TARGET_INTEL): New.
25677 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25678 (processor_type): Add PROCESSOR_INTEL.
25679 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25680 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25682 2014-01-17 Marek Polacek <polacek@redhat.com>
25685 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25688 2014-01-17 Richard Biener <rguenther@suse.de>
25690 PR tree-optimization/46590
25691 * opts.c (default_options_table): Add entries for
25692 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25693 all enabled at -O1 but not for -Og.
25694 * common.opt (fbranch-count-reg): Remove Init(1).
25695 (fmove-loop-invariants): Likewise.
25696 (ftree-pta): Likewise.
25698 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25700 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25701 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25702 decls to at least the GCC 4.8 used alignments.
25705 * tree-nested.c (convert_nonlocal_reference_stmt,
25706 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25707 of GIMPLE_BIND stmts, adjust associated decls.
25709 2014-01-17 Richard Biener <rguenther@suse.de>
25711 PR tree-optimization/46590
25712 * vec.h (vec<>::bseach): New member function implementing
25713 binary search according to C89 bsearch.
25714 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25715 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25716 bitmap pointer again. Make accesses_in_loop a flat array.
25717 (mem_ref_obstack): New global.
25718 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25719 (mark_ref_stored): Likewise.
25720 (ref_indep_loop_p_2): Likewise.
25721 (set_ref_stored_in_loop): New helper function.
25722 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25723 (memref_free): Adjust.
25724 (record_mem_ref_loc): Simplify.
25725 (gather_mem_refs_stmt): Adjust.
25726 (sort_locs_in_loop_postorder_cmp): New function.
25727 (analyze_memory_references): Sort accesses_in_loop after
25728 loop postorder number.
25729 (find_ref_loc_in_loop_cmp): New function.
25730 (for_all_locs_in_loop): Find relevant cluster of locs in
25731 accesses_in_loop and iterate without recursion.
25732 (execute_sm): Avoid uninit warning.
25733 (struct ref_always_accessed): Simplify.
25734 (ref_always_accessed::operator ()): Likewise.
25735 (ref_always_accessed_p): Likewise.
25736 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25737 loop postorder numbers here.
25738 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25741 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25744 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25745 on decls for which assemble_alias has been called.
25747 2014-01-17 Nick Clifton <nickc@redhat.com>
25749 * config/msp430/msp430.opt: (mcpu): New option.
25750 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25751 (msp430_option_override): Parse target_cpu. If the MCU name
25752 matches a generic string, clear target_mcu.
25753 (msp430_attr): Allow numeric interrupt values up to 63.
25754 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25755 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25757 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25759 * config/msp430/msp430.md (popm): Use %J rather than %I.
25760 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25761 (addhi_cy_i): Use immediate_operand for operand 2.
25762 * doc/invoke.texi: Document -mcpu option.
25764 2014-01-17 Richard Biener <rguenther@suse.de>
25766 PR rtl-optimization/38518
25767 * df.h (df_analyze_loop): Declare.
25768 * df-core.c: Include cfgloop.h.
25769 (df_analyze_1): Split out main part of df_analyze.
25770 (df_analyze): Adjust.
25771 (loop_inverted_post_order_compute): New function.
25772 (loop_post_order_compute): Likewise.
25773 (df_analyze_loop): New function avoiding whole-function
25774 postorder computes.
25775 * loop-invariant.c (find_defs): Use df_analyze_loop.
25776 (find_invariants): Adjust.
25777 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25779 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25781 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25782 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25784 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25786 * ipa-ref.c (ipa_remove_stmt_references): Fix references
25787 traversal when removing references.
25789 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
25792 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25794 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
25796 PR middle-end/56791
25797 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25798 pushing a reload for an autoinc when we had previously reloaded an
25799 inner part of the address.
25801 2014-01-16 Jakub Jelinek <jakub@redhat.com>
25803 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25805 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25806 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25807 when not giving up or versioning for alias only because of
25809 (vect_analyze_data_ref_dependences): Set to true.
25810 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
25812 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
25813 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
25816 PR middle-end/58344
25817 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
25820 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
25821 operand 0 predicate for gathers, use a new pseudo as subtarget.
25823 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25825 PR middle-end/59609
25826 * lra-constraints.c (process_alt_operands): Add printing debug info.
25827 Check absence of input/output reloads for matched operands too.
25829 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25831 PR rtl-optimization/59835
25832 * ira.c (ira_init_register_move_cost): Increase cost for
25835 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
25837 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
25839 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
25842 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
25843 non-register objects. Use gen_(high/low)part more consistently.
25846 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
25849 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
25850 endian support, remove tests for WORDS_BIG_ENDIAN.
25851 (p8_mfvsrd_3_<mode>): Likewise.
25852 (reload_gpr_from_vsx<mode>): Likewise.
25853 (reload_gpr_from_vsxsf): Likewise.
25854 (p8_mfvsrd_4_disf): Likewise.
25856 2014-01-16 Richard Biener <rguenther@suse.de>
25858 PR rtl-optimization/46590
25859 * lcm.c (compute_antinout_edge): Use postorder iteration.
25860 (compute_laterin): Use inverted postorder iteration.
25862 2014-01-16 Nick Clifton <nickc@redhat.com>
25864 PR middle-end/28865
25865 * varasm.c (output_constant): Return the number of bytes actually
25867 (output_constructor_array_range): Update the field size with the
25868 number of bytes emitted by output_constant.
25869 (output_constructor_regular_field): Likewise. Also do not
25870 complain if the total number of bytes emitted is now greater
25871 than the expected fieldpos.
25872 * output.h (output_constant): Update prototype and descriptive comment.
25874 2014-01-16 Marek Polacek <polacek@redhat.com>
25876 PR middle-end/59827
25877 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
25878 it is error_mark_node.
25880 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
25882 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
25883 VALID_AVX256_REG_OR_OI_MODE.
25885 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
25887 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
25888 current procedure should be profiled.
25890 2014-01-15 Andrew Pinski <apinski@cavium.com>
25892 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
25893 of moving from/to the STACK_REG register class.
25895 2014-01-15 Richard Henderson <rth@redhat.com>
25898 * reginfo.c (global_regs_decl): Globalize.
25899 * rtl.h (global_regs_decl): Declare.
25900 * ira.c (do_reload): Diagnose frame_pointer_needed and it
25901 reserved via global_regs.
25903 2014-01-15 Teresa Johnson <tejohnson@google.com>
25905 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
25907 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25909 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
25910 and vmulosh rather than call gen_vec_widen_smult_*.
25911 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
25912 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
25913 (vec_widen_smult_even_v16qi): Likewise.
25914 (vec_widen_umult_even_v8hi): Likewise.
25915 (vec_widen_smult_even_v8hi): Likewise.
25916 (vec_widen_umult_odd_v16qi): Likewise.
25917 (vec_widen_smult_odd_v16qi): Likewise.
25918 (vec_widen_umult_odd_v8hi): Likewise.
25919 (vec_widen_smult_odd_v8hi): Likewise.
25920 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
25921 vmuloub rather than call gen_vec_widen_umult_*.
25922 (vec_widen_umult_lo_v16qi): Likewise.
25923 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
25924 vmulosb rather than call gen_vec_widen_smult_*.
25925 (vec_widen_smult_lo_v16qi): Likewise.
25926 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
25927 rather than call gen_vec_widen_umult_*.
25928 (vec_widen_umult_lo_v8hi): Likewise.
25929 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
25930 rather than call gen_vec_widen_smult_*.
25931 (vec_widen_smult_lo_v8hi): Likewise.
25933 2014-01-15 Jeff Law <law@redhat.com>
25935 PR tree-optimization/59747
25936 * ree.c (find_and_remove_re): Properly handle case where a second
25937 eliminated extension requires widening a copy created for elimination
25938 of a prior extension.
25939 (combine_set_extension): Ensure that the number of hard regs needed
25940 for a destination register does not change when we widen it.
25942 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
25944 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
25945 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
25946 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
25947 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
25948 (avr-*-rtems*): Likewise.
25949 (bfin*-rtems*): Likewise.
25950 (moxie-*-rtems*): Likewise.
25951 (h8300-*-rtems*): Likewise.
25952 (i[34567]86-*-rtems*): Likewise.
25953 (lm32-*-rtems*): Likewise.
25954 (m32r-*-rtems*): Likewise.
25955 (m68k-*-rtems*): Likewise.
25956 (microblaze*-*-rtems*): Likewise.
25957 (mips*-*-rtems*): Likewise.
25958 (powerpc-*-rtems*): Likewise.
25959 (sh-*-rtems*): Likewise.
25960 (sparc-*-rtems*): Likewise.
25961 (sparc64-*-rtems*): Likewise.
25962 (v850-*-rtems*): Likewise.
25963 (m32c-*-rtems*): Likewise.
25965 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
25967 PR rtl-optimization/59511
25968 * ira.c (ira_init_register_move_cost): Use memory costs for some
25969 cases of register move cost calculations.
25970 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
25971 instead of BB frequency.
25972 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
25973 * lra-assigns.c (find_hard_regno_for): Ditto.
25975 2014-01-15 Richard Biener <rguenther@suse.de>
25977 PR tree-optimization/59822
25978 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
25979 (vectorizable_load): Use it to hoist defs of uses of invariant
25980 loads out of the loop.
25982 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
25983 Kugan Vivekanandarajah <kuganv@linaro.org>
25986 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
25989 2014-01-15 Richard Biener <rguenther@suse.de>
25991 PR rtl-optimization/59802
25992 * lcm.c (compute_available): Use inverted postorder to seed
25993 the initial worklist.
25995 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25998 * config/s390/s390.c (s390_preferred_reload_class): Don't return
25999 ADDR_REGS for invalid symrefs in non-PIC code.
26001 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26004 * builtins.c (determine_block_size): Initialize *probable_max_size
26005 even if len_rtx is CONST_INT.
26007 2014-01-14 Andrew Pinski <apinski@cavium.com>
26009 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26010 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26011 (cortexa53_tunings): Likewise.
26012 (aarch64_sched_issue_rate): New function.
26013 (TARGET_SCHED_ISSUE_RATE): Define.
26015 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26017 * ira-costs.c (find_costs_and_classes): Add missed
26018 ira_init_register_move_cost_if_necessary.
26020 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26023 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26025 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26028 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26029 to indicate if type is used for function return value. Warn ABI
26030 change if the vector mode isn't available for function return value.
26031 (ix86_function_arg_advance): Pass false to type_natural_mode.
26032 (ix86_function_arg): Likewise.
26033 (ix86_gimplify_va_arg): Likewise.
26034 (function_arg_32): Don't warn ABI change.
26035 (ix86_function_value): Pass true to type_natural_mode.
26036 (ix86_return_in_memory): Likewise.
26037 (ix86_struct_value_rtx): Removed.
26038 (TARGET_STRUCT_VALUE_RTX): Likewise.
26040 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26042 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26043 converting a conditional jump into a conditional return.
26045 2014-01-14 Richard Biener <rguenther@suse.de>
26047 PR tree-optimization/58921
26048 PR tree-optimization/59006
26049 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26050 hoisting invariant stmts.
26051 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26052 invariant loads on the preheader edge if possible.
26054 2014-01-14 Joey Ye <joey.ye@arm.com>
26056 * doc/plugin.texi (Building GCC plugins): Update to C++.
26058 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26060 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26061 (_mm_rcp28_round_ss): Ditto.
26062 (_mm_rsqrt28_round_sd): Ditto.
26063 (_mm_rsqrt28_round_ss): Ditto.
26064 (_mm_rcp28_sd): Ditto.
26065 (_mm_rcp28_ss): Ditto.
26066 (_mm_rsqrt28_sd): Ditto.
26067 (_mm_rsqrt28_ss): Ditto.
26068 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26069 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26070 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26071 (IX86_BUILTIN_RCP28SD): Ditto.
26072 (IX86_BUILTIN_RCP28SS): Ditto.
26073 (IX86_BUILTIN_RSQRT28SD): Ditto.
26074 (IX86_BUILTIN_RSQRT28SS): Ditto.
26075 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26076 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26077 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26078 (ix86_expand_special_args_builtin): Expand new FTYPE.
26079 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26080 (srcp14<mode>): Make insn unary.
26081 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26082 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26083 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26084 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26085 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26086 Fix rounding: make it SAE only.
26087 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26089 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26091 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26092 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26093 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26094 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26095 (round_saeonly_mask_scalar_operand4): Ditto.
26096 (round_saeonly_mask_scalar_op3): Ditto.
26097 (round_saeonly_mask_scalar_op4): Ditto.
26099 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26101 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26102 Implement -maltivec=be for vec_insert and vec_extract.
26104 2014-01-10 DJ Delorie <dj@redhat.com>
26106 * config/msp430/msp430.md (call_internal): Don't allow memory
26107 references with SP as the base register.
26108 (call_value_internal): Likewise.
26109 * config/msp430/constraints.md (Yc): New. For memory references
26110 that don't use SP as a base register.
26112 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26113 "an integer without a # prefix"
26114 * config/msp430/msp430.md (epilogue_helper): Use it.
26116 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26119 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26120 AVX512F gather builtins.
26121 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26122 on gather decls with INTEGER_TYPE masktype.
26123 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26124 directly into the builtin rather than hoisting it before loop.
26126 PR tree-optimization/59387
26127 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26128 (scev_const_prop): If folded_casts and type has undefined overflow,
26129 use force_gimple_operand instead of force_gimple_operand_gsi and
26130 for each added stmt if it is assign with
26131 arith_code_with_undefined_signed_overflow, call
26132 rewrite_to_defined_overflow.
26133 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26134 gimple-fold.h instead.
26135 (arith_code_with_undefined_signed_overflow,
26136 rewrite_to_defined_overflow): Moved to ...
26137 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26138 rewrite_to_defined_overflow): ... here. No longer static.
26139 Include gimplify-me.h.
26140 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26141 rewrite_to_defined_overflow): New prototypes.
26143 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26145 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26147 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26149 * builtins.c (get_object_alignment_2): Minor tweak.
26150 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26152 2014-01-13 Christian Bruel <christian.bruel@st.com>
26154 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26155 optimized non constant lengths.
26157 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26160 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26161 load as __atomic_load_N if possible.
26163 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26165 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26167 (rs6000_expand_builtin): Adjust call.
26169 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26172 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26173 * config/rs6000/rs6000.c: Include target-globals.h.
26174 (rs6000_set_current_function): Instead of doing target_reinit
26175 unconditionally, use save_target_globals_default_opts and
26176 restore_target_globals.
26178 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26180 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26181 (rs6000_expand_builtin): Handle mffs and mtfsf.
26182 (rs6000_init_builtins): Define mffs and mtfsf.
26183 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26184 (rs6000_mffs): New pattern.
26185 (rs6000_mtfsf): New pattern.
26187 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26189 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26190 Start narrowing with START. Apply candidate-use pair
26191 and check overall cost in narrowing.
26192 (iv_ca_prune): Pass new argument.
26194 2014-01-10 Jeff Law <law@redhat.com>
26196 PR middle-end/59743
26197 * ree.c (combine_reaching_defs): Ensure the defining statement
26198 occurs before the extension when optimizing extensions with
26199 different source and destination hard registers.
26201 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26204 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26205 vtables into the type inheritance graph.
26207 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26209 PR rtl-optimization/59754
26210 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26211 modes in the REGNO != REGNO case.
26213 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26215 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26217 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26219 PR tree-optimization/59745
26220 * tree-predcom.c (tree_predictive_commoning_loop): Call
26221 free_affine_expand_cache if giving up because components is NULL.
26223 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26224 GC in payload of target_globals struct instead of allocating them on
26225 the heap and the larger structs separately using GC.
26226 * target-globals.h (struct target_globals): Make regs, hard_regs,
26227 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26228 of GTY((skip)) and change type to void *.
26229 (reset_target_globals): Cast loads from those fields to corresponding
26232 2014-01-10 Steve Ellcey <sellcey@mips.com>
26235 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26236 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26237 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26239 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26242 * aarch64-modes.def (CC_Zmode): New flags mode.
26243 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26244 represents an equality.
26245 (aarch64_get_condition_code): Handle CC_Zmode.
26246 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26248 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26250 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26251 extraction in good case.
26253 2014-01-10 Richard Biener <rguenther@suse.de>
26255 PR tree-optimization/59374
26256 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26257 checking after SLP discovery. Mark stmts not participating
26258 in any SLP instance properly.
26260 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26262 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26263 when handling a SET rtx.
26265 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26267 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26268 (cortex-a57): Likewise.
26269 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26271 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26273 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26274 non-iwmmxt builtins.
26276 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26280 * ipa-devirt.c record_target_from_binfo): Take as argument
26281 stack of binfos and lookup matching one for virtual inheritance.
26282 (possible_polymorphic_call_targets_1): Update.
26284 2014-01-10 Huacai Chen <chenhc@lemote.com>
26286 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26287 kernel strings for Loongson-2E/2F/3A.
26289 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26291 PR middle-end/59670
26292 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26293 is_gimple_call before calling gimple_call_internal_p.
26295 2014-01-09 Steve Ellcey <sellcey@mips.com>
26297 * Makefile.in (TREE_FLOW_H): Remove.
26298 (TREE_SSA_H): Add file names from tree-flow.h.
26299 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26300 * tree.h: Remove tree-flow.h reference.
26301 * hash-table.h: Remove tree-flow.h reference.
26302 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26303 reference with tree-ssa-loop.h.
26305 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26307 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26308 default element-order behavior for -maltivec.
26309 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26310 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26311 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26312 when targeting big endian, at least for now.
26313 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26315 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26317 PR middle-end/47735
26318 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26319 var satisfies use_register_for_decl, just take into account type
26320 alignment, rather than decl alignment.
26322 PR tree-optimization/59622
26323 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26324 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26325 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26326 Don't devirtualize for inplace at all. For targets.length () == 1,
26327 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26329 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26331 * config/i386/i386.md (cpu): Remove the unused btver1.
26333 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26335 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26337 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26340 * tree-core.h (struct target_globals): New forward declaration.
26341 (struct tree_target_option): Add globals field.
26342 * tree.h (TREE_TARGET_GLOBALS): Define.
26343 (prepare_target_option_nodes_for_pch): New prototype.
26344 * target-globals.h (struct target_globals): Define even if
26345 !SWITCHABLE_TARGET.
26346 * tree.c (prepare_target_option_node_for_pch,
26347 prepare_target_option_nodes_for_pch): New functions.
26348 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26349 * config/i386/i386.c: Include target-globals.h.
26350 (ix86_set_current_function): Instead of doing target_reinit
26351 unconditionally, use save_target_globals_default_opts and
26352 restore_target_globals.
26354 2014-01-09 Richard Biener <rguenther@suse.de>
26356 PR tree-optimization/59715
26357 * tree-cfg.h (split_critical_edges): Declare.
26358 * tree-cfg.c (split_critical_edges): Export.
26359 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26361 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26363 * cfgexpand.c (expand_stack_vars): Optionally disable
26364 asan stack protection.
26365 (expand_used_vars): Likewise.
26366 (partition_stack_vars): Likewise.
26367 * asan.c (asan_emit_stack_protection): Optionally disable
26368 after return stack usage.
26369 (instrument_derefs): Optionally disable memory access instrumentation.
26370 (instrument_builtin_call): Likewise.
26371 (instrument_strlen_call): Likewise.
26372 (asan_protect_global): Optionally disable global variables protection.
26373 * doc/invoke.texi: Added doc for new options.
26374 * params.def: Added new options.
26375 * params.h: Likewise.
26377 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26379 PR rtl-optimization/59724
26380 * ifcvt.c (cond_exec_process_if_block): Don't call
26381 flow_find_head_matching_sequence with 0 longest_match.
26382 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26383 non-active insns if !stop_after.
26384 (try_head_merge_bb): Revert 2014-01-07 changes.
26386 2014-01-08 Jeff Law <law@redhat.com>
26388 * ree.c (get_sub_rtx): New function, extracted from...
26389 (merge_def_and_ext): Here.
26390 (combine_reaching_defs): Use get_sub_rtx.
26392 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26394 * cgraph.h (varpool_variable_node): Do not choke on null node.
26396 2014-01-08 Catherine Moore <clm@codesourcery.com>
26398 * config/mips/mips.md (simple_return): Attempt to use JRC
26400 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26402 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26404 PR rtl-optimization/59137
26405 * reorg.c (steal_delay_list_from_target): Call update_block for
26407 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26409 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26411 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26412 two duplicate entries.
26414 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26417 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26419 * config/mips/mips.c (mips_truncated_op_cost): New function.
26420 (mips_rtx_costs): Adjust test for BADDU.
26421 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26423 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26425 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26426 (*baddu_si): ...this new pattern.
26428 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26431 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26433 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26435 PR middle-end/57748
26436 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26438 (expand_expr, expand_normal): Adjust.
26439 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26440 inner_reference_p. Use inner_reference_p to expand inner references.
26441 (store_expr): Adjust.
26442 * cfgexpand.c (expand_call_stmt): Adjust.
26444 2014-01-08 Rong Xu <xur@google.com>
26446 * gcov-io.c (gcov_var): Move from gcov-io.h.
26447 (gcov_position): Ditto.
26448 (gcov_is_error): Ditto.
26449 (gcov_rewrite): Ditto.
26450 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26451 only part to libgcc/libgcov.h.
26453 2014-01-08 Marek Polacek <polacek@redhat.com>
26455 PR middle-end/59669
26456 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26458 2014-01-08 Marek Polacek <polacek@redhat.com>
26461 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26463 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26465 PR rtl-optimization/59649
26466 * stor-layout.c (get_mode_bounds): For BImode return
26467 0 and STORE_FLAG_VALUE.
26469 2014-01-08 Richard Biener <rguenther@suse.de>
26471 PR middle-end/59630
26472 * gimple.h (is_gimple_builtin_call): Remove.
26473 (gimple_builtin_call_types_compatible_p): New.
26474 (gimple_call_builtin_p): New overload.
26475 * gimple.c (is_gimple_builtin_call): Remove.
26476 (validate_call): Rename to ...
26477 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26478 check return types.
26479 (validate_type): New static function.
26480 (gimple_call_builtin_p): New overload and adjust.
26481 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26482 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26483 (gimple_fold_stmt_to_constant_1): Likewise.
26484 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26486 2014-01-08 Richard Biener <rguenther@suse.de>
26488 PR middle-end/59471
26489 * gimplify.c (gimplify_expr): Gimplify register-register type
26490 VIEW_CONVERT_EXPRs to separate stmts.
26492 2014-01-07 Jeff Law <law@redhat.com>
26494 PR middle-end/53623
26495 * ree.c (combine_set_extension): Handle case where source
26496 and destination registers in an extension insn are different.
26497 (combine_reaching_defs): Allow source and destination registers
26498 in extension to be different under limited circumstances.
26499 (add_removable_extension): Remove restriction that the
26500 source and destination registers in the extension are the same.
26501 (find_and_remove_re): Emit a copy from the extension's
26502 destination to its source after the defining insn if
26503 the source and destination registers are different.
26505 PR middle-end/59285
26506 * ifcvt.c (merge_if_block): If we are merging a block with more than
26507 one successor with a block with no successors, remove any BARRIER
26508 after the second block.
26510 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26512 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26514 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26517 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26518 for 14-bit register offsets when INT14_OK_STRICT is false.
26520 2014-01-07 Roland Stigge <stigge@antcom.de>
26521 Michael Meissner <meissner@linux.vnet.ibm.com>
26524 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26525 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26527 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26529 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26532 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26534 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26535 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26536 rtx is const0_rtx or not.
26538 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26541 * target-globals.c (save_target_globals): Remove this_fn_optab
26543 * toplev.c: Include optabs.h.
26544 (target_reinit): Temporarily restore the global options if another
26545 set of options are in force.
26547 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26549 PR rtl-optimization/58668
26550 * cfgcleanup.c (flow_find_cross_jump): Don't count
26551 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26552 to determine what is counted.
26553 (flow_find_head_matching_sequence): Use active_insn_p to determine
26555 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26557 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26558 determine what is counted.
26560 PR tree-optimization/59643
26561 * tree-predcom.c (split_data_refs_to_components): If one dr is
26562 read and one write, determine_offset fails and the write isn't
26563 in the bad component, just put the read into the bad component.
26565 2014-01-07 Mike Stump <mikestump@comcast.net>
26566 Jakub Jelinek <jakub@redhat.com>
26569 * tree-core.h (struct tree_optimization_option): Change optabs
26570 type from unsigned char * to void *.
26571 * optabs.c (init_tree_optimization_optabs): Adjust
26572 TREE_OPTIMIZATION_OPTABS initialization.
26574 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26577 * config/i386/i386.h (struct machine_function): Add
26578 no_drap_save_restore field.
26579 * config/i386/i386.c (ix86_save_reg): Use
26580 !cfun->machine->no_drap_save_restore instead of
26581 crtl->stack_realign_needed.
26582 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26583 this function clears frame_pointer_needed. Set
26584 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26585 and DRAP reg is needed.
26587 2014-01-06 Marek Polacek <polacek@redhat.com>
26590 * doc/implement-c.texi: Mention that other integer types are
26591 permitted as bit-field types in strictly conforming mode.
26593 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26595 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26596 is newly allocated.
26598 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26600 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26602 2014-01-06 Martin Jambor <mjambor@suse.cz>
26605 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26607 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26609 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26613 * var-tracking.c (add_stores): Preserve the value of the source even if
26614 we don't record the store.
26616 2014-01-06 Terry Guo <terry.guo@arm.com>
26618 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26620 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26623 * config/darwin.c (darwin_function_section): Adjust return values to
26624 correspond to optimisation changes made in r206070.
26626 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26628 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26629 from prefetch_block tune setting.
26630 (nocona_cost): Correct size of prefetch block to 64.
26632 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26634 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26635 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26636 used to save the static chain register in the computation of the offset
26637 from which the FP registers need to be restored.
26639 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26641 PR tree-optimization/59519
26642 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26643 ICE if get_current_def (current_new_name) is already non-NULL, as long
26644 as it is a phi result of some other phi in *new_exit_bb that has
26647 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26648 or vmovdqu* for misaligned_operand.
26649 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26650 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26651 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26652 aligned_mem for AVX512F masked aligned load and store builtins and for
26653 non-temporal moves.
26655 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26657 PR tree-optimization/59651
26658 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26659 Address range for negative step should be added by TYPE_SIZE_UNIT.
26661 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26663 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26664 overlapping registers also for registers other than the stack pointer.
26666 2014-01-03 Marek Polacek <polacek@redhat.com>
26669 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26672 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26675 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26678 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26679 (push splitter): Use <P:MODE_SIZE> instead of
26680 GET_MODE_SIZE (<P:MODE>mode).
26681 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26682 (mov -1, reg peephole2): Likewise.
26683 * config/i386/sse.md (*mov<mode>_internal,
26684 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26685 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26686 *<code><mode>3, *andnot<mode>3<mask_name>,
26687 <mask_codefor><code><mode>3<mask_name>): Likewise.
26688 * config/i386/subst.md (mask_mode512bit_condition,
26689 sd_mask_mode512bit_condition): Likewise.
26691 2014-01-02 Xinliang David Li <davidxl@google.com>
26693 PR tree-optimization/59303
26694 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26695 (dump_predicates): Better output format.
26696 (pred_equal_p): New function.
26697 (is_neq_relop_p): Ditto.
26698 (is_neq_zero_form_p): Ditto.
26699 (pred_expr_equal_p): Ditto.
26700 (pred_neg_p): Ditto.
26701 (simplify_pred): Ditto.
26702 (simplify_preds_2): Ditto.
26703 (simplify_preds_3): Ditto.
26704 (simplify_preds_4): Ditto.
26705 (simplify_preds): Ditto.
26706 (push_pred): Ditto.
26707 (push_to_worklist): Ditto.
26708 (get_pred_info_from_cmp): Ditto.
26709 (is_degenerated_phi): Ditto.
26710 (normalize_one_pred_1): Ditto.
26711 (normalize_one_pred): Ditto.
26712 (normalize_one_pred_chain): Ditto.
26713 (normalize_preds): Ditto.
26714 (normalize_cond_1): Remove function.
26715 (normalize_cond): Ditto.
26716 (is_gcond_subset_of): Ditto.
26717 (is_subset_of_any): Ditto.
26718 (is_or_set_subset_of): Ditto.
26719 (is_and_set_subset_of): Ditto.
26720 (is_norm_cond_subset_of): Ditto.
26721 (pred_chain_length_cmp): Ditto.
26722 (convert_control_dep_chain_into_preds): Type change.
26723 (find_predicates): Ditto.
26724 (find_def_preds): Ditto.
26725 (destroy_predicates_vecs): Ditto.
26726 (find_matching_predicates_in_rest_chains): Ditto.
26727 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26728 (is_pred_expr_subset): Ditto.
26729 (is_pred_chain_subset_of): Ditto.
26730 (is_included_in): Ditto.
26731 (is_superset_of): Ditto.
26733 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26735 Update copyright years.
26737 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26739 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26740 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26741 config/arc/arc.md, config/arc/arc.opt,
26742 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26743 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26744 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26745 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26746 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26747 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26748 vtable-verify.c, vtable-verify.h: Use the standard form for the
26751 2014-01-02 Tobias Burnus <burnus@net-b.de>
26753 * gcc.c (process_command): Update copyright notice dates.
26754 * gcov-dump.c: Ditto.
26756 * doc/cpp.texi: Bump @copying's copyright year.
26757 * doc/cppinternals.texi: Ditto.
26758 * doc/gcc.texi: Ditto.
26759 * doc/gccint.texi: Ditto.
26760 * doc/gcov.texi: Ditto.
26761 * doc/install.texi: Ditto.
26762 * doc/invoke.texi: Ditto.
26764 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26766 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26768 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26770 * config/i386/sse.md (*mov<mode>_internal): Guard
26771 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26773 PR rtl-optimization/59647
26774 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26775 new_rtx into UNSIGNED_FLOAT rtxes.
26777 Copyright (C) 2014 Free Software Foundation, Inc.
26779 Copying and distribution of this file, with or without modification,
26780 are permitted in any medium without royalty provided the copyright
26781 notice and this notice are preserved.