1 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3 * reorg.c (redundant_insn): In two places in the function, replace
4 a check of GET_CODE with a dyn_cast, introducing local "seq", and
5 usings methods of rtx_sequence to clarify the code.
7 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
10 local "seq" with a checked cast, and use methods of rtx_sequence
13 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15 * function.c (contains): Introduce local "seq" for PATTERN (insn),
16 with a checked cast, in the region for where we know it's a
17 SEQUENCE. Use methods of rtx_sequence.
19 2014-08-27 David Malcolm <dmalcolm@redhat.com>
21 * final.c (get_attr_length_1): Replace GET_CODE check with a
22 dyn_cast, introducing local "seq" and the use of methods of
24 (shorten_branches): Likewise, introducing local "body_seq".
25 Strengthen local "inner_insn" from rtx to rtx_insn *.
26 (reemit_insn_block_notes): Replace GET_CODE check with a
27 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
28 Use methods of rtx_sequence.
29 (final_scan_insn): Likewise, introducing local "seq" for when
30 "body" is known to be a SEQUENCE, using its methods.
32 2014-08-27 David Malcolm <dmalcolm@redhat.com>
34 * except.c (can_throw_external): Strengthen local "seq" from rtx
35 to rtx_sequence *. Use methods of rtx_sequence.
36 (insn_nothrow_p): Likewise.
38 2014-08-27 David Malcolm <dmalcolm@redhat.com>
40 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
41 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
42 Use methods of rtx_sequence.
43 (scan_trace): Likewise for local "pat".
45 2014-08-27 David Malcolm <dmalcolm@redhat.com>
47 * coretypes.h (class rtx_sequence): Add forward declaration.
48 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
49 invariant: GET_CODE (X) == SEQUENCE.
50 (is_a_helper <rtx_sequence *>::test): New.
51 (is_a_helper <const rtx_sequence *>::test): New.
52 (rtx_sequence::len): New.
53 (rtx_sequence::element): New.
54 (rtx_sequence::insn): New.
56 2014-08-27 David Malcolm <dmalcolm@redhat.com>
58 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
60 (alloc_INSN_LIST): Strengthen return type from rtx to
62 (copy_INSN_LIST): Likewise for return type and param.
63 (concat_INSN_LIST): Likewise for both params and return type.
64 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
65 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
66 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
67 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
69 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
70 "implicit_sets", "control_uses", "clobbers" from rtx to
72 (struct deps_desc): Likewise for fields "pending_read_insns",
73 "pending_write_insns", "pending_jump_insns",
74 "last_pending_memory_flush", "last_function_call",
75 "last_function_call_may_noreturn", "sched_before_next_call",
76 "sched_before_next_jump".
77 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
78 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
80 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
81 from rtx to rtx_insn_list *.
82 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
85 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
87 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
89 (queue_insn): Likewise for local "link".
90 (struct haifa_saved_data): Strengthen field "insn_queue" from
91 rtx * to rtx_insn_list **.
92 (save_backtrack_point): Update allocation of save->insn_queue to
93 reflect the strengthening of elements from rtx to rtx_insn_list *.
94 (queue_to_ready): Strengthen local "link" from rtx to
95 rtx_insn_list *; use methods "next" and "insn" when traversing the
97 (early_queue_to_ready): Likewise for locals "link", "next_link",
99 (schedule_block): Update allocation of insn_queue to reflect the
100 strengthening of elements from rtx to rtx_insn_list *. Strengthen
101 local "link" from rtx to rtx_insn_list *, and use methods when
103 (add_to_speculative_block): Strengthen locals "twins" and
104 "next_node" from rtx to rtx_insn_list *, and use methods when
105 working with them. Strengthen local "twin" from rtx to
106 rtx_insn *, eliminating a checked cast.
107 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
108 from rtx to rtx_insn_list *, and use methods when working with
111 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
112 from rtx to rtx_insn_list *, adding a checked cast.
113 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
115 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
116 "newlink" from rtx to rtx_insn_list *. Strengthen local
117 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
118 from rtx to rtx_insn *.
119 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
120 from rtx to rtx_insn_list *. Use methods of the latter class.
121 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
122 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
123 (remove_free_INSN_LIST_node): Strengthen return type and local
124 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
125 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
126 rtx_insn_list *, using "insn" method.
128 * sched-deps.c (add_dependence_list): Strengthen param "list"
129 from rtx to rtx_insn_list *, and use methods when working with it.
130 (add_dependence_list_and_free): Strengthen param "listp" from
131 rtx * to rtx_insn_list **.
132 (remove_from_dependence_list): Strenghten param "listp" from rtx *
133 to rtx_insn_list **, and use methods when working with *listp.
134 (remove_from_both_dependence_lists): Strengthen param "listp" from
135 rtx * to rtx_insn_list **
136 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
137 to rtx_insn_list **. Eliminate local "link", in favor of two new
138 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
140 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
141 by introducing local "cond_deps".
142 (remove_from_deps): Strengthen param "insn" from rtx to
145 * sched-rgn.c (concat_insn_mem_list): Strengthen param
146 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
147 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
148 Use methods of rtx_insn_list.
150 * store-motion.c (struct st_expr): Strengthen fields
151 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
152 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
154 (find_moveable_store): Split out "tmp" into multiple more-tightly
155 scoped locals. Use methods of rtx_insn_list *.
156 (compute_store_table): Strengthen local "tmp" from rtx to
157 rtx_insn *. Use methods of rtx_insn_list *.
159 2014-08-27 David Malcolm <dmalcolm@redhat.com>
161 * coretypes.h (class rtx_insn_list): Add forward declaration.
162 * rtl.h (class rtx_insn_list): New subclass of rtx_def
163 (is_a_helper <rtx_insn_list *>::test): New.
164 (rtx_insn_list::next): New.
165 (rtx_insn_list::insn): New.
166 (gen_rtx_INSN_LIST): Add prototype.
167 * emit-rtl.c (gen_rtx_INSN_LIST): New.
168 * gengenrtl.c (special_rtx): Add INSN_LIST.
170 2014-08-27 David Malcolm <dmalcolm@redhat.com>
172 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
173 "prev" from rtx to rtx_insn *.
175 2014-08-27 David Malcolm <dmalcolm@redhat.com>
177 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
178 functions. Require merely an rtx for now, not an rtx_insn *.
179 (BLOCK_FOR_INSN): Likewise.
180 (INSN_LOCATION): Likewise.
181 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
183 2014-08-27 David Malcolm <dmalcolm@redhat.com>
185 * rtl.h (PATTERN): Convert this macro into a pair of inline
186 functions, for now, requiring const_rtx and rtx.
188 2014-08-27 David Malcolm <dmalcolm@redhat.com>
190 * target.def (unwind_emit): Strengthen param "insn" from rtx to
192 (final_postscan_insn): Likewise.
193 (adjust_cost): Likewise.
194 (adjust_priority): Likewise.
195 (variable_issue): Likewise.
196 (macro_fusion_pair_p): Likewise.
197 (dfa_post_cycle_insn): Likewise.
198 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
199 (first_cycle_multipass_issue): Likewise.
200 (dfa_new_cycle): Likewise.
201 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
202 (speculate_insn): Likewise for param "insn".
203 (gen_spec_check): Likewise for params "insn" and "label".
204 (get_insn_spec_ds): Likewise for param "insn".
205 (get_insn_checked_ds): Likewise.
206 (dispatch_do): Likewise.
207 (dispatch): Likewise.
208 (cannot_copy_insn_p): Likewise.
209 (invalid_within_doloop): Likewise.
210 (legitimate_combined_insn): Likewise.
214 * doc/tm.texi: Automatically updated to reflect changes to
217 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
219 (schedule_block): Likewise.
220 (sched_init): Likewise.
221 (sched_speculate_insn): Strengthen param "insn" from rtx to
223 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
225 * hooks.c (hook_bool_rtx_true): Rename to...
226 hook_bool_rtx_insn_true): ...this, and strengthen first param from
228 (hook_constcharptr_const_rtx_null): Rename to...
229 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
230 first param from const_rtx to const rtx_insn *.
231 (hook_bool_rtx_int_false): Rename to...
232 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
233 param from rtx to rtx_insn *.
234 (hook_void_rtx_int): Rename to...
235 (hook_void_rtx_insn_int): ...this, and strengthen first param from
238 * hooks.h (hook_bool_rtx_true): Rename to...
239 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
241 (hook_bool_rtx_int_false): Rename to...
242 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
243 param from rtx to rtx_insn *.
244 (hook_void_rtx_int): Rename to...
245 (hook_void_rtx_insn_int): ...this, and strengthen first param from
247 (hook_constcharptr_const_rtx_null): Rename to...
248 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
249 first param from const_rtx to const rtx_insn *.
251 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
252 and local "prev" from rtx to rtx_insn *.
254 * sched-int.h (sched_speculate_insn): Strengthen first param from
257 * sel-sched.c (create_speculation_check): Likewise for local "label".
258 * targhooks.c (default_invalid_within_doloop): Strengthen param
259 "insn" from const_rtx to const rtx_insn *.
260 * targhooks.h (default_invalid_within_doloop): Strengthen param
261 from const_rtx to const rtx_insn *.
263 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
264 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
266 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
268 (arc_invalid_within_doloop): Likewise, with const.
270 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
271 (arm_cannot_copy_insn_p): Likewise for param "insn".
272 (arm_unwind_emit): Likewise.
274 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
277 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
278 (c6x_variable_issue): Likewise. Removed now-redundant checked
280 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
282 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
283 Likewise for param "insn".
284 (epiphany_mode_after): Likewise.
285 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
286 params "insn", "dep_insn".
287 (epiphany_mode_needed): Likewise for param "insn".
288 (epiphany_mode_after): Likewise.
290 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
291 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
292 (ix86_avx_u128_mode_needed): Likewise.
293 (ix86_i387_mode_needed): Likewise.
294 (ix86_mode_needed): Likewise.
295 (ix86_avx_u128_mode_after): Likewise.
296 (ix86_mode_after): Likewise.
297 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
298 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
299 (ix86_adjust_priority): Likewise for param "insn".
300 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
301 (do_dispatch): Likewise.
302 (has_dispatch): Likewise.
303 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
305 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
306 reflect renaming of default hook implementation from
307 hook_constcharptr_const_rtx_null to
308 hook_constcharptr_const_rtx_insn_null.
309 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
311 (ia64_variable_issue): Likewise for param "insn".
312 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
313 (ia64_dfa_new_cycle): Likewise.
314 (ia64_get_insn_spec_ds): Likewise.
315 (ia64_get_insn_checked_ds): Likewise.
316 (ia64_speculate_insn): Likewise.
317 (ia64_gen_spec_check): Likewise for params "insn", "label".
318 (ia64_asm_unwind_emit): Likewise for param "insn".
320 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
322 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
324 (m68k_sched_variable_issue): Likewise for param "insn".
326 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
329 * config/microblaze/microblaze.c (microblaze_adjust_cost):
330 Likewise for params "insn", "dep".
332 * config/mips/mips.c (mips_adjust_cost): Likewise.
333 (mips_variable_issue): Likewise for param "insn".
334 (mips_final_postscan_insn): Likewise.
336 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
337 for params "insn", "dep".
339 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
341 (pa_adjust_priority): Likewise for param "insn".
343 * config/picochip/picochip.c (picochip_sched_adjust_cost):
344 Likewise for params "insn", "dep_insn".
346 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
348 (rs6000_variable_issue): Likewise.
349 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
350 (rs6000_debug_adjust_cost): Likewise.
351 (rs6000_adjust_priority): Likewise for param "insn".
352 (rs6000_use_sched_lookahead_guard): Likewise.
353 (get_next_active_insn): Likewise for return type and both params.
354 (redefine_groups): Likewise for params "prev_head_insn", "tail"
355 and locals "insn", "next_insn".
356 (pad_groups): Likewise.
358 * config/s390/s390.c (s390_adjust_priority): Likewise for param
360 (s390_cannot_copy_insn_p): Likewise.
361 (s390_sched_variable_issue): Likewise for third param, eliminating
363 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
364 default hook implementation from hook_constcharptr_const_rtx_null
365 to hook_constcharptr_const_rtx_insn_null.
367 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
368 from rtx to rtx_insn *.
369 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
370 (sh_variable_issue): Likewise for param "insn".
371 (sh_dfa_new_cycle): Likewise.
372 (sh_mode_needed): Likewise.
373 (sh_mode_after): Likewise.
375 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
376 params "insn", "dep_insn".
377 (hypersparc_adjust_cost): Likewise.
378 (sparc_adjust_cost): Likewise.
380 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
381 param, eliminated checked cast.
382 (spu_sched_adjust_cost): Likewise for first and third params.
384 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
385 params "insn" and "dep_insn" from rtx to rtx_insn *.
387 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
389 2014-08-27 David Malcolm <dmalcolm@redhat.com>
391 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
392 (set_is_load_p): ...this, updating to work on a SET pattern rather
394 (is_store_insn): Rename to...
395 (set_is_store_p): ...this, updating to work on a SET pattern
397 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
398 top of function to where it is needed. Rewrite the bogus
399 condition that checks for "insn" and "dep" being PARALLEL to
400 instead use single_set, introducing locals "insn_set" and
401 "dep_set". Given that we only ever returned "cost" for a non-pair
402 of SETs, bail out early if we don't have a pair of SET.
403 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
404 use the new locals "insn_set" and "dep_set", and update calls to
405 is_load_insn and is_store_insn to be calls to set_is_load_p and
408 2014-08-27 Guozhi Wei <carrot@google.com>
411 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
412 amount before using it.
414 2014-08-27 Richard Biener <rguenther@suse.de>
416 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
417 get_maxval_strlen inside a more useful API.
418 (gimple_fold_builtin_with_strlen): Remove and fold into ...
419 (gimple_fold_builtin): ... caller.
420 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
421 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
422 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
423 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
424 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
425 gimple_fold_builtin_sprintf): Adjust to compute maxval
428 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
431 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
433 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
434 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
435 Anna Tikhonova <anna.tikhonova@intel.com>
436 Ilya Tocar <ilya.tocar@intel.com>
437 Andrey Turetskiy <andrey.turetskiy@intel.com>
438 Ilya Verbin <ilya.verbin@intel.com>
439 Kirill Yukhin <kirill.yukhin@intel.com>
440 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
443 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
444 Use `concat_tg_mode' attribute to determine asm register size.
446 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
447 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
448 Anna Tikhonova <anna.tikhonova@intel.com>
449 Ilya Tocar <ilya.tocar@intel.com>
450 Andrey Turetskiy <andrey.turetskiy@intel.com>
451 Ilya Verbin <ilya.verbin@intel.com>
452 Kirill Yukhin <kirill.yukhin@intel.com>
453 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
456 (define_mode_iterator VI48_AVX512VL): New.
457 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
458 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
459 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
460 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
461 with VI1): Change mode iterator.
462 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
463 with VI_ULOADSTORE_BW_AVX512VL): New.
464 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
465 with VI_ULOADSTORE_F_AVX512VL): Ditto.
466 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
467 with VI1): Change mode iterator.
468 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
469 with VI_ULOADSTORE_BW_AVX512VL): New.
470 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
471 with VI_ULOADSTORE_F_AVX512VL): Ditto.
472 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
473 with VI1): Change mode iterator.
474 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
475 with VI_ULOADSTORE_BW_AVX512VL): New.
476 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
477 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
478 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
479 (define_insn "<avx512>_storedqu<mode>_mask" with
481 (define_insn "<avx512>_storedqu<mode>_mask" with
482 VI12_AVX512VL): Ditto.
484 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
485 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
486 Anna Tikhonova <anna.tikhonova@intel.com>
487 Ilya Tocar <ilya.tocar@intel.com>
488 Andrey Turetskiy <andrey.turetskiy@intel.com>
489 Ilya Verbin <ilya.verbin@intel.com>
490 Kirill Yukhin <kirill.yukhin@intel.com>
491 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
494 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
495 (define_mode_iterator VI48_AVX512BW): New.
496 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
497 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
498 with VI48_AVX2_48_AVX512F): New.
499 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
500 with VI2_AVX512VL): Ditto.
502 2014-08-27 Richard Biener <rguenther@suse.de>
505 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
506 (fold_builtin_3): Do not fold strcat_chk here.
507 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
509 (gimple_fold_builtin): Fold strcat_chk here.
511 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
513 * dwarf2out.h (dwarf2out_decl): Remove prototype.
514 * dwarf2out.c (dwarf2out_decl): Make static.
516 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
518 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
520 2014-08-26 David Malcolm <dmalcolm@redhat.com>
522 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
523 from rtx to rtx_insn *.
524 (cselib_lookup_from_insn): Likewise for final param.
525 (cselib_subst_to_values_from_insn): Likewise.
526 (cselib_add_permanent_equiv): Likewise.
528 * cselib.c (cselib_current_insn): Likewise for this variable.
529 (cselib_subst_to_values_from_insn): Likewise for param "insn".
530 (cselib_lookup_from_insn): Likewise.
531 (cselib_add_permanent_equiv): Likewise for param "insn" and local
532 "save_cselib_current_insn".
533 (cselib_process_insn): Replace use of NULL_RTX with NULL.
535 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
536 from rtx to rtx_insn *.
538 2014-08-26 David Malcolm <dmalcolm@redhat.com>
540 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
543 2014-08-26 David Malcolm <dmalcolm@redhat.com>
545 * df.h (df_dump_insn_problem_function): Strengthen first param of
546 this callback from const_rtx to const rtx_insn *.
547 (struct df_insn_info): Strengthen field "insn" from rtx to
549 (DF_REF_INSN): Eliminate this function, reinstating the older
551 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
552 (df_reg_defined): Likewise.
553 (df_find_use): Likewise.
554 (df_reg_used): Likewise.
555 (df_dump_insn_top): Strengthen param 1 from const_rtx to
557 (df_dump_insn_bottom): Likewise.
558 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
559 (df_insn_debug_regno): Likewise.
560 (debug_df_insn): Likewise.
561 (df_rd_simulate_one_insn): Likewise for param 2.
562 (df_word_lr_simulate_defs): Likewise for param 1.
563 (df_word_lr_simulate_uses): Likewise.
564 (df_md_simulate_one_insn): Likewise for param 2.
565 (df_simulate_find_noclobber_defs): Likewise for param 1.
566 (df_simulate_find_defs): Likewise.
567 (df_simulate_defs): Likewise.
568 (df_simulate_uses): Likewise.
569 (df_simulate_one_insn_backwards): Likewise for param 2.
570 (df_simulate_one_insn_forwards): Likewise.
571 (df_uses_create): Likewise for param 2.
572 (df_insn_create_insn_record): Likewise for param 1.
573 (df_insn_delete): Likewise.
574 (df_insn_rescan): Likewise.
575 (df_insn_rescan_debug_internal): Likewise.
576 (df_insn_change_bb): Likewise.
577 (df_notes_rescan): Likewise.
578 * rtl.h (remove_death): Likewise for param 2.
579 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
581 * sched-int.h (reemit_notes): Strengthen param from rtx to
583 * valtrack.h (propagate_for_debug): Likewise for param 1.
585 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
586 local "tmp_rtx" from const_rtx to const rtx_insn *.
587 * combine.c (remove_death): Strengthen param "insn" from rtx to
589 (move_deaths): Likewise for local "where_dead".
590 * cse.c (delete_trivially_dead_insns): Introduce local
591 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
592 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
594 (df_reg_defined): Likewise.
595 (df_find_use): Likewise.
596 (df_reg_used): Likewise.
597 (df_dump_insn_problem_data): Strengthen param "insn" from
598 const_rtx to const rtx_insn *.
599 (df_dump_insn_top): Likewise.
600 (df_dump_insn_bottom): Likewise.
601 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
602 (df_insn_debug_regno): Likewise.
603 (debug_df_insn): Likewise.
604 (DF_REF_INSN): Delete.
605 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
606 from rtx to rtx_insn *.
607 (df_chain_insn_top_dump): Strengthen param "insn" from
608 const_rtx to const rtx_insn *.
609 (df_chain_insn_bottom_dump): Likewise.
610 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
612 (df_word_lr_simulate_uses): Likewise.
613 (df_print_note): Likewise.
614 (df_remove_dead_and_unused_notes): Likewise.
615 (df_set_unused_notes_for_mw): Likewise.
616 (df_set_dead_notes_for_mw): Likewise.
617 (df_create_unused_note): Likewise.
618 (df_simulate_find_defs): Likewise.
619 (df_simulate_find_uses): Likewise.
620 (df_simulate_find_noclobber_defs): Likewise.
621 (df_simulate_defs): Likewise.
622 (df_simulate_uses): Likewise.
623 (df_simulate_one_insn_backwards): Likewise.
624 (df_simulate_one_insn_forwards): Likewise.
625 (df_md_simulate_one_insn): Likewise.
626 * df-scan.c (df_uses_create): Likewise.
627 (df_insn_create_insn_record): Likewise.
628 (df_insn_delete): Likewise.
629 (df_insn_rescan): Likewise.
630 (df_insn_rescan_debug_internal): Likewise.
631 (df_insn_change_bb): Likewise.
632 (df_notes_rescan): Likewise.
633 (df_refs_add_to_chains): Likewise.
634 (df_insn_refs_verify): Likewise.
635 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
636 when invoking df_insn_delete.
637 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
638 (set_unique_reg_note): Add checked cast.
639 * final.c (cleanup_subreg_operands): Likewise.
640 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
641 "insn" from rtx to rtx_insn *.
642 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
643 "last" from rtx to rtx_insn *.
644 * ira-emit.c (change_regs_in_insn): New function.
645 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
646 Invoke change_regs_in_insn rather than change_regs.
647 * ira.c (update_equiv_regs): Strengthen locals "insn",
648 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
649 for_each_rtx_in_insn rather than for_each_rtx.
650 * recog.c (confirm_change_group): Add checked casts.
651 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
653 (peep2_fill_buffer): Add checked cast.
654 * rtlanal.c (remove_note): Likewise.
655 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
656 locals "next" "end" from rtx to rtx_insn *.
658 2014-08-26 David Malcolm <dmalcolm@redhat.com>
660 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
662 (struct reg_use_data): Likewise for field "insn".
663 (insn_cost): Likewise for param.
664 (real_insn_for_shadow): Likewise for return type and param.
665 (increase_insn_priority): Likewise for param 1.
666 (debug_dependencies): Likewise for both params.
668 * haifa-sched.c (insn_delay): Likewise for param "insn".
669 (real_insn_for_shadow): Likewise for return type and param "insn".
670 (update_insn_after_change): Likewise for param "insn".
671 (recompute_todo_spec): Likewise for param "next" and locals "pro",
673 (insn_cost): Likewise for param "insn".
674 (increase_insn_priority): Likewise.
675 (calculate_reg_deaths): Likewise.
676 (setup_insn_reg_pressure_info): Likewise.
677 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
678 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
679 (model_recompute): Likewise.
680 (must_restore_pattern_p): Likewise for param "next".
681 (model_excess_cost): Likewise for param "insn".
682 (queue_remove): Likewise.
683 (adjust_priority): Likewise for param "prev".
684 (update_register_pressure): Likewise for param "insn".
685 (setup_insn_max_reg_pressure): Likewise for local "insn".
686 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
687 (model_add_to_schedule): Likewise.
688 (model_reset_queue_indices): Likewise for local "insn".
689 (unschedule_insns_until): Strengthen local "recompute_vec" from
690 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
691 "con" from rtx to rtx_insn *.
692 (restore_last_backtrack_point): Likewise for both locals "x". Add
694 (estimate_insn_tick): Likewise for param "insn".
695 (commit_schedule): Likewise for params "prev_head", "tail" and
697 (verify_shadows): Likewise for locals "i1", "i2".
698 (dump_insn_stream): Likewise for params "head", "tail" and locals
700 (schedule_block): Likewise for locals "insn", "x". Add a checked
702 (fix_inter_tick): Likewise for params "head", "tail".
703 (create_check_block_twin): Likewise for local "jump".
704 (haifa_change_pattern): Likewise for param "insn".
705 (haifa_speculate_insn): Likewise.
706 (dump_new_block_header): Likewise for params "head", "tail".
707 (fix_jump_move): Likewise for param "jump".
708 (move_block_after_check): Likewise.
709 (sched_init_insn_luid): Likewise for param "insn".
710 (sched_init_luids): Likewise for local "insn".
711 (insn_luid): Likewise for param "insn".
712 (init_h_i_d): Likewise.
713 (haifa_init_h_i_d): Likewise for local "insn".
714 (haifa_init_insn): Likewise for param "insn".
715 * sched-deps.c (add_dependence): Likewise for local "real_pro",
717 (create_insn_reg_use): Likewise for param "insn".
718 (setup_insn_reg_uses): Likewise. Add a checked cast.
719 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
720 "tail" from rtx to rtx_insn *.
721 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
724 2014-08-26 David Malcolm <dmalcolm@redhat.com>
726 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
727 from rtx to rtx_insn *.
728 (model_add_to_schedule): Likewise for locals "start", "end",
731 2014-08-26 David Malcolm <dmalcolm@redhat.com>
733 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
735 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
736 "to" and locals "insn", "next", "copy". Remove now-redundant
739 2014-08-26 David Malcolm <dmalcolm@redhat.com>
741 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
742 rtx_insn * and param 4 from rtx * to rtx_insn **.
743 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
744 param 2 from rtx * to rtx_insn **.
746 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
747 rtx_insn * and final param from rtx * to rtx_insn **.
749 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
750 from rtx to rtx_insn *.
751 (try_head_merge_bb): Likewise for both locals named "move_upto".
752 * df-problems.c (can_move_insns_across): Likewise for params
753 "from", "to", "across_from", "across_to" and locals "insn",
754 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
756 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
757 from rtx to rtx_insn *.
758 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
759 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
760 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
762 (noce_try_abs): Likewise.
763 (noce_get_condition): Likewise for param "jump". Strengthen param
764 "earliest" from rtx * to rtx_insn **.
765 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
767 (find_cond_trap): Likewise.
768 (dead_or_predicable): Likewise for local "earliest".
769 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
771 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
772 and local "prev". Strengthen param "earliest" from rtx * to
774 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
775 Strengthen param "earliest" from rtx * to rtx_insn **.
777 2014-08-26 David Malcolm <dmalcolm@redhat.com>
779 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
780 "to" and local "insn" from rtx to rtx_insn *.
782 2014-08-26 David Malcolm <dmalcolm@redhat.com>
784 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
785 from rtx to rtx_insn *.
786 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
787 (code_motion_path_driver): Likewise for local "last_insn".
788 (simplify_changed_insns): Likewise for local "insn".
790 2014-08-26 David Malcolm <dmalcolm@redhat.com>
792 * rtl.h (push_to_sequence): Strengthen param from rtx to
794 (push_to_sequence2): Likewise for both params.
795 (delete_insns_since): Likewise for param.
796 (reorder_insns_nobb): Likewise for all three params.
797 (set_new_first_and_last_insn): Likewise for both params.
799 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
800 rtx_insn *. Remove now-redundant cast.
801 (set_last_insn): Likewise.
803 * builtins.c (expand_builtin_return): Strengthen local
804 "call_fusage" from rtx to rtx_insn *.
805 * cfgrtl.c (create_basic_block_structure): Likewise for local
807 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
808 "first", "last" and local "insn".
809 (delete_insns_since): Likewise for param "from".
810 (reorder_insns_nobb): Likewise for params "from", "to", "after"
812 (push_to_sequence): Likewise for param "first" and local "last".
813 (push_to_sequence2): Likewise for params "first" and "last".
814 * lra.c (emit_add3_insn): Likewise for local "last".
815 (lra_emit_add): Likewise.
816 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
818 (process_address_1): Likewise for locals "insn", last".
819 * modulo-sched.c (ps_first_note): Likewise for return type.
820 * optabs.c (expand_binop_directly): Likewise for param "last".
822 2014-08-26 David Malcolm <dmalcolm@redhat.com>
824 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
826 * emit-rtl.c (get_last_insn_anywhere): Likewise.
828 2014-08-26 David Malcolm <dmalcolm@redhat.com>
830 * function.h (struct sequence_stack): Strengthen fields "first"
831 and "last" from rtx to rtx_insn *.
832 (struct emit_status): Likewise for fields "x_first_insn" and
835 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
836 (set_first_insn): Add checked cast.
837 (get_last_insn): Remove now-redundant checked cast.
838 (set_last_insn): Add checked cast.
840 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
841 "saved_first" and "saved_last" from rtx to rtx_insn *.
843 2014-08-26 David Malcolm <dmalcolm@redhat.com>
845 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
846 (unlink_insn_chain): Strengthen both params from rtx to
849 * cfgrtl.c (cfg_layout_function_header): Likewise for this
851 (unlink_insn_chain): Likewise for params "first" and "last".
852 Remove now-redundant checked cast.
853 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
854 (fixup_reorder_chain): Strengthen local "insn" from rtx to
856 * emit-rtl.c (link_insn_into_chain): Likewise for all three
858 (add_insn): Likewise for param "insn" and local "prev".
859 (add_insn_after_nobb): Likewise for both params and local "next".
860 (add_insn_before_nobb): Likewise for both params and local "prev".
861 (add_insn_after): Rename param "after" to "uncast_after",
862 introducing local "after" with another checked cast.
863 (add_insn_before): Rename params "insn" and "before", giving them
864 "uncast_" prefixes, adding the old names back using checked casts.
865 (emit_note_after): Likewise for param "after".
866 (emit_note_before): Likewise for param "before".
867 (emit_label): Add a checked cast.
869 2014-08-26 David Malcolm <dmalcolm@redhat.com>
871 * cselib.h (cselib_record_sets_hook): Strengthen initial param
872 "insn" from rtx to rtx_insn *.
874 * cselib.c (cselib_record_sets_hook): Likewise.
876 * var-tracking.c (add_with_sets): Likewise, renaming back from
877 "uncast_insn" to "insn" and eliminating the checked cast from rtx
880 2014-08-26 David Malcolm <dmalcolm@redhat.com>
882 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
883 and "header_" from rtx to rtx_insn *.
884 (struct basic_block_d): Likewise for field "head_" within "x"
885 field of union basic_block_il_dependent.
886 (BB_HEAD): Drop function...
887 (SET_BB_HEAD): ...and this function in favor of...
888 (BB_HEAD): ...reinstate macro.
889 (BB_END): Drop function...
890 (SET_BB_END): ...and this function in favor of...
891 (BB_END): ...reinstate macro.
892 (BB_HEADER): Drop function...
893 (SET_BB_HEADER): ...and this function in favor of...
894 (BB_HEADER): ...reinstate macro.
896 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
897 (fix_crossing_unconditional_branches): Likewise.
898 * caller-save.c (save_call_clobbered_regs): Likewise.
899 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
900 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
901 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
902 (merge_blocks_move_successor_nojumps): Likewise.
903 (outgoing_edges_match): Update use of for_each_rtx to
904 for_each_rtx_in_insn.
905 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
906 (expand_gimple_cond): Likewise.
907 (expand_gimple_tailcall): Likewise.
908 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
910 (construct_exit_block): Drop use of SET_BB_END.
911 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
913 (delete_insn): Rename param "insn" to "uncast_insn", introducing
914 a new local "insn" with a checked cast to rtx_insn *. Drop use of
915 SET_BB_HEAD and SET_BB_END.
916 (create_basic_block_structure): Drop use of SET_BB_HEAD and
918 (rtl_delete_block): Drop use of SET_BB_HEAD.
919 (rtl_split_block): Drop use of SET_BB_END.
920 (emit_nop_for_unique_locus_between): Likewise.
921 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
922 (block_label): Drop use of SET_BB_HEAD.
923 (fixup_abnormal_edges): Drop use of SET_BB_END.
924 (record_effective_endpoints): Drop use of SET_BB_HEADER.
925 (relink_block_chain): Likewise.
926 (fixup_reorder_chain): Drop use of SET_BB_END.
927 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
928 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
929 rtx_insn **. Drop use of SET_BB_HEADER.
930 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
932 (BB_HEAD): Delete this function.
933 (SET_BB_HEAD): Likewise.
935 (SET_BB_END): Likewise.
936 (BB_HEADER): Likewise.
937 (SET_BB_HEADER): Likewise.
938 * emit-rtl.c (add_insn_after): Rename param "insn" to
939 "uncast_insn", adding a new local "insn" and a checked cast to
940 rtx_insn *. Drop use of SET_BB_END.
941 (remove_insn): Strengthen locals "next" and "prev" from rtx to
942 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
943 (reorder_insns): Drop use of SET_BB_END.
944 (emit_insn_after_1): Strengthen param "first" and locals "last",
945 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
946 (emit_pattern_after_noloc): Add checked cast.
947 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
948 (restore_other_notes): Likewise.
949 (move_insn): Likewise.
950 (sched_extend_bb): Likewise.
951 (fix_jump_move): Likewise.
952 * ifcvt.c (noce_process_if_block): Likewise.
953 (dead_or_predicable): Likewise.
954 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
955 * reg-stack.c (change_stack): Drop use of SET_BB_END.
956 * sel-sched-ir.c (sel_move_insn): Likewise.
957 * sel-sched.c (move_nop_to_previous_block): Likewise.
959 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
961 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
963 2014-08-26 David Malcolm <dmalcolm@redhat.com>
965 * basic-block.h (create_basic_block_structure): Strengthen params
966 1 "head" and 2 "end" from rtx to rtx_insn *.
967 * cfgrtl.c (create_basic_block_structure): Likewise.
968 (rtl_create_basic_block): Update casts from void * to rtx to
969 rtx_insn *, so that we can pass them as rtx_insn * to
970 create_basic_block_structure.
971 * sel-sched-ir.c (sel_create_basic_block): Likewise.
973 2014-08-26 David Malcolm <dmalcolm@redhat.com>
975 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
977 (check_for_inc_dec): Strengthen param "insn" from rtx to
980 * cselib.h (cselib_process_insn): Likewise.
982 * cselib.c (cselib_record_sets): Likewise.
983 (cselib_process_insn): Likewise.
985 * dse.c (struct insn_info): Likewise for field "insn".
986 (check_for_inc_dec_1): Likewise for local "insn".
987 (check_for_inc_dec): Likewise for param "insn".
988 (scan_insn): Likewise.
989 (dse_step1): Likewise for local "insn".
991 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
992 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
994 2014-08-26 David Malcolm <dmalcolm@redhat.com>
996 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
997 from rtx to rtx_insn *.
998 (DEP_PRO): Delete this function and...
999 (SET_DEP_PRO): ...this function in favor of...
1000 (DEP_PRO): ...reinstate this macro.
1001 (DEP_CON): Delete this function and...
1002 (SET_DEP_CON): ...this function in favor of...
1003 (DEP_CON): ...reinstate this old macro.
1004 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1005 (init_dep): Likewise.
1006 (set_priorities): Likewise for both params.
1007 (sd_copy_back_deps): Likewise for params 1 and 2.
1009 * haifa-sched.c (priority): Likewise for param "insn" and local
1011 (set_priorities): Likewise for params "head" and "tail" and local
1013 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1015 (add_to_speculative_block): Add a checked cast.
1016 (create_check_block_twin): Drop use of SET_DEP_CON.
1017 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1020 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1021 Drop use of SET_DEP_PRO
1022 (init_dep): Strengthen params "pro" and "con" from rtx to
1024 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1028 (SET_DEP_PRO): Delete.
1029 (SET_DEP_CON): Delete.
1031 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1033 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1034 from rtx to rtx_insn *.
1035 (VINSN_INSN_RTX): Eliminate rvalue function and...
1036 (SET_VINSN_INSN): ...lvalue function in favor of...
1037 (VINSN_INSN_RTX): reinstate this old macro.
1039 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1040 in favor of VINSN_INSN_RTX.
1041 (VINSN_INSN_RTX): Delete this function.
1042 (SET_VINSN_INSN_RTX): Likewise.
1044 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1046 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1047 (BND_TO): Delete this function and...
1048 (SET_BND_TO): ...this functions in favor of...
1049 (BND_TO): ...reinstating this macro.
1050 (struct _fence): Strengthen field "executing_insns" from
1051 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1052 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1053 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1054 and param "insn" from rtx to insn_t.
1055 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1058 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1060 (rtx_vec_t): Likewise.
1061 (struct sched_deps_info_def): Strengthen param of "start_insn"
1062 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1063 "note_mem_dep" callback and first param of "note_dep" callback.
1065 * haifa-sched.c (add_to_speculative_block): Strengthen param
1066 "insn" from rtx to rtx_insn *.
1067 (clear_priorities): Likewise.
1068 (calc_priorities): Likewise for local "insn".
1070 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1071 Remove redundant checked cast.
1072 (haifa_note_mem_dep): Likewise for param "pending_insn".
1073 (haifa_note_dep): Likewise for param "elem".
1074 (note_mem_dep): Likewise for param "e".
1075 (sched_analyze_1): Add checked casts.
1076 (sched_analyze_2): Likewise.
1078 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1079 from rtx to rtx_insn *.
1080 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1081 from vec<rtx> * to vec<rtx_insn *> *.
1083 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1085 (flist_add): Strengthen param "executing_insns" from
1086 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1087 (advance_deps_context): Remove now-redundant checked cast.
1088 (init_fences): Replace uses of NULL_RTX with NULL.
1089 (merge_fences): Strengthen params "last_scheduled_insn" and
1090 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1091 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1092 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1093 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1094 an instruction, rather than doing double-duty as a pattern.
1095 (return_nop_to_pool): Update for change of insn_t.
1096 (deps_init_id): Remove now-redundant checked cast.
1097 (struct sched_scan_info_def): Strengthen param of "init_insn"
1098 callback from rtx to insn_t.
1099 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1100 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1102 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1103 "end" from rtx to rtx_insn *.
1104 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1105 (rtx insn_rtx, bool force_unique_p)
1106 (BND_TO): Delete function.
1107 (SET_BND_TO): Delete function.
1109 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1111 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1112 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1114 (undo_transformations): Likewise for param "insn".
1115 (update_liveness_on_insn): Likewise.
1116 (compute_live_below_insn): Likewise for param "insn" and local
1118 (update_data_sets): Likewise for param "insn".
1119 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1120 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1121 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1123 (move_cond_jump): Likewise for param "insn".
1124 (move_cond_jump): Drop use of SET_BND_TO.
1125 (compute_av_set_on_boundaries): Likewise.
1126 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1127 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1128 from rtx to rtx_insn *.
1129 (maybe_emit_renaming_copy): Likewise for param "insn".
1130 (maybe_emit_speculative_check): Likewise.
1131 (handle_emitting_transformations): Likewise.
1132 (remove_insn_from_stream): Likewise.
1133 (code_motion_process_successors): Strengthen local "succ" from rtx
1136 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1138 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1139 ilist_t, not _xlist_t;
1140 (ILIST_INSN): Define in terms of new union field "insn".
1141 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1143 (struct _list_node): Add new field "insn" to the union, of type
1145 (ilist_add): Replace macro with an inline function, requiring an
1147 (ilist_remove): Define this macro directly in terms of
1148 _list_remove, rather than indirectly via _xlist_remove.
1149 (ilist_clear): Likewise, in terms of _list_clear rather than
1151 (ilist_is_in_p): Replace macro with an inline function, requiring
1153 (_list_iter_cond_insn): New function.
1154 (ilist_iter_remove): Define this macro directly in terms of
1155 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1156 (ilist_iterator): Define directly in terms of _list_iterator
1157 rather than indirectly through _xlist_iterator.
1158 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1159 than in terms of _FOR_EACH_X.
1160 (FOR_EACH_INSN_1): Likewise.
1162 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1166 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1167 DECL_HARD_REGISTER and return for invalid register specifications.
1168 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1169 DECL_HARD_REGISTER, call expand_one_error_var.
1170 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1171 CC_REGNUM with non-MODE_CC modes.
1172 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1174 2014-08-26 Marek Polacek <polacek@redhat.com>
1177 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1179 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1181 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1182 qi cost; add di cost.
1183 (cortexa57_addrcost_table): Likewise.
1185 2014-08-26 Marek Polacek <polacek@redhat.com>
1188 * expr.c (is_aligning_offset): Remove logical not.
1190 2014-08-26 Marek Polacek <polacek@redhat.com>
1193 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1194 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1196 2014-08-26 Richard Biener <rguenther@suse.de>
1198 PR tree-optimization/62175
1199 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1200 expand possibly trapping operations.
1202 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1204 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1205 "insn" from rtx to rtx_insn *.
1206 (permute_load): Likewise for param "insn".
1207 (permute_store): Likewise.
1208 (handle_special_swappables): Likewise for local "insn".
1209 (replace_swap_with_copy): Likewise for locals "insn" and
1211 (rs6000_analyze_swaps): Likewise for local "insn".
1213 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1215 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1218 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1220 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1221 "note_list" from rtx to rtx_insn *.
1222 (BB_NOTE_LIST): Replace this function and...
1223 (SET_BB_NOTE_LIST): ...this function with...
1224 (BB_NOTE_LIST): ...the former macro implementation.
1226 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1227 local "from_start" from rtx to rtx_insn *. Strengthen param
1228 "to_endp" from rtx * to rtx_insn **.
1230 * haifa-sched.c (concat_note_lists): Likewise.
1231 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1233 (sel_restore_notes): Likewise.
1234 (move_bb_info): Likewise.
1235 (BB_NOTE_LIST): Delete this function.
1236 (SET_BB_NOTE_LIST): Delete this function.
1237 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1238 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1240 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1242 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1243 from rtx * to rtx_insn **.
1244 (reorder2): Likewise.
1245 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1246 from rtx to rtx_insn *.
1248 * doc/tm.texi: Update mechanically for above change to target.def.
1250 * sched-int.h (note_list): Strengthen this variable from rtx to
1252 (remove_notes): Likewise for both params.
1253 (restore_other_notes): Likewise for return type and first param.
1254 (struct ready_list): Strengthen field "vec" from rtx * to
1256 (struct dep_replacement): Strenghten field "insn" from rtx to
1258 (struct deps_desc): Likewise for fields "last_debug_insn",
1260 (struct haifa_sched_info): Likewise for callback field
1261 "can_schedule_ready_p"'s param, for first param of "new_ready"
1262 callback field, for both params of "rank" callback field, for
1263 first field of "print_insn" callback field (with a const), for
1264 both params of "contributes_to_priority" callback, for param
1265 of "insn_finishes_block_p" callback, for fields "prev_head",
1266 "next_tail", "head", "tail", for first param of "add_remove_insn"
1267 callback, for first param of "begin_schedule_ready" callback, for
1268 both params of "begin_move_insn" callback, and for second param
1269 of "advance_target_bb" callback.
1270 (add_dependence): Likewise for params 1 and 2.
1271 (sched_analyze): Likewise for params 2 and 3.
1272 (deps_analyze_insn): Likewise for param 2.
1273 (ready_element): Likewise for return type.
1274 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1275 (try_ready): Strenghten param from rtx to rtx_insn *.
1276 (sched_emit_insn): Likewise for return type.
1277 (record_delay_slot_pair): Likewise for params 1 and 2.
1278 (add_delay_dependencies): Likewise for param.
1279 (contributes_to_priority): Likewise for both params.
1280 (find_modifiable_mems): Likewise.
1282 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1283 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1284 "first_older_only_insn" from rtx to rtx_insn *.
1285 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1288 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1289 "last_scheduled_iter0" from rtx to rtx_insn *.
1290 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1291 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1292 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1293 "insn" from rtx to rtx_insn *.
1294 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1296 (c6x_sched_reorder2): Strengthen param "ready" and locals
1297 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1298 "insn" from rtx to rtx_insn *.
1299 (c6x_variable_issue): Add a checked cast when assigning from insn
1300 to ss.last_scheduled_iter0.
1301 (split_delayed_branch): Strengthen param "insn" and local "i1"
1302 from rtx to rtx_insn *.
1303 (split_delayed_nonbranch): Likewise.
1304 (undo_split_delayed_nonbranch): Likewise for local "insn".
1305 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1306 "entry_after", "end_packet", "head_insn", "tail_insn",
1307 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1308 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1309 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1310 but add a checked cast on loop->start_label. Consolidate calls to
1311 avoid assigning result of gen_spkernel to "insn", now an
1314 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1315 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1317 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1318 rtx_insn **. Strengthen locals "top", "next" from rtx to
1320 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1321 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1322 (add_parameter_dependencies): Strengthen params "call", "head" and
1323 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1324 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1325 (add_dependee_for_func_arg): Likewise for param "arg" and local
1327 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1328 "tail" and locals "insn", "first_arg".
1330 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1331 for params "head", "tail" and locals "insn", "next", "next_tail".
1332 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1333 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1334 "insn", "lowest", "highest" from rtx to rtx_insn *.
1335 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1337 (ia64_sched_reorder2): Likewise.
1339 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1340 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1341 from rtx * to rtx_insn **.
1342 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1344 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1346 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1347 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1350 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1351 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1353 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1354 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1355 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1357 (vr4130_reorder): Likewise.
1358 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1360 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1362 (mips_sched_reorder): Likewise.
1363 (mips_sched_reorder2): Likewise.
1365 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1367 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1368 Strengthen local "tmp" from rtx to rtx_insn *.
1369 (rs6000_sched_reorder2): Likewise.
1371 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1372 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1373 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1374 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1376 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1377 "tmp2" from rtx to rtx_insn *.
1378 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1379 Strengthen local "insn" from rtx to rtx_insn *.
1380 (ready_reorder): Strengthen param "ready" from rtx * to
1381 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1382 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1383 (sh_reorder2): Likewise.
1385 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1386 local "insn" from rtx to rtx_insn *.
1388 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1390 (scheduled_insns): Strengthen this variable from vec<rtx> to
1392 (set_modulo_params): Likewise for locals "i1", "i2".
1393 (record_delay_slot_pair): Likewise for params "i1", "i2".
1394 (add_delay_dependencies): Likewise for param "insn".
1395 (cond_clobbered_p): Likewise.
1396 (recompute_todo_spec): Likewise for local "prev".
1397 (last_scheduled_insn): Likewise for this variable.
1398 (nonscheduled_insns_begin): Likewise.
1399 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1401 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1403 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1404 Strengthen local "insn" from rtx to rtx_insn *.
1405 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1406 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1407 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1408 (ready_remove_first): Likewise for return type and local "t".
1409 (ready_element): Likewise for return type.
1410 (ready_remove): Likewise for return type and local "t".
1411 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1412 (check_clobbered_conditions): Strengthen local "x" from rtx to
1413 rtx_insn *, adding a checked cast.
1414 (schedule_insn): Likewise for param "insn".
1415 (remove_notes): Likewise for params "head", "tail" and locals
1416 "next_tail", "insn", "next".
1417 (struct haifa_saved_data): Likewise for fields
1418 "last_scheduled_insn", "nonscheduled_insns_begin".
1419 (save_backtrack_point): Update for change to field "vec" of
1421 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1423 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1424 from rtx to rtx_insn *
1425 (resolve_dependencies): Strengthen param "insn" from rtx to
1427 (restore_other_notes): Likewise for return type, for param "head"
1428 and local "note_head".
1429 (undo_all_replacements): Likewise for local "insn".
1430 (first_nonscheduled_insn): Likewise for return type and local "insn".
1431 (queue_to_ready): Likewise for local "insn", adding checked casts.
1432 (early_queue_to_ready): Likewise for local "insn".
1433 (debug_ready_list_1): Strengthen local "p" from rtx * to
1435 (move_insn): Strengthen param "insn" and local "note" from rtx to
1437 (insn_finishes_cycle_p): Likewise for param "insn".
1438 (max_issue): Likewise for local "insn".
1439 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1441 (commit_schedule): Strengthen param "prev_head" and local "insn"
1442 from rtx to rtx_insn *
1443 (prune_ready_list): Likewise for local "insn".
1444 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1445 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1446 (set_priorities): Likewise for local "prev_head".
1447 (try_ready): Likewise for param "next".
1448 (fix_tick_ready): Likewise.
1449 (change_queue_index): Likewise.
1450 (sched_extend_ready_list): Update for change to field "vec" of
1452 (generate_recovery_code): Strengthen param "insn" from rtx to
1454 (begin_speculative_block): Likewise.
1455 (create_check_block_twin): Likewise for param "insn" and locals
1456 "label", "check", "twin". Introduce local "check_pat" to avoid
1457 "check" being used as a plain rtx before being used as an insn.
1458 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1459 extracting elements from ready_list.
1460 (sched_remove_insn): Strengthen param "insn" from rtx to
1462 (sched_emit_insn): Likewise for return type.
1463 (ready_remove_first_dispatch): Likewise for return type and local
1466 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1468 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1471 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1472 from rtx to rtx_insn *.
1473 (add_dependence_list): Likewise for param "insn". Add a checked
1475 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1476 to rtx_insn *. Strengthen param "list_p" from rtx * to
1478 (chain_to_prev_insn): Strengthen param "insn" and locals
1479 "prec_nonnote", "i" from rtx to rtx_insn *.
1480 (flush_pending_lists): Likewise for param "insn".
1481 (cur_insn): Likewise for this variable.
1482 (haifa_start_insn): Add a checked cast.
1483 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1484 (sched_analyze_reg): Likewise for param "insn".
1485 (sched_analyze_1): Likewise.
1486 (sched_analyze_2): Likewise. Add checked casts.
1487 (sched_analyze_insn): Likewise. Also for local "prev".
1488 (deps_analyze_insn): Likewise for param "insn".
1489 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1490 (add_dependence_1): Likewise for params "insn", "elem".
1491 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1492 (parse_add_or_inc): Likewise for param "insn".
1493 (find_inc): Likewise for local "inc_cand".
1494 (find_modifiable_mems): Likewise for params "head", "tail" and
1495 locals "insn", "next_tail".
1497 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1498 (begin_schedule_ready): Likewise for param "insn".
1499 (begin_move_insn): Likewise for params "insn" and "last".
1500 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1502 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1503 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1504 (ebb_add_remove_insn): Likewise for param "insn".
1505 (advance_target_bb): Likewise.
1507 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1509 (check_live): Likewise for param "insn".
1510 (init_ready_list): Likewise for local "insn".
1511 (can_schedule_ready_p): Likewise for param "insn".
1512 (begin_schedule_ready): Likewise.
1513 (new_ready): Likewise for param "next".
1514 (rgn_print_insn): Likewise for param "insn".
1515 (rgn_rank): Likewise for params "insn1", "insn2".
1516 (contributes_to_priority): Likewise for params "next", "insn".
1517 (rgn_insn_finishes_block_p): Likewise for param "insn".
1518 (add_branch_dependences): Likewise for params "head", "tail" and
1519 locals "insn", "last".
1520 (rgn_add_remove_insn): Likewise for param "insn".
1521 (advance_target_bb): Likewise.
1523 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1524 const_rtx to const rtx_insn *.
1526 * sel-sched-dump.h (sel_print_insn): Likewise.
1528 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1529 (deps_init_id): Likewise.
1531 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1532 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1535 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1537 * output.h (final_start_function): Strengthen param 1 from rtx to
1540 * final.c (final_start_function): Likewise, renaming back from
1541 "uncast_first" to "first", and dropping the checked cast from rtx
1544 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1546 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1547 * final.c (final): Likewise. Rename param back from
1548 "uncast_first" to "first" and eliminate the checked cast from rtx
1551 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1553 * output.h (shorten_branches): Strengthen param from rtx to
1556 * final.c (shorten_branches): Likewise, renaming param back from
1557 "uncast_first" to "first", and dropping the checked cast from rtx
1560 * genattr.c (gen_attr): Likewise when writing out the prototype of
1563 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1565 * sched-int.h (struct haifa_sched_info): Strengthen fields
1566 "prev_head" and "next_tail" from rtx to rtx_insn *.
1568 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1570 * rtl.h (rtx_jump_table_data::get_labels): New method.
1571 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1572 with use of the new rtx_jump_table_data::get_labels method.
1573 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1574 to rtx_jump_table_data *. Simplify by using get_labels method.
1575 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1576 a dyn_cast, introducing local "table", using it to replace
1577 label-lookup logic with a get_labels method call.
1578 (patch_jump_insn): Simplify using get_labels method.
1579 * dwarf2cfi.c (create_trace_edges): Likewise.
1580 * rtlanal.c (label_is_jump_target_p): Likewise.
1582 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1584 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1587 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1588 (unshare_all_rtl_again): Likewise, also for local "p".
1590 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1592 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1594 * cfgrtl.c (delete_insn_and_edges): Likewise.
1596 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1598 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1599 from rtx to rtx_insn *.
1601 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1603 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1605 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1606 locals "returnjump", "epilogue_end", "insn", "next".
1608 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1609 "returnjump" from rtx * to rtx_insn **.
1610 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1612 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1614 * basic-block.h (struct edge_def). Strengthen "r" within
1615 union edge_def_insns from rtx to rtx_insn *.
1617 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1618 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1620 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1621 from rtx to rtx_insn *.
1622 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1624 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1625 (reg_used_on_edge): Likewise.
1626 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1627 (gt_pch_nx): New overload for rtx_insn *&.
1628 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1629 from rtx to rtx_insn *.
1631 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1633 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1634 from rtx to rtx_insn *.
1635 (BB_FOOTER): Replace function with access macro.
1636 (SET_BB_FOOTER): Delete.
1638 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1640 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1641 (emit_barrier_after_bb): Likewise.
1642 (record_effective_endpoints): Likewise.
1643 (relink_block_chain): Likewise.
1644 (fixup_fallthru_exit_predecessor): Likewise.
1645 (cfg_layout_duplicate_bb): Likewise.
1646 (cfg_layout_split_block): Likewise.
1647 (cfg_layout_delete_block): Likewise.
1648 (cfg_layout_merge_blocks): Likewise.
1649 (BB_FOOTER): Delete function.
1650 (SET_BB_FOOTER): Delete function.
1651 * combine.c (update_cfg_for_uncondjump): Replace uses of
1652 SET_BB_FOOTER with BB_FOOTER.
1654 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1656 * except.h (struct eh_landing_pad_d): Strengthen field
1657 "landing_pad" from rtx to rtx_code_label *.
1659 * except.c (sjlj_emit_dispatch_table): Likewise for param
1661 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1663 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1665 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1666 first param from rtx to rtx_insn *.
1667 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1668 field "set_frame_ptr_insn".
1669 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1670 "csend" from rtx to rtx_code_label *.
1671 (xtensa_expand_atomic): Likewise for local "csloop".
1672 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1674 (xtensa_call_tls_desc): Likewise for return type and locals
1675 "call_insn", "insns".
1676 (xtensa_legitimize_tls_address): Likewise for local "insns".
1677 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1679 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1681 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1682 first param from rtx to rtx_insn *.
1683 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1686 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1688 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1689 Strengthen param 1 from rtx to rtx_insn *.
1690 (tilepro_output_cbranch): Likewise.
1691 (tilepro_adjust_insn_length): Likewise.
1692 (tilepro_final_prescan_insn): Likewise for sole param.
1694 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1695 Likewise for local "last".
1696 (cbranch_predicted_p): Likewise for param "insn".
1697 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1698 (tilepro_output_cbranch_with_opcode): Likewise.
1699 (tilepro_output_cbranch): Likewise.
1700 (frame_emit_load): Likewise for return type and locals "seq",
1702 (emit_sp_adjust): Likewise for return type and local "insn".
1703 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1705 (tilepro_adjust_insn_length): Likewise for param "insn".
1706 (next_insn_to_bundle): Likewise for return type and params
1708 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1709 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1711 (match_addli_pcrel): Likewise for param "insn".
1712 (replace_addli_pcrel): Likewise.
1713 (match_auli_pcrel): Likewise.
1714 (replace_auli_pcrel): Likewise.
1715 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1717 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1718 "queue", "next_queue", "prev".
1719 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1720 (tilepro_final_prescan_insn): Likewise for param "insn".
1722 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1724 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1725 Strengthen param 1 from rtx to rtx_insn *.
1726 (tilegx_output_cbranch): Likewise.
1727 (tilegx_adjust_insn_length): Likewise.
1728 (tilegx_final_prescan_insn): Likewise for sole param.
1730 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1732 (cbranch_predicted_p): Likewise for param "insn".
1733 (tilegx_output_simple_cbranch_with_opcode): Likewise.
1734 (tilegx_output_cbranch_with_opcode): Likewise.
1735 (tilegx_output_cbranch): Likewise.
1736 (frame_emit_load): Likewise for return type.
1737 (set_frame_related_p): Likewise for locals "seq", "insn".
1738 (emit_sp_adjust): Likewise for return type, and for local "insn".
1739 Introduce local "pat" for use in place of "insn" where the latter
1740 isn't an instruction.
1741 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
1742 from rtx to rtx_insn *.
1743 (tilegx_adjust_insn_length): Likewise for param "insn".
1744 (next_insn_to_bundle): Likewise for return type and params "r" and
1746 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
1748 (replace_insns): Likewise for params "old_insn", "new_insns".
1749 (replace_mov_pcrel_step1): Likewise for param "insn" and local
1751 (replace_mov_pcrel_step2): Likewise.
1752 (replace_mov_pcrel_step3): Likewise.
1753 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
1755 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1756 "queue", "next_queue", "prev".
1757 (tilegx_output_mi_thunk): Likewise for local "insn".
1758 (tilegx_final_prescan_insn): Likewise for param "insn".
1760 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1762 * config/spu/spu.c (frame_emit_store): Strengthen return type from
1764 (frame_emit_load): Likewise.
1765 (frame_emit_add_imm): Likewise, also for local "insn".
1766 (spu_expand_prologue): Likewise for local "insn".
1767 (struct spu_bb_info): Likewise for field "prop_jump".
1768 (emit_nop_for_insn): Likewise for param "insn" and local
1770 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
1772 (spu_emit_branch_hint): Likewise for params "before", "branch" and
1773 locals "hint", "insn".
1774 (get_branch_target): Likewise for param "branch".
1775 (insn_clobbers_hbr): Likewise for param "insn".
1776 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
1777 locals "insn", "before_4", "before_16".
1778 (insert_hbrp): Likewise for local "insn".
1779 (spu_machine_dependent_reorg): Likewise for locals "branch",
1780 "insn", "next", "bbend".
1781 (uses_ls_unit): Likewise for param "insn".
1782 (get_pipe): Likewise.
1783 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
1784 introducing a checked cast.
1785 (spu_sched_adjust_cost): Likewise for params "insn" and
1787 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
1788 (spu_sms_res_mii): Likewise.
1790 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1792 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
1793 from rtx to rtx_insn *.
1794 (output_cbranch): Likewise for param 6.
1795 (output_return): Likewise for param 1.
1796 (output_sibcall): Likewise.
1797 (output_v8plus_shift): Likewise.
1798 (output_v8plus_mult): Likewise.
1799 (output_v9branch): Likewise for param 7.
1800 (output_cbcond): Likewise for param 3.
1802 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
1804 (sparc_legitimize_pic_address): Likewise.
1805 (sparc_emit_call_insn): Likewise.
1806 (emit_save_or_restore_regs): Likewise.
1807 (emit_window_save): Likewise for return type and local "insn".
1808 (sparc_expand_prologue): Likewise for local "insn".
1809 (sparc_flat_expand_prologue): Likewise.
1810 (output_return): Likewise for param "insn".
1811 (output_sibcall): Likewise for param "insn" and local "delay".
1812 (output_ubranch): Likewise for param "insn".
1813 (output_cbranch): Likewise.
1814 (output_cbcond): Likewise.
1815 (output_v9branch): Likewise.
1816 (output_v8plus_shift): Likewise.
1817 (sparc_output_mi_thunk): Likewise for local "insn".
1818 (get_some_local_dynamic_name): Likewise.
1819 (output_v8plus_mult): Likewise for param "insn".
1821 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1823 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
1824 from rtx to rtx_insn *.
1825 (output_branchy_insn): Likewise for param 3.
1826 (output_far_jump): Likewise for param 1.
1827 (final_prescan_insn): Likewise.
1828 (sh_insn_length_adjustment): Likewise for sole param.
1830 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
1831 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
1833 (sh_emit_compare_and_set): Likewise for local "lab".
1834 (output_far_jump): Strengthen param "insn" and local "prev" from
1836 (output_branchy_insn): Likewise for param "insn" and local
1838 (output_ieee_ccmpeq): Likewise for param "insn".
1839 (struct label_ref_list_d): Strengthen field "label" from rtx to
1841 (pool_node): Likewise.
1842 (pool_window_label): Likewise for this global.
1843 (add_constant): Likewise for return type and locals "lab", "new_rtx".
1844 (dump_table): Strengthen params "start", "barrier" and local
1845 "scan" from rtx to rtx_insn *.
1846 (broken_move): Likewise for param "insn".
1847 (untangle_mova): Likewise for params "first_mova" and "new_mova".
1848 Strengthen param "first_mova" from rtx * to rtx_insn **.
1849 (mova_p): Likewise for param "insn".
1850 (fixup_mova): Likewise for param "mova".
1851 (find_barrier): Likewise for return type, params "mova" and
1852 "from", and locals "barrier_before_mova", "found_barrier",
1853 "good_barrier", "orig", "last_symoff", "next". Strengthen local
1854 "label" from rtx to rtx_code_label *.
1855 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
1857 (sh_reorg): Likewise for locals "link", "scan", "barrier".
1858 (split_branches): Likewise for param "first" and local "insn".
1859 (final_prescan_insn): Likewise for param "insn".
1860 (sequence_insn_p): Likewise for locals "prev", "next".
1861 (sh_insn_length_adjustment): Likewise for param "insn".
1862 (sh_can_redirect_branch): Likewise for local "insn".
1863 (find_r0_life_regions): Likewise for locals "end", "insn".
1864 (sh_output_mi_thunk): Likewise for local "insns".
1866 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1868 * config/score/score.c (score_output_mi_thunk): Strengthen local
1869 "insn" from rtx to rtx_insn *.
1870 (score_prologue): Likewise.
1872 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1874 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
1875 1 from rtx to rtx_insn *.
1876 (s390_emit_jump): Likewise for return type.
1877 (s390_emit_call): Likewise.
1878 (s390_load_got): Likewise.
1880 * config/s390/s390.c (last_scheduled_insn): Likewise for this
1882 (s390_match_ccmode): Likewise for param "insn".
1883 (s390_emit_jump): Likewise for return type.
1884 (s390_split_branches): Likewise for local "label".
1885 (struct constant): Strengthen field "label" from rtx to
1887 (struct constant_pool): Likewise for field "label". Strengthen
1888 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
1890 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
1892 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
1893 (s390_end_pool): Likewise.
1894 (s390_dump_pool): Likewise for local "insn".
1895 (s390_mainpool_start): Likewise.
1896 (s390_chunkify_start): Likewise.
1897 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
1898 with insns. Strengthen locals "label", "jump", "barrier", "next",
1899 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
1900 (s390_chunkify_finish): Strengthen local "insn" from rtx to
1902 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
1903 "jump", "label", "next_insn".
1904 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
1905 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
1907 (s390_load_got): Likewise for return type and local "insns".
1908 (s390_save_gprs_to_fprs): Likewise for local "insn".
1909 (s390_restore_gprs_from_fprs): Likewise.
1910 (pass_s390_early_mach::execute): Likewise.
1911 (s390_emit_prologue): Likewise for local "insns".
1912 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
1914 (s390_emit_call): Strengthen return type and local "insn" from
1916 (s390_emit_tpf_eh_return): Likewise for local "insn".
1917 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
1918 "next_insn", introducing locals "s_pat", "rpat" to allow this.
1919 (s390_fix_long_loop_prediction): Likewise for param "insn" and
1921 (s390_non_addr_reg_read_p): Likewise for param "insn".
1922 (find_cond_jump): Likewise for return type and param "insn".
1923 (s390_swap_cmp): Likewise for param "insn".
1924 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
1925 "prev_insn", "next_insn".
1926 (s390_reorg): Likewise for locals "insn", "target".
1927 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
1928 (s390_sched_variable_issue): For now, rename param "insn" to
1929 "uncast_insn", introducing a checked cast.
1930 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
1932 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
1933 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
1935 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1937 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
1938 param from rtx to rtx_insn *.
1939 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
1941 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1943 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
1944 4 from rtx to rtx_insn *.
1945 (rs6000_final_prescan_insn): Likewise for first param.
1946 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
1948 (rs6000_get_some_local_dynamic_name): Likewise.
1949 (output_cbranch): Likewise for param "insn".
1950 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
1951 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
1952 (rs6000_emit_allocate_stack): Likewise for local "insn".
1953 (load_cr_save): Likewise.
1954 (restore_saved_cr): Likewise.
1955 (restore_saved_lr): Likewise.
1956 (emit_cfa_restores): Likewise.
1957 (rs6000_output_function_epilogue): Likewise for locals "insn" and
1958 "deleted_debug_label".
1959 (rs6000_output_mi_thunk): Likewise for local "insn".
1960 (rs6000_final_prescan_insn): Likewise for param "insn".
1962 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1964 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
1965 Strengthen param "insn" from rtx to rtx_insn *.
1966 * config/picochip/picochip.c (picochip_current_prescan_insn):
1967 Likewise for this variable.
1968 (picochip_final_prescan_insn): Likewise for param "insn".
1970 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1972 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
1973 from rtx to rtx_insn *.
1974 (pa_output_indirect_call): Likewise.
1975 (pa_adjust_insn_length): Likewise.
1976 (pa_attr_length_millicode_call): Likewise.
1977 (pa_attr_length_call): Likewise.
1978 (pa_attr_length_indirect_call): Likewise.
1980 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
1982 (pa_attr_length_millicode_call): Likewise.
1983 (pa_attr_length_call): Likewise.
1984 (pa_output_call): Likewise.
1985 (pa_attr_length_indirect_call): Likewise.
1986 (pa_output_indirect_call): Likewise.
1988 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1990 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
1991 Strengthen first param from rtx to rtx_insn *.
1992 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
1995 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1997 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
1998 type from rtx to rtx_insn *.
1999 (mips_expand_call): Likewise.
2000 (mips_adjust_insn_length): Likewise for first param.
2001 (mips_output_conditional_branch): Likewise.
2002 (mips_output_order_conditional_branch): Likewise.
2003 (mips_final_prescan_insn): Likewise.
2005 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2006 rtx_insn * for the SEQUENCE case.
2007 (SEQ_END): Likewise.
2008 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2009 (mips_emit_call_insn): Likewise, also for local "insn".
2010 (mips16_gp_pseudo_reg): Likewise for local "scan".
2011 (mips16_build_call_stub): Likewise for return type and for local
2012 "insn". Introduce a new local "pattern" so that "insn" can indeed
2014 (mips_expand_call): Strengthen return type and local "insn" from
2016 (mips_block_move_loop): Strengthen local "label" from rtx to
2018 (mips_expand_synci_loop): Likewise for locals "label",
2020 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2022 (mips16e_collect_argument_saves): Likewise for locals "insn",
2024 (mips_find_gp_ref): Likewise for param of callback for "pred"
2025 param, and for local "insn".
2026 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2027 (mips_insn_has_flexible_gp_ref_p): Likewise.
2028 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2030 (mips_epilogue_set_cfa): Likewise for local "insn".
2031 (mips_expand_epilogue): Likewise.
2032 (mips_adjust_insn_length): Likewise for param "insn".
2033 (mips_output_conditional_branch): Likewise.
2034 (mips_output_order_conditional_branch): Likewise.
2035 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2036 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2037 "falu2_turn_enabled_insn".
2038 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2039 "done_label" from rtx to rtx_code_label *.
2040 (struct mips16_constant): Likewise for field "label".
2041 (mips16_add_constant): Likewise for return type.
2042 (mips16_emit_constants_1): Strengthen return type and param "insn"
2043 from rtx to rtx_insn *.
2044 (mips16_emit_constants): Likewise for param "insn".
2045 (mips16_insn_length): Likewise.
2046 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2047 to rtx_code_label *.
2048 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2049 from rtx to rtx_insn *.
2050 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2051 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2052 (r10k_simplify_address): Strengthen param "insn" and local
2053 "def_insn" from rtx to rtx_insn *.
2054 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2056 (r10k_needs_protection_p_1): Update target type of cast of data
2057 from to rtx to rtx_insn *.
2058 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2059 rtx * to rtx_insn **.
2060 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2062 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2063 (mips_call_expr_from_insn): Likewise for param "insn".
2064 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2065 (mips_find_pic_call_symbol): Likewise for param "insn".
2066 (mips_annotate_pic_calls): Likewise for local "insn".
2067 (mips_sim_insn): Likewise for this variable.
2068 (struct mips_sim): Likewise for field "insn" within elements of
2070 (mips_sim_wait_reg): Likewise for param "insn".
2071 (mips_sim_wait_regs): Likewise.
2072 (mips_sim_wait_units): Likewise.
2073 (mips_sim_wait_insn): Likewise.
2074 (mips_sim_issue_insn): Likewise.
2075 (mips_sim_finish_insn): Likewise.
2076 (mips_seq_time): Likewise for param "seq" and local "insn".
2077 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2078 locals "first", "second".
2079 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2080 "last", "last2", "next".
2081 (mips_avoid_hazard): Likewise for params "after", "insn".
2082 (mips_reorg_process_insns): Likewise for locals "insn",
2083 "last_insn", "subinsn", "next_insn".
2084 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2085 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2087 (mips_output_mi_thunk): Likewise for local "insn".
2088 (mips_final_prescan_insn): Likewise for param "insn".
2090 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2092 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2093 Strengthen return type and local "insns" from rtx to rtx_insn *.
2094 (microblaze_legitimize_tls_address): Likewise for local "insns".
2095 (microblaze_block_move_loop): Strengthen local "label" from rtx
2096 to rtx_code_label *.
2097 (microblaze_expand_prologue): Strengthen two locals named "insn"
2098 from rtx to rtx_insn *.
2099 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2100 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2101 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2102 to rtx_code_label *.
2104 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2106 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2107 param from rtx to rtx_insn *.
2108 (mep_reuse_lo): Likewise for third param.
2109 (mep_use_post_modify_p): Likewise for first param.
2110 (mep_core_address_length): Likewise.
2111 (mep_cop_address_length): Likewise.
2112 (mep_final_prescan_insn): Likewise.
2113 (mep_store_data_bypass_p): Likewise for both params.
2114 (mep_mul_hilo_bypass_p): Likewise.
2115 (mep_ipipe_ldc_p): Likewise for param.
2117 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2118 (mep_rewrite_mult): Likewise.
2119 (mep_rewrite_mulsi3): Likewise.
2120 (mep_rewrite_maddsi3): Likewise.
2121 (mep_reuse_lo_p_1): Likewise.
2122 (mep_reuse_lo_p): Likewise.
2123 (mep_frame_expr): Likewise.
2124 (mep_make_parallel): Likewise for both params.
2125 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2127 (mep_use_post_modify_p): Likewise for param "insn".
2128 (mep_core_address_length): Likewise.
2129 (mep_cop_address_length): Likewise.
2130 (mep_reg_set_in_function): Likewise for local "insn".
2131 (mep_asm_without_operands_p): Likewise.
2132 (F): Likewise for return type and param "x".
2133 (add_constant): Likewise for local "insn".
2134 (maybe_dead_move): Likewise for return type and local "insn".
2135 (mep_expand_prologue): Likewise for local "insn".
2136 (mep_final_prescan_insn): Likewise for param "insn".
2137 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2138 "next", "follow", "x".
2139 (mep_insert_repeat_label_last): Likewise for return type, param
2140 "last_insn", and locals "next", "prev". Strengthen param "label"
2141 from rtx to rtx_code_label *.
2142 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2144 (struct mep_doloop_end): Likewise for fields "insn" and
2146 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2147 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2148 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2150 (mep_invert_branch): Likewise for params "insn" and "after".
2151 (mep_reorg_erepeat): Likewise for param "insns" and locals
2152 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2153 "l" from rtx to rtx_code_label *.
2154 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2155 from rtx to rtx_insn *.
2156 (mep_reorg_addcombine): Likewise for param "insns" and locals
2158 (add_sp_insn_p): Likewise for param "insn".
2159 (mep_reorg_noframe): Likewise for param "insns" and locals
2160 "start_frame_insn", "end_frame_insn", "next".
2161 (mep_reorg): Likewise for local "insns".
2162 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2164 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2165 (mep_mul_hilo_bypass_p): Likewise.
2166 (mep_ipipe_ldc_p): Likewise for param "insn".
2167 (mep_make_bundle): Likewise for return type, param "cop" and local
2168 "insn", splitting out the latter into a new local "seq" for when it
2169 is a SEQUENCE rather than an insn.
2170 (core_insn_p): Likewise for param "insn".
2171 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2172 "last", "first", "note", "prev", "core_insn".
2174 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2176 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2178 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2179 (m68k_final_prescan_insn): Likewise for first param.
2181 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2182 (m68k_set_frame_related): Likewise for param "insn".
2183 (output_btst): Likewise for param "insn".
2184 (m68k_final_prescan_insn): Likewise.
2185 (m68k_move_to_reg): Likewise for local "insn".
2186 (m68k_call_tls_get_addr): Likewise for local "insns".
2187 (m68k_call_m68k_read_tp): Likewise.
2188 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2189 (m68k_output_mi_thunk): Likewise for local "insn".
2191 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2193 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2194 first param from rtx to rtx_insn *.
2195 (iq2000_adjust_insn_length): Likewise.
2196 (iq2000_output_conditional_branch): Likewise.
2197 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2198 "insn" and local "nop_insn".
2199 (iq2000_annotate_frame_insn): Likewise for param "insn".
2200 (iq2000_expand_prologue): Likewise for both locals "insn".
2201 (iq2000_adjust_insn_length): Likewise for param "insn".
2202 (iq2000_output_conditional_branch): Likewise.
2204 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2206 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2207 "insns" from rtx to rtx_insn *.
2208 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2209 (struct spill_fill_data): Likewise for field "init_after" and for
2210 elements of array field "prev_insn".
2211 (spill_restore_mem): Likewise for locals "insn", "first".
2212 (do_spill): Likewise for local "insn".
2213 (do_restore): Likewise.
2214 (ia64_expand_prologue): Likewise.
2215 (ia64_expand_epilogue): Likewise.
2216 (emit_insn_group_barriers): Likewise for locals "insn",
2218 (emit_all_insn_group_barriers): Likewise for locals "insn",
2220 (dfa_stop_insn): Likewise for this global.
2221 (dfa_pre_cycle_insn): Likewise.
2222 (ia64_nop): Likewise.
2223 (final_emit_insn_group_barriers): Likewise for locals "insn",
2225 (emit_predicate_relation_info): Likewise for locals "head", "n",
2227 (ia64_reorg): Likewise for local "insn".
2228 (ia64_output_mi_thunk): Likewise.
2229 (expand_vec_perm_interleave_2): Likewise for local "seq".
2231 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2233 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2234 param 1 "insn" from rtx to rtx_insn *.
2235 (ix86_use_lea_for_mov): Likewise.
2236 (ix86_avoid_lea_for_addr): Likewise.
2237 (ix86_split_lea_for_addr): Likewise.
2238 (ix86_lea_for_add_ok): Likewise.
2239 (ix86_output_call_insn): Likewise.
2241 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2242 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2243 (ix86_output_function_epilogue): Likewise for locals "insn",
2244 "deleted_debug_label".
2245 (legitimize_tls_address): Likewise for local "insn".
2246 (get_some_local_dynamic_name): Likewise.
2247 (increase_distance): Likewise for params "prev", "next".
2248 (distance_non_agu_define_in_bb): Likewise for params "insn",
2249 "start" and locals "prev", "next".
2250 (distance_non_agu_define): Likewise for param "insn".
2251 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2252 locals "next", "prev".
2253 (distance_agu_use): Likewise for param "insn".
2254 (ix86_lea_outperforms): Likewise.
2255 (ix86_ok_to_clobber_flags): Likewise.
2256 (ix86_avoid_lea_for_add): Likewise.
2257 (ix86_use_lea_for_mov): Likewise.
2258 (ix86_avoid_lea_for_addr): Likewise.
2259 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2260 (ix86_split_lea_for_addr): Likewise for param "insn".
2261 (ix86_lea_for_add_ok): Likewise for param "insn".
2262 (ix86_expand_carry_flag_compare): Likewise for local
2264 (ix86_expand_int_movcc): Likewise.
2265 (ix86_output_call_insn): Likewise for param "insn".
2266 (ix86_output_call_insn): Likewise for local "i".
2267 (x86_output_mi_thunk): Introduce local "insn", using it in place
2268 of "tmp" when dealing with insns.
2269 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2271 (ix86_pad_returns): Likewise for locals "ret", "prev".
2272 (ix86_count_insn_bb): Likewise for local "insn".
2273 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2274 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2275 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2276 (expand_vec_perm_interleave2): Likewise for local "seq".
2277 (expand_vec_perm_vperm2f128_vblend): Likewise.
2278 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2279 call to for_each_rtx with for_each_rtx_in_insn.
2281 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2283 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2284 "label" from rtx to rtx_code_label *.
2285 (ix86_expand_prologue): Likewise.
2286 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2288 (ix86_split_idivmod): Likewise for locals "end_label" and
2290 (ix86_expand_branch): Likewise for local "label2".
2291 (ix86_expand_aligntest): Likewise for return type and local "label".
2292 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2294 (expand_movmem_epilogue): Likewise for the various locals named
2296 (expand_setmem_epilogue): Likewise.
2297 (expand_small_movmem_or_setmem): Likewise for local "label".
2298 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2299 Strengthen param "done_label" from rtx * to rtx_code_label **.
2300 Strengthen locals "loop_label" and "label" from rtx to
2302 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2303 Likewise for locals "loop_label", "label".
2304 (ix86_expand_set_or_movmem): Likewise for locals "label",
2305 "jump_around_label", "hot_label".
2306 (ix86_expand_strlensi_unroll_1): Likewise for locals
2307 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2309 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2310 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2311 "label2", "jump_label".
2312 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2314 (ix86_expand_lfloorceil): Likewise for local "label".
2315 (ix86_expand_rint): Likewise.
2316 (ix86_expand_floorceildf_32): Likewise.
2317 (ix86_expand_floorceil): Likewise.
2318 (ix86_expand_rounddf_32): Likewise.
2319 (ix86_expand_trunc): Likewise.
2320 (ix86_expand_truncdf_32): Likewise.
2321 (ix86_expand_round): Likewise.
2323 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2325 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2326 first param from rtx to rtx_insn *.
2327 (h8300_insn_length_from_table): Likewise.
2328 * config/h8300/h8300.c (F): Likewise for return type and param
2330 (Fpa): Add a checked cast to rtx_insn *.
2331 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2333 (final_prescan_insn): Likewise for param "insn".
2334 (h8300_binary_length): Likewise.
2335 (h8300_insn_length_from_table): Likewise.
2337 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2339 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2340 Strengthen first param "insn" from rtx to rtx_insn *.
2342 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2344 (frame_insn): Likewise for return type. Introduce local "insn"
2345 for use in place of local "x" for use as an rtx_insn *.
2346 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2347 (epiphany_expand_prologue): Likewise for local "insn".
2348 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2349 * config/epiphany/resolve-sw-modes.c
2350 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2353 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2355 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2356 param from rtx to rtx_insn *.
2357 (c6x_final_prescan_insn): Likewise for first param.
2359 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2360 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2361 (c6x_expand_compare): Strengthen local "insns" from rtx to
2363 (c6x_get_unit_specifier): Likewise for param "insn".
2364 (c6x_print_unit_specifier_field): Likewise.
2365 (c6x_final_prescan_insn): Likewise.
2366 (emit_add_sp_const): Likewise for local "insn".
2367 (c6x_expand_prologue): Likewise.
2369 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2371 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2372 param 1 from rtx to rtx_insn *.
2373 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2374 the various locals named "insn".
2375 (expand_epilogue_reg_restore): Likewise.
2376 (frame_related_constant_load): Likewise.
2377 (add_to_reg): Likewise.
2378 (emit_link_insn): Likewise.
2379 (do_link): Likewise.
2380 (expand_interrupt_handler_prologue): Likewise.
2381 (branch_dest): Likewise for param "branch".
2382 (asm_conditional_branch): Likewise for param "insn".
2383 (gen_one_bundle): Likewise for elements of param "slot" and local
2385 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2386 elements of local "slot".
2387 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2388 "queue", "next_queue", "prev".
2389 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2390 (add_sched_insns_for_speculation): Likewise for local "insn".
2392 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2394 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2395 from rtx to rtx_insn *.
2396 (output_movhi): Likewise.
2397 (output_movsisf): Likewise.
2398 (avr_out_tstsi): Likewise.
2399 (avr_out_tsthi): Likewise.
2400 (avr_out_tstpsi): Likewise.
2401 (avr_out_compare): Likewise.
2402 (avr_out_compare64): Likewise.
2403 (avr_out_movpsi): Likewise.
2404 (ashlqi3_out): Likewise.
2405 (ashlhi3_out): Likewise.
2406 (ashlsi3_out): Likewise.
2407 (ashrqi3_out): Likewise.
2408 (ashrhi3_out): Likewise.
2409 (ashrsi3_out): Likewise.
2410 (lshrqi3_out): Likewise.
2411 (lshrhi3_out): Likewise.
2412 (lshrsi3_out): Likewise.
2413 (avr_out_ashlpsi3): Likewise.
2414 (avr_out_ashrpsi3): Likewise.
2415 (avr_out_lshrpsi3): Likewise.
2416 (avr_out_fract): Likewise.
2417 (avr_out_sbxx_branch): Likewise.
2418 (avr_out_round): Likewise.
2419 (avr_out_xload): Likewise.
2420 (avr_out_movmem): Likewise.
2421 (adjust_insn_length): Likewise.
2422 (avr_out_lpm): Likewise.
2423 (reg_unused_after): Likewise.
2424 (_reg_unused_after): Likewise.
2425 (avr_jump_mode): Likewise for second param.
2426 (jump_over_one_insn): Likewise for first param.
2427 (avr_final_prescan_insn): Likewise.
2428 (out_shift_with_cnt): Likewise for second param.
2430 * config/avr/avr.c (get_sequence_length): Likewise for param
2431 "insns" and local "insn".
2432 (emit_push_byte): Likewise for local "insn".
2433 (emit_push_sfr): Likewise.
2434 (avr_prologue_setup_frame): Likewise for locals "insn",
2435 "fp_plus_insns", "sp_plus_insns".
2436 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2438 (avr_jump_mode): Likewise for param "insn".
2439 (avr_final_prescan_insn): Likewise.
2440 (avr_find_unused_d_reg): Likewise.
2441 (avr_out_lpm_no_lpmx): Likewise.
2442 (avr_out_lpm): Likewise.
2443 (avr_out_xload): Likewise.
2444 (output_movqi): Likewise.
2445 (output_movhi): Likewise.
2446 (out_movqi_r_mr): Likewise.
2447 (out_movhi_r_mr): Likewise.
2448 (out_movsi_r_mr): Likewise.
2449 (out_movsi_mr_r): Likewise.
2450 (output_movsisf): Likewise.
2451 (avr_out_load_psi): Likewise.
2452 (avr_out_store_psi): Likewise.
2453 (avr_out_movpsi): Likewise.
2454 (out_movqi_mr_r): Likewise.
2455 (avr_out_movhi_mr_r_xmega): Likewise.
2456 (out_movhi_mr_r): Likewise.
2457 (compare_condition): Likewise for param "insn" and local "next".
2458 (compare_sign_p): Likewise for param "insn".
2459 (compare_diff_p): Likewise.
2460 (compare_eq_p): Likewise.
2461 (avr_out_compare): Likewise.
2462 (avr_out_compare64): Likewise.
2463 (avr_out_tsthi): Likewise.
2464 (avr_out_tstpsi): Likewise.
2465 (avr_out_tstsi): Likewise.
2466 (out_shift_with_cnt): Likewise.
2467 (ashlqi3_out): Likewise.
2468 (ashlhi3_out): Likewise.
2469 (avr_out_ashlpsi3): Likewise.
2470 (ashlsi3_out): Likewise.
2471 (ashrqi3_out): Likewise.
2472 (ashrhi3_out): Likewise.
2473 (avr_out_ashrpsi3): Likewise.
2474 (ashrsi3_out): Likewise.
2475 (lshrqi3_out): Likewise.
2476 (lshrhi3_out): Likewise.
2477 (avr_out_lshrpsi3): Likewise.
2478 (lshrsi3_out): Likewise.
2479 (avr_out_fract): Likewise.
2480 (avr_out_round): Likewise.
2481 (avr_adjust_insn_length): Likewise.
2482 (reg_unused_after): Likewise.
2483 (_reg_unused_after): Likewise.
2484 (avr_compare_pattern): Likewise.
2485 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2486 and locals "branch1", "branch2", "insn2", "jump".
2487 (avr_reorg): Likewise for local "insn".
2488 (avr_2word_insn_p): Likewise for param "insn".
2489 (jump_over_one_insn_p): Likewise.
2490 (avr_out_sbxx_branch): Likewise.
2491 (avr_out_movmem): Likewise.
2493 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2495 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2496 param from rtx to rtx_insn *.
2497 (thumb1_final_prescan_insn): Likewise.
2498 (thumb2_final_prescan_insn): Likewise.
2500 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2502 (struct minipool_node): Likewise for field "insn".
2503 (dump_minipool): Likewise for param "scan".
2504 (create_fix_barrier): Likewise for local "from". Strengthen local
2505 "label" from rtx to rtx_code_label *.
2506 (push_minipool_barrier): Strengthen param "insn" from rtx to
2508 (push_minipool_fix): Likewise.
2509 (note_invalid_constants): Likewise.
2510 (thumb2_reorg): Likewise for local "insn".
2511 (arm_reorg): Likewise.
2512 (thumb2_final_prescan_insn): Likewise for param
2513 "insn" and local "first_insn".
2514 (arm_final_prescan_insn): Likewise for param "insn" and locals
2515 "start_insn", "this_insn".
2516 (arm_debugger_arg_offset): Likewise for param "insn".
2517 (thumb1_emit_multi_reg_push): Likewise for return type and local
2519 (thumb1_final_prescan_insn): Likewise for param "insn".
2520 (thumb_far_jump_used_p): Likewise for local "insn".
2521 (thumb1_expand_prologue): Likewise.
2522 (arm_expand_epilogue_apcs_frame): Likewise.
2523 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2524 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2525 from rtx to rtx_code_label *.
2526 (arm_split_atomic_op): Likewise for local "label".
2527 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2529 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2531 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2532 first param from rtx to rtx_insn *.
2533 (arc_verify_short): Likewise.
2534 (arc_short_long): Likewise.
2535 (arc_need_delay): Likewise.
2537 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2539 (arc_ccfsm_advance): Likewise for param "insn" and locals
2540 "start_insn", "this_insn".
2541 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2542 (arc_ccfsm_post_advance): Likewise for param "insn".
2543 (arc_next_active_insn): Likewise for return type and param "insn".
2544 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2545 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2546 (output_short_suffix): Likewise for local "insn".
2547 (arc_final_prescan_insn): Likewise for param "insn". Remove
2548 now-redundant checked cast.
2549 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2550 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2551 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2552 for use where lc_set became an insn.
2553 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2555 (arc_get_insn_variants): Likewise for local "prev".
2556 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2558 (arc_predicate_delay_insns): Likewise for local "insn".
2559 (arc_pad_return): Likewise for local "prev". For now, add a
2560 checked cast when extracting the insn from "final_sequence".
2561 (arc_short_long): Likewise for param "insn".
2562 (arc_need_delay): Likewise for param "insn" and local "next".
2563 (arc_label_align): Likewise for locals "prev", "next".
2565 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2567 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2568 "insn" from rtx to rtx_insn *.
2569 (alpha_gp_save_rtx): Likewise for local "seq".
2570 (alpha_instantiate_decls): Likewise for local "top".
2571 (get_some_local_dynamic_name): Likewise for local "insn".
2572 (alpha_does_function_need_gp): Likewise.
2573 (set_frame_related_p): Likewise for return type and for locals
2575 (emit_frame_store_1): Likewise for local "insn".
2576 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2577 (alpha_end_function): Likewise for local "insn".
2578 (alpha_output_mi_thunk_osf): Likewise.
2579 (alphaev4_insn_pipe): Likewise for param "insn".
2580 (alphaev5_insn_pipe): Likewise.
2581 (alphaev4_next_group): Likewise for return type and param 1
2583 (alphaev5_next_group): Likewise.
2584 (alpha_align_insns_1): Likewise for return type and param 1 of
2585 callback param "next_group", and for locals "i", "next", "prev",
2586 "where", "where2", "insn".
2588 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2590 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2591 rather than modifying the stmt.
2593 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2595 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2596 cgraph_state conversion.
2598 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2600 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2601 Strengthen local "insns" from rtx to rtx_insn *.
2602 (aarch64_set_frame_expr): Likewise for local "insn".
2603 (aarch64_save_or_restore_fprs): Likewise.
2604 (aarch64_save_or_restore_callee_save_registers): Likewise.
2605 (aarch64_expand_prologue): Likewise.
2606 (aarch64_expand_epilogue): Likewise.
2607 (aarch64_output_mi_thunk): Likewise.
2608 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2609 "label2" from rtx to rtx_code_label *.
2610 (aarch64_split_atomic_op): Likewise for local "label".
2612 2014-08-25 Martin Liska <mliska@suse.cz>
2614 * cgraph.h (symtab_node):
2615 (bool needed_p (void)): created from decide_is_symbol_needed
2616 (bool referred_to_p (void)): created from referred_to_p
2617 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2618 * cgraph.h (cgraph_node):
2619 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2620 (void expand (void)): created from expand_function
2621 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2622 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2623 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2624 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2625 * cgraph.h (varpool_node):
2626 (static void add (tree decl): created from varpool_add_new_variable
2627 * cgraph.h (cgraph_edge):
2629 (void remove_caller (void)): created from cgraph_edge_remove_caller
2630 (void remove_callee (void)): created from cgraph_edge_remove_callee
2631 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2632 created from cgraph_set_call_stmt
2633 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2634 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2635 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2636 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2637 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2638 created from cgraph_speculative_call_info
2639 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2640 int freq_scale, bool update_original)): created from cgraph_clone_edge
2641 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2642 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2643 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2644 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2645 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2646 (static void rebuild_references (void)): created from cgraph_rebuild_references
2647 * cgraph.h (symbol_table):
2648 (create_reference): renamed from add_reference
2649 (maybe_create_reference): renamed from maybe_add_reference
2650 (void register_symbol (symtab_node *node)): new function
2651 (void clear_asm_symbols (void)): new function
2652 (void unregister (symtab_node *node)): new function
2653 (void release_symbol (cgraph_node *node, int uid)): new function
2654 (cgraph_node * allocate_cgraph_symbol (void)): new function
2655 (void initialize (void)): created from cgraph_init
2656 (symtab_node *first_symbol (void)):new function
2657 (asm_node *first_asm_symbol (void)):new function
2658 (symtab_node *first_defined_symbol (void)):new function
2659 (varpool_node *first_variable (void)):new function
2660 (varpool_node *next_variable (varpool_node *node)):new function
2661 (varpool_node *first_static_initializer (void)):new function
2662 (varpool_node *next_static_initializer (varpool_node *node)):new function
2663 (varpool_node *first_defined_variable (void)):new function
2664 (varpool_node *next_defined_variable (varpool_node *node)):new function
2665 (cgraph_node *first_defined_function (void)):new function
2666 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2667 (cgraph_node *first_function (void)):new function
2668 (cgraph_node *next_function (cgraph_node *node)):new function
2669 (cgraph_node *first_function_with_gimple_body (void)):new function
2670 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2671 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2672 created from symtab_remove_unreachable_nodes
2673 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2674 (void process_new_functions (void)): created from cgraph_process_new_functions
2675 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2676 (bool output_variables (void)): created from varpool_node::output_variables
2677 (void output_asm_statements (void)): created from output_asm_statements
2678 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2679 (void compile (void)): created from compile
2680 (void output_weakrefs (void)): created from output_weakrefs
2681 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2682 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2683 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2684 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2685 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2686 created from cgraph_next_function_with_gimple_body
2687 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2688 created from cgraph_remove_edge_removal_hook
2689 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2690 created from cgraph_add_node_removal_hook
2691 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2692 created from cgraph_remove_node_removal_hook
2693 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2694 created from varpool_add_node_removal_hook
2695 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2696 created from varpool_remove_node_removal_hook
2697 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2698 created from cgraph_add_function_insertion_hook
2699 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2700 created from cgraph_remove_function_insertion_hook
2701 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2702 created from varpool_add_variable_insertion_hook
2703 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2704 created from varpool_remove_variable_insertion_hook
2705 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2706 created from cgraph_add_edge_duplication_hook
2707 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2708 created from cgraph_remove_edge_duplication_hook
2709 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2710 created from cgraph_add_node_duplication_hook
2711 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2712 created from cgraph_remove_node_duplication_hook
2713 (void call_edge_removal_hooks (cgraph_edge *e)):
2714 created from cgraph_call_edge_removal_hooks
2715 (void call_cgraph_insertion_hooks (cgraph_node *node)):
2716 created from call_function_insertion_hooks
2717 (void call_cgraph_removal_hooks (cgraph_node *node)):
2718 created from cgraph_call_node_removal_hooks
2719 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2720 created from cgraph_node::call_duplication_hooks
2721 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2722 created from cgraph_call_edge_duplication_hooks
2723 (void call_varpool_removal_hooks (varpool_node *node)):
2724 created from varpool_call_node_removal_hooks
2725 (void call_varpool_insertion_hooks (varpool_node *node)):
2726 created from varpool_call_variable_insertion_hooks
2727 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2728 created from insert_to_assembler_name_hash
2729 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2730 created from unlink_from_assembler_name_hash
2731 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2732 created from symtab_prevail_in_asm_name_hash
2733 (void symtab_initialize_asm_name_hash (void)):
2734 created from symtab_initialize_asm_name_hash
2735 (void change_decl_assembler_name (tree decl, tree name)):
2736 created from change_decl_assembler_name
2737 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
2738 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
2739 created from decl_assembler_name_hash
2740 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
2741 created from decl_assembler_name_equal
2742 (static hashval_t hash_node_by_assembler_name (const void *p)):
2743 created from hash_node_by_assembler_name
2744 (static int eq_assembler_name (const void *p1, const void *p2)):
2745 created from eq_assembler_name
2747 2014-08-25 Marek Polacek <polacek@redhat.com>
2749 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
2751 2014-08-25 Petr Murzin <petr.murzin@intel.com>
2753 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
2754 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
2755 SWI1248_AVX512BW mode iterator.
2757 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
2760 * config/sh/predicates.md (general_extend_operand): Disable
2761 TRUNCATE before reload completes.
2763 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
2765 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
2767 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
2770 * config/sh/sh.opt (musermode): Allow negative form.
2771 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
2772 targets that don't support it.
2773 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
2774 Document -mno-usermode option.
2776 2014-08-24 Kito Cheng <kito@0xlab.org>
2778 * system.h (CALLER_SAVE_PROFITABLE): Poison.
2779 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
2780 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
2781 * doc/tm.texi: Regenerate.
2783 2014-08-24 Kito Cheng <kito@0xlab.org>
2785 * ira.c: Fix typo in comment.
2787 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2789 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
2790 Deprecate c++1y. Change language to reflect greater confidence in C++14.
2792 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
2795 * config/pa/pa.c (pa_output_function_epilogue): Don't set
2796 last_address when the current function is a thunk.
2797 (pa_asm_output_mi_thunk): When we don't have named sections or they
2798 are not being used, check that thunk can reach the stub table with a
2801 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2803 * web.c (union_match_dups): Strengthen param "insn" from rtx to
2805 (pass_web::execute): Likewise for local "insn".
2807 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2809 * var-tracking.c (struct micro_operation_def): Strengthen field
2810 "insn" from rtx to rtx_insn *.
2811 (struct emit_note_data_def): Likewise.
2812 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
2813 (vt_stack_adjustments): Likewise for local "insn".
2814 (adjust_insn): Likewise for param "insn".
2815 (val_store): Likewise.
2816 (val_resolve): Likewise.
2817 (struct count_use_info): Likewise for field "insn".
2818 (log_op_type): Likewise for param "insn".
2819 (reverse_op): Likewise.
2820 (prepare_call_arguments): Likewise.
2821 (add_with_sets): The initial param takes an insn, but we can't
2822 yet strengthen it from rtx to rtx_insn * since it's used as a
2823 cselib_record_sets_hook callback. For now rename initial param
2824 from "insn" to "uncast_insn", and introduce a local "insn" of
2825 the stronger rtx_insn * type, with a checked cast.
2826 (compute_bb_dataflow): Strengthen local "insn" from rtx to
2828 (emit_note_insn_var_location): Likewise.
2829 (emit_notes_for_changes): Likewise.
2830 (emit_notes_for_differences): Likewise.
2831 (next_non_note_insn_var_location): Likewise for return type and
2833 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
2834 (vt_initialize): Likewise for local "insn".
2835 (delete_debug_insns): Likewise for locals "insn" and "next".
2837 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2839 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
2841 (mark_constant_pool): Likewise for local "insn".
2843 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2845 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
2847 (dead_debug_promote_uses): Likewise.
2848 (dead_debug_insert_temp): Likewise.
2850 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2852 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
2853 from const_rtx to const rtx_insn *.
2854 (store_killed_after): Likewise. Strengthen locals "last", "act"
2855 from rtx to rtx_insn *.
2856 (store_killed_before): Strengthen param "insn" from const_rtx to
2857 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
2858 (find_moveable_store): Strengthen param "insn" from rtx to
2860 (compute_store_table): Likewise for local "insn".
2861 (insert_insn_start_basic_block): Likewise for param "insn" and
2862 locals "prev", "before", "insn".
2863 (insert_store): For now, add a checked cast to rtx_insn * on the
2864 result of gen_move_insn.
2865 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
2867 (replace_store_insn): Likewise. For now, add a checked cast to
2868 rtx_insn * on the result of gen_move_insn.
2870 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2872 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
2874 (expand_sjlj_dispatch_table): Likewise.
2876 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2878 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
2879 "insn" from rtx to rtx_insn *.
2881 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2883 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
2884 "insn" from rtx to rtx_insn *.
2885 (dup_block_and_redirect): Likewise for param 3 "before".
2887 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
2888 from rtx to rtx_insn *.
2889 (move_insn_for_shrink_wrap): Likewise.
2890 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
2891 (dup_block_and_redirect): Likewise for param "before" and local
2893 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
2895 (convert_to_simple_return): Likewise for local "start".
2897 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
2898 Strengthen local "insn" from rtx to rtx_insn *, for use when
2899 invoking requires_stack_frame_p.
2901 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2903 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
2905 (speculate_expr): Likewise for locals "orig_insn_rtx",
2907 (eq_transformed_insns): Likewise for locals "i1", "i2".
2908 (check_for_new_jump): Likewise for return type and local "end".
2909 (find_new_jump): Likewise for return type and local "jump".
2910 (sel_split_edge): Likewise for local "jump".
2911 (sel_create_recovery_block): Likewise.
2912 (sel_redirect_edge_and_branch_force): Likewise.
2913 (sel_redirect_edge_and_branch): Likewise.
2915 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2917 * sel-sched.c (substitute_reg_in_expr): Strengthen local
2918 "new_insn" from rtx to rtx_insn *.
2919 (create_insn_rtx_with_rhs): Likewise for return type and for local
2921 (create_insn_rtx_with_lhs): Likewise.
2922 (create_speculation_check): Likewise for local "insn_rtx".
2923 (implicit_clobber_conflict_p): Likewise for local "insn".
2924 (get_expr_cost): Likewise.
2925 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
2926 (move_cond_jump): Likewise for locals "next", "prev", "link",
2927 "head", "from", "to".
2929 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2931 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
2932 "next" from rtx to rtx_insn *.
2933 (find_conditional_protection): Likewise for local "next".
2934 (is_conditionally_protected): Likewise for local "insn1".
2935 (is_pfree): Likewise for locals "insn1", "insn2".
2937 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2939 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
2940 from rtx to rtx_insn *.
2942 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
2943 locals "insn1", "insn2" from rtx to rtx_insn *.
2944 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
2945 locals "insn", "prev", "last_jump", "next_tail".
2946 (schedule_ebb): Likewise for params "head", "tail".
2947 (schedule_ebbs): Likewise for locals "tail", "head".
2949 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
2950 to rtx_insn on "last_insn" in one of the invocations of
2953 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2955 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
2956 "elem", "insn" from rtx to rtx_insn *.
2957 (change_spec_dep_to_hard): Likewise.
2958 (get_back_and_forw_lists): Likewise for local "con".
2959 (sd_add_dep): Likewise for locals "elem", "insn".
2960 (sd_resolve_dep): Likewise for locals "pro", "con".
2961 (sd_unresolve_dep): Likewise.
2962 (sd_delete_dep): Likewise.
2963 (chain_to_prev_insn): Likewise for local "pro".
2964 (find_inc): Likewise for locals "pro", "con".
2966 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2968 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
2970 (reg_set_between_p): Strengthen local "insn" from const_rtx to
2972 (modified_between_p): Strengthen local "insn" from rtx to
2974 (remove_reg_equal_equiv_notes_for_regno): Likewise.
2975 (keep_with_call_p): Strengthen local "i2" from const_rtx to
2978 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2980 * resource.c (next_insn_no_annul): Strengthen local "next" from
2982 (mark_referenced_resources): Likewise for local "insn".
2984 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2986 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
2988 (find_reloads): Likewise for param 1.
2989 (subst_reloads): Likewise for sole param.
2990 (find_equiv_reg): Likwise for param 2.
2991 (regno_clobbered_p): Likwise for param 2.
2992 (reload): Likewise for param 1.
2994 * caller-save.c (save_call_clobbered_regs): Strengthen local
2995 "insn" from rtx to rtx_insn *.
2996 (insert_one_insn): Likewise for local "insn".
2998 * reload.c (this_insn): Likewise for this global.
2999 (find_reloads): Likewise for param "insn".
3000 (find_reloads_toplev): Likewise.
3001 (find_reloads_address): Likewise.
3002 (subst_reg_equivs): Likewise.
3003 (update_auto_inc_notes): Likewise.
3004 (find_reloads_address_1): Likewise.
3005 (find_reloads_subreg_address): Likewise.
3006 (subst_reloads): Likewise.
3007 (find_equiv_reg): Likewise, also for local "p".
3008 (regno_clobbered_p): Likewise for param "insn".
3010 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3012 (spill_reg_store): Likewise for the elements of this array.
3013 (remove_init_insns): Likewise for local "equiv_insn".
3014 (will_delete_init_insn_p): Likewise for param "insn".
3015 (reload): Likewise for param ""first" and local "insn".
3016 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3018 (calculate_elim_costs_all_insns): Likewise.
3019 (delete_caller_save_insns): Likewise.
3020 (spill_failure): Likewise for param "insn".
3021 (delete_dead_insn): Likewise.
3022 (set_label_offsets): Likewise.
3023 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3025 (elimination_costs_in_insn): Likewise for param "insn".
3026 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3027 when referring to an insn.
3028 (set_initial_label_offsets): Likewise.
3029 (set_offsets_for_label): Strengthen param "insn" from rtx to
3031 (init_eliminable_invariants): Likewise for param "first" and local
3033 (fixup_eh_region_note): Likewise for param "insn".
3034 (reload_as_needed): Likewise for locals "prev", "insn",
3035 "old_next", "old_prev", "next".
3036 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3038 (reload_inheritance_insn): Strengthen elements of this array from
3040 (failed_reload): Likewise for param "insn".
3041 (choose_reload_regs): Likewise for local "insn". Replace use of
3042 NULL_RTX with NULL when referring to an insn.
3043 (input_reload_insns): Strengthen elements of this array from rtx
3045 (other_input_address_reload_insns): Likewise for this global.
3046 (other_input_reload_insns): Likewise for this global.
3047 (input_address_reload_insns): Likwise for the elements of this
3049 (inpaddr_address_reload_insns): Likwise for the elements of this
3051 (output_reload_insns): Likewise for the elements of this array.
3052 (output_address_reload_insns): Likewise for the elements of this
3054 (outaddr_address_reload_insns): Likewise for the elements of this
3056 (operand_reload_insns): Likewise for this global.
3057 (other_operand_reload_insns): Likewise for this global.
3058 (other_output_reload_insns): Likewise for the elements of this
3060 (new_spill_reg_store): Likewise for the elements of this
3062 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3063 Strengthen local "where" from rtx * to rtx_insn **.
3064 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3065 from rtx to rtx_insn *.
3066 (do_input_reload): Likewise for local "insn".
3067 (do_output_reload): Likewise for local "insn".
3068 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3069 (emit_insn_if_valid_for_reload): Likewise for return type and local
3070 "last". Add checked cast to rtx_insn when returning "insn" since
3071 this has been through emit_insn.
3072 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3073 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3074 returning "insn" since it's been through
3075 emit_insn_if_valid_for_reload at this point.
3076 (delete_output_reload): Strengthen param "insn" and locals
3077 "output_reload_insn", "i2" from rtx to rtx_insn *.
3078 (delete_address_reloads): Likewise for params "dead_insn",
3079 "current_insn" and locals "prev", "next".
3080 (delete_address_reloads_1): Likewise for params "dead_insn",
3081 "current_insn" and locals "prev", "i2".
3082 (inc_for_reload): Likewise for locals "last", "add_insn".
3083 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3086 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3087 param of this duplicate of the prototype from reload.h
3089 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3091 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3093 (regstat_bb_compute_calls_crossed): Likewise.
3095 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3097 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3099 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3101 (regrename_analyze): Strengthen local "insn" from rtx to
3103 (scan_rtx_reg): Likewise for param "insn".
3104 (scan_rtx_address): Likewise.
3105 (scan_rtx): Likewise.
3106 (restore_operands): Likewise.
3107 (record_out_operands): Likewise.
3108 (build_def_use): Likewise for local "insn". Replace use of
3109 NULL_RTX with NULL when dealing with an insn.
3111 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3113 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3114 * reginfo.c (reg_scan): Likewise, also for local "insn".
3115 (reg_scan_mark_refs): Likewise for param "insn".
3116 (init_subregs_of_mode): Likewise for local "insn".
3118 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3120 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3121 "insn" from rtx to rtx_insn *.
3122 (replace_oldest_value_reg): Likewise for param "insn".
3123 (replace_oldest_value_addr): Likewise.
3124 (replace_oldest_value_mem): Likewise.
3125 (apply_debug_insn_changes): Likewise for local "last_insn".
3126 (copyprop_hardreg_forward_1): Likewise for local "insn".
3128 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3130 * reg-stack.c (next_flags_user): Strengthen return type and param
3131 "insn" from rtx to rtx_insn *.
3132 (straighten_stack): Likewise for param "insn".
3133 (check_asm_stack_operands): Likewise.
3134 (remove_regno_note): Likewise.
3135 (emit_pop_insn): Likewise for return type, param "insn", local
3137 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3138 "limit" from rtx to rtx_insn *.
3139 (swap_to_top): Likewise for param "insn".
3140 (move_for_stack_reg): Likewise.
3141 (move_nan_for_stack_reg): Likewise.
3142 (swap_rtx_condition): Likewise.
3143 (compare_for_stack_reg): Likewise.
3144 (subst_all_stack_regs_in_debug_insn): Likewise.
3145 (subst_stack_regs_pat): Likewise, and local "insn2".
3146 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3148 (subst_stack_regs): Likewise.
3149 (change_stack): Likewise.
3150 (convert_regs_1): Likewise for locals "insn", "next".
3152 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3154 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3156 (combine_set_extension): Likewise for param "curr_insn".
3157 (transform_ifelse): Likewise for param "def_insn".
3158 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3159 from vec<rtx> * to vec<rtx_insn *> *.
3160 (is_cond_copy_insn): Likewise for param "insn".
3161 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3163 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3164 local "def_insn" from rtx to rtx_insn *.
3165 (get_sub_rtx): Likewise for param "def_insn".
3166 (merge_def_and_ext): Likewise.
3167 (combine_reaching_defs): Likewise.
3168 (add_removable_extension): Likewise for param "insn".
3169 (find_removable_extensions): Likewise for local "insn".
3170 (find_and_remove_re): Likewise for locals "curr_insn" and
3171 "def_insn". Strengthen locals "reinsn_del_list" and
3172 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3174 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3176 * recog.c (split_insn): Strengthen param "insn" and locals
3177 "first", "last" from rtx to rtx_insn *.
3178 (split_all_insns): Likewise for locals "insn", "next".
3179 (split_all_insns_noflow): Likewise.
3181 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3183 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3185 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3186 (debug_rtx_find): Likewise for param 1 "x".
3188 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3189 const_rtx to const rtx_insn *. Likewise for local "insn".
3190 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3191 (debug_rtx_find): Likewise for param 1 "x".
3192 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3193 from const_rtx to const rtx_insn * within the appropriate cases of
3194 the switch statement.
3196 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3197 Strengthen local "insns" from rtx to rtx_insn * since this is
3198 passed to a call to debug_rtx_list.
3200 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3202 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3205 * function.c (stack_protect_epilogue): Add checked cast to
3206 rtx_insn for now when invoking predict_insn_def.
3208 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3210 (predict_insn_def): Likewise.
3211 (rtl_predict_edge): Likewise for local "last_insn".
3212 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3214 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3216 (bb_estimate_probability_locally): Likewise for local "last_insn".
3217 (expensive_function_p): Likewise for local "insn".
3219 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3220 local "jmp", since this is used when invoking predict_insn_def.
3222 2014-08-22 Marek Polacek <polacek@redhat.com>
3225 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3227 2014-08-22 Marek Polacek <polacek@redhat.com>
3230 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3231 a comparison in parens.
3232 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3235 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3237 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3240 * cprop.c (fis_get_condition): Likewise.
3242 * postreload.c (reload_cse_regs): Likewise for param "first".
3243 (reload_cse_simplify): Likewise for param "insn".
3244 (reload_cse_regs_1): Likewise for local "insn".
3245 (reload_cse_simplify_set): Likewise for param "insn".
3246 (reload_cse_simplify_operands): Likewise.
3247 (struct reg_use): Likewise for field "insn".
3248 (reload_combine_purge_insn_uses): Likewise for param "insn".
3249 (fixup_debug_insns): Likewise for params "from", "to" and local
3251 (try_replace_in_use): Likewise for local "use_insn".
3252 (reload_combine_recognize_const_pattern): Likewise for param
3253 "insn" and locals "add_moved_after_insn", "use_insn".
3254 (reload_combine_recognize_pattern): Likewise for param "insn" and
3256 (reload_combine): Likewise for locals "insn", "prev".
3257 (reload_combine_note_use): Likewise for param "insn".
3258 (move2add_use_add2_insn): Likewise.
3259 (move2add_use_add3_insn): Likewise.
3260 (reload_cse_move2add): Likewise, also for local "next".
3261 (move2add_note_store): Likewise for local "insn".
3263 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3265 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3267 (struct unoccr): Likewise.
3268 (struct modifies_mem): Likewise.
3269 (alloc_mem): Likewise for local "insn".
3270 (insert_expr_in_table): Likewise for param "insn".
3271 (dump_expr_hash_table_entry): Likewise for local "insn".
3272 (oprs_unchanged_p): Likewise for param "insn".
3273 (load_killed_in_block_p): Likewise for local "setter".
3274 (record_last_reg_set_info): Likewise for param "insn".
3275 (record_last_reg_set_info_regno): Likewise.
3276 (record_last_mem_set_info): Likewise.
3277 (record_last_set_info): Likewise for local "last_set_insn".
3278 (record_opr_changes): Likewise for param "insn".
3279 (hash_scan_set): Likewise.
3280 (compute_hash_table): Likewise for local "insn".
3281 (get_avail_load_store_reg): Likewise for param "insn".
3282 (eliminate_partially_redundant_load): Likewise, also for locals
3283 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3285 (eliminate_partially_redundant_loads): Likewise for local "insn".
3287 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3289 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3291 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3292 (expand_twoval_unop): Likewise for locals entry_last", "last".
3293 (expand_twoval_binop): Likewise.
3294 (expand_twoval_binop_libfunc): Likewise for local "insns".
3295 (widen_leading): Likewise for local "last".
3296 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3297 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3298 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3299 (expand_parity): Likewise for locals "last" and "seq".
3300 (expand_ffs): Likewise for local "seq". Strengthen local
3301 "nonzero_label" from rtx to rtx_code_label *.
3302 (expand_absneg_bit): Strengthen local "insns" from rtx to
3304 (expand_unop_direct): Likewise for local "last".
3305 (expand_unop): Likewise for locals "last", "insns".
3306 (expand_abs_nojump): Likewise for local "last".
3307 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3308 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3310 (expand_copysign_absneg): Strengthen local "label" from rtx to
3312 (expand_copysign_bit): Strengthen local "insns" from rtx to
3314 (struct no_conflict_data): Likewise for fields "first", "insn".
3315 (emit_libcall_block_1): Likewise for param "insns" and locals
3316 "next", "last", "insn".
3317 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3318 on "insns" when invoking emit_libcall_block_1. Ultimately we
3319 want to strengthen insns itself.
3320 (prepare_cmp_insn): Strengthen local "last" from rtx to
3322 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3323 (prepare_float_lib_cmp): Likewise for local "insns".
3324 (emit_conditional_move): Likewise for local "last".
3325 (emit_conditional_add): Likewise.
3326 (have_sub2_insn): Likewise for local "seq".
3327 (expand_float): Likewise for local "insns". Strengthen locals
3328 "label", "neglabel" from rtx to rtx_code_label *.
3329 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3330 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3331 (expand_fixed_convert): Likewise for local "insns" (to
3333 (expand_sfix_optab): Likewise for local "last".
3334 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3335 to rtx_code_label *.
3336 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3337 from rtx to rtx_insn *.
3338 (expand_atomic_fetch_op): Likewise for local "insn".
3339 (maybe_legitimize_operand_same_code): Likewise for local "last".
3340 (maybe_legitimize_operands): Likewise.
3342 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3344 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3345 "insn" from rtx to rtx_insn *.
3346 (ps_rtl_insn): Likewise for return type.
3347 (doloop_register_get): Likewise for params "head", "tail" and
3348 locals "insn", "first_insn_not_to_check".
3349 (schedule_reg_move): Likewise for local "this_insn".
3350 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3351 of gen_move_insn for now.
3352 (reset_sched_times): Strengthen local "insn" from rtx to
3354 (permute_partial_schedule): Likewise.
3355 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3356 (dump_insn_location): Likewise for param "insn".
3357 (loop_canon_p): Likewise for local "insn".
3358 (sms_schedule): Likewise.
3359 (print_partial_schedule): Likewise.
3360 (ps_has_conflicts): Likewise.
3362 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3364 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3365 "tailp" from rtx * to rtx_insn **.
3367 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3368 from rtx to rtx_insn *.
3369 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3370 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3371 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3373 * modulo-sched.c (const_iteration_count): Strengthen return type
3374 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3375 use of NULL_RTX with NULL when working with insns.
3376 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3378 (sms_schedule): Likewise.
3379 * sched-rgn.c (init_ready_list): Likewise, also for locals
3380 "src_head" and "src_next_tail".
3381 (compute_block_dependences): Likewise.
3382 (free_block_dependencies): Likewise.
3383 (debug_rgn_dependencies): Likewise.
3384 (free_rgn_deps): Likewise.
3385 (compute_priorities): Likewise.
3386 (schedule_region): Likewise.
3387 * sel-sched.c (find_ebb_boundaries): Likewise.
3389 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3390 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3392 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3394 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3395 from rtx to rtx_insn *.
3396 (new_seginfo): Likewise for param "insn".
3397 (create_pre_exit): Likewise for locals "last_insn",
3398 "before_return_copy", "return_copy".
3399 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3402 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3404 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3405 from rtx to rtx_insn *.
3406 (lra_push_insn): Likewise for 1st param.
3407 (lra_push_insn_and_update_insn_regno_info): Likewise.
3408 (lra_pop_insn): Likewise for return type.
3409 (lra_invalidate_insn_data): Likewise for 1st param.
3410 (lra_set_insn_deleted): Likewise.
3411 (lra_delete_dead_insn): Likewise.
3412 (lra_process_new_insns): Likewise for first 3 params.
3413 (lra_set_insn_recog_data): Likewise for 1st param.
3414 (lra_update_insn_recog_data): Likewise.
3415 (lra_set_used_insn_alternative): Likewise.
3416 (lra_invalidate_insn_regno_info): Likewise.
3417 (lra_update_insn_regno_info): Likewise.
3418 (lra_former_scratch_operand_p): Likewise.
3419 (lra_eliminate_regs_1): Likewise.
3420 (lra_get_insn_recog_data): Likewise.
3422 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3425 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3427 (substitute_within_insn): New.
3428 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3429 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3430 Replace call to "substitute" with call to substitute_within_insn.
3432 * lra-constraints.c (curr_insn): Strengthen from rtx to
3434 (get_equiv_with_elimination): Likewise for param "insn".
3435 (match_reload): Strengthen params "before" and "after" from rtx *
3437 (emit_spill_move): Likewise for return type. Add a checked cast
3438 to rtx_insn * on result of gen_move_insn for now.
3439 (check_and_process_move): Likewise for local "before". Replace
3440 NULL_RTX with NULL when referring to insns.
3441 (process_addr_reg): Strengthen params "before" and "after" from
3442 rtx * to rtx_insn **.
3443 (insert_move_for_subreg): Likewise.
3444 (simplify_operand_subreg): Strengthen locals "before" and "after"
3445 from rtx to rtx_insn *.
3446 (process_address_1): Strengthen params "before" and "after" from
3447 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3449 (process_address): Strengthen params "before" and "after" from
3450 rtx * to rtx_insn **.
3451 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3452 (curr_insn_transform): Strengthen locals "before" and "after"
3453 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3455 (loc_equivalence_callback): Update cast of "data", changing
3456 resulting type from rtx to rtx_insn *.
3457 (substitute_pseudo_within_insn): New.
3458 (inherit_reload_reg): Strengthen param "insn" from rtx to
3459 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3460 NULL when referring to insns. Add a checked cast to rtx_insn *
3461 when using usage_insn to invoke lra_update_insn_regno_info.
3462 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3463 likewise for locals "restore", "save". Add checked casts to
3464 rtx_insn * when using usage_insn to invoke
3465 lra_update_insn_regno_info and lra_process_new_insns. Replace
3466 NULL_RTX with NULL when referring to insns.
3467 (split_if_necessary): Strengthen param "insn" from rtx to
3469 (update_ebb_live_info): Likewise for params "head", "tail" and local
3471 (get_last_insertion_point): Likewise for return type and local "insn".
3472 (get_live_on_other_edges): Likewise for local "last".
3473 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3474 "prev_insn", "next_insn", "restore".
3475 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3476 (undo_optional_reloads): Likewise for local "insn".
3478 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3480 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3482 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3484 (spill_pseudos): Likewise for local "insn".
3485 (init_elimination): Likewise.
3486 (process_insn_for_elimination): Likewise for param "insn".
3488 * lra-lives.c (curr_insn): Likewise.;
3490 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3491 (remove_pseudos): Likewise for param "insn".
3492 (spill_pseudos): Likewise for local "insn".
3493 (lra_final_code_change): Likewise for locals "insn", "curr".
3495 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3496 (lra_set_insn_deleted): Likewise.
3497 (lra_delete_dead_insn): Likewise, and for local "prev".
3498 (new_insn_reg): Likewise for param "insn".
3499 (lra_set_insn_recog_data): Likewise.
3500 (lra_update_insn_recog_data): Likewise.
3501 (lra_set_used_insn_alternative): Likewise.
3502 (get_insn_freq): Likewise.
3503 (invalidate_insn_data_regno_info): Likewise.
3504 (lra_invalidate_insn_regno_info): Likewise.
3505 (lra_update_insn_regno_info): Likewise.
3506 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3508 (lra_push_insn_1): Strengthen param "insn" from rtx to
3510 (lra_push_insn): Likewise.
3511 (lra_push_insn_and_update_insn_regno_info): Likewise.
3512 (lra_pop_insn): Likewise for return type and local "insn".
3513 (push_insns): Likewise for params "from", "to", and local "insn".
3514 (setup_sp_offset): Likewise for params "from", "last" and locals
3516 (lra_process_new_insns): Likewise for params "insn", "before",
3517 "after" and local "last".
3518 (struct sloc): Likewise for field "insn".
3519 (lra_former_scratch_operand_p): Likewise for param "insn".
3520 (remove_scratches): Likewise for locals "insn", "last".
3521 (check_rtl): Likewise for local "insn".
3522 (add_auto_inc_notes): Likewise for param "insn".
3523 (update_inc_notes): Likewise for local "insn".
3524 (lra): Replace NULL_RTX with NULL when referring to insn.
3526 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3528 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3530 (resolve_reg_notes): Likewise.
3531 (resolve_simple_move): Likewise for return type, param "insn", and
3532 locals "insns", "minsn".
3533 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3534 (resolve_use): Likewise.
3535 (resolve_debug): Likewise.
3536 (find_decomposable_shift_zext): Likewise.
3537 (resolve_shift_zext): Likewise for return type, param "insn", and
3538 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3539 (decompose_multiword_subregs): Likewise for local "insn",
3540 "orig_insn", "decomposed_shift", "end".
3542 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3544 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3545 param "insns" from rtx to rtx_insn *.
3547 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3549 (struct iv_to_split): Likewise.
3550 (loop_exit_at_end_p): Likewise for local "insn".
3551 (split_edge_and_insert): Likewise for param "insns".
3552 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3553 and locals "seq", "jump".
3554 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3555 "branch_code"; update invocations of compare_and_jump_seq to
3556 eliminate NULL_RTX in favor of NULL.
3557 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3559 (reset_debug_uses_in_loop): Likewise.
3560 (analyze_insn_to_expand_var): Likewise for param "insn".
3561 (analyze_iv_to_split_insn): Likewise.
3562 (analyze_insns_in_loop): Likewise for local "insn".
3563 (insert_base_initialization): Likewise for param
3564 "insn" and local "seq".
3565 (split_iv): Likewise for param "insn" and local "seq".
3566 (expand_var_during_unrolling): Likewise for param "insn".
3567 (insert_var_expansion_initialization): Likewise for local "seq".
3568 (combine_var_copies_in_loop_exit): Likewise.
3569 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3571 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3572 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3575 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3577 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3579 (iv_analyze_result): Likewise.
3580 (iv_analyze_expr): Likewise.
3583 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3584 local "def_insn" from rtx to rtx_insn *.
3585 (get_biv_step_1): Likewise for local "insn".
3586 (iv_analyze_expr): Likewise for param "insn".
3587 (iv_analyze_def): Likewise for local "insn".
3588 (iv_analyze_op): Likewise for param "insn".
3589 (iv_analyze): Likewise.
3590 (iv_analyze_result): Likewise.
3592 (suitable_set_for_replacement): Likewise.
3593 (simplify_using_initial_values): Likewise for local "insn".
3594 (iv_number_of_iterations): Likewise for param "insn".
3595 (check_simple_exit): Add checked cast to rtx_insn when invoking
3596 iv_number_of_iterations for now (until get_condition is
3599 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3600 "insn" from rtx to rtx_insn *.
3601 (analyze_insns_in_loop): Likewise for local "insn".
3603 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3605 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3607 (struct invariant): Likewise.
3608 (hash_invariant_expr_1): Likewise for param "insn".
3609 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3610 (find_exits): Likewise for local "insn".
3611 (create_new_invariant): Likewise for param "insn".
3612 (check_dependencies): Likewise.
3613 (find_invariant_insn): Likewise.
3614 (record_uses): Likewise.
3615 (find_invariants_insn): Likewise.
3616 (find_invariants_bb): Likewise for local "insn".
3617 (get_pressure_class_and_nregs): Likewise for param "insn".
3618 (calculate_loop_reg_pressure): Likewise for local "insn".
3620 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3622 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3624 (add_test): Likewise for locals "seq", "jump".
3625 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3627 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3629 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3631 (rebuild_jump_labels_chain): Likewise for param "chain".
3633 * cfgexpand.c (pass_expand::execute): Add checked cast to
3634 rtx_insn * when calling rebuild_jump_labels_chain in region where
3635 we know e->insns.r is non-NULL.
3637 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3639 (rebuild_jump_labels): Likewise.
3640 (rebuild_jump_labels_chain): Likewise for param "chain".
3641 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3642 (init_label_info): Likewise for param "f".
3643 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3644 "prev_nonjump_insn".
3645 (mark_all_labels): Likewise for param "f" and locals "insn",
3646 "prev_nonjump_insn".
3648 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3650 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3651 from rtx to rtx_insn *insn.
3652 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3653 (ira_add_allocno_copy): Likewise.
3654 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3656 (ira_create_copy): Likewise.
3657 (ira_add_allocno_copy): Likewise.
3658 (create_bb_allocnos): Likewise for local "insn".
3659 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3660 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3661 process_regs_for_copy for rtx_insn * param.
3662 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3663 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3664 process_regs_for_copy for rtx_insn * param.
3665 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3666 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3667 (record_operand_costs): Likewise.
3668 (scan_one_insn): Likewise for return type, and for param "insn".
3669 (process_bb_for_costs): Likewise for local "insn".
3670 (process_bb_node_for_hard_reg_moves): Likewise.
3671 * ira-emit.c (struct move): Likewise for field "insn".
3672 (create_move): Eliminate use of NULL_RTX when dealing with an
3674 (emit_move_list): Strengthen return type and locals "result",
3675 "insn" from rtx to rtx_insn *insn.
3676 (emit_moves): Likewise for locals "insns", "tmp".
3677 (ira_emit): Likewise for local "insn".
3678 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3680 (find_call_crossed_cheap_reg): Likewise.
3681 (process_bb_node_lives): Likewise for local "insn".
3682 * ira.c (decrease_live_ranges_number): Likewise.
3683 (compute_regs_asm_clobbered): Likewise.
3684 (build_insn_chain): Likewise.
3685 (find_moveable_pseudos): Likewise, also locals "def_insn",
3686 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3687 to rtx_insn **. Add a checked cast when assigning from
3688 "closest_use" into closest_uses array in a region where we know
3689 it's a non-NULL insn.
3690 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3692 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3693 "last_interesting_insn", "uin".
3694 (move_unallocated_pseudos): Likewise for locals "def_insn",
3695 "move_insn", "newinsn".
3697 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3699 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3700 Strengthen locals "done_label", "do_error" from rtx to
3702 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3703 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3705 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3706 "done_label", "do_error" to rtx_code_label * and local "last" to
3708 (ubsan_expand_si_overflow_mul_check): Likewise for locals
3709 "done_label", "do_error", "large_op0", "small_op0_large_op1",
3710 "one_small_one_large", "both_ops_large", "after_hipart_neg",
3711 "after_lopart_neg", "do_overflow", "hipart_different" to
3712 rtx_code_label * and local "last" to rtx_insn *.
3714 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3716 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3717 "insn" and "move_insn" from rtx to rtx_insn *.
3719 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3721 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3723 (cheap_bb_rtx_cost_p): Likewise.
3724 (first_active_insn): Likewise for return type and local "insn".
3725 (last_active_insn): Likewise for return type and locals "insn",
3727 (struct noce_if_info): Likewise for fields "jump", "insn_a",
3729 (end_ifcvt_sequence): Likewise for return type and locals "insn",
3731 (noce_try_move): Likewise for local "seq".
3732 (noce_try_store_flag): Likewise.
3733 (noce_try_store_flag_constants): Likewise.
3734 (noce_try_addcc): Likewise.
3735 (noce_try_store_flag_mask): Likewise.
3736 (noce_try_cmove): Likewise.
3737 (noce_try_minmax): Likewise.
3738 (noce_try_abs): Likewise.
3739 (noce_try_sign_mask): Likewise.
3740 (noce_try_bitop): Likewise.
3741 (noce_can_store_speculate_p): Likewise for local "insn".
3742 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
3744 (check_cond_move_block): Likewise for local "insn".
3745 (cond_move_convert_if_block): Likewise.
3746 (cond_move_process_if_block): Likewise for locals "seq",
3748 (noce_find_if_block): Likewise for local "jump".
3749 (merge_if_block): Likewise for local "last".
3750 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
3751 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
3752 (block_has_only_trap): Likewise for return type and local "trap".
3753 (find_if_case_1): Likewise for local "jump".
3754 (dead_or_predicable): Likewise for locals "head", "end", "jump",
3757 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3759 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
3760 "last_insn", "loop_end" from rtx to rtx_insn *.
3762 * hw-doloop.c (scan_loop): Likewise for local "insn".
3763 (discover_loop): Likewise for param "tail_insn".
3764 (discover_loops): Likewise for local "tail".
3766 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
3767 cast to rtx_insn * when assigning from an rtx local to a
3768 hwloop_info's "last_insn" field.
3770 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3772 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
3773 (add_delay_dependencies): Strengthen local "pro" from rtx to
3775 (recompute_todo_spec): Likewise.
3776 (dep_cost_1): Likewise for locals "insn", "used".
3777 (schedule_insn): Likewise for local "dbg".
3778 (schedule_insn): Likewise for locals "pro", "next".
3779 (unschedule_insns_until): Likewise for local "con".
3780 (restore_pattern): Likewise for local "next".
3781 (estimate_insn_tick): Likewise for local "pro".
3782 (resolve_dependencies): Likewise for local "next".
3783 (fix_inter_tick): Likewise.
3784 (fix_tick_ready): Likewise for local "pro".
3785 (add_to_speculative_block): Likewise for locals "check", "twin",
3787 (sched_extend_bb): Likewise for locals "end", "insn".
3788 (init_before_recovery): Likewise for local "x".
3789 (sched_create_recovery_block): Likewise for local "barrier".
3790 (create_check_block_twin): Likewise for local "pro".
3791 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
3793 (unlink_bb_notes): Update for change to type of bb_header.
3794 Strengthen locals "prev", "label", "note", "next" from rtx to
3796 (clear_priorities): Likewise for local "pro".
3798 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3800 * gcse.c (struct occr): Strengthen field "insn" from rtx to
3802 (test_insn): Likewise for this global.
3803 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
3805 (oprs_anticipatable_p): Likewise.
3806 (oprs_available_p): Likewise.
3807 (insert_expr_in_table): Strengthen param "insn" from rtx to
3809 (hash_scan_set): Likewise.
3810 (hash_scan_clobber): Likewise.
3811 (hash_scan_call): Likewise.
3812 (hash_scan_insn): Likewise.
3813 (compute_hash_table_work): Likewise for local "insn".
3814 (process_insert_insn): Likewise for return type and local "pat".
3815 (insert_insn_end_basic_block): Likewise for locals "new_insn",
3816 "pat", "pat_end", "maybe_cc0_setter".
3817 (pre_edge_insert): Likewise for local "insn".
3818 (pre_insert_copy_insn): Likewise for param "insn".
3819 (pre_insert_copies): Likewise for local "insn".
3820 (struct set_data): Likewise for field "insn".
3821 (single_set_gcse): Likewise for param "insn".
3822 (gcse_emit_move_after): Likewise.
3823 (pre_delete): Likewise for local "insn".
3824 (update_bb_reg_pressure): Likewise for param "from" and local
3826 (should_hoist_expr_to_dom): Likewise for param "from".
3827 (hoist_code): Likewise for local "insn".
3828 (get_pressure_class_and_nregs): Likewise for param "insn".
3829 (calculate_bb_reg_pressure): Likewise for local "insn".
3830 (compute_ld_motion_mems): Likewise.
3832 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3834 * genpeep.c (main): Rename param back from "uncast_ins1" to
3835 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
3838 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
3840 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3843 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
3844 documentation to state it is only for VSX operations.
3846 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
3847 constraint only active if VSX.
3849 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
3850 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
3853 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3855 * fwprop.c (single_def_use_dom_walker::before_dom_children):
3856 Strengthen local "insn" from rtx to rtx_insn *.
3857 (use_killed_between): Likewise for param "target_insn".
3858 (all_uses_available_at): Likewise for param "target_insn" and
3860 (update_df_init): Likewise for params "def_insn", "insn".
3861 (update_df): Likewise for param "insn".
3862 (try_fwprop_subst): Likewise for param "def_insn" and local
3864 (free_load_extend): Likewise for param "insn".
3865 (forward_propagate_subreg): Likewise for param "def_insn" and
3867 (forward_propagate_asm): Likewise for param "def_insn" and local
3869 (forward_propagate_and_simplify): Likewise for param "def_insn"
3870 and local "use_insn".
3871 (forward_propagate_into): Likewise for locals "def_insn" and
3874 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3876 * function.c (emit_initial_value_sets): Strengthen local "seq"
3877 from rtx to rtx_insn *.
3878 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
3880 (instantiate_virtual_regs): Likewise for local "insn".
3881 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
3882 (reorder_blocks_1): Likewise for param "insns" and local "insn".
3883 (expand_function_end): Likewise for locals "insn" and "seq".
3884 (epilogue_done): Likewise for local "insn".
3885 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
3887 (reposition_prologue_and_epilogue_notes): Likewise for locals
3888 "insn", "last", "note", "first".
3889 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
3890 (pass_match_asm_constraints::execute): Likewise for local "insn".
3892 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3894 * output.h (final_scan_insn): Strengthen return type from rtx to
3896 (final_forward_branch_p): Likewise for param.
3897 (current_output_insn): Likewise for this global.
3899 * final.c (rtx debug_insn): Likewise for this variable.
3900 (current_output_insn): Likewise.
3901 (get_attr_length_1): Rename param "insn" to "uncast_insn",
3902 adding "insn" back in as an rtx_insn * with a checked cast, so
3903 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
3905 (compute_alignments): Strengthen local "label" from rtx to
3907 (shorten_branches): Rename param from "first" to "uncast_first",
3908 introducing a new local rtx_insn * "first" using a checked cast to
3909 effectively strengthen "first" from rtx to rtx_insn * without
3910 affecting the type signature. Strengthen locals "insn", "seq",
3911 "next", "label" from rtx to rtx_insn *.
3912 (change_scope): Strengthen param "orig_insn" and local "insn" from
3914 (final_start_function): Rename param from "first" to "uncast_first",
3915 introducing a new local rtx_insn * "first" using a checked cast to
3916 effectively strengthen "first" from rtx to rtx_insn * without
3917 affecting the type signature. Strengthen local "insn" from rtx to
3919 (dump_basic_block_info): Strengthen param "insn" from rtx to
3921 (final): Rename param from "first" to "uncast_first",
3922 introducing a new local rtx_insn * "first" using a checked cast to
3923 effectively strengthen "first" from rtx to rtx_insn * without
3924 affecting the type signature. Strengthen locals "insn", "next"
3925 from rtx to rtx_insn *.
3926 (output_alternate_entry_point): Strengthen param "insn" from rtx to
3928 (call_from_call_insn): Strengthen param "insn" from rtx to
3930 (final_scan_insn): Rename param from "insn" to "uncast_insn",
3931 introducing a new local rtx_insn * "insn" using a checked cast to
3932 effectively strengthen "insn" from rtx to rtx_insn * without
3933 affecting the type signature. Strengthen return type and locals
3934 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
3935 now-redundant checked cast to rtx_insn * from both invocations of
3936 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
3937 introducing a local "call_insn" for use when invoking
3938 call_from_call_insn.
3939 (notice_source_line): Strengthen param "insn" from rtx to
3941 (leaf_function_p): Likewise for local "insn".
3942 (final_forward_branch_p): Likewise.
3943 (leaf_renumber_regs): Likewise for param "first".
3944 (rest_of_clean_state): Likewise for locals "insn" and "next".
3945 (self_recursive_call_p): Likewise for param "insn".
3946 (collect_fn_hard_reg_usage): Likewise for local "insn".
3947 (get_call_fndecl): Likewise for param "insn".
3948 (get_call_cgraph_rtl_info): Likewise.
3949 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
3950 introducing a new local rtx_insn * "insn" using a checked cast to
3951 effectively strengthen "insn" from rtx to rtx_insn * without
3952 affecting the type signature.
3954 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
3955 cast when assigning from param "insn" to current_output_insn.
3956 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
3957 so that we can assign it back to current_output_insn.
3959 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3961 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
3962 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
3963 atmxt540s and atmxt540sreva devices.
3964 * config/avr/avr-tables.opt: Regenerate.
3965 * config/avr/t-multilib: Regenerate.
3966 * doc/avr-mmcu.texi: Regenerate.
3968 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3970 * expr.c (convert_move): Strengthen local "insns" from rtx to
3972 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
3973 "top_label" from rtx to rtx_code_label *.
3974 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
3976 (emit_single_push_insn): Likewise for locals "prev", "last".
3977 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
3978 to rtx_code_label *.
3979 (store_constructor): Likewise for locals "loop_start", "loop_end".
3980 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
3982 (expand_expr_real_2): Likewise.
3983 (expand_expr_real_1): Strengthen local "label" from rtx to
3986 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3988 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
3989 from rtx to rtx_insn *.
3990 (store_bit_field_1): Likewise.
3991 (extract_bit_field_1): Likewise.
3992 (expand_mult_const): Likewise for local "insns".
3993 (expmed_mult_highpart): Strengthen local "label" from rtx to
3995 (expand_smod_pow2): Likewise.
3996 (expand_sdiv_pow2): Likewise.
3997 (expand_divmod): Strengthen locals "last", "insn" from rtx to
3998 rtx_insn *. Strengthen locals "label", "label1", "label2",
3999 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4000 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4001 (emit_store_flag): Likewise.
4002 (emit_store_flag_force): Strengthen local "label" from rtx to
4004 (do_cmp_and_jump): Likewise for param "label".
4006 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4008 * explow.c (force_reg): Strengthen local "insn" from rtx to
4010 (adjust_stack_1): Likewise.
4011 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4012 "final_label", "available_label", "space_available" from rtx to
4014 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4015 (anti_adjust_stack_and_probe): Likewise.
4017 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4019 * except.h (sjlj_emit_function_exit_after): Strengthen param
4020 "after" from rtx to rtx_insn *. This is only called with
4021 result of get_last_insn (in function.c) so type-change should be
4024 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4025 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4026 to rtx_insn *. These fields are only used from except.c so this
4027 type-change should be self-contained to this patch.
4029 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4030 local "last" from rtx to rtx_insn *.
4031 (dw2_build_landing_pads): Likewise for local "seq".
4032 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4033 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4034 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4036 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4038 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4039 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4040 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4041 referring to an insn. Strengthen local "dispatch_label" from
4042 rtx to rtx_code_label *.
4043 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4045 (expand_eh_return): Strengthen local "around_label" from
4046 rtx to rtx_code_label *.
4047 (convert_to_eh_region_ranges): Strengthen locals "iter",
4048 "last_action_insn", "first_no_action_insn",
4049 "first_no_action_insn_before_switch",
4050 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4052 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4054 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4055 from rtx to rtx_insn *.
4056 (cached_next_real_insn): Likewise.
4057 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4059 (dwarf2out_var_location): Strengthen locals "next_real",
4060 "next_note", "expected_next_loc_note", "last_start", "insn" from
4063 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4065 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4066 from rtx to rtx_insn *.
4067 (create_pseudo_cfg): Likewise for local "insn".
4069 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4071 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4072 from rtx to rtx_insn *.
4073 (df_bb_regno_last_def_find): Likewise.
4075 * df-problems.c (df_rd_bb_local_compute): Likewise.
4076 (df_lr_bb_local_compute): Likewise.
4077 (df_live_bb_local_compute): Likewise.
4078 (df_chain_remove_problem): Likewise.
4079 (df_chain_create_bb): Likewise.
4080 (df_word_lr_bb_local_compute): Likewise.
4081 (df_remove_dead_eq_notes): Likewise for param "insn".
4082 (df_note_bb_compute): Likewise for local "insn".
4083 (simulate_backwards_to_point): Likewise.
4084 (df_md_bb_local_compute): Likewise.
4086 * df-scan.c (df_scan_free_bb_info): Likewise.
4087 (df_scan_start_dump): Likewise.
4088 (df_scan_start_block): Likewise.
4089 (df_install_ref_incremental): Likewise for local "insn".
4090 (df_insn_rescan_all): Likewise.
4091 (df_reorganize_refs_by_reg_by_insn): Likewise.
4092 (df_reorganize_refs_by_insn_bb): Likewise.
4093 (df_recompute_luids): Likewise.
4094 (df_bb_refs_record): Likewise.
4095 (df_update_entry_exit_and_calls): Likewise.
4096 (df_bb_verify): Likewise.
4098 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4100 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4101 "first_note" from rtx to rtx_insn *.
4102 (get_node_of_insn): Likewise for param 2 "insn".
4103 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4105 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4107 (mem_write_insn_p): Likewise.
4108 (mem_access_insn_p): Likewise.
4109 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4110 (def_has_ccmode_p): Likewise for param "insn".
4111 (add_cross_iteration_register_deps): Likewise for locals
4112 "def_insn" and "use_insn".
4113 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4114 (build_intra_loop_deps): Likewise for local "src_insn".
4115 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4117 (get_node_of_insn): Likewise for param "insn".
4119 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4121 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4122 (deletable_insn_p): Strengthen param "insn" from rtx to
4123 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4124 find_call_stack_args, since this is guarded by CALL_P (insn).
4125 (marked_insn_p): Strengthen param "insn" from rtx to
4127 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4128 invoking find_call_stack_args, since this is guarded by
4130 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4131 rtx_insn *; we know this is an insn since this was called by
4133 (mark_nonreg_stores_2): Likewise.
4134 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4136 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4137 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4139 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4140 from rtx to rtx_insn *.
4141 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4143 (delete_unmarked_insns): Likewise for locals "insn", "next".
4144 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4145 (mark_reg_dependencies): Likewise for param "insn".
4146 (rest_of_handle_ud_dce): Likewise for local "insn".
4147 (word_dce_process_block): Likewise.
4148 (dce_process_block): Likewise.
4150 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4152 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4153 from rtx to rtx_insn *.
4154 (struct change_cc_mode_args): Likewise for field "insn".
4155 (this_insn): Strengthen from rtx to rtx_insn *.
4156 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4158 (validate_canon_reg): Strengthen param "insn" from rtx to
4160 (canon_reg): Likewise.
4161 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4163 (record_jump_equiv): Strengthen param "insn" from rtx to
4165 (try_back_substitute_reg): Likewise, also for locals "prev",
4167 (find_sets_in_insn): Likewise for param "insn".
4168 (canonicalize_insn): Likewise.
4169 (cse_insn): Likewise. Add a checked cast.
4170 (invalidate_from_clobbers): Likewise for param "insn".
4171 (invalidate_from_sets_and_clobbers): Likewise.
4172 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4174 (cse_prescan_path): Strengthen local "insn" from rtx to
4176 (cse_extended_basic_block): Likewise for locals "insn" and
4178 (cse_main): Likewise for param "f".
4179 (check_for_label_ref): Likewise for local "insn".
4180 (set_live_p): Likewise for second param ("insn").
4181 (insn_live_p): Likewise for first param ("insn") and for local
4183 (cse_change_cc_mode_insn): Likewise for first param "insn".
4184 (cse_change_cc_mode_insns): Likewise for first and second params
4186 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4188 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4191 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4192 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4193 Anna Tikhonova <anna.tikhonova@intel.com>
4194 Ilya Tocar <ilya.tocar@intel.com>
4195 Andrey Turetskiy <andrey.turetskiy@intel.com>
4196 Ilya Verbin <ilya.verbin@intel.com>
4197 Kirill Yukhin <kirill.yukhin@intel.com>
4198 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4200 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4202 * config/i386/sse.md
4203 (define_mode_iterator VI248_AVX2): Delete.
4204 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4205 (define_mode_iterator VI48_AVX2): Ditto.
4206 (define_insn <shift_insn><mode>3): Delete.
4207 (define_insn "<shift_insn><mode>3<mask_name>" with
4208 VI2_AVX2_AVX512BW): New.
4209 (define_insn "<shift_insn><mode>3<mask_name>" with
4212 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4213 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4214 Anna Tikhonova <anna.tikhonova@intel.com>
4215 Ilya Tocar <ilya.tocar@intel.com>
4216 Andrey Turetskiy <andrey.turetskiy@intel.com>
4217 Ilya Verbin <ilya.verbin@intel.com>
4218 Kirill Yukhin <kirill.yukhin@intel.com>
4219 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4221 * config/i386/sse.md
4222 (define_mode_iterator VI4F_BRCST32x2): New.
4223 (define_mode_attr 64x2_mode): Ditto.
4224 (define_mode_attr 32x2mode): Ditto.
4225 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4226 with VI4F_BRCST32x2): Ditto.
4227 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4228 with V16FI mode iterator): Ditto.
4229 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4231 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4232 with VI8F_BRCST64x2): Ditto.
4234 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4235 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4236 Anna Tikhonova <anna.tikhonova@intel.com>
4237 Ilya Tocar <ilya.tocar@intel.com>
4238 Andrey Turetskiy <andrey.turetskiy@intel.com>
4239 Ilya Verbin <ilya.verbin@intel.com>
4240 Kirill Yukhin <kirill.yukhin@intel.com>
4241 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4243 * config/i386/sse.md
4244 (define_mode_iterator VI8_AVX512VL): New.
4245 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4247 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4249 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4250 (define_mode_iterator V48_AVX512VL): New.
4251 (define_mode_iterator V12_AVX512VL): Ditto.
4252 (define_insn <avx512>_load<mode>_mask): Split into two similar
4253 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4254 Refactor output template.
4255 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4257 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4259 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4261 (reg_available_p): Likewise for param "insn".
4262 (insert_set_in_table): Likewise.
4263 (hash_scan_set): Likewise.
4264 (hash_scan_insn): Likewise.
4265 (make_set_regs_unavailable): Likewise.
4266 (compute_hash_table_work): Likewise for local "insn".
4267 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4269 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4270 (try_replace_reg): Likewise.
4271 (find_avail_set): Likewise.
4272 (cprop_jump): Likewise for params "setcc", "jump".
4273 (constprop_register): Likewise for param "insn".
4274 (cprop_insn): Likewise.
4275 (do_local_cprop): Likewise.
4276 (local_cprop_pass): Likewise for local "insn".
4277 (bypass_block): Likewise for params "setcc" and "jump".
4278 (bypass_conditional_jumps): Likewise for locals "setcc" and
4280 (one_cprop_pass): Likewise for local "insn".
4282 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4284 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4285 from rtx to rtx_insn *.
4286 (struct comparison): Likewise, also for field "prev_clobber".
4287 (conforming_compare): Likewise for param "insn".
4288 (arithmetic_flags_clobber_p): Likewise.
4289 (find_flags_uses_in_insn): Likewise.
4290 (find_comparison_dom_walker::before_dom_children): Likewise for
4291 locals "insn", "next", "last_clobber".
4292 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4294 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4296 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4297 "insn" from rtx to rtx_insn *.
4298 (single_set_for_csa): Likewise for param "insn".
4299 (record_one_stack_ref): Likewise.
4300 (try_apply_stack_adjustment): Likewise.
4301 (struct record_stack_refs_data): Likewise for field "insn".
4302 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4303 (prev_active_insn_bb): Likewise for return type and param "insn".
4304 (next_active_insn_bb): Likewise.
4305 (force_move_args_size_note): Likewise for params "prev" and "last"
4306 and locals "test", "next_candidate", "prev_candidate".
4307 (combine_stack_adjustments_for_block): Strengthen locals
4308 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4311 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4313 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4314 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4315 (subst_insn): Likewise for this variable.
4316 (added_links_insn): Likewise.
4317 (struct insn_link): Likewise for field "insn".
4318 (alloc_insn_link): Likewise for param "insn".
4319 (struct undobuf): Likewise for field "other_insn".
4320 (find_single_use): Likewise for param "insn" and local "next".
4321 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4322 (delete_noop_moves): Likewise for locals "insn", "next".
4323 (create_log_links): Likewise for locals "insn", "use_insn".
4324 Strengthen local "next_use" from rtx * to rtx_insn **.
4325 (insn_a_feeds_b): Likewise for params "a", "b".
4326 (combine_instructions): Likewise for param "f" and locals "insn",
4327 "next", "prev", "first", "last_combined_insn", "link", "link1",
4328 "temp". Replace use of NULL_RTX with NULL when referring to
4330 (setup_incoming_promotions): Likewise for param "first"
4331 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4332 (can_combine_p): Likewise for params "insn", "i3", "pred",
4333 "pred2", "succ", "succ2" and for local "p".
4334 (combinable_i3pat): Likewise for param "i3".
4335 (cant_combine_insn_p): Likewise for param "insn".
4336 (likely_spilled_retval_p): Likewise.
4337 (adjust_for_new_dest): Likewise.
4338 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4339 (try_combine): Likewise for return type and for params "i3", "i2",
4340 "i1", "i0", "last_combined_insn", and for locals "insn",
4341 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4342 "i0_insn". Eliminate local "tem" in favor of new locals
4343 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4344 checked cast for now to rtx_insn * on the return type of
4345 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4347 (find_split_point): Strengthen param "insn" from rtx to
4349 (simplify_set): Likewise for local "other_insn".
4350 (recog_for_combine): Likewise for param "insn".
4351 (record_value_for_reg): Likewise.
4352 (record_dead_and_set_regs_1): Likewise for local
4354 (record_dead_and_set_regs): Likewise for param "insn".
4355 (record_promoted_value): Likewise.
4356 (check_promoted_subreg): Likewise.
4357 (get_last_value_validate): Likewise.
4358 (reg_dead_at_p): Likewise.
4359 (move_deaths): Likewise for param "to_insn".
4360 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4361 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4362 in favor of new locals "tem_note" and "tem_insn", the latter being
4364 (distribute_links): Strengthen locals "place", "insn" from rtx to
4367 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4369 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4371 (can_delete_label_p): Require a const rtx_code_label * rather than
4373 (delete_insn): Add checked cast to rtx_code_label * when we know
4374 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4376 (delete_insn_chain): Strengthen locals "prev" and "current" from
4377 rtx to rtx_insn *. Add a checked cast when assigning from
4378 "finish" (strengthening the params will come later). Add a
4379 checked cast to rtx_note * in region where we know
4381 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4383 (compute_bb_for_insn): Likewise.
4384 (free_bb_for_insn): Likewise for local "insn".
4385 (compute_bb_for_insn): Likewise.
4386 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4387 local "insn" from rtx to rtx_insn *
4388 (flow_active_insn_p): Require a const rtx_insn * rather than a
4390 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4392 (can_fallthru): Likewise for locals "insn" and "insn2".
4393 (bb_note): Likewise for local "note".
4394 (first_insn_after_basic_block_note): Likewise for local "note" and
4396 (rtl_split_block): Likewise for locals "insn" and "next".
4397 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4399 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4400 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4402 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4403 them), "kill_from", "barrier", "new_insn".
4404 (patch_jump_insn): Likewise for params "insn", "old_label".
4405 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4406 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4407 "old_label", "new_label".
4408 (rtl_tidy_fallthru_edge): Likewise for local "q".
4409 (rtl_split_edge): Likewise for locals "before", "last".
4410 (commit_one_edge_insertion): Likewise for locals "before",
4411 "after", "insns", "tmp", "last", adding a checked cast where
4412 currently necessary.
4413 (commit_edge_insertions): Likewise.
4414 (rtl_dump_bb): Likewise for locals "insn", "last".
4415 (print_rtl_with_bb): Likewise for local "x".
4416 (rtl_verify_bb_insns): Likewise for local "x".
4417 (rtl_verify_bb_pointers): Likewise for local "insn".
4418 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4420 (rtl_verify_fallthru): Likewise for local "insn".
4421 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4422 (purge_dead_edges): Likewise for local "insn".
4423 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4424 (skip_insns_after_block): Likewise for return type and for locals
4425 "insn", "last_insn", "next_head", "prev".
4426 (record_effective_endpoints): Likewise for locals "next_insn",
4428 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4429 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4430 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4431 (duplicate_insn_chain): For now, add checked cast from rtx to
4432 rtx_insn * when returning insn.
4433 (cfg_layout_duplicate_bb): Likewise for local "insn".
4434 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4436 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4437 (rtl_block_empty_p): Likewise.
4438 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4439 "split_point", "last".
4440 (rtl_block_ends_with_call_p): Likewise for local "insn".
4441 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4443 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4444 "split_at_insn" from rtx to rtx_insn *.
4445 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4446 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4447 to const rtx_insn *.
4448 (rtl_account_profile_record): Likewise.
4450 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4452 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4454 (average_num_loop_insns): Likewise.
4455 (init_set_costs): Likewise for local "seq".
4456 (seq_cost): Likewise for param "seq", from const_rtx to const
4459 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4461 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4464 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4466 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4467 "f1" and "f2" from rtx * to rtx_insn **.
4468 (flow_find_head_matching_sequence): Likewise.
4470 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4471 "cbranch_insn" from rtx to rtx_insn *.
4472 (thread_jump): Likewise for local "insn".
4473 (try_forward_edges): Likewise for local "last".
4474 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4475 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4477 (can_replace_by): Likewise for params "i1", "i2".
4478 (old_insns_match_p): Likewise.
4479 (merge_notes): Likewise.
4480 (walk_to_nondebug_insn): Likewise for param "i1".
4481 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4482 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4483 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4484 (flow_find_head_matching_sequence): Strengthen params "f1" and
4485 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4486 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4488 (outgoing_edges_match): Likewise for locals "last1", "last2".
4489 (try_crossjump_to_edge): Likewise for local "insn".
4490 Replace call to for_each_rtx with for_each_rtx_in_insn.
4492 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4493 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4494 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4495 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4496 (try_optimize_cfg): Strengthen local "last" from rtx to
4498 (delete_dead_jumptables): Likewise for locals "insn", "next",
4501 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4502 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4503 "rtx else_first_tail", to reflect the basic-block.h changes above.
4505 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4507 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4509 (purge_dead_tablejump_edges): Likewise.
4510 (find_bb_boundaries): Likewise for locals "insn", "end",
4511 "flow_transfer_insn".
4513 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4515 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4516 "ins" and "prev" from rtx to rtx_insn *.
4518 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4520 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4522 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4523 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4525 (load_register_parameters): Likewise for local "before_arg".
4526 (check_sibcall_argument_overlap): Likewise for param "insn".
4527 (expand_call): Likewise for locals "normal_call_insns",
4528 "tail_call_insns", "insns", "before_call", "after_args",
4529 "before_arg", "last", "prev". Strengthen one of the "last" from
4530 rtx to rtx_call_insn *.
4531 (fixup_tail_calls): Strengthen local "insn" from rtx to
4533 (emit_library_call_value_1): Likewise for locals "before_call" and
4536 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4538 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4539 and "last" from rtx to rtx_insn *.
4540 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4541 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4543 (expand_errno_check): Strengthen local "lab" from rtx to
4545 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4547 (expand_builtin_mathfn_2): Likewise.
4548 (expand_builtin_mathfn_ternary): Likewise.
4549 (expand_builtin_mathfn_3): Likewise.
4550 (expand_builtin_interclass_mathfn): Likewise for local "last".
4551 (expand_builtin_int_roundingfn): Likewise for local "insns".
4552 (expand_builtin_int_roundingfn_2): Likewise.
4553 (expand_builtin_strlen): Likewise for local "before_strlen".
4554 (expand_builtin_strncmp): Likewise for local "seq".
4555 (expand_builtin_signbit): Likewise for local "last".
4556 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4557 from rtx to rtx_code_label *.
4558 (expand_stack_restore): Strengthen local "prev" from rtx to
4561 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4563 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4565 (struct btr_def_s): Likewise.
4566 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4568 (add_btr_def): Likewise.
4569 (new_btr_user): Likewise.
4570 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4572 (link_btr_uses): Likewise.
4573 (move_btr_def): Likewise for locals "insp", "old_insn",
4574 "new_insn". Add checked cast to rtx_insn * for now on result of
4576 (can_move_up): Strengthen param "insn" from const_rtx to
4579 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4581 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4583 (get_uncond_jump_length): Likewise for locals "label", "jump".
4584 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4586 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4587 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4588 (find_jump_block): Likewise for local "insn".
4589 (fix_crossing_conditional_branches): Likewise for locals
4590 "old_jump", "new_jump".
4591 (fix_crossing_unconditional_branches): Likewise for locals
4592 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4593 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4595 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4597 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4599 (struct mem_insn): Likewise for field "insn".
4600 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4601 (reg_next_inc_use): Likewise.
4602 (reg_next_def): Likewise.
4603 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4604 from rtx to rtx_insn *.
4605 (move_insn_before): Likewise for param "next_insn" and local "insns".
4606 (attempt_change): Likewise for local "mov_insn".
4607 (try_merge): Likewise for param "last_insn".
4608 (get_next_ref): Likewise for return type and local "insn".
4609 Strengthen param "next_array" from rtx * to rtx_insn **.
4610 (parse_add_or_inc): Strengthen param "insn" from rtx to
4612 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4614 (merge_in_block): Likewise for locals "insn", "curr",
4616 (pass_inc_dec::execute): Update allocations of the arrays to
4617 reflect the stronger types.
4619 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4621 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4622 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4623 from rtx to rtx_code_label *.
4625 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4627 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4630 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4632 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4633 generated a warning and prevented bootstrapping the compiler.
4635 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4637 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4640 * jump.c (delete_related_insns): Likewise, also for locals "next"
4643 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4645 * genautomata.c (output_internal_insn_latency_func): When writing
4646 the function "internal_insn_latency" to insn-automata.c,
4647 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4648 allowing the optional guard function of (define_bypass) clauses to
4649 expect a pair of rtx_insn *, rather than a pair of rtx.
4650 (output_insn_latency_func): When writing the function
4651 "insn_latency", add an "uncast_" prefix to params "insn" and
4652 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4653 using checked casts from the params, thus enabling the above
4654 change to the generated "internal_insn_latency" function.
4656 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4658 PR tree-optimization/62091
4659 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4660 handle correctly arrays.
4661 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4663 (record_known_type): Walk into inner type.
4664 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4665 condition on no type changes.
4667 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4669 * genattrtab.c (write_attr_get): Within the generated get_attr_
4670 functions, rename param "insn" to "uncast_insn" and reintroduce
4671 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4672 is an rtx_insn * within insn-attrtab.c
4674 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4676 * output.h (peephole): Strengthen return type from rtx to
4678 * rtl.h (delete_for_peephole): Likewise for both params.
4679 * genpeep.c (main): In generated "peephole" function, strengthen
4680 return type and local "insn" from rtx to rtx_insn *. For now,
4681 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4682 rtx_insn *, with a checked cast.
4683 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4684 locals "insn", "next", "prev" from rtx to rtx_insn *.
4686 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4688 PR tree-optimization/62112
4689 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4690 * gimple-iterator.h (gsi_replace): Return bool.
4691 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4692 moved from ref_may_alias_global_p.
4693 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4695 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4696 (stmt_kills_ref_p_1): Rename...
4697 (stmt_kills_ref_p): ... to this.
4698 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4699 stmt_kills_ref_p): Declare.
4700 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4701 Move the self-assignment case...
4702 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4704 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4706 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4708 * emit-rtl.c (try_split): Likewise, also for locals "before" and
4709 "after". For now, don't strengthen param "trial", which requires
4710 adding checked casts when returning it.
4712 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4714 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4715 "label" from rtx to rtx_code_label *. Strengthen param 1 of
4716 "var_location" hook from rtx to rtx_insn *.
4717 (debug_nothing_rtx): Delete in favor of...
4718 (debug_nothing_rtx_code_label): New prototype.
4719 (debug_nothing_rtx_rtx): Delete unused prototype.
4720 (debug_nothing_rtx_insn): New prototype.
4722 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4723 invoking debug_hooks->var_location (in two places, one in a NOTE
4724 case of a switch statement, the other guarded by a CALL_P
4725 conditional. Add checked cast to rtx_code_label * when invoking
4726 debug_hooks->label (within CODE_LABEL case of switch statement).
4728 * dbxout.c (dbx_debug_hooks): Update "label" hook from
4729 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4730 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4731 (xcoff_debug_hooks): Likewise.
4732 * debug.c (do_nothing_debug_hooks): Likewise.
4733 (debug_nothing_rtx): Delete in favor of...
4734 (debug_nothing_rtx_insn): New function.
4735 (debug_nothing_rtx_rtx): Delete unused function.
4736 (debug_nothing_rtx_code_label): New function.
4737 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
4738 debug_nothing_rtx to debug_nothing_rtx_code_label.
4739 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
4741 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
4742 debug_nothing_rtx to debug_nothing_rtx_insn.
4743 (sdbout_label): Strengthen param "insn" from rtx to
4745 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
4746 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4747 "var_location" hook from debug_nothing_rtx to
4748 debug_nothing_rtx_insn.
4750 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4752 * recog.h (insn_output_fn): Update this function typedef to match
4753 the changes below to the generated output functions, strengthening
4754 the 2nd param from rtx to rtx_insn *.
4756 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
4757 insn when invoking an output function, to match the new signature
4758 of insn_output_fn with a stronger second param.
4760 * genconditions.c (write_header): In the generated code for
4761 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
4762 to match the other changes in this patch.
4764 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
4765 the generated "gen_" functions from rtx to rtx_insn * within their
4768 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
4769 the subfunctions within the generated "recog_", "split", "peephole2"
4770 function trees from rtx to rtx_insn *. For now, the top-level
4771 generated functions ("recog", "split", "peephole2") continue to
4772 take a plain rtx for "insn", to avoid introducing dependencies on
4773 other patches. Rename this 2nd param from "insn" to
4774 "uncast_insn", and reintroduce "insn" as a local variable of type
4775 rtx_insn *, initialized at the top of the generated function with
4776 a checked cast on "uncast_insn".
4777 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
4778 the generated "gen_" functions from rtx to rtx_insn * within their
4781 * genoutput.c (process_template): Strengthen the 2nd param within
4782 the generated "output_" functions "insn" from rtx to rtx_insn *.
4784 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4786 * tree-profile.c (tree_profiling): Skip external functions
4787 when doing coverage instrumentation.
4788 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
4790 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4792 * config/rs6000/altivec.h (vec_cpsgn): New #define.
4793 (vec_mergee): Likewise.
4794 (vec_mergeo): Likewise.
4795 (vec_cntlz): Likewise.
4796 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
4797 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
4798 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
4800 * doc/extend.texi: Document various forms of vec_cpsgn,
4801 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
4802 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
4803 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
4804 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
4805 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
4807 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4809 * config/rs6000/rs6000.c (context.h): New include.
4810 (tree-pass.h): Likewise.
4811 (make_pass_analyze_swaps): New decl.
4812 (rs6000_option_override): Register pass_analyze_swaps.
4813 (swap_web_entry): New subsclass of web_entry_base (df.h).
4814 (special_handling_values): New enum.
4815 (union_defs): New function.
4816 (union_uses): Likewise.
4817 (insn_is_load_p): Likewise.
4818 (insn_is_store_p): Likewise.
4819 (insn_is_swap_p): Likewise.
4820 (rtx_is_swappable_p): Likewise.
4821 (insn_is_swappable_p): Likewise.
4822 (chain_purpose): New enum.
4823 (chain_contains_only_swaps): New function.
4824 (mark_swaps_for_removal): Likewise.
4825 (swap_const_vector_halves): Likewise.
4826 (adjust_subreg_index): Likewise.
4827 (permute_load): Likewise.
4828 (permute_store): Likewise.
4829 (handle_special_swappables): Likewise.
4830 (replace_swap_with_copy): Likewise.
4831 (dump_swap_insn_table): Likewise.
4832 (rs6000_analyze_swaps): Likewise.
4833 (pass_data_analyze_swaps): New pass_data.
4834 (pass_analyze_swaps): New rtl_opt_pass.
4835 (make_pass_analyze_swaps): New function.
4836 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
4838 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4840 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
4841 type from rtx to rtx_insn *.
4842 (create_copy_of_insn_rtx): Likewise.
4843 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
4844 (create_copy_of_insn_rtx): Likewise, also for local "res".
4846 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4848 * rtl.h (find_first_parameter_load): Strengthen return type from
4850 * rtlanal.c (find_first_parameter_load): Strengthen return type
4851 from rtx to rtx_insn *. Add checked cast for now, to postpone
4852 strengthening the params.
4854 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4857 * diagnostic.c: Set default caret.
4858 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
4860 * diagnostic.h (struct diagnostic_context):
4862 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4864 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
4865 (sel_bb_head): Strengthen return type insn_t (currently just an
4867 (sel_bb_end): Likewise.
4869 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
4870 (sel_bb_head): Strengthen return type and local "head" from
4871 insn_t (currently just an rtx) to rtx_insn *.
4872 (sel_bb_end): Likewise for return type.
4873 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
4876 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4878 * basic-block.h (get_last_bb_insn): Strengthen return type from
4880 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
4883 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4886 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
4888 (diagnostic_report_diagnostic): ... from here.
4889 * toplev.c (general_init): Move code to c-family.
4891 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4893 * df.h (web_entry_base): Replace existing struct web_entry with a
4894 new class web_entry_base with only the predecessor member.
4895 (unionfind_root): Remove declaration and move to class member.
4896 (unionfind_union): Remove declaration and move to friend
4898 (union_defs): Remove declaration.
4899 * web.c (web_entry_base::unionfind_root): Modify to be member
4900 function and adjust accessors.
4901 (unionfind_union): Modify to be friend function and adjust
4903 (web_entry): New subclass of web_entry_base containing the reg
4905 (union_match_dups): Modify for struct -> class changes.
4906 (union_defs): Likewise.
4907 (entry_register): Likewise.
4908 (pass_web::execute): Likewise.
4910 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
4912 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
4913 builtin define __VEC_ELEMENT_REG_ORDER__.
4915 2014-08-20 Martin Jambor <mjambor@suse.cz>
4916 Wei Mi <wmi@google.com>
4920 * tree-ssa-operands.c (update_stmt_operands): Remove
4921 MODIFIED_NORETURN_CALLS.
4922 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
4923 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
4924 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
4925 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
4926 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
4927 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
4928 (gimple_call_set_ctrl_altering): New func.
4929 (gimple_call_ctrl_altering_p): Ditto.
4930 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
4931 (make_blocks): Use gimple_call_initialize_ctrl_altering.
4932 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
4933 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
4934 remove MODIFIED_NORETURN_CALLS.
4936 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4938 * coverage.c (coverage_compute_profile_id): Return non-0;
4939 also handle symbols with unique name.
4940 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
4942 2014-08-20 Steve Ellcey <sellcey@mips.com>
4945 * doc/sourcebuild.texi (non_strict_align): New.
4947 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4949 * cgraphunit.c (ipa_passes, compile): Reshedule
4950 symtab_remove_unreachable_nodes passes; update comments.
4951 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
4952 TODO_remove_functions before the pass; the functions ought to be
4954 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
4955 TODO_remove_functions.
4956 * passes.c (pass_data_early_local_passes): Do not schedule function
4958 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
4960 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4963 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
4964 before setting the option.
4965 * diagnostic.c (diagnostic_classify_diagnostic): Record
4966 command-line status.
4968 2014-08-20 Richard Biener <rguenther@suse.de>
4971 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
4972 to build uint{16,32,64}_type_node.
4974 2014-08-20 Terry Guo <terry.guo@arm.com>
4976 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
4977 with immediate_operand.
4979 2014-08-20 David Malcolm <dmalcolm@redhat.com>
4981 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
4982 "insn" from an as_a to a safe_as_a, for the case when "insn" is
4985 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4987 PR preprocessor/51303
4988 * incpath.c (remove_duplicates): Use cpp_warning.
4990 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4994 * doc/options.texi (CPP): Document it.
4995 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
4996 * optc-gen.awk: Handle CPP.
4997 * opth-gen.awk: Likewise.
4999 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5001 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5003 (duplicate_insn_chain): Likewise.
5004 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5005 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5006 checked cast for now (until we can strengthen the params in the
5008 (duplicate_insn_chain): Likewise.
5010 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5012 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5014 (prev_cc0_setter): Likewise.
5016 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5017 rtx_insn *, adding checked casts for now as necessary.
5018 (prev_cc0_setter): Likewise.
5020 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5022 * expr.h (emit_move_insn): Strengthen return type from rtx to
5024 (emit_move_insn_1): Likewise.
5025 (emit_move_complex_push): Likewise.
5026 (emit_move_complex_parts): Likewise.
5028 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5029 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5031 (emit_move_complex_push): Strengthen return type from rtx to
5033 (emit_move_complex): Likewise, also for local "ret".
5034 (emit_move_ccmode): Likewise.
5035 (emit_move_multi_word): Likewise for return type and locals
5037 (emit_move_insn_1): Likewise for return type and locals "result",
5039 (emit_move_insn): Likewise for return type and local "last_insn".
5040 (compress_float_constant): Likewise.
5042 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5044 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5045 from rtx to rtx_insn *.
5047 * rtl.h (emit_insn_before): Likewise.
5048 (emit_insn_before_noloc): Likewise.
5049 (emit_insn_before_setloc): Likewise.
5050 (emit_jump_insn_before): Likewise.
5051 (emit_jump_insn_before_noloc): Likewise.
5052 (emit_jump_insn_before_setloc): Likewise.
5053 (emit_call_insn_before): Likewise.
5054 (emit_call_insn_before_noloc): Likewise.
5055 (emit_call_insn_before_setloc): Likewise.
5056 (emit_debug_insn_before): Likewise.
5057 (emit_debug_insn_before_noloc): Likewise.
5058 (emit_debug_insn_before_setloc): Likewise.
5059 (emit_label_before): Likewise.
5060 (emit_insn_after): Likewise.
5061 (emit_insn_after_noloc): Likewise.
5062 (emit_insn_after_setloc): Likewise.
5063 (emit_jump_insn_after): Likewise.
5064 (emit_jump_insn_after_noloc): Likewise.
5065 (emit_jump_insn_after_setloc): Likewise.
5066 (emit_call_insn_after): Likewise.
5067 (emit_call_insn_after_noloc): Likewise.
5068 (emit_call_insn_after_setloc): Likewise.
5069 (emit_debug_insn_after): Likewise.
5070 (emit_debug_insn_after_noloc): Likewise.
5071 (emit_debug_insn_after_setloc): Likewise.
5072 (emit_label_after): Likewise.
5073 (emit_insn): Likewise.
5074 (emit_debug_insn): Likewise.
5075 (emit_jump_insn): Likewise.
5076 (emit_call_insn): Likewise.
5077 (emit_label): Likewise.
5078 (gen_clobber): Likewise.
5079 (emit_clobber): Likewise.
5080 (gen_use): Likewise.
5081 (emit_use): Likewise.
5084 (emit_barrier_before): Strengthen return type from rtx to
5086 (emit_barrier_after): Likewise.
5087 (emit_barrier): Likewise.
5089 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5090 from rtx to rtx_insn *. Add checked casts for now when converting
5091 "last" from rtx to rtx_insn *.
5092 (emit_insn_before_noloc): Likewise for return type.
5093 (emit_jump_insn_before_noloc): Likewise.
5094 (emit_call_insn_before_noloc): Likewise.
5095 (emit_debug_insn_before_noloc): Likewise.
5096 (emit_barrier_before): Strengthen return type and local "insn"
5097 from rtx to rtx_barrier *.
5098 (emit_label_before): Strengthen return type from rtx to
5099 rtx_insn *. Add checked cast for now when returning param
5100 (emit_pattern_after_noloc): Strengthen return type from rtx to
5101 rtx_insn *. Add checked casts for now when converting "last" from
5103 (emit_insn_after_noloc): Strengthen return type from rtx to
5105 (emit_jump_insn_after_noloc): Likewise.
5106 (emit_call_insn_after_noloc): Likewise.
5107 (emit_debug_insn_after_noloc): Likewise.
5108 (emit_barrier_after): Strengthen return type from rtx to
5110 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5111 Add checked cast for now when converting "label" from rtx to
5113 (emit_pattern_after_setloc): Strengthen return type from rtx to
5114 rtx_insn *. Add checked casts for now when converting "last" from
5116 (emit_pattern_after): Strengthen return type from rtx to
5118 (emit_insn_after_setloc): Likewise.
5119 (emit_insn_after): Likewise.
5120 (emit_jump_insn_after_setloc): Likewise.
5121 (emit_jump_insn_after): Likewise.
5122 (emit_call_insn_after_setloc): Likewise.
5123 (emit_call_insn_after): Likewise.
5124 (emit_debug_insn_after_setloc): Likewise.
5125 (emit_debug_insn_after): Likewise.
5126 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5127 when converting "last" from rtx to rtx_insn *.
5128 (emit_pattern_before): Strengthen return type from rtx to
5130 (emit_insn_before_setloc): Likewise.
5131 (emit_insn_before): Likewise.
5132 (emit_jump_insn_before_setloc): Likewise.
5133 (emit_jump_insn_before): Likewise.
5134 (emit_call_insn_before_setloc): Likewise.
5135 (emit_call_insn_before): Likewise.
5136 (emit_debug_insn_before_setloc): Likewise.
5137 (emit_debug_insn_before): Likewise.
5138 (emit_insn): Strengthen return type and locals "last", "insn",
5139 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5140 within cases where we know we have an insn.
5141 (emit_debug_insn): Likewise.
5142 (emit_jump_insn): Likewise.
5143 (emit_call_insn): Strengthen return type and local "insn" from rtx
5145 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5146 a checked cast to rtx_insn * for now on "label".
5147 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5148 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5149 (emit_use): Likewise.
5150 (gen_use): Likewise, also for local "seq".
5151 (emit): Likewise for return type and local "insn".
5152 (rtx_insn): Likewise for return type and local "new_rtx".
5154 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5155 from rtx to rtx_barrier *.
5157 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5158 changed return type from rtx to rtx_insn *, we must update
5159 "emit_fn" type, and this in turn means updating...
5160 (frame_insn): ...this. Strengthen return type from rtx to
5161 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5163 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5165 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5166 rtx to rtx_jump_table_data *. Also for local.
5167 * rtl.h (emit_jump_table_data): Likewise.
5169 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5171 * basic-block.h (create_basic_block_structure): Strengthen third
5172 param "bb_note" from rtx to rtx_note *.
5173 * rtl.h (emit_note_before): Strengthen return type from rtx to
5175 (emit_note_after): Likewise.
5176 (emit_note): Likewise.
5177 (emit_note_copy): Likewise. Also, strengthen param similarly.
5178 * function.h (struct rtl_data): Strengthen field
5179 "x_stack_check_probe_note" from rtx to rtx_note *.
5181 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5182 from rtx to rtx_note *.
5183 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5184 "bb_note" from rtx to rtx_note *.
5185 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5186 when calling emit_note_copy.
5187 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5189 (emit_note_after): Likewise.
5190 (emit_note_before): Likewise.
5191 (emit_note_copy): Likewise. Also, strengthen param similarly.
5192 (emit_note): Likewise.
5193 * except.c (emit_note_eh_region_end): Likewise for return type.
5194 Strengthen local "next" from rtx to rtx_insn *.
5195 (convert_to_eh_region_ranges): Strengthen local "note"
5196 from rtx to rtx_note *.
5197 * final.c (change_scope): Likewise.
5198 (reemit_insn_block_notes): Likewise, for both locals named "note".
5199 Also, strengthen local "insn" from rtx to rtx_insn *.
5200 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5202 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5203 strengthen local "seq" from rtx to rtx_insn *.
5204 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5206 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5208 (get_bb_note_from_pool): Strengthen return type from rtx to
5210 (sel_create_basic_block): Strengthen local "new_bb_note" from
5211 insn_t to rtx_note *.
5212 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5213 "note" from rtx to rtx_note *.
5214 (emit_notes_in_bb): Likewise.
5216 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5218 * function.h (struct rtl_data): Strengthen field
5219 "x_parm_birth_insn" from rtx to rtx_insn *.
5220 * function.c (struct assign_parm_data_all): Strengthen fields
5221 "first_conversion_insn" and "last_conversion_insn" from rtx to
5224 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5226 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5227 to rtx_insn *; also for local "var_end_seq".
5228 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5229 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5231 (expand_gimple_cond): Likewise for locals "last2" and "last".
5232 (mark_transaction_restart_calls): Likewise for local "insn".
5233 (expand_gimple_stmt): Likewise for return type and locals "last"
5235 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5236 (avoid_complex_debug_insns): Likewise for param "insn".
5237 (expand_debug_locations): Likewise for locals "insn", "last",
5238 "prev_insn" and "insn2".
5239 (expand_gimple_basic_block): Likewise for local "last".
5240 (construct_exit_block): Likewise for locals "head", "end",
5242 (pass_expand::execute): Likewise for locals "var_seq",
5243 "var_ret_seq", "next".
5245 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5247 * asan.h (asan_emit_stack_protection): Strengthen return type from
5249 * asan.c (asan_emit_stack_protection): Likewise. Add local
5250 "insns" to hold the return value.
5252 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5254 * basic-block.h (bb_note): Strengthen return type from rtx to
5256 * sched-int.h (bb_note): Likewise.
5257 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5259 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5261 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5264 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5265 "insn" from rtx to rtx_insn *.
5266 (make_debug_insn_raw): Strengthen return type from rtx to
5267 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5268 (make_jump_insn_raw): Strengthen return type from rtx to
5269 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5270 (make_call_insn_raw): Strengthen return type from rtx to
5271 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5272 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5273 callback from rtx to rtx_insn *; likewise for local "insn" and
5274 "next", adding a checked cast to rtx_insn in the relevant cases of
5275 the switch statement.
5276 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5277 callback from rtx to rtx_insn *.
5278 (emit_pattern_after_setloc): Likewise.
5279 (emit_pattern_after): Likewise.
5280 (emit_pattern_before_setloc): Likewise.
5281 (emit_pattern_before): Likewise.
5283 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5285 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5287 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5288 accepting an rtx_insn *.
5289 (last_call_insn): Strengthen return type from rtx to
5292 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5294 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5295 "insns" from rtx to rtx_insn *.
5296 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5297 locals "insn" and "prev".
5299 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5301 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5302 rtx_jump_table_data **.
5304 * cfgbuild.c (make_edges): Introduce local "table", using it in
5305 place of "tmp" for jump table data.
5306 (find_bb_boundaries): Strengthen local "table" from rtx to
5307 rtx_jump_table_data *.
5308 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5309 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5310 (try_crossjump_to_edge): Likewise.
5311 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5313 (patch_jump_insn): Introduce local "table", using it in place of
5314 "tmp" for jump table data.
5315 (force_nonfallthru_and_redirect): Introduce local "table", so that
5316 call to tablejump_p can receive an rtx_jump_table_data **. Update
5317 logic around the call to overwrite "note" appropriately if
5318 tablejump_p returns non-zero.
5319 (get_last_bb_insn): Introduce local "table", using it in place of
5320 "tmp" for jump table data.
5321 * dwarf2cfi.c (create_trace_edges): Likewise.
5323 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5324 from rtx to rtx_jump_table_data *.
5325 (create_fix_barrier): Strengthen local "tmp" from rtx to
5326 rtx_jump_table_data *.
5327 (arm_reorg): Likewise for local "table".
5329 * config/s390/s390.c (s390_chunkify_start): Likewise.
5331 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5333 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5334 rtx to rtx_jump_table_data *.
5336 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5337 rtx_jump_table_data **. Add a checked cast when writing through
5338 the pointer: we know there that local "table" is non-NULL and that
5339 JUMP_TABLE_DATA_P (table) holds.
5340 (label_is_jump_target_p): Introduce local "table", using it in
5341 place of "tmp" for jump table data.
5343 2014-08-19 Marek Polacek <polacek@redhat.com>
5346 * doc/invoke.texi: Document -Wbool-compare.
5348 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5350 * rtl.h (entry_of_function): Strengthen return type from rtx to
5352 * cfgrtl.c (entry_of_function): Likewise.
5354 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5356 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5357 rtx_insn *, adding a checked cast for now.
5358 (get_last_insn): Likewise.
5360 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5362 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5365 * emit-rtl.c (gen_label_rtx): Likewise.
5367 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5369 * rtl.h (previous_insn): Strengthen return type from rtx to
5371 (next_insn): Likewise.
5372 (prev_nonnote_insn): Likewise.
5373 (prev_nonnote_insn_bb): Likewise.
5374 (next_nonnote_insn): Likewise.
5375 (next_nonnote_insn_bb): Likewise.
5376 (prev_nondebug_insn): Likewise.
5377 (next_nondebug_insn): Likewise.
5378 (prev_nonnote_nondebug_insn): Likewise.
5379 (next_nonnote_nondebug_insn): Likewise.
5380 (prev_real_insn): Likewise.
5381 (next_real_insn): Likewise.
5382 (prev_active_insn): Likewise.
5383 (next_active_insn): Likewise.
5385 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5386 rtx_insn *, adding a checked cast.
5387 (previous_insn): Likewise.
5388 (next_nonnote_insn): Likewise.
5389 (next_nonnote_insn_bb): Likewise.
5390 (prev_nonnote_insn): Likewise.
5391 (prev_nonnote_insn_bb): Likewise.
5392 (next_nondebug_insn): Likewise.
5393 (prev_nondebug_insn): Likewise.
5394 (next_nonnote_nondebug_insn): Likewise.
5395 (prev_nonnote_nondebug_insn): Likewise.
5396 (next_real_insn): Likewise.
5397 (prev_real_insn): Likewise.
5398 (next_active_insn): Likewise.
5399 (prev_active_insn): Likewise.
5401 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5402 param "stepfunc" so that it returns an rtx_insn * rather than an
5403 rtx, to track the change to prev_nonnote_insn_bb, which is the
5404 only function this is called with.
5405 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5407 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5409 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5412 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5414 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5415 (class rtx_nonjump_insn): Likewise.
5416 (class rtx_jump_insn): Likewise.
5417 (class rtx_call_insn): Likewise.
5418 (class rtx_jump_table_data): Likewise.
5419 (class rtx_barrier): Likewise.
5420 (class rtx_code_label): Likewise.
5421 (class rtx_note): Likewise.
5423 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5424 adding the invariant DEBUG_INSN_P (X).
5425 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5426 the invariant NONJUMP_INSN_P (X).
5427 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5428 the invariant JUMP_P (X).
5429 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5430 the invariant CALL_P (X).
5431 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5432 invariant JUMP_TABLE_DATA_P (X).
5433 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5434 invariant BARRIER_P (X).
5435 (class rtx_code_label): New, a subclass of rtx_insn, adding
5436 the invariant LABEL_P (X).
5437 (class rtx_note): New, a subclass of rtx_insn, adding
5438 the invariant NOTE_P(X).
5439 (is_a_helper <rtx_debug_insn *>::test): New.
5440 (is_a_helper <rtx_nonjump_insn *>::test): New.
5441 (is_a_helper <rtx_jump_insn *>::test): New.
5442 (is_a_helper <rtx_call_insn *>::test): New.
5443 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5444 overloaded for both rtx and rtx_insn *.
5445 (is_a_helper <rtx_barrier *>::test): New.
5446 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5447 for both rtx and rtx_insn *.
5448 (is_a_helper <rtx_note *>::test): New.
5450 2014-08-19 Marek Polacek <polacek@redhat.com>
5452 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5453 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5454 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5455 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5457 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5459 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5460 rtx_insn *. To help with transition, for now, convert from an
5461 access macro into a pair of functions: BND_TO, returning an
5463 (SET_BND_TO): New function, for use where BND_TO is used as an
5466 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5468 (BND_TO): New function, adding a checked cast.
5469 (SET_BND_TO): New function.
5471 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5473 (compute_av_set_on_boundaries): Likewise.
5475 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5477 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5478 destination if it is used in source.
5479 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5480 (*popcount<mode>2_falsedep_1): Likewise.
5482 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5485 * configure.ac: Set install_gold_as_default to no first.
5486 * configure: Regenerated.
5488 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5490 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5491 "note_list" field will eventually be an rtx_insn *. To help with
5492 transition, for now, convert from an access macro into a pair of
5493 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5494 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5497 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5498 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5500 * sel-sched-ir.c (init_bb): Likewise.
5501 (sel_restore_notes): Likewise.
5502 (move_bb_info): Likewise.
5503 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5504 (SET_BB_NOTE_LIST): New function.
5506 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5508 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5509 field will eventually be an rtx_insn *. To help with transition,
5510 for now, convert from an access macro into a pair of functions:
5511 VINSN_INSN_RTX, returning an rtx_insn *, and...
5512 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5513 is used as an lvalue.
5515 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5516 SET_VINSN_INSN_RTX where it's used as an lvalue.
5517 (VINSN_INSN_RTX): New function.
5518 (SET_VINSN_INSN_RTX): New function.
5520 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5522 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5523 eventually be rtx_insn *, but to help with transition, for now,
5524 convert from an access macro into a pair of functions: DEP_PRO
5525 returning an rtx_insn * and...
5526 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5527 lvalue, returning an rtx&.
5528 (DEP_CON): Analogous changes to DEP_PRO above.
5529 (SET_DEP_CON): Likewise.
5531 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5532 an lvalue to SET_DEP_CON.
5533 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5534 (sd_copy_back_deps): Likewise for DEP_CON.
5535 (DEP_PRO): New function, adding a checked cast for now.
5536 (DEP_CON): Likewise.
5537 (SET_DEP_PRO): New function.
5538 (SET_DEP_CON): Likewise.
5540 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5542 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5543 (extra_options): Add i386/cygwin.opt.
5544 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5545 (CPP_SPEC): Accept -pthread.
5547 (GOMP_SELF_SPECS): Update comment.
5548 * config/i386/cygwin.opt: New file for -pthread flag.
5550 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5552 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5553 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5554 that we can return an rtx_insn *.
5556 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5558 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5559 when building executables, not DLLs. Add --large-address-aware
5560 under the same conditions.
5561 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5562 when building executables, not DLLs. Add --large-address-aware
5563 under the same conditions when using -m32.
5565 * config/i386/cygwin-stdint.h: Throughout, make type
5566 definitions dependent on target architecture, not host.
5568 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5570 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5571 the return type from rtx to rtx_insn *, which will enable various
5572 conversions in followup patches. For now this is is done by a
5574 (NEXT_INSN): Likewise.
5575 (SET_PREV_INSN): Convert to an inline function. This is intended
5576 for use as an lvalue, and so returns an rtx& to allow in-place
5578 (SET_NEXT_INSN): Likewise.
5580 2014-07-08 Mark Wielaard <mjw@redhat.com>
5583 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5585 2014-08-19 Marek Polacek <polacek@redhat.com>
5588 * cgraphunit.c (handle_alias_pairs): Fix condition.
5590 2014-08-19 Richard Biener <rguenther@suse.de>
5592 * gimple-fold.c (fold_gimple_assign): Properly build a
5593 null-pointer constant when devirtualizing addresses.
5595 2014-07-07 Mark Wielaard <mjw@redhat.com>
5597 * dwarf2out.c (decl_quals): New function.
5598 (modified_type_die): Take one cv_quals argument instead of two,
5599 one for const and one for volatile.
5600 (add_type_attribute): Likewise.
5601 (generic_parameter_die): Call add_type_attribute with one modifier
5603 (base_type_for_mode): Likewise.
5604 (add_bounds_info): Likewise.
5605 (add_subscript_info): Likewise.
5606 (gen_array_type_die): Likewise.
5607 (gen_descr_array_type_die): Likewise.
5608 (gen_entry_point_die): Likewise.
5609 (gen_enumeration_type_die): Likewise.
5610 (gen_formal_parameter_die): Likewise.
5611 (gen_subprogram_die): Likewise.
5612 (gen_variable_die): Likewise.
5613 (gen_const_die): Likewise.
5614 (gen_field_die): Likewise.
5615 (gen_pointer_type_die): Likewise.
5616 (gen_reference_type_die): Likewise.
5617 (gen_ptr_to_mbr_type_die): Likewise.
5618 (gen_inheritance_die): Likewise.
5619 (gen_subroutine_type_die): Likewise.
5620 (gen_typedef_die): Likewise.
5621 (force_type_die): Likewise.
5623 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5625 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5627 * configure: Regenerate.
5629 2014-08-19 Richard Biener <rguenther@suse.de>
5631 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5632 DECL_EXTERNALs in BLOCKs as non-references.
5633 * tree-streamer-out.c (streamer_write_chain): Likewise.
5635 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5636 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5637 Anna Tikhonova <anna.tikhonova@intel.com>
5638 Ilya Tocar <ilya.tocar@intel.com>
5639 Andrey Turetskiy <andrey.turetskiy@intel.com>
5640 Ilya Verbin <ilya.verbin@intel.com>
5641 Kirill Yukhin <kirill.yukhin@intel.com>
5642 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5644 * config/i386/sse.md
5645 (define_mode_iterator VI48_AVX512F): Delete.
5646 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5647 (define_mode_iterator VI2_AVX512VL): Ditto.
5648 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5651 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5653 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5654 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5655 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5656 with VI48_AVX512F_AVX512VL): New.
5657 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5658 with VI2_AVX512VL): Ditto.
5660 2014-08-19 Marek Polacek <polacek@redhat.com>
5662 * doc/invoke.texi: Document -Wc99-c11-compat.
5664 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5666 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5668 (SET_PREV_INSN): New macro, for use as an lvalue.
5669 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5671 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5672 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5673 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5674 (fixup_abnormal_edges): Likewise.
5675 (unlink_insn_chain): Likewise.
5676 (fixup_reorder_chain): Likewise.
5677 (cfg_layout_delete_block): Likewise.
5678 (cfg_layout_merge_blocks): Likewise.
5679 * combine.c (update_cfg_for_uncondjump): Likewise.
5680 * emit-rtl.c (link_insn_into_chain): Likewise.
5681 (remove_insn): Likewise.
5682 (delete_insns_since): Likewise.
5683 (reorder_insns_nobb): Likewise.
5684 (emit_insn_after_1): Likewise.
5685 * final.c (rest_of_clean_state): Likewise.
5686 (final_scan_insn): Likewise.
5687 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5688 * haifa-sched.c (concat_note_lists): Likewise.
5689 (remove_notes): Likewise.
5690 (restore_other_notes): Likewise.
5691 (move_insn): Likewise.
5692 (unlink_bb_notes): Likewise.
5693 (restore_bb_notes): Likewise.
5694 * jump.c (delete_for_peephole): Likewise.
5695 * optabs.c (emit_libcall_block_1): Likewise.
5696 * reorg.c (emit_delay_sequence): Likewise.
5697 (fill_simple_delay_slots): Likewise.
5698 * sel-sched-ir.c (sel_move_insn): Likewise.
5699 (sel_remove_insn): Likewise.
5700 (get_bb_note_from_pool): Likewise.
5701 * sel-sched.c (move_nop_to_previous_block): Likewise.
5703 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5704 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5705 (c6x_gen_bundles): Likewise.
5706 (hwloop_optimize): Likewise.
5707 * config/frv/frv.c (frv_function_prologue): Likewise.
5708 (frv_register_nop): Likewise.
5709 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5710 (ia64_reorg): Likewise.
5711 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5712 (mep_make_bundle): Likewise.
5713 (mep_bundle_insns): Likewise.
5714 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5715 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5716 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5718 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5720 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
5721 return type from rtx to rtx_insn *.
5723 (BB_HEADER): Likewise.
5724 (BB_FOOTER): Likewise.
5725 (SET_BB_HEAD): Convert to a function.
5726 (SET_BB_END): Likewise.
5727 (SET_BB_HEADER): Likewise.
5728 (SET_BB_FOOTER): Likewise.
5730 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5731 Strengthen the return type from rtx to rtx_insn *. For now, this
5732 is done by adding a checked cast, but this will eventually
5733 become a field lookup.
5735 (BB_HEADER): Likewise.
5736 (BB_FOOTER): Likewise.
5737 (SET_BB_HEAD): New function, from macro of same name. This is
5738 intended for use as an lvalue, and so returns an rtx& to allow
5739 in-place modification.
5740 (SET_BB_END): Likewise.
5741 (SET_BB_HEADER): Likewise.
5742 (SET_BB_FOOTER): Likewise.
5744 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5746 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
5748 (SET_BB_HEAD): New macro, for use as a lvalue.
5749 (BB_END, SET_BB_END): Likewise.
5750 (BB_HEADER, SET_BB_HEADER): Likewise.
5751 (BB_FOOTER, SET_BB_FOOTER): Likewise.
5753 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
5754 of BB_* macros into SET_BB_* macros.
5755 (fix_crossing_unconditional_branches): Likewise.
5756 * caller-save.c (save_call_clobbered_regs): Likewise.
5757 (insert_one_insn): Likewise.
5758 * cfgbuild.c (find_bb_boundaries): Likewise.
5759 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5760 (outgoing_edges_match): Likewise.
5761 (try_optimize_cfg): Likewise.
5762 * cfgexpand.c (expand_gimple_cond): Likewise.
5763 (expand_gimple_tailcall): Likewise.
5764 (expand_gimple_basic_block): Likewise.
5765 (construct_exit_block): Likewise.
5766 * cfgrtl.c (delete_insn): Likewise.
5767 (create_basic_block_structure): Likewise.
5768 (rtl_delete_block): Likewise.
5769 (rtl_split_block): Likewise.
5770 (emit_nop_for_unique_locus_between): Likewise.
5771 (rtl_merge_blocks): Likewise.
5772 (block_label): Likewise.
5773 (try_redirect_by_replacing_jump): Likewise.
5774 (emit_barrier_after_bb): Likewise.
5775 (fixup_abnormal_edges): Likewise.
5776 (record_effective_endpoints): Likewise.
5777 (relink_block_chain): Likewise.
5778 (fixup_reorder_chain): Likewise.
5779 (fixup_fallthru_exit_predecessor): Likewise.
5780 (cfg_layout_duplicate_bb): Likewise.
5781 (cfg_layout_split_block): Likewise.
5782 (cfg_layout_delete_block): Likewise.
5783 (cfg_layout_merge_blocks): Likewise.
5784 * combine.c (update_cfg_for_uncondjump): Likewise.
5785 * emit-rtl.c (add_insn_after): Likewise.
5786 (remove_insn): Likewise.
5787 (reorder_insns): Likewise.
5788 (emit_insn_after_1): Likewise.
5789 * haifa-sched.c (get_ebb_head_tail): Likewise.
5790 (restore_other_notes): Likewise.
5791 (move_insn): Likewise.
5792 (sched_extend_bb): Likewise.
5793 (fix_jump_move): Likewise.
5794 * ifcvt.c (noce_process_if_block): Likewise.
5795 (dead_or_predicable): Likewise.
5796 * ira.c (update_equiv_regs): Likewise.
5797 * reg-stack.c (change_stack): Likewise.
5798 * sel-sched-ir.c (sel_move_insn): Likewise.
5799 * sel-sched.c (move_nop_to_previous_block): Likewise.
5801 * config/c6x/c6x.c (hwloop_optimize): Likewise.
5802 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5804 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5806 * rtl.h (for_each_rtx_in_insn): New function.
5807 * rtlanal.c (for_each_rtx_in_insn): Likewise.
5809 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5811 * coretypes.h (class rtx_insn): Add forward declaration.
5813 * rtl.h: Include is-a.h.
5814 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
5815 workaround to ensure gengtype knows inheritance is occurring,
5816 whilst continuing to use the pre-existing special-casing for
5818 (class rtx_insn): New subclass of rtx_def, adding the
5819 invariant that we're dealing with something we can sanely use
5820 INSN_UID, NEXT_INSN, PREV_INSN on.
5821 (is_a_helper <rtx_insn *>::test): New.
5822 (is_a_helper <const rtx_insn *>::test): New.
5824 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5826 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
5828 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5830 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
5833 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5835 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
5836 to BUILT_IN_UNREACHABLE.
5838 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
5841 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
5843 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
5844 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
5845 (ffs<mode>2): Do not expand with tzcnt for
5846 TARGET_AVOID_FALSE_DEP_FOR_BMI.
5847 (ffssi2_no_cmove): Ditto.
5848 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
5849 (ctz<mode>2): New expander.
5850 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
5851 (*ctz<mode>2_falsedep): New insn.
5852 (*ctz<mode>2): Rename from ctz<mode>2.
5853 (clz<mode>2_lzcnt): New expander.
5854 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
5855 (*clz<mode>2_lzcnt_falsedep): New insn.
5856 (*clz<mode>2): Rename from ctz<mode>2.
5857 (popcount<mode>2): New expander.
5858 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
5859 (*popcount<mode>2_falsedep): New insn.
5860 (*popcount<mode>2): Rename from ctz<mode>2.
5861 (*popcount<mode>2_cmp): Remove.
5862 (*popcountsi2_cmp_zext): Ditto.
5864 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
5866 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
5867 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
5868 * config/microblaze/microblaze.h
5869 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
5871 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
5874 * configure.ac: Set install_gold_as_default to no for
5876 * configure: Regenerated.
5878 2014-08-18 Roman Gareev <gareevroman@gmail.com>
5880 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
5881 * config.in: Add undef of HAVE_isl.
5882 * configure: Regenerate.
5883 * configure.ac: Add definition of HAVE_isl.
5884 * graphite-blocking.c: Add checking of HAVE_isl.
5885 * graphite-dependences.c: Likewise.
5886 * graphite-interchange.c: Likewise.
5887 * graphite-isl-ast-to-gimple.c: Likewise.
5888 * graphite-optimize-isl.c: Likewise.
5889 * graphite-poly.c: Likewise.
5890 * graphite-scop-detection.c: Likewise.
5891 * graphite-sese-to-poly.c: Likewise.
5892 * graphite.c: Likewise.
5893 * toplev.c: Replace the checking of HAVE_cloog with the checking
5896 2014-08-18 Richard Biener <rguenther@suse.de>
5898 PR tree-optimization/62090
5899 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
5900 (fold_builtin_3): Do not fold snprintf.
5901 (fold_builtin_4): Likewise.
5902 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
5903 moved from builtins.c.
5904 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
5905 (gimple_fold_builtin): Do not fold sprintf here.
5907 2014-08-18 Richard Biener <rguenther@suse.de>
5909 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
5911 (maybe_canonicalize_mem_ref_addr): ... this function.
5912 (fold_stmt_1): Apply it here before all simplification.
5914 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
5917 * cgraph.h (cgraph_node::create_indirect_edge): Add
5918 compute_indirect_info param.
5919 * cgraph.c (cgraph_node::create_indirect_edge): Compute
5920 indirect_info only when it is required.
5921 * cgraphclones.c (cgraph_clone_edge): Do not recompute
5922 indirect_info fore cloned indirect edge.
5924 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5925 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5926 Anna Tikhonova <anna.tikhonova@intel.com>
5927 Ilya Tocar <ilya.tocar@intel.com>
5928 Andrey Turetskiy <andrey.turetskiy@intel.com>
5929 Ilya Verbin <ilya.verbin@intel.com>
5930 Kirill Yukhin <kirill.yukhin@intel.com>
5931 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5933 * config/i386/sse.md
5934 (define_mode_iterator VI8_AVX2_AVX512BW): New.
5935 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
5937 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5938 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5939 Anna Tikhonova <anna.tikhonova@intel.com>
5940 Ilya Tocar <ilya.tocar@intel.com>
5941 Andrey Turetskiy <andrey.turetskiy@intel.com>
5942 Ilya Verbin <ilya.verbin@intel.com>
5943 Kirill Yukhin <kirill.yukhin@intel.com>
5944 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5946 * config/i386/sse.md
5947 (define_mode_iterator VF1_AVX512VL): New.
5948 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
5949 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
5952 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5953 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5954 Anna Tikhonova <anna.tikhonova@intel.com>
5955 Ilya Tocar <ilya.tocar@intel.com>
5956 Andrey Turetskiy <andrey.turetskiy@intel.com>
5957 Ilya Verbin <ilya.verbin@intel.com>
5958 Kirill Yukhin <kirill.yukhin@intel.com>
5959 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5961 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
5962 * config/i386/i386.md
5963 (define_code_iterator any_float): New.
5964 (define_code_attr floatsuffix): New.
5965 * config/i386/sse.md
5966 (define_mode_iterator VF1_128_256VL): New.
5967 (define_mode_iterator VF2_512_256VL): New.
5968 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
5970 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
5971 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
5973 (define_mode_attr qq2pssuff): New.
5974 (define_mode_attr sselongvecmode): New.
5975 (define_mode_attr sselongvecmodelower): New.
5976 (define_mode_attr sseintvecmode3): New.
5977 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
5979 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
5980 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
5981 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
5982 (define_insn "ufloatv2siv2df2<mask_name>"): New.
5984 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5985 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5986 Anna Tikhonova <anna.tikhonova@intel.com>
5987 Ilya Tocar <ilya.tocar@intel.com>
5988 Andrey Turetskiy <andrey.turetskiy@intel.com>
5989 Ilya Verbin <ilya.verbin@intel.com>
5990 Kirill Yukhin <kirill.yukhin@intel.com>
5991 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5993 * config/i386/sse.md
5994 (define_mode_iterator VF2_AVX512VL): New.
5995 (define_mode_attr sseintvecmode2): New.
5996 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
5997 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
5998 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6000 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6002 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6004 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6007 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6008 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6009 Anna Tikhonova <anna.tikhonova@intel.com>
6010 Ilya Tocar <ilya.tocar@intel.com>
6011 Andrey Turetskiy <andrey.turetskiy@intel.com>
6012 Ilya Verbin <ilya.verbin@intel.com>
6013 Kirill Yukhin <kirill.yukhin@intel.com>
6014 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6016 * config/i386/i386.md
6017 (define_insn "*movoi_internal_avx"): Add evex version.
6018 (define_insn "*movti_internal"): Ditto.
6020 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6021 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6022 Anna Tikhonova <anna.tikhonova@intel.com>
6023 Ilya Tocar <ilya.tocar@intel.com>
6024 Andrey Turetskiy <andrey.turetskiy@intel.com>
6025 Ilya Verbin <ilya.verbin@intel.com>
6026 Kirill Yukhin <kirill.yukhin@intel.com>
6027 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6029 * config/i386/i386.md
6030 (define_attr "isa"): Add avx512dq, noavx512dq.
6031 (define_attr "enabled"): Ditto.
6032 * config/i386/sse.md
6033 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6035 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6036 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6037 Anna Tikhonova <anna.tikhonova@intel.com>
6038 Ilya Tocar <ilya.tocar@intel.com>
6039 Andrey Turetskiy <andrey.turetskiy@intel.com>
6040 Ilya Verbin <ilya.verbin@intel.com>
6041 Kirill Yukhin <kirill.yukhin@intel.com>
6042 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6044 * config/i386/i386.c
6045 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6046 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6047 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6048 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6049 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6050 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6051 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6052 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6053 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6054 * config/i386/sse.md
6055 (define_mode_iterator VMOVE): Allow V4TI mode.
6056 (define_mode_iterator V_AVX512VL): New.
6057 (define_mode_iterator V): New handling for AVX512VL.
6058 (define_insn "avx512f_load<mode>_mask"): Delete.
6059 (define_insn "<avx512>_load<mode>_mask"): New.
6060 (define_insn "avx512f_store<mode>_mask"): Delete.
6061 (define_insn "<avx512>_store<mode>_mask"): New.
6064 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6067 * asan.c (instrument_derefs): Fix bitfield check.
6069 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6071 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6072 * config/rs6000/htm.md (ttest): Remove clobber.
6073 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6074 (and_operand): Reformat.
6075 (and_2rld_operand): New predicate.
6076 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6078 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6079 parameter. Handle AND directly.
6080 (rs6000_split_logical_di): Remove last parameter.
6081 (rs6000_split_logical): Remove last parameter. Remove obsolete
6083 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6084 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6085 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6086 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6087 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6088 and 5 anonymous splitters): Delete.
6089 (and<mode>3): New expander.
6090 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6091 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6092 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6093 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6094 (floatdisf2_internal1): Remove clobbers.
6095 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6096 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6097 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6098 (and<mode>3 for BOOL_128): Remove clobber.
6099 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6100 rs6000_split_logical.
6101 (*bool<mode>3_internal for BOOL_128): Adjust call of
6102 rs6000_split_logical.
6103 (*boolc<mode>3_internal1 for BOOL_128,
6104 *boolc<mode>3_internal2 for BOOL_128,
6105 *boolcc<mode>3_internal1 for BOOL_128,
6106 *boolcc<mode>3_internal2 for BOOL_128,
6107 *eqv<mode>3_internal1 for BOOL_128,
6108 *eqv<mode>3_internal2 for BOOL_128,
6109 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6110 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6112 (*vec_reload_and_reg_<mptrsize>): Delete.
6114 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6116 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6117 and split, *boolccsi3_internal3 and split): Delete.
6118 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6119 *boolccdi3_internal3 and split): Delete.
6120 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6121 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6123 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6125 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6126 and split, *boolcsi3_internal3 and split): Delete.
6127 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6128 *boolcdi3_internal3 and split): Delete.
6129 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6131 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6133 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6134 <'u'>: Also support printing the low-order 16 bits.
6135 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6136 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6137 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6138 *booldi3_internal3 and split): Delete.
6139 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6140 *bool<mode>3_dot2): New.
6141 (two anonymous define_splits for non_logical_cint_operand): Merge.
6143 2014-08-17 Marek Polacek <polacek@redhat.com>
6144 Manuel López-Ibáñez <manu@gcc.gnu.org>
6147 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6148 (diagnostic_show_locus): Don't print caret diagnostic
6149 if a column is larger than the line_width.
6151 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6153 * common.opt: Make the ISL AST generator to be the main code generator
6156 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6158 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6160 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6163 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6165 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6166 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6167 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6169 * config/pa/pa.md (begin_brtab): Delete insn.
6170 (end_brtab): Likewise.
6172 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6174 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6176 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6178 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6179 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6180 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6181 (get_dynamic_type): Remove.
6182 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6183 (clear_speculation): Bring to ipa-deivrt.h
6184 (get_class_context): Rename to ...
6185 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6186 (contains_type_p): Update.
6187 (get_dynamic_type): Rename to ...
6188 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6189 (possible_polymorphic_call_targets): UPdate.
6190 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6191 * ipa-prop.c (ipa_analyze_call_uses): Update.
6193 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6195 * doc/invoke.texi (SH options): Document missing processor variant
6196 options. Remove references to Hitachi. Undocument deprecated mspace
6199 2014-08-15 Jason Merrill <jason@redhat.com>
6201 * tree.c (type_hash_canon): Uncomment assert.
6203 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6205 * input.h (in_system_header_at): Add comment.
6207 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6210 * diagnostic.c (build_message_string): Make it extern.
6211 * diagnostic.h (build_message_string): Make it extern.
6213 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6215 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6216 load/store from/to non-floating class pseudo.
6218 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6220 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6222 2014-08-15 Richard Biener <rguenther@suse.de>
6224 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6225 (get_constraint_for_ssa_var): Remove dead code.
6226 (get_constraint_for_1): Adjust.
6227 (find_what_var_points_to): Likewise.
6228 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6230 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6233 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6234 (_mm512_mask_cmpge_epu32_mask): Ditto.
6235 (_mm512_cmpge_epu32_mask): Ditto.
6236 (_mm512_mask_cmpge_epi64_mask): Ditto.
6237 (_mm512_cmpge_epi64_mask): Ditto.
6238 (_mm512_mask_cmpge_epu64_mask): Ditto.
6239 (_mm512_cmpge_epu64_mask): Ditto.
6240 (_mm512_mask_cmple_epi32_mask): Ditto.
6241 (_mm512_cmple_epi32_mask): Ditto.
6242 (_mm512_mask_cmple_epu32_mask): Ditto.
6243 (_mm512_cmple_epu32_mask): Ditto.
6244 (_mm512_mask_cmple_epi64_mask): Ditto.
6245 (_mm512_cmple_epi64_mask): Ditto.
6246 (_mm512_mask_cmple_epu64_mask): Ditto.
6247 (_mm512_cmple_epu64_mask): Ditto.
6248 (_mm512_mask_cmplt_epi32_mask): Ditto.
6249 (_mm512_cmplt_epi32_mask): Ditto.
6250 (_mm512_mask_cmplt_epu32_mask): Ditto.
6251 (_mm512_cmplt_epu32_mask): Ditto.
6252 (_mm512_mask_cmplt_epi64_mask): Ditto.
6253 (_mm512_cmplt_epi64_mask): Ditto.
6254 (_mm512_mask_cmplt_epu64_mask): Ditto.
6255 (_mm512_cmplt_epu64_mask): Ditto.
6256 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6257 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6258 (_mm512_cmpneq_epu32_mask): Ditto.
6259 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6260 (_mm512_cmpneq_epi64_mask): Ditto.
6261 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6262 (_mm512_cmpneq_epu64_mask): Ditto.
6263 (_mm512_castpd_ps): Ditto.
6264 (_mm512_castpd_si512): Ditto.
6265 (_mm512_castps_pd): Ditto.
6266 (_mm512_castps_si512): Ditto.
6267 (_mm512_castsi512_ps): Ditto.
6268 (_mm512_castsi512_pd): Ditto.
6269 (_mm512_castpd512_pd128): Ditto.
6270 (_mm512_castps512_ps128): Ditto.
6271 (_mm512_castsi512_si128): Ditto.
6272 (_mm512_castpd512_pd256): Ditto.
6273 (_mm512_castps512_ps256): Ditto.
6274 (_mm512_castsi512_si256): Ditto.
6275 (_mm512_castpd128_pd512): Ditto.
6276 (_mm512_castps128_ps512): Ditto.
6277 (_mm512_castsi128_si512): Ditto.
6278 (_mm512_castpd256_pd512): Ditto.
6279 (_mm512_castps256_ps512): Ditto.
6280 (_mm512_castsi256_si512): Ditto.
6281 (_mm512_cmpeq_epu32_mask): Ditto.
6282 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6283 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6284 (_mm512_cmpeq_epu64_mask): Ditto.
6285 (_mm512_cmpgt_epu32_mask): Ditto.
6286 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6287 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6288 (_mm512_cmpgt_epu64_mask): Ditto.
6289 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6290 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6291 * config/i386/i386.c (enum ix86_builtins): Add
6292 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6293 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6294 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6295 (bdesc_args): Add __builtin_ia32_si512_256si,
6296 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6297 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6298 __builtin_ia32_pd512_pd.
6299 (ix86_expand_args_builtin): Handle new FTYPEs.
6300 * config/i386/sse.md (castmode): Add 512-bit modes.
6301 (AVX512MODE2P): New.
6302 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6303 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6305 2014-08-15 Richard Biener <rguenther@suse.de>
6307 * fold-const.c (tree_swap_operands_p): Put all constants
6308 last, also strip sign-changing NOPs when considering further
6309 canonicalization. Canonicalize also when optimizing for size.
6311 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6313 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6314 one_match > zero_match case to just before simple_sequence.
6316 2014-08-15 Richard Biener <rguenther@suse.de>
6318 * data-streamer.h (streamer_string_index, string_for_index):
6320 * data-streamer-out.c (streamer_string_index): Make static.
6321 * data-streamer-in.c (string_for_index): Likewise.
6322 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6323 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6325 2014-08-15 Richard Biener <rguenther@suse.de>
6327 PR tree-optimization/62031
6328 * tree-data-ref.c (dr_analyze_indices): Do not set
6329 DR_UNCONSTRAINED_BASE.
6330 (dr_may_alias_p): All indirect accesses have to go the
6331 formerly DR_UNCONSTRAINED_BASE path.
6332 * tree-data-ref.h (struct indices): Remove
6333 unconstrained_base member.
6334 (DR_UNCONSTRAINED_BASE): Remove.
6336 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6339 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6340 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6341 in OMP_CLAUSE_MAP in some outer target region.
6343 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6345 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6346 name_expansion_cache.
6347 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6348 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6349 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6350 (difference_cannot_overflow_p): New parameter. Use affine
6351 expansion for equality check.
6352 (iv_elimination_compare_lt): Pass new argument.
6354 2014-08-14 DJ Delorie <dj@redhat.com>
6356 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6357 variables to the accumulator.
6359 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6360 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6361 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6364 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6365 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6366 (umulqihi3_virt): Likewise.
6367 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6368 (umulqihi3_real): Likewise.
6370 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6372 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6374 PR tree-optimization/62091
6375 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6376 function_entry_reached.
6377 (walk_aliased_vdefs): Clear it here.
6378 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6380 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6382 * ipa-utils.h (compare_virtual_tables): Declare.
6383 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6385 2014-08-14 Marek Polacek <polacek@redhat.com>
6388 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6389 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6391 2014-08-14 Tom de Vries <tom@codesourcery.com>
6393 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6395 2014-08-14 Tom de Vries <tom@codesourcery.com>
6397 PR rtl-optimization/62004
6398 PR rtl-optimization/62030
6399 * ifcvt.c (rtx_interchangeable_p): New function.
6400 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6401 * emit-rtl.h (mem_attrs_eq_p): Declare.
6403 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6405 * graphite-scop-detection.c:
6406 Add inclusion of cp-tree.h.
6407 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6408 in case they are pointers to object types
6410 2014-08-14 Richard Biener <rguenther@suse.de>
6412 * BASE-VER: Change to 5.0.0
6414 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6415 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6416 Anna Tikhonova <anna.tikhonova@intel.com>
6417 Ilya Tocar <ilya.tocar@intel.com>
6418 Andrey Turetskiy <andrey.turetskiy@intel.com>
6419 Ilya Verbin <ilya.verbin@intel.com>
6420 Kirill Yukhin <kirill.yukhin@intel.com>
6421 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6423 * config/i386/sse.md (define_mode_attr avx512): New.
6424 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6426 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6427 (define_mode_attr ssse3_avx2): Ditto.
6428 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6429 (define_mode_attr avx2_avx512bw): New.
6430 (define_mode_attr ssedoublemodelower): New.
6431 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6433 (define_mode_attr ssebytemode): Allow V8DI modes.
6434 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6435 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6436 (define_mode_attr ssePSmode2): New.
6437 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6439 (define_mode_attr dbpsadbwmode): New.
6440 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6441 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6442 (vi8_sse4_1_avx2_avx512): New.
6443 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6445 (define_mode_attr blendbits): Move before its immediate use.
6447 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6448 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6449 Anna Tikhonova <anna.tikhonova@intel.com>
6450 Ilya Tocar <ilya.tocar@intel.com>
6451 Andrey Turetskiy <andrey.turetskiy@intel.com>
6452 Ilya Verbin <ilya.verbin@intel.com>
6453 Kirill Yukhin <kirill.yukhin@intel.com>
6454 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6456 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6457 * config/i386/subst.md
6458 (define_mode_iterator SUBST_V): Update.
6459 (define_mode_iterator SUBST_A): Ditto.
6460 (define_subst_attr "mask_operand7"): New.
6461 (define_subst_attr "mask_operand10"): New.
6462 (define_subst_attr "mask_operand_arg34") : New.
6463 (define_subst_attr "mask_expand_op3"): New.
6464 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6465 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6466 (define_subst_attr "mask_avx512vl_condition"): New.
6467 (define_subst_attr "round_mask_operand4"): Ditto.
6468 (define_subst_attr "round_mask_scalar_op3"): Delete.
6469 (define_subst_attr "round_mask_op4"): New.
6470 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6472 (define_subst_attr "round_modev8sf_condition"): New.
6473 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6475 (define_subst_attr "round_saeonly_mask_operand4"): New.
6476 (define_subst_attr "round_saeonly_mask_op4"): New.
6477 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6478 V8DImode, V16SImode.
6479 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6480 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6481 (define_subst_attr "mask_expand4_args"): New.
6482 (define_subst "mask_expand4"): New.
6484 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6485 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6486 Anna Tikhonova <anna.tikhonova@intel.com>
6487 Ilya Tocar <ilya.tocar@intel.com>
6488 Andrey Turetskiy <andrey.turetskiy@intel.com>
6489 Ilya Verbin <ilya.verbin@intel.com>
6490 Kirill Yukhin <kirill.yukhin@intel.com>
6491 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6493 * config/i386/i386.md
6494 (define_attr "isa"): Add avx512bw,noavx512bw.
6495 (define_attr "enabled"): Ditto.
6496 (define_split): Add 32/64-bit mask logic.
6497 (define_insn "*k<logic>qi"): New.
6498 (define_insn "*k<logic>hi"): New.
6499 (define_insn "*anddi_1"): Add mask version.
6500 (define_insn "*andsi_1"): Ditto.
6501 (define_insn "*<code><mode>_1"): Ditto.
6502 (define_insn "*<code>hi_1"): Ditto.
6503 (define_insn "kxnor<mode>"): New.
6504 (define_insn "kunpcksi"): New.
6505 (define_insn "kunpckdi"): New.
6506 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6507 (define_insn "*one_cmplhi2_1"): Ditto.
6509 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6510 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6511 Anna Tikhonova <anna.tikhonova@intel.com>
6512 Ilya Tocar <ilya.tocar@intel.com>
6513 Andrey Turetskiy <andrey.turetskiy@intel.com>
6514 Ilya Verbin <ilya.verbin@intel.com>
6515 Kirill Yukhin <kirill.yukhin@intel.com>
6516 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6518 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6521 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6522 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6523 Anna Tikhonova <anna.tikhonova@intel.com>
6524 Ilya Tocar <ilya.tocar@intel.com>
6525 Andrey Turetskiy <andrey.turetskiy@intel.com>
6526 Ilya Verbin <ilya.verbin@intel.com>
6527 Kirill Yukhin <kirill.yukhin@intel.com>
6528 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6530 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6532 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6533 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6534 xmm/ymm16+ when availble.
6535 * config/i386/i386.h
6536 (HARD_REGNO_NREGS): Add mask regs.
6537 (VALID_AVX512F_REG_MODE): Ditto.
6538 (VALID_AVX512F_REG_MODE) : Define.
6539 (VALID_MASK_AVX512BW_MODE): Ditto.
6540 (reg_class) (MASK_REG_P(X)): Define.
6541 * config/i386/i386.md: Do not split long moves with mask register,
6542 use kmovb if avx512bw is availible.
6543 (movdi_internal): Handle mask registers.
6545 2014-08-14 Richard Biener <rguenther@suse.de>
6547 PR tree-optimization/62081
6548 * tree-ssa-loop.c (pass_fix_loops): New pass.
6549 (pass_tree_loop::gate): Do not fixup loops here.
6550 * tree-pass.h (make_pass_fix_loops): Declare.
6551 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6553 2014-08-14 Richard Biener <rguenther@suse.de>
6555 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6556 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6558 2014-08-14 Richard Biener <rguenther@suse.de>
6560 PR tree-optimization/62090
6561 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6562 (fold_builtin_2): Do not fold sprintf.
6563 (fold_builtin_3): Likewise.
6564 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6565 moved from builtins.c.
6566 (gimple_fold_builtin): Fold sprintf.
6568 2014-08-14 Richard Biener <rguenther@suse.de>
6570 PR rtl-optimization/62079
6571 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6574 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6576 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6577 current_function_decl.
6579 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6581 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6582 cgraph_function_node to cgraph_node::function_symbol
6585 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6587 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6588 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6590 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6592 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6595 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6597 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6600 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6603 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6604 any registers that are used in mem_insn.
6606 2014-08-12 Steve Ellcey <sellcey@mips.com>
6608 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6610 2014-08-12 Steve Ellcey <sellcey@mips.com>
6612 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6613 (MULTILIB_DIRNAMES): Ditto.
6614 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6615 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6616 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6617 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6618 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6619 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6621 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6624 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6625 of __ARM_SIZEOF_WCHAR_T.
6627 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6630 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6631 Remove unnecessary attributes.
6633 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6635 * internal-fn.c (init_internal_fns): Fix off-by-one.
6637 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6638 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6639 Anna Tikhonova <anna.tikhonova@intel.com>
6640 Ilya Tocar <ilya.tocar@intel.com>
6641 Andrey Turetskiy <andrey.turetskiy@intel.com>
6642 Ilya Verbin <ilya.verbin@intel.com>
6643 Kirill Yukhin <kirill.yukhin@intel.com>
6644 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6646 * config/i386/i386.c (standard_sse_constant_opcode): Use
6647 vpxord/vpternlog if avx512 is availible.
6649 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6652 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6653 bitfields, that is when size doesn't match the size of type or the
6654 size of the constructor.
6656 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6658 * config/rs6000/constraints.md (wh constraint): New constraint,
6659 for FP registers if direct move is available.
6660 (wi constraint): New constraint, for VSX/FP registers that can
6661 handle 64-bit integers.
6662 (wj constraint): New constraint for VSX/FP registers that can
6663 handle 64-bit integers for direct moves.
6664 (wk constraint): New constraint for VSX/FP registers that can
6665 handle 64-bit doubles for direct moves.
6666 (wy constraint): Make documentation match implementation.
6668 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6669 scalar_in_vmx_p field to simplify tests of whether SFmode or
6670 DFmode can go in the Altivec registers.
6671 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6672 (rs6000_setup_reg_addr_masks): Likewise.
6673 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6674 field, and wh/wi/wj/wk constraints.
6675 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6676 the wh/wi/wj/wk constraints.
6677 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6678 upper registers, prefer VSX registers unless the operation is a
6679 memory operation with REG+OFFSET addressing.
6681 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6682 DImode. Change SFmode to use ww constraint instead of d to allow
6683 SF registers in the upper registers.
6686 (VSr5): Fix thinko in comment.
6687 (VSa): New mode attribute that is an alternative to wa, that
6688 returns the VSX register class that a mode can go in, but may not
6689 be the preferred register class.
6690 (VS_64dm): New mode attribute for appropriate register classes for
6691 referencing 64-bit elements of vectors for direct moves and normal
6693 (VS_64reg): Likewise.
6694 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6695 register allocator to only registers the data type can handle.
6696 (vsx_le_perm_load_<mode>): Likewise.
6697 (vsx_le_perm_store_<mode>): Likewise.
6698 (vsx_xxpermdi2_le_<mode>): Likewise.
6699 (vsx_xxpermdi4_le_<mode>): Likewise.
6700 (vsx_lxvd2x2_le_<mode>): Likewise.
6701 (vsx_lxvd2x4_le_<mode>): Likewise.
6702 (vsx_stxvd2x2_le_<mode>): Likewise.
6703 (vsx_add<mode>3): Likewise.
6704 (vsx_sub<mode>3): Likewise.
6705 (vsx_mul<mode>3): Likewise.
6706 (vsx_div<mode>3): Likewise.
6707 (vsx_tdiv<mode>3_internal): Likewise.
6708 (vsx_fre<mode>2): Likewise.
6709 (vsx_neg<mode>2): Likewise.
6710 (vsx_abs<mode>2): Likewise.
6711 (vsx_nabs<mode>2): Likewise.
6712 (vsx_smax<mode>3): Likewise.
6713 (vsx_smin<mode>3): Likewise.
6714 (vsx_sqrt<mode>2): Likewise.
6715 (vsx_rsqrte<mode>2): Likewise.
6716 (vsx_tsqrt<mode>2_internal): Likewise.
6717 (vsx_fms<mode>4): Likewise.
6718 (vsx_nfma<mode>4): Likewise.
6719 (vsx_eq<mode>): Likewise.
6720 (vsx_gt<mode>): Likewise.
6721 (vsx_ge<mode>): Likewise.
6722 (vsx_eq<mode>_p): Likewise.
6723 (vsx_gt<mode>_p): Likewise.
6724 (vsx_ge<mode>_p): Likewise.
6725 (vsx_xxsel<mode>): Likewise.
6726 (vsx_xxsel<mode>_uns): Likewise.
6727 (vsx_copysign<mode>3): Likewise.
6728 (vsx_float<VSi><mode>2): Likewise.
6729 (vsx_floatuns<VSi><mode>2): Likewise.
6730 (vsx_fix_trunc<mode><VSi>2): Likewise.
6731 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6732 (vsx_x<VSv>r<VSs>i): Likewise.
6733 (vsx_x<VSv>r<VSs>ic): Likewise.
6734 (vsx_btrunc<mode>2): Likewise.
6735 (vsx_b2trunc<mode>2): Likewise.
6736 (vsx_floor<mode>2): Likewise.
6737 (vsx_ceil<mode>2): Likewise.
6738 (vsx_<VS_spdp_insn>): Likewise.
6739 (vsx_xscvspdp): Likewise.
6740 (vsx_xvcvspuxds): Likewise.
6741 (vsx_float_fix_<mode>2): Likewise.
6742 (vsx_set_<mode>): Likewise.
6743 (vsx_extract_<mode>_internal1): Likewise.
6744 (vsx_extract_<mode>_internal2): Likewise.
6745 (vsx_extract_<mode>_load): Likewise.
6746 (vsx_extract_<mode>_store): Likewise.
6747 (vsx_splat_<mode>): Likewise.
6748 (vsx_xxspltw_<mode>): Likewise.
6749 (vsx_xxspltw_<mode>_direct): Likewise.
6750 (vsx_xxmrghw_<mode>): Likewise.
6751 (vsx_xxmrglw_<mode>): Likewise.
6752 (vsx_xxsldwi_<mode>): Likewise.
6753 (vsx_xscvdpspn): Tighten constraints to only use register classes
6755 (vsx_xscvspdpn): Likewise.
6756 (vsx_xscvdpspn_scalar): Likewise.
6758 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
6759 wj, and wk constraints.
6760 (GPR_REG_CLASS_P): New helper macro for register classes targeting
6761 general purpose registers.
6763 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
6765 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
6766 DImode instead of wm. Use wk constraint for direct move of DFmode
6768 (extendsidi2_lfiwax): Likewise.
6771 (movdi_internal64): Likewise.
6773 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
6774 wk constraints. Make the wy constraint documentation match them
6777 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
6779 Replacement of isl_int by isl_val
6780 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
6781 (compute_bounds_for_param): use isl_val instead of isl_int
6782 (compute_bounds_for_loop): likewise
6783 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
6784 (build_linearized_memory_access): use isl_val instead of isl_int
6785 (pdr_stride_in_loop): likewise
6786 * graphite-optimize-isl.c:
6787 (getPrevectorMap): use isl_val instead of isl_int
6789 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
6790 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
6791 (extern the_isl_ctx): declare
6792 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
6793 (extract_affine_gmp): likewise
6795 (build_loop_iteration_domains): likewise
6796 (add_param_constraints): likewise
6798 2014-08-11 Richard Biener <rguenther@suse.de>
6800 PR tree-optimization/62075
6801 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
6802 handle uses in patterns.
6804 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6805 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6806 Anna Tikhonova <anna.tikhonova@intel.com>
6807 Ilya Tocar <ilya.tocar@intel.com>
6808 Andrey Turetskiy <andrey.turetskiy@intel.com>
6809 Ilya Verbin <ilya.verbin@intel.com>
6810 Kirill Yukhin <kirill.yukhin@intel.com>
6811 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6813 * common/config/i386/i386-common.c
6814 (OPTION_MASK_ISA_AVX512VL_SET): Define.
6815 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
6816 (ix86_handle_option): Handle OPT_mavx512vl.
6817 * config/i386/cpuid.h (bit_AVX512VL): Define.
6818 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
6819 set -mavx512vl accordingly.
6820 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6821 OPTION_MASK_ISA_AVX512VL.
6822 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
6823 (ix86_option_override_internal): Define PTA_AVX512VL, handle
6824 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
6825 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
6826 * config/i386/i386.h (TARGET_AVX512VL): Define.
6827 (TARGET_AVX512VL_P(x)): Ditto.
6828 * config/i386/i386.opt: Add mavx512vl.
6830 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
6832 PR tree-optimization/62073
6833 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
6836 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6837 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6838 Anna Tikhonova <anna.tikhonova@intel.com>
6839 Ilya Tocar <ilya.tocar@intel.com>
6840 Andrey Turetskiy <andrey.turetskiy@intel.com>
6841 Ilya Verbin <ilya.verbin@intel.com>
6842 Kirill Yukhin <kirill.yukhin@intel.com>
6843 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6845 * common/config/i386/i386-common.c
6846 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
6847 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
6848 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
6849 (ix86_handle_option): Handle OPT_mavx512bw.
6850 * config/i386/cpuid.h (bit_AVX512BW): Define.
6851 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
6852 set -mavx512bw accordingly.
6853 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6854 OPTION_MASK_ISA_AVX512BW.
6855 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
6856 (ix86_option_override_internal): Define PTA_AVX512BW, handle
6857 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
6858 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
6859 * config/i386/i386.h (TARGET_AVX512BW): Define.
6860 (TARGET_AVX512BW_P(x)): Ditto.
6861 * config/i386/i386.opt: Add mavx512bw.
6863 2014-08-11 Richard Biener <rguenther@suse.de>
6865 PR tree-optimization/62070
6866 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
6867 Remove SSA checking.
6869 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6871 * asan.c (asan_check_flags): New enum.
6872 (build_check_stmt_with_calls): Removed function.
6873 (build_check_stmt): Split inlining logic to
6874 asan_expand_check_ifn.
6875 (instrument_derefs): Rename parameter.
6876 (instrument_mem_region_access): Rename parameter.
6877 (instrument_strlen_call): Likewise.
6878 (asan_expand_check_ifn): New function.
6879 (asan_instrument): Remove old code.
6880 (pass_sanopt::execute): Change handling of
6881 asan-instrumentation-with-call-threshold.
6882 (asan_clear_shadow): Fix formatting.
6883 (asan_function_start): Likewise.
6884 (asan_emit_stack_protection): Likewise.
6885 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
6887 * internal-fn.c (expand_ASAN_CHECK): New function.
6888 * internal-fn.def (ASAN_CHECK): New internal function.
6889 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
6891 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
6892 * tree.c: Small comment fix.
6894 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6896 * gimple.c (gimple_call_fnspec): Support internal functions.
6897 (gimple_call_return_flags): Use const.
6898 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
6899 * internal-fn.def: Add fnspec information.
6900 * internal-fn.h (internal_fn_fnspec): New function.
6901 (init_internal_fns): Declare new function.
6902 * internal-fn.c (internal_fn_fnspec_array): New global variable.
6903 (init_internal_fns): New function.
6904 * tree-core.h: Update macro call.
6905 * tree.c (build_common_builtin_nodes): Initialize internal fns.
6907 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
6909 * lto-streamer.h (struct output_block::symbol): Change from
6910 struct symtab_node to plain symtab_node.
6911 (referenced_from_this_partition_p): Change first parameter
6912 from struct symtab_node to plain symtab_node.
6914 2014-08-10 Marek Polacek <polacek@redhat.com>
6917 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
6919 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
6921 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
6922 DECL correctly; do not give up on types in static storage.
6924 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
6926 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
6928 2014-08-09 Roman Gareev <gareevroman@gmail.com>
6930 * graphite-isl-ast-to-gimple.c:
6931 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
6933 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
6935 2014-08-08 Guozhi Wei <carrot@google.com>
6937 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
6939 2014-08-08 Cary Coutant <ccoutant@google.com>
6941 * dwarf2out.c (get_skeleton_type_unit): Remove.
6942 (output_skeleton_debug_sections): Remove skeleton type units.
6943 (output_comdat_type_unit): Likewise.
6944 (dwarf2out_finish): Likewise.
6946 2014-08-07 Yi Yang <ahyangyi@google.com>
6948 * predict.c (expr_expected_value_1): Remove the redundant assignment.
6950 2014-08-08 Richard Biener <rguenther@suse.de>
6952 * lto-streamer.h (struct lto_input_block): Make it a class
6954 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
6955 (struct lto_function_header, struct lto_simple_header,
6956 struct lto_simple_header_with_strings,
6957 struct lto_decl_header, struct lto_function_header): Make
6958 a simple inheritance hieararchy. Remove unused fields.
6959 (struct lto_asm_header): Remove.
6960 * lto-streamer-out.c (produce_asm): Adjust.
6961 (lto_output_toplevel_asms): Likewise.
6962 (produce_asm_for_decls): Likewise.
6963 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
6964 * data-streamer-in.c (string_for_index): Likewise.
6965 * ipa-inline-analysis.c (inline_read_section): Likewise.
6966 * ipa-prop.c (ipa_prop_read_section): Likewise.
6967 (read_replacements_section): Likewise.
6968 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
6969 * lto-section-in.c (lto_create_simple_input_block): Likewise.
6970 (lto_destroy_simple_input_block): Likewise.
6971 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
6972 (lto_input_toplevel_asms): Likewise.
6974 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
6975 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6976 Anna Tikhonova <anna.tikhonova@intel.com>
6977 Ilya Tocar <ilya.tocar@intel.com>
6978 Andrey Turetskiy <andrey.turetskiy@intel.com>
6979 Ilya Verbin <ilya.verbin@intel.com>
6980 Kirill Yukhin <kirill.yukhin@intel.com>
6981 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6983 * common/config/i386/i386-common.c
6984 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
6985 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
6986 (ix86_handle_option): Handle OPT_mavx512dq.
6987 * config/i386/cpuid.h (bit_AVX512DQ): Define.
6988 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
6989 set -mavx512dq accordingly.
6990 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6991 OPTION_MASK_ISA_AVX512DQ.
6992 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
6993 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
6994 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
6995 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
6996 * config/i386/i386.h (TARGET_AVX512DQ): Define.
6997 (TARGET_AVX512DQ_P(x)): Ditto.
6998 * config/i386/i386.opt: Add mavx512dq.
7000 2014-08-08 Richard Biener <rguenther@suse.de>
7002 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7003 target_percent, target_percent_s): Export.
7004 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7005 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7006 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7007 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7008 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7009 Move to gimple-fold.c.
7010 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7012 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7013 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7014 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7015 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7016 (rewrite_call_expr_array): Remove.
7017 (fold_builtin_sprintf_chk): Likewise.
7018 (fold_builtin_snprintf_chk): Likewise.
7019 (fold_builtin_varargs): Remove handling of sprintf_chk,
7020 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7021 (gimple_fold_builtin_sprintf_chk): Remove.
7022 (gimple_fold_builtin_snprintf_chk): Likewise.
7023 (gimple_fold_builtin_varargs): Likewise.
7024 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7025 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7026 * gimple.c (gimple_seq_add_seq_without_update): New function.
7027 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7028 * gimple-fold.c: Include output.h.
7029 (gsi_replace_with_seq_vops): New function, split out from ...
7030 (gimplify_and_update_call_from_tree): ... here.
7031 (replace_call_with_value): New function.
7032 (replace_call_with_call_and_fold): Likewise.
7033 (var_decl_component_p): Moved from builtins.c.
7034 (gimple_fold_builtin_memory_op): Moved from builtins.c
7035 fold_builtin_memory_op and rewritten to GIMPLE.
7036 (gimple_fold_builtin_memset): Likewise.
7037 (gimple_fold_builtin_strcpy): Likewise.
7038 (gimple_fold_builtin_strncpy): Likewise.
7039 (gimple_fold_builtin_strcat): Likewise.
7040 (gimple_fold_builtin_fputs): Likewise.
7041 (gimple_fold_builtin_memory_chk): Likewise.
7042 (gimple_fold_builtin_stxcpy_chk): Likewise.
7043 (gimple_fold_builtin_stxncpy_chk): Likewise.
7044 (gimple_fold_builtin_snprintf_chk): Likewise.
7045 (gimple_fold_builtin_sprintf_chk): Likewise.
7046 (gimple_fold_builtin_strlen): New function.
7047 (gimple_fold_builtin_with_strlen): New function split out from
7048 gimple_fold_builtin.
7049 (gimple_fold_builtin): Change signature and handle
7050 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7051 here. Call gimple_fold_builtin_with_strlen.
7052 (gimple_fold_call): Adjust.
7054 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7056 * calls.c (precompute_arguments): Check
7057 promoted_for_signed_and_unsigned_p and set the promoted mode.
7058 (promoted_for_signed_and_unsigned_p): New function.
7059 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7060 and set the promoted mode.
7061 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7062 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7063 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7066 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7068 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7069 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7070 (expand_call): Likewise.
7071 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7072 to get promoted mode.
7073 * combine.c (record_promoted_value): Skip > 0 comparison with
7074 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7075 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7076 of SUBREG_PROMOTED_UNSIGNED_P.
7077 (convert_modes): Likewise.
7078 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7079 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7080 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7081 SUBREG_PROMOTED_UNSIGNED_SET.
7082 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7083 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7084 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7085 SUBREG_PROMOTED_SET.
7086 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7087 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7088 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7089 of SUBREG_PROMOTED_UNSIGNED_P.
7090 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7091 (SUBREG_PROMOTED_SET): New define.
7092 (SUBREG_PROMOTED_GET): Likewise.
7093 (SUBREG_PROMOTED_SIGN): Likewise.
7094 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7095 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7096 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7097 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7098 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7099 (nonzero_bits1): Skip > 0 comparison with the results as
7100 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7101 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7102 of !SUBREG_PROMOTED_UNSIGNED_P.
7103 * simplify-rtx.c (simplify_unary_operation_1): Use new
7104 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7105 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7106 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7107 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7109 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7111 * ipa-devirt.c: Include gimple-pretty-print.h
7112 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7114 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7115 (get_polymorphic_call_info): Fix return value
7116 (type_change_info): New sturcture based on ipa-prop
7118 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7119 based on ipa-prop variant.
7120 (extr_type_from_vtbl_ptr_store): New function
7121 based on ipa-prop variant.
7122 (record_known_type): New function.
7123 (check_stmt_for_type_change): New function.
7124 (get_dynamic_type): New function.
7125 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7126 * tree-ssa-pre.c: ipa-utils.h
7127 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7128 machinery; sanity check with ipa-prop devirtualization.
7129 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7132 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7134 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7135 * alias.c, cfgexpand.c, cgraphbuild.c,
7136 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7137 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7138 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7139 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7140 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7141 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7142 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7143 dse.c, except.c, gengtype.c, gimple-expr.c,
7144 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7145 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7146 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7147 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7148 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7149 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7151 * pointer-set.c: Remove file.
7152 * pointer-set.h: Remove file.
7154 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7156 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7157 * config/arm/types.md (f_sels, f_seld): Delete.
7159 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7161 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7162 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7163 (aarch64_movdi_<mode>high): Likewise.
7164 (aarch64_mov<mode>high_di): Likewise.
7165 (aarch64_movdi_<mode>low): Likewise.
7166 (aarch64_mov<mode>low_di): Likewise.
7167 (aarch64_movtilow_tilow): Likewise.
7168 Add comment explaining usage of fp,simd attributes and of
7169 TARGET_FLOAT and TARGET_SIMD.
7171 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7172 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7174 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7175 Use MOVN when one of the half-words is 0xffff.
7177 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7179 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7181 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7183 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7184 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7185 (rfs_str): String corresponding to RFS_* constants.
7186 (rank_for_schedule_stats_t): New typedef.
7187 (rank_for_schedule_stats): New static variable.
7188 (rfs_result): New static function.
7189 (rank_for_schedule): Track statistics for deciding heuristics.
7190 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7192 (ready_sort): Use them for debug printouts.
7193 (schedule_block): Init statistics state. Print statistics on
7194 rank_for_schedule decisions.
7196 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7198 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7200 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7202 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7205 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7207 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7208 function to not conflict.
7209 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7210 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7211 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7212 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7213 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7216 2014-08-07 Marek Polacek <polacek@redhat.com>
7218 * fold-const.c (fold_binary_loc): Add folding of
7219 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7221 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7223 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7224 instead of type size.
7225 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7227 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7229 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7230 (*thumb1_movqi_insn): Likewise.
7231 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7233 2014-08-07 Tom de Vries <tom@codesourcery.com>
7235 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7236 (glibc_2_11_or_earlier): Remove effective-target keywords.
7238 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7240 * config/arm/arm.c (bdesc_2arg): Fix typo.
7241 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7243 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7245 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7247 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7250 * haifa-sched.c (advance_one_cycle): Fix dump.
7251 (schedule_block): Don't advance cycle if we are already at the
7252 beginning of the cycle.
7254 2014-08-06 Martin Jambor <mjambor@suse.cz>
7257 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7259 2014-08-06 Richard Biener <rguenther@suse.de>
7262 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7264 (lto_input_tree): Pop SCCs here.
7266 2014-08-06 Richard Biener <rguenther@suse.de>
7268 PR tree-optimization/61320
7269 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7270 handle misaligned loads.
7272 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7274 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7275 (aarch64_expand_vec_perm_const): Check for dup before zip.
7277 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7279 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7280 CONST_INT_P instead of GET_CODE and compare.
7281 (aarch64_select_cc_mode): Likewise.
7282 (aarch64_print_operand): Likewise.
7283 (aarch64_rtx_costs): Likewise.
7284 (aarch64_simd_valid_immediate): Likewise.
7285 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7286 (aarch64_simd_emit_pair_result_insn): Likewise.
7288 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7290 * gdbhooks.py (find_gcc_source_dir): New helper function.
7291 (class PassNames): New class, locating and parsing passes.def.
7292 (class BreakOnPass): New command "break-on-pass".
7294 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7296 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7299 2014-08-05 Richard Biener <rguenther@suse.de>
7301 PR rtl-optimization/61672
7302 * emit-rtl.h (mem_attrs_eq_p): Declare.
7303 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7304 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7305 * cfgcleanup.c (merge_memattrs): Likewise.
7308 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7310 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7311 rather than singleton vectors.
7312 (vqdmlsls_lane_s32): Likewise.
7314 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7316 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7317 Use VSDQ_HSI mode iterator.
7318 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7319 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7320 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7321 Use BUILTIN_VDQHS macro.
7322 (sqrdmulh_laneq): Likewise.
7323 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7324 (vqdmlals_laneq_s32): Likewise.
7325 (vqdmlslh_laneq_s16): Likewise.
7326 (vqdmlsls_laneq_s32): Likewise.
7327 (vqdmulhh_laneq_s16): Likewise.
7328 (vqdmulhs_laneq_s32): Likewise.
7329 (vqrdmulhh_laneq_s16): Likewise.
7330 (vqrdmulhs_laneq_s32): Likewise.
7332 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7334 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7335 (vmuld_laneq_f64): Likewise.
7336 (vmuls_laneq_f32): Likewise.
7337 (vmul_n_f64): Likewise.
7338 (vmuld_lane_f64): Reimplement in C.
7339 (vmuls_lane_f32): Likewise.
7341 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7343 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7345 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7347 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7349 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7350 (rbitsi2): Likewise.
7351 (*arm_rev): Set predicable and predicable_short_it attributes.
7353 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7355 * convert.c (convert_to_integer): Guard transformation to lrint by
7358 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7360 * config/aarch64/aarch64-builtins.c
7361 (aarch64_simd_builtin_type_mode): Delete.
7362 (v8qi_UP): Remap to V8QImode.
7363 (v4hi_UP): Remap to V4HImode.
7364 (v2si_UP): Remap to V2SImode.
7365 (v2sf_UP): Remap to V2SFmode.
7366 (v1df_UP): Remap to V1DFmode.
7367 (di_UP): Remap to DImode.
7368 (df_UP): Remap to DFmode.
7369 (v16qi_UP):V16QImode.
7370 (v8hi_UP): Remap to V8HImode.
7371 (v4si_UP): Remap to V4SImode.
7372 (v4sf_UP): Remap to V4SFmode.
7373 (v2di_UP): Remap to V2DImode.
7374 (v2df_UP): Remap to V2DFmode.
7375 (ti_UP): Remap to TImode.
7376 (ei_UP): Remap to EImode.
7377 (oi_UP): Remap to OImode.
7378 (ci_UP): Map to CImode.
7379 (xi_UP): Remap to XImode.
7380 (si_UP): Remap to SImode.
7381 (sf_UP): Remap to SFmode.
7382 (hi_UP): Remap to HImode.
7383 (qi_UP): Remap to QImode.
7384 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7385 (VAR1): Build builtin name.
7386 (aarch64_init_simd_builtins): Remove dead code.
7388 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7390 * graphite-isl-ast-to-gimple.c:
7391 (set_options): New function.
7392 (scop_to_isl_ast): Add calling of set_options.
7394 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7396 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7397 (analyze_iv_to_split_insn): Don't initialize them.
7398 (get_ivts_expr): Removed.
7399 (allocate_basic_variable, insert_base_initialization): Use
7400 SET_SRC instead of *get_ivts_expr.
7401 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7403 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7405 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7406 (translate_isl_ast_for_loop): Add checking of the
7407 flag_loop_parallelize_all.
7408 (ast_build_before_for): New function.
7409 (scop_to_isl_ast): Add checking of the
7410 flag_loop_parallelize_all.
7411 * graphite-dependences.c: Move the defenition of the
7412 scop_get_dependences from graphite-optimize-isl.c to this file.
7413 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7414 (carries_deps): Add checking of the x's value.
7415 * graphite-optimize-isl.c: Move the defenition of the
7416 scop_get_dependences to graphite-dependences.c.
7417 * graphite-poly.h: Add declarations of scop_get_dependences
7420 2014-08-04 Rohit <rohitarulraj@freescale.com>
7423 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7425 (alt_reg_names): Likewise.
7426 (rs6000_dwarf_register_span): For SPE high registers, replace
7427 dwarf register numbers with GCC hard register numbers.
7428 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7429 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7430 register number for the corresponding GCC hard register number.
7431 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7432 newly added GCC hard register numbers for SPE high registers.
7433 (DWARF_FRAME_REGISTERS): Likewise.
7434 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7435 (DWARF_FRAME_REGNUM): Likewise.
7436 (FIXED_REGISTERS): Likewise.
7437 (CALL_USED_REGISTERS): Likewise.
7438 (CALL_REALLY_USED_REGISTERS): Likewise.
7439 (REG_ALLOC_ORDER): Likewise.
7440 (enum reg_class): Likewise.
7441 (REG_CLASS_NAMES): Likewise.
7442 (REG_CLASS_CONTENTS): Likewise.
7443 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7445 2014-08-04 Richard Biener <rguenther@suse.de>
7447 * gimple-fold.h (gimple_fold_builtin): Remove.
7448 * gimple-fold.c (gimple_fold_builtin): Make static.
7449 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7450 fold_stmt, not gimple_fold_builtin.
7452 2014-08-04 Martin Liska <mliska@suse.cz>
7454 * cgraph.h (csi_end_p): Removed.
7455 (csi_next): Likewise.
7456 (csi_node): Likewise.
7457 (csi_start): Likewise.
7458 (cgraph_node_in_set_p): Likewise.
7459 (cgraph_node_set_size): Likewise.
7460 (vsi_end_p): Likewise.
7461 (vsi_next): Likewise.
7462 (vsi_node): Likewise.
7463 (vsi_start): Likewise.
7464 (varpool_node_set_size): Likewise.
7465 (cgraph_node_set_nonempty_p): Likewise.
7466 (varpool_node_set_nonempty_p): Likewise.
7467 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7469 * ipa-inline-transform.c: Likewise.
7470 * ipa-utils.c (cgraph_node_set_new): Removed.
7471 (cgraph_node_set_add): Likewise.
7472 (cgraph_node_set_remove): Likewise.
7473 (cgraph_node_set_find): Likewise.
7474 (dump_cgraph_node_set): Likewise.
7475 (debug_cgraph_node_set): Likewise.
7476 (free_cgraph_node_set): Likewise.
7477 (varpool_node_set_new): Likewise.
7478 (varpool_node_set_add): Likewise.
7479 (varpool_node_set_remove): Likewise.
7480 (varpool_node_set_find): Likewise.
7481 (dump_varpool_node_set): Likewise.
7482 (free_varpool_node_set): Likewise.
7483 (debug_varpool_node_set): Likewise.
7484 * tree-emutls.c (struct tls_var_data):
7485 (emutls_index): Removed.
7486 (emutls_decl): Likewise.
7487 (gen_emutls_addr): Function implementation uses newly added
7488 hash_map<varpool_node *, tls_var_data>.
7489 (clear_access_vars): Likewise.
7490 (create_emultls_var): Likewise.
7491 (ipa_lower_emutls): Likewise.
7492 (reset_access): New function.
7494 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7496 * config/i386/i386.c (ix86_option_override_internal): Add
7497 PTA_RDRND and PTA_MOVBE for bdver4.
7499 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7500 James Greenhalgh <james.greenhalgh@arm.com>
7502 * doc/md.texi (clrsb): Document.
7503 (clz): Change reference to x into operand 1.
7505 (popcount): Likewise.
7507 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7510 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7511 move to subtarget in serial version if result is ignored.
7513 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7514 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7516 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7517 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7518 (sched_analyze_insn): Update use of try_group_insn to
7519 sched_macro_fuse_insns.
7520 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7521 arguments that are not conditional jumps.
7523 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7525 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7526 family information. Handle BTVER2 cpu with cpuid family value.
7528 2014-08-04 Tom de Vries <tom@codesourcery.com>
7530 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7531 (glibc_2_11_or_earlier): Document effective-target keywords.
7533 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7535 * ipa-devirt.c (odr_type_warn_count): Add type.
7536 (possible_polymorphic_call_targets): Set it.
7537 (ipa_devirt): Use it.
7539 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7541 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7543 * ipa-devirt.c: Include hash-map.h
7544 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7545 (clear_speculation): Break out of ...
7546 (get_class_context): ... here; speed up handling obviously useless
7548 (odr_type_warn_count, decl_warn_count): New structures.
7549 (final_warning_record): New structure.
7550 (final_warning_records): New static variable.
7551 (possible_polymorphic_call_targets): Cleanup handling of
7552 speculative info; do not build speculation when user do not care;
7553 record info about warnings when asked for.
7554 (add_decl_warning): New function.
7555 (type_warning_cmp): New function.
7556 (decl_warning_cmp): New function.
7557 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7558 (gate): Enable pass when warnings are requested.
7559 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7562 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7564 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7566 (hash_map::remove): New method.
7567 (hash_map::traverse): New method.
7568 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7569 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7570 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7571 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7572 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7573 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7576 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7578 * hash-set.h: new File.
7579 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7580 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7581 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7582 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7583 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7584 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7585 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7586 varpool.c: Use hash_set instead of pointer_set.
7588 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7590 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7592 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7594 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7595 for frame access when strict_p is false.
7597 2014-08-01 Renlin Li <renlin.li@arm.com>
7598 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7600 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7601 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7602 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7604 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7606 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7607 aarch64_mem_pair_offset.
7609 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7611 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7613 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7614 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7616 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7618 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7620 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7623 * cgraphunit.c (analyze_functions): Use get_create rather than get
7624 for decls which are clones of abstract functions.
7626 2014-08-01 Martin Liska <mliska@suse.cz>
7628 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7629 * ipa-prop.h (count_formal_params): Global function created from static.
7630 * ipa-prop.c (count_formal_params): Likewise.
7631 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7632 profiles for semantically equivalent functions.
7633 * passes.c (do_per_function): If we load body of a function
7634 during WPA, this condition should behave same.
7635 * varpool.c (ctor_for_folding): More tolerant assert for variable
7636 aliases created during WPA.
7638 2014-08-01 Martin Liska <mliska@suse.cz>
7640 * doc/invoke.texi (Options That Control Optimization): Documentation
7641 for -foptimize-strlen introduced. Optimization levels default options
7644 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7646 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7647 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7648 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7650 * stor-layout.h (min_align_of_type): New prototype.
7651 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7652 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7654 * ubsan.c: Include builtins.h.
7655 (ubsan_expand_bounds_ifn): Change return type to bool,
7657 (ubsan_expand_null_ifn): Change return type to bool, change
7658 argument to gimple_stmt_iterator *. Handle both null and alignment
7659 sanitization, take type from ckind argument's type rather than
7661 (instrument_member_call): Removed.
7662 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7663 Handle both null and alignment sanitization, don't say whole
7664 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7665 call instead of 2 argument.
7666 (instrument_null): Adjust instrument_mem_ref caller. Don't
7667 instrument calls here.
7668 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7670 * stor-layout.c (min_align_of_type): New function.
7671 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7672 Or it into SANITIZE_UNDEFINED.
7673 * doc/invoke.texi (-fsanitize=alignment): Document.
7675 2014-07-31 Andi Kleen <ak@linux.intel.com>
7677 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7679 2014-07-31 Andi Kleen <ak@linux.intel.com>
7681 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7683 (vn_reference_compute_hash): Dito.
7684 (vn_nary_op_compute_hash): Dito.
7685 (vn_phi_compute_hash): Dito.
7686 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7688 2014-07-31 Andi Kleen <ak@linux.intel.com>
7690 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7691 Rename to inchash:add_expr_commutative. Convert to inchash.
7692 (iterative_hash_hashable_expr): Rename to
7693 inchash:add_hashable_expr. Convert to inchash.
7694 (avail_expr_hash): Dito.
7696 2014-07-31 Andi Kleen <ak@linux.intel.com>
7698 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7701 2014-07-31 Andi Kleen <ak@linux.intel.com>
7703 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7705 2014-07-31 Andi Kleen <ak@linux.intel.com>
7707 * Makefile.in (OBJS): Add rtlhash.o
7708 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7709 (loc_checksum): Dito.
7710 (loc_checksum_ordered): Dito.
7711 (hash_loc_operands): Dito.
7713 (hash_loc_list): Dito.
7714 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7715 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7716 * rtlhash.c: New file.
7717 * rtlhash.h: New file.
7719 2014-07-31 Andi Kleen <ak@linux.intel.com>
7721 * inchash.h (inchash): Change inchash class to namespace.
7722 (class hash): ... Rename from inchash.
7723 (add_object): Move from macro to class template.
7724 * lto-streamer-out.c (hash_tree): Change inchash
7726 * tree.c (build_type_attribute_qual_variant): Dito.
7727 (type_hash_list): Dito.
7728 (attribute_hash_list): Dito.
7729 (iterative_hstate_expr): Rename to inchash::add_expr
7730 (build_range_type_1): Change inchash to inchash::hash
7731 and use hash::add_expr.
7732 (build_array_type_1): Dito.
7733 (build_function_type): Dito
7734 (build_method_type_directly): Dito.
7735 (build_offset_type): Dito.
7736 (build_complex_type): Dito.
7737 (make_vector_type): Dito.
7738 * tree.h (iterative_hash_expr): Dito.
7740 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
7742 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
7744 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7746 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
7747 correct alphabetical position.
7748 (vpaddd_f64): Rewrite using builtins.
7749 (vpaddd_s64): Move to correct alphabetical position.
7752 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
7755 * config/sh/sh.c (sh_legitimate_address_p,
7756 sh_legitimize_reload_address): Handle reg+reg address modes when
7757 ALLOW_INDEXED_ADDRESS is false.
7758 * config/sh/predicates.md (general_movsrc_operand,
7759 general_movdst_operand): Likewise.
7761 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7763 * config/aarch64/aarch64-builtins.c
7764 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
7767 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7769 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
7770 the generated mask based on BYTES_BIG_ENDIAN.
7771 (aarch64_simd_check_vect_par_cnst_half): New.
7772 * config/aarch64/aarch64-protos.h
7773 (aarch64_simd_check_vect_par_cnst_half): New.
7774 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
7775 the check out to aarch64_simd_check_vect_par_cnst_half.
7776 (vect_par_cnst_lo_half): Likewise.
7777 * config/aarch64/aarch64-simd.md
7778 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
7779 (move_hi_quad_<mode>): Always generate a low mask.
7781 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7783 * doc/invoke.texi (AVR Options): Add documentation about
7784 __AVR_DEVICE_NAME__ built-in macro.
7786 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
7789 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
7790 constraints are satisfied.
7791 (<shift>di3_neon): Likewise.
7793 2014-07-31 Richard Biener <rguenther@suse.de>
7795 PR tree-optimization/61964
7796 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
7797 by structural equality.
7799 2014-07-31 Yury Gribov <y.gribov@samsung.com>
7801 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
7802 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
7803 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
7805 * gcc.c (sanitize_spec_function): Support new option.
7806 (SANITIZER_SPEC): Remove now redundant check.
7807 * opts.c (common_handle_option): Support new option.
7808 (finish_options): Check for incompatibilities.
7809 * toplev.c (process_options): Split userspace-specific checks.
7811 2014-07-31 Richard Biener <rguenther@suse.de>
7813 * lto-streamer.h (struct output_block): Remove global.
7814 (struct data_in): Remove labels, num_named_labels and
7816 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
7817 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
7819 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
7822 * common.opt (-Wreturn-local-addr): Moved from c.opt.
7823 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
7824 (isolate_path): New argument to avoid inserting a trap.
7825 (find_implicit_erroneous_behaviour): Handle returning the address
7826 of a local variable.
7827 (find_explicit_erroneous_behaviour): Likewise.
7829 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
7832 * toplev.c (init_random_seed): Move piece of code never called to
7834 (set_random_seed): see above.
7836 2014-07-31 Tom de Vries <tom@codesourcery.com>
7838 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
7840 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7842 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
7843 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
7845 2014-07-31 Richard Biener <rguenther@suse.de>
7847 * data-streamer.h (streamer_write_data_stream): Declare here,
7849 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
7850 * lto-cgraph.c (lto_output_node): Adjust.
7851 (lto_output_varpool_node): Likewise.
7852 * data-streamer-out.c (streamer_string_index): Likewise.
7853 (streamer_write_data_stream, lto_append_block): Move from ...
7854 * lto-section-out.c (lto_output_data_stream,
7855 lto_append_block): ... here.
7857 2014-07-30 Mike Stump <mikestump@comcast.net>
7859 * configure.ac: Also check for popen.
7860 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
7861 * configure: Regenerate.
7862 * config.in: Regenerate.
7864 2014-07-30 Martin Jambor <mjambor@suse.cz>
7866 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
7867 parameter to gimple.
7869 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7871 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
7872 address as second parameter to __tpf_eh_return routine.
7874 2014-07-30 Jiong Wang <jiong.wang@arm.com>
7876 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
7879 2014-07-30 Tom Tromey <tromey@redhat.com>
7882 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
7883 * doc/extend.texi (Type Attributes): Document designated_init
7886 2014-07-30 Roman Gareev <gareevroman@gmail.com>
7888 * graphite-isl-ast-to-gimple.c:
7889 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
7890 (gcc_expression_from_isl_expression): Pass type to
7891 gcc_expression_from_isl_ast_expr_id.
7893 2014-07-30 Richard Biener <rguenther@suse.de>
7895 * lto-streamer.h (lto_write_data): New function.
7896 * langhooks.c (lhd_append_data): Do not free block.
7897 * lto-section-out.c (lto_write_data): New function writing
7898 raw data to the current section.
7899 (lto_write_stream): Adjust for langhook semantic change.
7900 (lto_destroy_simple_output_block): Write header directly.
7901 * lto-opts.c (lto_write_options): Write options directly.
7902 * lto-streamer-out.c (produce_asm): Write heaeder directly.
7903 (lto_output_toplevel_asms): Likewise.
7904 (copy_function_or_variable): Copy data directly.
7905 (write_global_references): Output index table directly.
7906 (lto_output_decl_state_refs): Likewise.
7907 (write_symbol): Write data directly.
7908 (produce_symtab): Adjust.
7909 (produce_asm_for_decls): Output header and refs directly.
7911 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7913 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
7914 to speculative_targets
7915 (get_class_context): Fix handling of contextes without outer type;
7916 avoid matching non-polymorphic types in LTO.
7917 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
7918 parameter to speculative_targetsp; handle speculation.
7919 (dump_possible_polymorphic_call_targets): Update dumping.
7921 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7923 * common.opt (Wodr): Enable by default.
7925 2014-07-29 Olivier Hainque <hainque@adacore.com>
7927 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
7929 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
7932 * gengtype.c (strtoken): New function.
7933 (create_user_defined_type): Replace strtok with strtoken.
7935 2014-07-29 Nathan Sidwell <nathan@acm.org>
7937 * gcov-io.c (gcov_var): Make hidden.
7938 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
7939 (gcov_do_dump): Declare.
7940 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
7942 2014-07-29 Martin Jambor <mjambor@suse.cz>
7944 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
7945 parameter to gimple.
7946 (sra_modify_assign): Likewise.
7948 2014-07-29 Richard Biener <rguenther@suse.de>
7951 * expr.c (expand_expr_real_2): Revert last change.
7953 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7955 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
7956 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
7957 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
7959 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
7960 (contains_type_p): Forward declare.
7961 (polymorphic_call_target_hasher::hash): Hash speculative info.
7962 (polymorphic_call_target_hasher::equal): Compare speculative info.
7963 (get_class_context): Handle speuclation.
7964 (contains_type_p): Update.
7965 (get_polymorphic_call_info_for_decl): Update.
7966 (walk_ssa_copies): Break out from ...
7967 (get_polymorphic_call_info): ... here; set speculative context
7969 * ipa-prop.c (ipa_write_indirect_edge_info,
7970 ipa_read_indirect_edge_info): Stream speculative context.
7971 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
7972 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
7973 SPECULATIVE_MAYBE_DERIVED_TYPE).
7974 (possible_polymorphic_call_targets overriders): Update.
7975 (dump_possible_polymorphic_call_targets overriders): Update.
7976 (dump_possible_polymorphic_call_target_p overriders): Update.
7978 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7980 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
7981 ipa-devirt path; fix thinko there.
7983 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
7985 * config/i386/i386.c (ix86_return_in_memory): Replace one
7986 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
7988 2014-07-28 Marek Polacek <polacek@redhat.com>
7990 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
7992 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
7994 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
7995 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
7996 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
7997 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7998 (USE_LD_AS_NEEDED): Likewise.
7999 (ASM_APP_ON): Likewise.
8000 (ASM_APP_OFF): Likewise.
8001 (TARGET_POSIX_IO): Likewise.
8002 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8003 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8004 (USE_LD_AS_NEEDED): Likewise.
8005 (ASM_APP_ON): Likewise.
8006 (ASM_APP_OFF): Likewise.
8007 (TARGET_POSIX_IO): Likewise.
8009 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8012 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8013 operators other than the equality operators.
8015 2014-07-28 Richard Biener <rguenther@suse.de>
8018 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8019 sure to register SImode ones, not only >= word_mode ones.
8020 * expr.c (expand_expr_real_2): When expanding -ftrapv
8021 binops do not use OPTAB_LIB_WIDEN.
8023 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8026 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8027 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8028 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8029 inserting them in the insn stream.
8031 2014-07-28 Marek Polacek <polacek@redhat.com>
8034 * common.opt (Wodr): Add Var.
8036 2014-07-28 Richard Biener <rguenther@suse.de>
8038 PR tree-optimization/61921
8039 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8040 if there is a varpool node before dereferencing it.
8042 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8044 * graphite-sese-to-poly.c:
8045 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8046 id of the pbb), which contains pointer to the pbb1.
8048 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8050 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8052 * graphite-isl-ast-to-gimple.c:
8053 (graphite_create_new_guard): New function.
8054 (translate_isl_ast_node_if): New function.
8055 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8057 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8059 2014-07-27 Anthony Green <green@moxielogic.com>
8061 * config.gcc: Add moxie-*-moxiebox* configuration.
8062 * config/moxie/moxiebox.h: New file.
8064 2014-07-26 Andrew Pinski <apinski@cavium.com>
8066 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8067 from the read only register.
8069 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8071 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8072 as the allocation class if it isn't likely to be spilled.
8074 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8076 * rtl.h (tls_referenced_p): Declare.
8077 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8078 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8079 (mips_cannot_force_const_mem): Use tls_referenced_p.
8080 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8081 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8082 instead of pa_tls_referenced_p.
8083 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8084 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8085 (pa_legitimate_constant_p): Likewise.
8086 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8087 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8088 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8089 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8090 rs6000_tls_referenced_p.
8091 (rs6000_tls_symbol_ref_1): Delete.
8093 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8096 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8097 Optimize inverse of a VEC_CONCAT.
8099 2014-07-25 Xinliang David Li <davidxl@google.com>
8101 * params.def: New parameter.
8102 * coverage.c (get_coverage_counts): Check new flag.
8103 (coverage_compute_profile_id): Check new flag.
8104 (coverage_begin_function): Check new flag.
8105 (coverage_end_function): Check new flag.
8106 * value-prof.c (coverage_node_map_initialized_p): New function.
8107 (init_node_map): Populate map with all functions.
8108 * doc/invoke.texi: Document new parameter.
8110 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8111 Richard Biener <rguenther@suse.de>
8113 * lto-streamer-out.c (struct sccs): Turn to ...
8114 (class DFS): ... this one; refactor the DFS walk so it can
8115 be re-done on per-SCC basis.
8116 (DFS::DFS): New constructor.
8117 (DFS::~DFS): New destructor.
8118 (hash_tree): Add new MAP argument holding in-SCC hash values;
8119 remove POINTER_TYPE hashing hack.
8120 (scc_entry_compare): Rename to ...
8121 (DFS::scc_entry_compare): ... this one.
8122 (hash_scc): Rename to ...
8123 (DFS::hash_scc): ... this one; pass output_block instead
8124 of streamer_cache; work harder to get unique and stable SCC
8126 (DFS_write_tree): Rename to ...
8127 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8128 (lto_output_tree): Update.
8130 2014-07-25 Andi Kleen <ak@linux.intel.com>
8132 * lto-streamer-out.c (hash_tree): Convert to inchash.
8134 2014-07-25 Andi Kleen <ak@linux.intel.com>
8136 * tree.c (build_type_attribute_qual_variant): Use inchash.
8137 (type_hash_list): Dito.
8138 (attribute_hash_list): Dito
8139 (iterative_hstate_expr): Dito.
8140 (iterative_hash_expr): Dito.
8141 (build_range_type_1): Dito.
8142 (build_array_type_1): Dito.
8143 (build_function_type): Dito.
8144 (build_method_type_directly): Dito.
8145 (build_offset_type): Dito.
8146 (build_complex_type): Dito.
8147 (make_vector_type): Dito.
8148 * tree.h (iterative_hash_expr): Add compat wrapper.
8149 (iterative_hstate_expr): Add.
8151 2014-07-25 Andi Kleen <ak@linux.intel.com>
8153 * Makefile.in (OBJS): Add inchash.o.
8154 (PLUGIN_HEADERS): Add inchash.h.
8155 * ipa-devirt.c: Include inchash.h.
8156 * lto-streamer-out.c: Dito.
8157 * tree-ssa-dom.c: Dito.
8158 * tree-ssa-pre.c: Dito.
8159 * tree-ssa-sccvn.c: Dito.
8160 * tree-ssa-tail-merge.c: Dito.
8162 * tree.c (iterative_hash_hashval_t): Move to ...
8163 (iterative_hash_host_wide_int): Move to ...
8164 * inchash.c: Here. New file.
8165 * tree.h (iterative_hash_hashval_t): Move to ...
8166 (iterative_hash_host_wide_int): Move to ...
8167 * inchash.h: Here. New file.
8169 2014-07-25 Richard Biener <rguenther@suse.de>
8173 * fold-const.c (native_encode_int): Add and handle offset
8174 parameter to do partial encodings of expr.
8175 (native_encode_fixed): Likewise.
8176 (native_encode_real): Likewise.
8177 (native_encode_complex): Likewise.
8178 (native_encode_vector): Likewise.
8179 (native_encode_string): Likewise.
8180 (native_encode_expr): Likewise.
8181 * fold-const.c (native_encode_expr): Add offset parameter
8183 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8184 (fold_ctor_reference): Handle all reads from tcc_constant
8187 2014-07-25 Richard Biener <rguenther@suse.de>
8189 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8192 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8194 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8196 2014-07-24 Kyle McMartin <kyle@redhat.com>
8198 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8200 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8202 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8204 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8206 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8207 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8208 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8210 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8212 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8213 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8214 aggregate types. Instead, *all* aggregate types, except for single-
8215 element or homogeneous float/vector aggregates, are quadword-aligned
8216 if required by their type alignment. Issue -Wpsabi note when a type
8217 is now treated differently than before.
8219 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8221 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8222 does not fit fully into floating-point registers, and there is still
8223 space in the register parameter area, use GPRs to pass those parts
8224 of the argument. Issue -Wpsabi note if any parameter is now treated
8225 differently than before.
8226 (rs6000_arg_partial_bytes): Update.
8228 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8230 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8232 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8234 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8235 * toplev.c (initialize_rtl): Don't use it. Move previously
8236 "language-dependent" calls to...
8237 (backend_init): ...here.
8238 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8239 Assert that RTL initialization hasn't happend yet.
8241 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8243 PR rtl-optimization/61629
8244 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8245 they have already been initialized.
8247 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8250 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8251 DECL_INCOMING_RTL and entry_parm.
8252 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8253 * calls.c (load_register_parameters): Likewise argument values.
8254 (emit_library_call_value_1, store_one_arg): Likewise argument
8256 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8258 * explow.c (validize_mem): Modify the argument in-place.
8260 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8262 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8263 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8265 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8267 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8268 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8270 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8272 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8273 (aarch64_save_callee_saves): New parameter "skip_wb".
8274 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8276 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8278 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8280 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8282 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8284 * graphite-isl-ast-to-gimple.c:
8285 (graphite_create_new_loop): Add calling of isl_id_free to properly
8286 decrement reference counts.
8288 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8290 2014-07-24 Martin Liska <mliska@suse.cz>
8291 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8293 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8294 (rs6000_code_end): Likewise.
8296 2014-07-24 Martin Liska <mliska@suse.cz>
8298 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8299 symtab_node funtion used.
8300 (rs6000_xcoff_declare_object_name): Likewise.
8302 2014-07-24 Martin Liska <mliska@suse.cz>
8304 * cgraphunit.c (compile): Correct function used.
8306 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8308 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8311 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8314 * varasm.c (bss_initializer_p): Handle offlined ctors.
8315 (align_variable, get_variable_align): Likewise.
8316 (make_decl_one_only): Likewise.
8317 (default_binds_local_p_1): Likewise.
8318 (decl_binds_to_current_def_p): Likewise.
8319 (get_variable_section): Get constructor if it is offlined.
8320 (assemble_variable_contents): Sanity check that the caller
8321 streamed in the ctor in LTO.
8323 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8325 * graphite-isl-ast-to-gimple.c:
8326 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8327 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8328 isl_ast_op_pdiv_r to the different case.
8330 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8332 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8335 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8336 when flag_errno_math is on.
8338 2014-07-24 Martin Liska <mliska@suse.cz>
8340 * cgraph.h (varpool_node):
8341 (availability get_availability (void)):
8342 created from cgraph_variable_initializer_availability
8343 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8344 created from: cgraph_variable_initializer_availability
8345 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8346 (void finalize_named_section_flags (void)):
8347 created from varpool_finalize_named_section_flags
8348 (bool assemble_decl (void)): created from varpool_assemble_decl
8349 (void analyze (void)): created from varpool_analyze_node
8350 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8351 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8352 (void remove_initializer (void)): created from varpool_remove_initializer
8353 (tree get_constructor (void)): created from varpool_get_constructor
8354 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8355 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8356 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8357 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8358 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8359 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8360 (static bool output_variables (void)): created from varpool_output_variables
8361 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8362 created from varpool_extra_name_alias
8363 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8364 (static void dump_varpool (FILE *f)): created from dump_varpool
8365 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8366 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8367 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8368 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8369 (void assemble_aliases (void)): created from assemble_aliases
8371 2014-07-24 Martin Liska <mliska@suse.cz>
8373 * cgraph.h (symtab_node):
8374 (void register_symbol (void)): created from symtab_register_node
8375 (void remove (void)): created from symtab_remove_node
8376 (void dump (FILE *f)): created from dump_symtab_node
8377 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8378 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8379 (struct ipa_ref *add_reference (symtab_node *referred_node,
8380 enum ipa_ref_use use_type)): created from add_reference
8381 (struct ipa_ref *add_reference (symtab_node *referred_node,
8382 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8383 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8384 gimple stmt)): created from maybe_add_reference
8385 (bool semantically_equivalent_p (symtab_node *target)): created from
8386 symtab_semantically_equivalent_p
8387 (void remove_from_same_comdat_group (void)): created from
8388 remove_from_same_comdat_group
8389 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8390 symtab_add_to_same_comdat_group
8391 (void dissolve_same_comdat_group_list (void)): created from
8392 symtab_dissolve_same_comdat_group_list
8393 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8394 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8395 created from symtab_alias_ultimate_target
8396 (inline symtab_node *next_defined_symbol (void)): created from
8397 symtab_next_defined_symbol
8398 (bool resolve_alias (symtab_node *target)): created from
8399 symtab_resolve_alias
8400 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8401 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8402 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8403 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8404 (void set_section (const char *section)): created from set_section_1
8405 (enum availability get_availability (void)): created from symtab_node_availability
8406 (void make_decl_local (void)): created from symtab_make_decl_local
8407 (bool real_symbol_p (void)): created from symtab_read_node
8408 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8409 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8410 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8411 symtab_in_same_comdat_p;
8412 (bool address_taken_from_non_vtable_p (void)): created from
8413 address_taken_from_non_vtable_p
8414 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8415 (static void dump_table (FILE *)): created from dump_symtab
8416 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8417 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8418 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8419 symtab_used_from_object_file_p
8420 (void dump_base (FILE *)): created from dump_symtab_base
8421 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8422 (void unregister (void)): created from symtab_unregister_node
8423 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8424 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8425 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8426 symtab_nonoverwritable_alias_1
8427 * cgraph.h (cgraph_node):
8428 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8429 created from cgraph_remove_node_and_inline_clones
8430 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8431 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8432 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8433 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8434 created from cgraph_function_node
8435 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8436 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8437 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8438 created from cgraph_create_clone
8439 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8440 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8441 created from cgraph_create_virtual_clone
8442 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8443 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8444 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8445 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8446 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8447 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8448 created from cgraph_function_version_info
8449 (struct cgraph_function_version_info *insert_new_function_version (void)):
8450 created from insert_new_cgraph_node_version
8451 (struct cgraph_function_version_info *function_version (void)): created from
8452 get_cgraph_node_version
8453 (void analyze (void)): created from analyze_function
8454 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8455 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8456 tree real_alias) cgraph_add_thunk
8457 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8458 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8459 created from cgraph_function_or_thunk_node
8460 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8461 created from expand_thunk
8462 (void reset (void)): created from cgraph_reset_node
8463 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8464 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8465 (void remove (void)): created from cgraph_remove_node
8466 (void dump (FILE *f)): created from dump_cgraph_node
8467 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8468 (bool get_body (void)): created from cgraph_get_body
8469 (void release_body (void)): created from cgraph_release_function_body
8470 (void unnest (void)): created from cgraph_unnest_node
8471 (void make_local (void)): created from cgraph_make_node_local
8472 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8473 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8474 gcov_type count, int freq)): created from cgraph_create_edge
8475 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8476 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8477 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8478 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8479 created from cgraph_create_edge_including_clones
8480 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8481 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8482 (void remove_callers (void)): created from cgraph_node_remove_callers
8483 (void remove_callees (void)): created from cgraph_node_remove_callees
8484 (enum availability get_availability (void)): created from cgraph_function_body_availability
8485 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8486 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8487 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8488 (void call_duplication_hooks (cgraph_node *node2)): created from
8489 cgraph_call_node_duplication_hooks
8490 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8491 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8492 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8493 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8494 (void call_function_insertion_hooks (void)):
8495 created from cgraph_call_function_insertion_hooks
8496 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8497 (bool local_p (void)): created from cgraph_local_node
8498 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8499 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8500 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8501 (inline bool only_called_directly_or_aliased_p (void)):
8502 created from cgraph_only_called_directly_or_aliased_p
8503 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8504 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8505 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8506 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8507 (bool can_remove_if_no_direct_calls_p (void)):
8508 created from cgraph_can_remove_if_no_direct_calls_p
8509 (inline bool has_gimple_body_p (void)):
8510 created from cgraph_function_with_gimple_body_p
8511 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8512 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8513 (static inline void debug_cgraph (void)): created from debug_cgraph
8514 (static void record_function_versions (tree decl1, tree decl2)):
8515 created from record_function_versions
8516 (static void delete_function_version (tree decl)):
8517 created from delete_function_version
8518 (static void add_new_function (tree fndecl, bool lowered)):
8519 created from cgraph_add_new_function
8520 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8521 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8522 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8523 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8524 (static cgraph_node *get_for_asmname (tree asmname)):
8525 created from cgraph_node_for_asm
8526 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8527 created from cgraph_same_body_alias
8528 (static bool used_from_object_file_p_worker (cgraph_node *node,
8529 void *): new function
8530 (static bool non_local_p (cgraph_node *node, void *)):
8531 created from cgraph_non_local_node_p_1
8532 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8533 created from verify_cgraph
8534 (static bool make_local (cgraph_node *node, void *)):
8535 created from cgraph_make_node_local
8536 (static cgraph_node *create_alias (tree alias, tree target)):
8537 created from cgraph_create_function_alias
8538 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8539 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8540 created from cgraph_create_edge_1
8541 * cgraph.h (varpool_node):
8542 (void remove (void)): created from varpool_remove_node
8543 (void dump (FILE *f)): created from dump_varpool_node
8545 2014-07-24 Richard Biener <rguenther@suse.de>
8548 * tree-ssa-structalias.c (create_variable_info_for_1):
8549 Use varpool_get_constructor.
8550 (create_variable_info_for): Likewise.
8552 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8554 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8555 subtract outgoing area size when restoring stack_pointer_rtx.
8557 2014-07-24 Nick Clifton <nickc@redhat.com>
8559 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8560 that operations are taking place in parallel.
8561 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8563 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8565 * omp-low.c (extract_omp_for_data): Add missing break statement.
8567 2014-07-24 Richard Biener <rguenther@suse.de>
8569 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8570 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8571 and adjust MOVE_RATIO query accordingly.
8572 (estimate_num_insns): Adjust callers.
8573 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8574 * ipa-cp.c (gather_context_independent_values,
8575 estimate_local_effects): Likewise.
8576 * ipa-split.c (consider_split): Likewise.
8578 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8580 * config/i386/driver-i386.c: Remove names of unused arguments and
8581 unnecessary unused attributes.
8582 * config/i386/host-mingw32.c: Likewise.
8583 * config/i386/i386.c: Likewise.
8584 * config/i386/winnt-stubs.c: Likewise.
8585 * config/i386/winnt.c: Likewise.
8587 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8589 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8590 (aarch64_gen_loadwb_pair): New helper function.
8591 (aarch64_expand_epilogue): Simplify code using new helper functions.
8592 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8594 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8596 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8597 (aarch64_gen_storewb_pair): New helper function.
8598 (aarch64_expand_prologue): Simplify code using new helper functions.
8599 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8601 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8603 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8604 Rename to aarch64_save_callee_saves, remove restore code.
8605 (aarch64_restore_callee_saves): New function.
8607 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8609 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8610 (aarch64_save_callee_saves): New function to handle reg save
8611 for both core and vectore regs.
8613 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8615 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8616 (aarch64_gen_store_pair): New helper function.
8617 (aarch64_save_or_restore_callee_save_registers)
8618 (aarch64_save_or_restore_fprs): Use new helper functions.
8620 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8622 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8623 (aarch64_save_or_restore_callee_save_registers)
8624 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8626 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8628 * config/aarch64/aarch64.c
8629 (aarch64_save_or_restore_callee_save_registers)
8630 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8632 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8634 * config/aarch64/aarch64.c
8635 (aarch64_save_or_restore_callee_save_registers)
8636 (aarch64_save_or_restore_fprs): Remove 'increment'.
8638 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8640 * config/aarch64/aarch64.c
8641 (aarch64_save_or_restore_callee_save_registers)
8642 (aarch64_save_or_restore_fprs): Use register offset in
8643 cfun->machine->frame.reg_offset.
8645 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8647 * config/aarch64/aarch64.c
8648 (aarch64_save_or_restore_callee_save_registers)
8649 (aarch64_save_or_restore_fprs): Remove base_rtx.
8651 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8653 * config/aarch64/aarch64.c
8654 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8655 to 'start_offset'. Remove local variable 'start_offset'.
8657 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8659 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8660 type to HOST_WIDE_INT.
8662 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8664 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8665 (aarch64_save_or_restore_fprs)
8666 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8668 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8670 * config/arm/t-rtems-eabi: Add
8671 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8672 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8673 mbig-endian/mthumb/march=armv7-r, and
8674 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8677 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8678 Chris Johns <chrisj@rtems.org>
8679 Joel Sherrill <joel.sherrill@oarcorp.com>
8681 * config.gcc: Add nios2-*-rtems*.
8682 * config/nios2/rtems.h: New file.
8683 * gcc/config/nios2/t-rtems: New file.
8685 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8688 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8689 constant numbers, not general constants.
8690 (rs6000_expand_vector_init): Ditto.
8692 2014-07-23 Nathan Sidwell <nathan@acm.org>
8694 * gcov-tool.c (gcov_list): Declare here.
8695 (set_gcov_list): Remove.
8696 (gcov_output_files): Set gcov_list directly.
8698 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8700 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8702 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8704 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8705 callee-saved registers are available for padding purpose
8706 and r3 is not mandatory, then prefer use those callee-saved
8709 2014-07-23 Richard Biener <rguenther@suse.de>
8711 * params.def (PARAM_MAX_COMBINE_INSNS): New.
8712 * combine.c: Include statistics.h and params.h.
8713 (combine_instructions): Guard three and four insn combines
8714 with max-combine-insns value. Record statistics for combines
8716 * doc/invoke.texi (max-combine-insns): Document new param.
8718 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8720 * graphite-isl-ast-to-gimple.c:
8721 (translate_isl_ast_node_block): New function.
8722 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8724 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8725 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8727 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8729 * graphite-isl-ast-to-gimple.c:
8730 (get_max_schedule_dimensions): New function.
8731 (extend_schedule): Likewise.
8732 (generate_isl_schedule): Add calling of extend_schedule and
8733 get_max_schedule_dimensions.
8735 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8737 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
8738 (case UNSPEC): Handle UNSPEC_RBIT.
8740 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8742 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
8743 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
8745 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8747 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
8749 2014-07-22 Roman Gareev <gareevroman@gmail.com>
8751 * graphite-isl-ast-to-gimple.c:
8752 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
8754 (build_iv_mapping): New function.
8755 (translate_isl_ast_node_user): Likewise.
8756 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
8758 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
8759 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
8760 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
8762 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8765 * config/arm/arm.md (setmem): New pattern.
8766 * config/arm/arm-protos.h (struct tune_params): New fields.
8767 (arm_gen_setmem): New prototype.
8768 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
8769 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8770 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8771 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
8772 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
8773 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
8774 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
8775 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8776 (arm_const_inline_cost): New function.
8777 (arm_block_set_max_insns): New function.
8778 (arm_block_set_non_vect_profit_p): New function.
8779 (arm_block_set_vect_profit_p): New function.
8780 (arm_block_set_unaligned_vect): New function.
8781 (arm_block_set_aligned_vect): New function.
8782 (arm_block_set_unaligned_non_vect): New function.
8783 (arm_block_set_aligned_non_vect): New function.
8784 (arm_block_set_vect, arm_gen_setmem): New functions.
8786 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8788 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
8790 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
8793 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
8794 out of #ifdef __OPTIMIZE__.
8796 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8798 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
8799 different trapping status if -fnon-call-exceptions is enabled.
8801 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8803 * expr.c (store_field): Handle VOIDmode for calls that return values
8804 in multiple locations.
8806 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8808 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
8809 (altivec_vsldoi_<mode>): Likewise.
8811 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8813 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
8814 to the number of characters in the line.
8816 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8818 * graphite-isl-ast-to-gimple.c: Add using of
8819 build_nonstandard_integer_type instead of int128_integer_type_node.
8821 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
8823 * toplev.c (output_stack_usage): Adjust the location of the warning.
8825 2014-07-19 Daniel Cederman <cederman@gaisler.com>
8827 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
8828 (*membar_storeload): Disable for LEON3.
8830 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8832 PR rtl-optimization/61461
8833 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
8835 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
8838 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
8839 Fix instruction constraint.
8840 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8842 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
8844 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
8846 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
8848 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
8849 GNU coding standards.
8850 (nds32_register_move_cost): Likewise.
8851 (nds32_memory_move_cost): Likewise.
8852 (nds32_address_cost): Likewise.
8854 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8856 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
8858 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
8860 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
8861 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
8862 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
8863 (HAVE_sync_compare_and_swapqi): Define.
8864 (HAVE_sync_compare_and_swaphi): Likewise.
8865 (HAVE_sync_compare_and_swapsi): Likewise.
8867 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
8869 * config/mips/p5600.md: Add missing cpu tests.
8871 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8873 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
8874 (vmla_f64): Likewise.
8875 (vfms_f64): Likewise.
8876 (vmls_f64): Likewise.
8878 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8880 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
8881 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
8883 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8885 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
8886 (vmlal_high_lane_s32): Likewise.
8887 (vmlal_high_lane_u16): Likewise.
8888 (vmlal_high_lane_u32): Likewise.
8889 (vmlsl_high_lane_s16): Likewise.
8890 (vmlsl_high_lane_s32): Likewise.
8891 (vmlsl_high_lane_u16): Likewise.
8892 (vmlsl_high_lane_u32): Likewise.
8894 2014-07-17 Terry Guo <terry.guo@arm.com>
8896 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
8897 (alus_reg): Renamed to alus_sreg.
8898 * config/arm/arm-fixed.md: Change type of non-dsp instructions
8899 from alu_reg to alu_sreg. Change type of dsp instructions from
8900 alu_reg to alu_dsp_reg.
8901 * config/arm/thumb1.md: Likewise.
8902 * config/arm/thumb2.md: Likewise.
8903 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
8904 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
8905 with alu_sreg and alus_sreg.
8906 * config/arm/arm1026ejs.md (alu_op): Likewise.
8907 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
8908 * config/arm/arm926ejs.md (9_alu_op): Likewise.
8909 * config/arm/fa526.md (526_alu_op): Likewise.
8910 * config/arm/fa606te.md (606te_alu_op): Likewise.
8911 * config/arm/fa626te.md (626te_alu_op): Likewise.
8912 * config/arm/fa726te.md (726te_alu_op): Likewise.
8913 * config/arm/fmp626.md (mp626_alu_op): Likewise.
8914 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
8915 alu_sreg, alu_dsp_reg and alus_sreg.
8916 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
8917 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8918 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8919 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
8920 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
8921 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8922 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8923 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8924 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
8925 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
8926 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
8927 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
8928 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
8929 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
8930 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
8931 alus_reg to alus_sreg.
8933 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
8935 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
8938 2014-07-17 Richard Biener <rguenther@suse.de>
8940 PR rtl-optimization/61801
8941 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
8942 don't set reg_pending_barrier if it appears in a debug-insn.
8944 2014-07-16 DJ Delorie <dj@redhat.com>
8946 * config/rx/rx.c (rx_option_override): Fix alignment values.
8947 (rx_align_for_label): Likewise.
8949 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
8952 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
8953 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8954 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
8956 (cris_print_index, cris_print_operand, cris_constant_index_p)
8957 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
8958 (cris_address_cost): Ditto last CONSTANT_P.
8959 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
8960 callers changed. Yield cris_offsettable_symbol for non-PIC
8961 constant symbolic expressions including labels. Yield cris_unspec
8963 (cris_expand_pic_call_address): New parameter MARKERP. Set its
8964 target to pic_offset_table_rtx for calls that will likely go
8965 through PLT, const0_rtx when they can't. All callers changed.
8966 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
8967 symbolic expressions to be PICified. Remove second, redundant,
8968 assert on can_create_pseudo_p returning non-zero. Use
8969 replace_equiv_address_nv, not replace_equiv_address, for final
8971 * config/cris/cris.md ("movsi"): Move variable t to pattern
8972 toplevel. Adjust assert for new cris_symbol_type member. Use
8973 CONSTANT_P instead of CONSTANT_ADDRESS_P.
8974 ("*movsi_internal") <case 9>: Make check for valid unspec operands
8976 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
8977 ("call", "call_value"): Use second incoming operand as a marker
8978 for pic-offset-table-register being used.
8979 ("*expanded_call_non_v32", "*expanded_call_v32")
8980 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
8981 second incoming operand to CALL, match cris_call_type_marker.
8982 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
8983 ("*expanded_call_side"): Ditto. Fix typo in comment.
8984 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
8986 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
8987 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
8988 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
8989 users changed. Add members cris_offsettable_symbol and cris_unspec.
8990 (cris_symbol_type): Rename from cris_pic_symbol_type.
8991 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
8993 * config/cris/cris-protos.h (cris_symbol_type_of,
8994 cris_expand_pic_call_address): Adjust prototypes.
8995 (cris_legitimate_constant_p): New prototype.
8997 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
8998 an existing tmake_file. Don't add t-slibgcc and t-linux.
9000 2014-07-17 Jason Merrill <jason@redhat.com>
9003 * symtab.c (symtab_remove_from_same_comdat_group): Also
9004 set_comdat_group to NULL_TREE.
9005 (verify_symtab): Fix diagnostic.
9007 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9010 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9012 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9014 Support location tracking for built-in macro tokens
9015 * input.h (is_location_from_builtin_token): New function declaration.
9016 * input.c (is_location_from_builtin_token): New function definition.
9017 * toplev.c (general_init): Tell libcpp what the pre-defined
9018 spelling location for built-in tokens is.
9020 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9022 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9023 on the FUNCTION_DECL.
9025 2014-07-16 Richard Biener <rguenther@suse.de>
9028 * doc/extend.texi (always_inline): Clarify.
9030 2014-07-15 Eric Christopher <echristo@gmail.com>
9032 * doc/invoke.texi (Link Options): Document -z option.
9034 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9036 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9037 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9039 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9041 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9043 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9045 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9046 varpool_assemble_decl.
9047 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9050 2014-07-15 Michael Matz <matz@suse.de>
9052 PR rtl-optimization/61772
9053 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9055 2014-07-15 Richard Biener <rguenther@suse.de>
9057 * opts.c (default_options_table): Disable bit-ccp at -Og.
9059 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9061 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9063 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9065 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9066 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9067 call langhook for unknown declaration.
9068 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9069 * tree.h (DECL_ARGUMENTS): Update.
9070 * print-tree.c (print_node): Update.
9071 * tree-core.h (tree_decl_non_common): Remove arguments.
9072 (tree_function_decl): Add arguments.
9074 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9076 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9078 2014-07-14 Richard Biener <rguenther@suse.de>
9080 PR tree-optimization/61779
9081 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9082 simplifying a condition.
9084 2014-07-14 Richard Biener <rguenther@suse.de>
9086 * builtins.c (c_strlen): Make only_value == 2 really only
9087 affect warning generation.
9089 2014-07-14 Richard Biener <rguenther@suse.de>
9091 PR tree-optimization/61757
9092 PR tree-optimization/61783
9093 PR tree-optimization/61787
9094 * tree-ssa-dom.c (record_equality): Revert canonicalization
9095 change and add comment.
9096 (propagate_rhs_into_lhs): Revert previous fix, removing
9097 loop depth restriction again.
9099 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9101 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9102 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9103 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9104 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9105 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9106 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9107 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9109 2014-07-14 Richard Biener <rguenther@suse.de>
9111 * cgraph.h (decl_in_symtab_p): Make inline.
9113 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9116 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9119 * config/i386/i386.c (classify_argument): Don't merge classes above
9122 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9124 * cgraph.h (symtab_node): Add nonzero_address.
9125 (decl_in_symtab_p): Break out from ...
9126 (symtab_get_node): ... here.
9127 * fold-const.c: Include cgraph.h
9128 (tree_single_nonzero_warnv_p): Use symtab to determine
9129 if symbol is non-zero.
9130 * symtab.c (symtab_node::nonzero_address): New method.
9132 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9134 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9135 forgotten in previous commit.
9137 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9139 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9141 * ipa-devirt.c: Include stor-layout.h and intl.h
9142 (odr_subtypes_equivalent_p): New function.
9143 (warn_odr): New function.
9144 (warn_type_mismatch): New function.
9145 (odr_types_equivalent_p): New function.
9146 (add_type_duplicate): Use it.
9147 * common.opt (Wodr): New flag.
9148 * doc/invoke.texi (Wodr): Document new warning.
9150 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9152 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9153 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9154 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9155 (varpool_get_constructor): Push CTORS_IN timevar.
9156 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9158 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9160 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9161 Remove VOID_FTYPE_PUSHORT.
9162 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9163 Change code to USHORT_FTYPE_VOID.
9164 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9165 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9166 (ix86_atomic_assign_expand_fenv): Update for
9167 __builtin_ia32_fnstsw changes.
9168 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9169 (fnstsw): Change operand 0 to nonimmediate operand.
9171 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9173 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9174 (varpool_get_constructor): New function.
9175 (varpool_ctor_useable_for_folding_p): Break out from ...
9176 (ctor_for_folding): ... here; use varpool_get_constructor.
9177 (varpool_assemble_decl): Likewise.
9178 * lto-streamer.h (struct output_block): Turn cgraph_node
9180 (lto_input_variable_constructor): Declare.
9181 * ipa-visibility.c (function_and_variable_visibility): Use
9182 varpool_get_constructor.
9183 * cgraph.h (varpool_get_constructor): Declare.
9184 (varpool_ctor_useable_for_folding_p): New function.
9185 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9186 parameter; return error_mark_node for non-trivial constructors.
9187 (lto_write_tree_1, DFS_write_tree): Update use of
9188 get_symbol_initial_value.
9189 (output_function): Update initialization of symbol.
9190 (output_constructor): New function.
9191 (copy_function): Rename to ..
9192 (copy_function_or_variable): ... this one; handle vars too.
9193 (lto_output): Output variable sections.
9194 * lto-streamer-in.c (input_constructor): New function.
9195 (lto_read_body): Rename from ...
9196 (lto_read_body_or_constructor): ... this one; handle vars too.
9197 (lto_input_variable_constructor): New function.
9198 * ipa-prop.c (ipa_prop_write_jump_functions,
9199 ipa_prop_write_all_agg_replacement): Update.
9200 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9201 (output_cgraph_opt_summary): Set symbol to NULL.
9203 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9205 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9206 non-polymorphic types.
9207 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9208 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9209 of types is not polymorphic.
9211 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9213 * lra-constraints.c (remove_inheritance_pseudos): Process
9214 destination pseudo too.
9216 2014-07-11 Rong Xu <xur@google.com>
9218 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9221 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9223 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9224 * config/avr/avr-devices.c (AVR_MCU): Same.
9225 (avr_mcu_types): add text start value to end of device list.
9226 * config/avr/avr-mcus.def: Add text section start for all devices.
9227 (ata5782): Add new avr5 device.
9229 * config/avr/avr-tables.opt: Regenerate.
9230 * config/avr/avr.h: Add declaration for text section start handler.
9231 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9233 (LINK_SPEC): Include text section start handler to linker spec.
9234 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9235 pass -Ttext option to linker if the text section start for the device
9237 * config/avr/t-multilib: Regenerate.
9238 * doc/avr-mmcu.texi: Regenerate.
9240 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9242 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9243 * config/rs6000/aix52.h (LINK_SPEC): Same.
9244 * config/rs6000/aix53.h (LINK_SPEC): Same.
9245 * config/rs6000/aix61.h (LINK_SPEC): Same.
9246 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9248 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9250 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9251 (graphite_verify): New function.
9252 (ivs_params_clear): New function.
9253 (gcc_expression_from_isl_ast_expr_id): New function.
9254 (gcc_expression_from_isl_expr_int): New function.
9255 (binary_op_to_tree): New function.
9256 (ternary_op_to_tree): New function.
9257 (unary_op_to_tree): New function.
9258 (nary_op_to_tree): New function.
9259 (gcc_expression_from_isl_expr_op): New function.
9260 (gcc_expression_from_isl_expression): New function.
9261 (graphite_create_new_loop): New function.
9262 (translate_isl_ast_for_loop): New function.
9263 (get_upper_bound): New function.
9264 (graphite_create_new_loop_guard): New function.
9265 (translate_isl_ast_node_for): New function.
9266 (translate_isl_ast): New function.
9267 (add_parameters_to_ivs_params): New function.
9268 (scop_to_isl_ast): New parameter ip.
9269 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9271 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9273 * config/xtensa/predicates.md (call expander): Update for
9274 DECL_SECTION_NAME being string.
9276 2014-07-11 Richard Biener <rguenther@suse.de>
9279 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9280 can be implemented with a single load followed by a single store.
9281 (c_strlen): Only warn when only_value is not 2.
9283 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9285 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9287 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9290 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9291 (*movhi_bytes): Likewise.
9292 (*arm_movqi_insn): Likewise.
9294 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9297 * config/alpha/alpha.c: Include tree-pass.h, context.h
9299 (pass_data_handle_trap_shadows): New pass.
9300 (pass_handle_trap_shadows::gate): New pass gate function.
9301 (make_pass_handle_trap_shadows): New function.
9302 (rest_of_handle_trap_shadows): Ditto.
9304 (alpha_align_insns_1): Rename from alpha_align_insns.
9305 (pass_data_align_insns): New pass.
9306 (pass_align_insns::gate): New pass gate function.
9307 (make_pass_aling_insns): New function.
9308 (rest_of_align_insns): Ditto.
9309 (alpha_align_insns): Ditto.
9311 (alpha_option_override): Declare handle_trap_shadows info
9312 and align_insns_info. Register handle_trap_shadows and align_insns
9314 (alpha_reorg): Do not call alpha_trap_shadows and
9315 alpha_align_insn from here.
9317 (alpha_pad_function_end): Do not skip BARRIERs.
9319 2014-07-10 Rong Xu <xur@google.com>
9321 Add gcov-tool: an offline gcda profile processing tool support.
9322 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9323 (gcov_is_error): Ditto.
9324 (gcov_read_string): Ditto.
9325 (gcov_read_sync): Ditto.
9326 * gcov-io.h: Move counter defines to gcov-counter.def.
9327 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9328 * coverage.c: Ditto.
9329 * gcov-tool.c: Offline gcda profile processing tool.
9330 (unlink_gcda_file): Remove one gcda file.
9331 (unlink_profile_dir): Remove gcda files from the profile path.
9332 (gcov_output_files): Output gcda files to an output dir.
9333 (profile_merge): Merge two profiles in directory.
9334 (print_merge_usage_message): Print merge usage.
9335 (merge_usage): Print merge usage and exit.
9336 (do_merge): Driver for profile merge sub-command.
9337 (profile_rewrite): Rewrite profile.
9338 (print_rewrite_usage_message): Print rewrite usage.
9339 (rewrite_usage): Print rewrite usage and exit.
9340 (do_rewrite): Driver for profile rewrite sub-command.
9341 (print_usage): Print gcov-info usage and exit.
9342 (print_version): Print gcov-info version.
9343 (process_args): Process arguments.
9344 (main): Main routine for gcov-tool.
9345 * Makefile.in: Build and install gcov-tool.
9346 * gcov-counter.def: New file split from gcov-io.h.
9347 * doc/gcc.texi: Include gcov-tool.texi.
9348 * doc/gcov-tool.texi: Document for gcov-tool.
9350 2014-07-10 Richard Biener <rguenther@suse.de>
9352 PR tree-optimization/61757
9353 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9354 (propagate_rhs_into_lhs): Revert part of last change.
9356 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9358 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9361 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9364 * function.c (allocate_struct_function): Revert r188667 change.
9366 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9368 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9370 * doc/install.texi: Remove links to defunct package providers for
9373 2014-07-09 Tom de Vries <tom@codesourcery.com>
9375 * final.c (get_call_fndecl): Declare.
9376 (self_recursive_call_p): New function.
9377 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9379 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9381 * ipa-devirt.c (record_node): Walk through aliases.
9383 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9385 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9387 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9390 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9392 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9394 * ipa-visibility.c (function_and_variable_visibility): Remove
9395 temporary hack disabling local aliases on AIX.
9397 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9399 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9400 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9402 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9404 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9405 * rs6000/rs6000.c: Inline output of .set instruction.
9406 (declare_alias_data): New struct.
9407 (rs6000_declare_alias): New function.
9408 (rs6000_xcoff_declare_function_name): Use it.
9409 (rs6000_xcoff_declare_object_name): New function.
9410 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9411 (ASM_OUTPUT_DEF): Turn to empty definition.
9413 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9416 * hash-table.h: use hash_table::value_type instead of
9417 Descriptor::value_type in the return types of several methods.
9419 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9421 * tree-pass.h (pass_data): Remove has_execute member.
9422 * passes.c (execute_one_pass): Don't check pass->has_execute.
9423 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9424 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9425 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9426 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9427 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9428 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9429 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9430 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9431 gimple-low.c, gimple-ssa-isolate-paths.c,
9432 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9433 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9434 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9435 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9436 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9437 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9438 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9439 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9440 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9441 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9442 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9443 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9444 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9445 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9446 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9447 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9448 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9449 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9450 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9451 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9452 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9453 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9454 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9455 web.c: Remove initializer for pass_data::has_execute.
9457 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9459 * graphite-htab.h: Use hash_map instead of hash_table.
9460 * graphite-clast-to-gimple.c: Adjust.
9461 * passes.c: Use hash_map instead of hash_table.
9463 * sese.h: Remove now unused code.
9465 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9468 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9471 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9473 PR rtl-optimization/61673
9474 * combine.c (simplify_comparison): Test just mode's sign bit
9475 in tmode rather than the sign bit and any bits above it.
9477 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9479 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9480 Add __isl_give to the declaration.
9481 (generate_isl_schedule): Likewise.
9482 (scop_to_isl_ast): Likewise.
9484 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9486 * config/arm/arm.c (cortexa5_extra_costs): New table.
9487 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9489 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9491 PR tree-optimization/61725
9492 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9493 range, use range_includes_zerop_p instead of integer_zerop on
9494 vr0->min, only use log2 of max if min is not negative.
9496 2014-07-08 Richard Biener <rguenther@suse.de>
9498 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9499 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9500 restriction on loop depth difference.
9501 (record_equality): Likewise.
9502 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9503 (loop_depth_of_name): Remove.
9504 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9505 restriction on loop depth difference.
9506 (init_copy_prop): Likewise.
9508 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9510 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9512 (walk_aliased_vdefs): Likewise.
9513 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9514 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9515 (detect_type_change_from_memory_writes): Check if entry was reached.
9517 2014-07-08 Richard Biener <rguenther@suse.de>
9519 PR tree-optimization/61681
9520 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9521 NONLOCAL inside ESCAPED.
9523 2014-07-08 Richard Biener <rguenther@suse.de>
9525 PR tree-optimization/61680
9526 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9527 Handle properly all read-write dependences with group accesses.
9529 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9531 PR tree-optimization/61576
9532 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9533 block containing reduction statement is predecessor of phi basi block.
9535 2014-07-08 Marek Polacek <polacek@redhat.com>
9538 * fold-const.c (round_up_loc): Change the parameter type.
9540 * fold-const.h (round_up_loc): Adjust declaration.
9541 * stor-layout.c (finalize_record_size): Check for too large types.
9543 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9545 * symtab.c: Include calls.h.
9546 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9548 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9550 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9551 little-endian code generation.
9552 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9553 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9554 (spe_evmergehilo): Rename to...
9555 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9556 (spe_evmergelo): Rename to...
9557 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9558 (spe_evmergelohi): Rename to...
9559 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9560 (spe_evmergehi, spe_evmergehilo): New expanders.
9561 (spe_evmergelo, spe_evmergelohi): Likewise.
9562 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9563 (*frob_tf_ti): Likewise.
9564 (*frob_<mode>_di_2): Likewise.
9565 (*frob_tf_di_8_2): Likewise.
9566 (*frob_di_<mode>): Likewise.
9567 (*frob_ti_tf): Likewise.
9568 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9569 (*frob_ti_<mode>_8_2): Likewise.
9570 (*frob_ti_tf_2): Likewise.
9571 (mov_si<mode>_e500_subreg0): Rename to...
9572 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9574 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9575 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9576 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9577 the big endianness only.
9578 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9579 (*mov_si<mode>_e500_subreg0_2): Rename to...
9580 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9581 big big endianness only.
9582 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9583 (*mov_si<mode>_e500_subreg4): Rename to...
9584 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9586 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9587 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9588 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9589 the big endianness only.
9590 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9592 (*mov_si<mode>_e500_subreg4_2): Rename to...
9593 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9595 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9596 (*mov_sitf_e500_subreg8): Rename to...
9597 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9599 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9600 (*mov_sitf_e500_subreg8_2): Rename to...
9601 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9603 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9604 (*mov_sitf_e500_subreg12): Rename to...
9605 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9607 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9608 (*mov_sitf_e500_subreg12_2): Rename to...
9609 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9611 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9613 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9615 * asan.c (instrument_strlen_call): Do not instrument first byte
9616 in strlen if already instrumented.
9618 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9620 * config/arm/arm.opt (mwords-little-endian): Delete.
9621 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9622 of TARGET_LITTLE_WORDS.
9623 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9624 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9626 * doc/invoke.texi: Remove references to -mwords-little-endian.
9628 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9630 * expmed.c (struct init_expmed_rtl): Change all fields but
9631 pow2 and cint from struct rtx_def to rtx.
9632 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9633 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9636 2014-07-06 Marek Polacek <polacek@redhat.com>
9639 * doc/invoke.texi: Document -Wsizeof-array-argument.
9641 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9643 * wide-int.h (wide_int_storage): Change declaration from struct
9646 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9648 * cgraph.c (cgraph_create_indirect_edge): Update call of
9649 get_polymorphic_call_info.
9650 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9651 (possible_polymorphic_call_targets): Add parameter call.
9652 (decl_maybe_in_construction_p): New predicate.
9653 (get_polymorphic_call_info): Add parameter call;
9654 use decl_maybe_in_construction_p.
9655 * gimple-fold.c (fold_gimple_assign): Update use of
9656 possible_polymorphic_call_targets.
9657 (gimple_fold_call): Likewise.
9658 * ipa-prop.c: Inlcude calls.h
9659 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9660 (param_type_may_change_p): New predicate.
9661 (detect_type_change_from_memory_writes): Break out from ...
9662 (detect_type_change): ... this one; use param_type_may_change_p.
9663 (detect_type_change_ssa): Use param_type_may_change_p.
9664 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9666 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9669 * config/arm/arm-protos.h (arm_legitimate_address_p,
9670 arm_is_constant_pool_ref): Add prototypes.
9671 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9672 (arm_is_constant_pool_ref) New function.
9673 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9674 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9675 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9676 operand. Remove pool_range and neg_pool_range attributes.
9677 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9678 pool_range and neg_pool_range attributes.
9679 * config/arm/constraints.md (Uh): New constraint.
9680 (Uq): Don't allow constant pool references.
9682 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9684 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9685 (move_lo_quad_internal_be_<mode>): Likewise.
9686 (move_lo_quad_<mode>): Convert to define_expand.
9687 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9688 (aarch64_simd_move_hi_quad_be_<mode>): New.
9689 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9690 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9691 (aarch64_combinez_be<mode>): New.
9692 (aarch64_combine<mode>): Convert to define_expand.
9693 (aarch64_combine_internal<mode>): New.
9694 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9696 2014-07-04 Tom de Vries <tom@codesourcery.com>
9698 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9699 combination of earlyclobber and read/write modifiers.
9701 2014-07-04 Tom de Vries <tom@codesourcery.com>
9703 * config/aarch64/aarch64-simd.md
9704 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9706 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9709 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9711 2014-07-04 Jakub Jelinek <jakub@redhat.com>
9714 * cgraphunit.c (expand_thunk): Call free_dominance_info.
9716 PR tree-optimization/61684
9717 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9718 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
9720 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9721 Kito Cheng <kito@0xlab.org>
9722 Monk Chiang <sh.chiang04@gmail.com>
9724 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
9725 (nds32_symbol_load_store_p): Move to ...
9726 (nds32_fp_as_gp_check_available): Move to ...
9727 * config/nds32/nds32-fp-as-gp.c: ... here.
9728 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9731 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9732 Kito Cheng <kito@0xlab.org>
9733 Monk Chiang <sh.chiang04@gmail.com>
9735 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
9736 (nds32_expand_store_multiple): Move to ...
9737 (nds32_expand_movmemqi): Move to ...
9738 * config/nds32/nds32-memory-manipulation.c: ... here.
9740 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9741 Kito Cheng <kito@0xlab.org>
9742 Monk Chiang <sh.chiang04@gmail.com>
9744 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
9745 (nds32_output_casesi_pc_relative): Move to ...
9746 (nds32_output_casesi): Move to ...
9747 (nds32_mem_format): Move to ...
9748 (nds32_output_16bit_store): Move to ...
9749 (nds32_output_16bit_load): Move to ...
9750 (nds32_output_32bit_store): Move to ...
9751 (nds32_output_32bit_load): Move to ...
9752 (nds32_output_32bit_load_s): Move to ...
9753 (nds32_output_stack_push): Move to ...
9754 (nds32_output_stack_pop): Move to ...
9755 * config/nds32/nds32-md-auxiliary.c: ... here.
9757 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9758 Ling-Hua Tseng <uranus@tinlans.org>
9760 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
9761 the purpose of this file.
9763 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9764 Kito Cheng <kito@0xlab.org>
9765 Monk Chiang <sh.chiang04@gmail.com>
9767 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
9768 (nds32_address_cost): Move implementation to ...
9769 * config/nds32/nds32-cost.c: ... here.
9770 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
9771 (nds32_address_cost_impl): Declare.
9773 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9774 Kito Cheng <kito@0xlab.org>
9775 Monk Chiang <sh.chiang04@gmail.com>
9777 * config/nds32/nds32.c
9778 (nds32_consecutive_registers_load_store_p): Move to ...
9779 (nds32_valid_multiple_load_store): Move to ...
9780 (nds32_valid_stack_push_pop): Move to ...
9781 (nds32_can_use_bclr_p): Move to ...
9782 (nds32_can_use_bset_p): Move to ...
9783 (nds32_can_use_btgl_p): Move to ...
9784 (nds32_can_use_bitci_p): Move to ...
9785 * config/nds32/nds32-predicates.c: ... here.
9787 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9788 Kito Cheng <kito@0xlab.org>
9789 Monk Chiang <sh.chiang04@gmail.com>
9791 * config/nds32/nds32.c
9792 (nds32_expand_builtin_null_ftype_reg): Move to ...
9793 (nds32_expand_builtin_reg_ftype_imm): Move to ...
9794 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
9795 (nds32_init_builtins): Move implementation to ...
9796 (nds32_expand_builtin): Move implementation to ...
9797 * config/nds32/nds32-intrinsic.c: ... here.
9798 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
9799 (nds32_expand_builtin_impl): Declare.
9801 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9802 Kito Cheng <kito@0xlab.org>
9803 Monk Chiang <sh.chiang04@gmail.com>
9805 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
9806 (nds32_emit_section_tail_template): Move to ...
9807 (nds32_emit_isr_jmptbl_section): Move to ...
9808 (nds32_emit_isr_vector_section): Move to ...
9809 (nds32_emit_isr_reset_conten): Move to ...
9810 (nds32_check_isr_attrs_conflict): Move to ...
9811 (nds32_construct_isr_vectors_information): Move to ...
9812 (nds32_asm_file_start): Move implementation to ...
9813 (nds32_asm_file_end): Move implementation to ...
9814 * config/nds32/nds32-isr.c: ... here.
9815 * config/nds32/nds32-protos.h
9816 (nds32_check_isr_attrs_conflict): Declare.
9817 (nds32_construct_isr_vectors_information): Declare.
9818 (nds32_asm_file_start_for_isr): Declare.
9819 (nds32_asm_file_end_for_isr): Declare.
9821 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9822 Kito Cheng <kito@0xlab.org>
9823 Monk Chiang <sh.chiang04@gmail.com>
9825 * config.gcc (nds32*): Add new modules to extra_objs.
9826 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
9827 (nds32be-*-*): Likewise.
9828 * config/nds32/nds32-cost.c: New file.
9829 * config/nds32/nds32-fp-as-gp.c: New file.
9830 * config/nds32/nds32-intrinsic.c: New file.
9831 * config/nds32/nds32-isr.c: New file.
9832 * config/nds32/nds32-md-auxiliary.c: New file.
9833 * config/nds32/nds32-memory-manipulation.c: New file.
9834 * config/nds32/nds32-pipelines-auxiliary.c: New file.
9835 * config/nds32/nds32-predicates.c: New file.
9836 * config/nds32/t-nds32: New file.
9838 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9840 PR tree-optimization/61682
9841 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
9842 using cases and when one of the operands is equal to 1.
9844 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
9846 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
9847 ashr<mode>3): Correct mode of operands[2].
9848 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
9849 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
9850 Correct mode of operands[2]. Fix split condition.
9852 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
9854 * arm.md (arch): Add armv6_or_vfpv3.
9855 (arch_enabled): Add test for the above.
9856 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
9858 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
9860 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9862 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
9863 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
9864 HWI 1 and negate the unsigned value.
9865 * expmed.c (expand_sdiv_pow2): For modes wider than word always
9866 use AND instead of shift.
9867 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
9869 2014-07-03 Marek Polacek <polacek@redhat.com>
9871 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
9872 (-fsanitize=float-divide-by-zero): Move to the table with
9873 -fsanitize=undefined suboptions.
9874 (-fsanitize=float-cast-overflow): Likewise.
9876 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
9878 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
9879 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
9882 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9884 * loop-invariant.c (struct invariant): Add a new member: eqno;
9885 (find_identical_invariants): Update eqno;
9886 (create_new_invariant): Init eqno;
9887 (get_inv_cost): Compute comp_cost with eqno;
9889 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9891 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
9892 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
9893 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
9894 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
9895 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
9897 2014-07-02 Christian Bruel <christian.bruel@st.com>
9901 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
9902 (make_preds_opaque): Delete.
9903 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
9904 (commit_mode_sets): New function.
9905 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
9906 Process all modes at once.
9907 * basic-block.h (pre_edge_lcm_avs): Declare.
9908 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
9909 Call clear_aux_for_edges. Fix comments.
9910 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
9911 (pre_edge_rev_lcm): Idem.
9912 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
9914 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
9915 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
9917 * config/i386/i386.c (x96_emit_mode_set): Idem.
9918 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
9919 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
9920 (fpscr_toggle) Disallow from delay slot.
9921 * target.def (emit_mode_set): Add prev_mode parameter.
9922 * doc/tm.texi: Regenerate.
9924 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9926 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
9929 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9931 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
9932 vtable_pointer_value_to_vtable): Constify.
9933 (contains_polymorphic_type_p): Declare.
9934 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
9935 vtable_pointer_value_to_vtable): Constify.
9936 (contains_polymorphic_type_p): New predicate.
9937 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
9939 (ipa_set_ancestor_jf): Likewise.
9940 (detect_type_change): Return false in easy cases.
9941 (compute_complex_assign_jump_func): Require type to contain
9943 (compute_known_type_jump_func): Likewise.
9945 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9947 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
9949 (type_in_anonymous_namespace_p): Constify argument.
9950 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
9951 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
9952 (main_odr_variant): New function.
9953 (hash_type_name): Make static; update assert; do not ICE on
9955 (types_same_for_odr): Bring here from tree.c; simplify and remove
9956 old structural comparing code that doesn't work for templates.
9957 (odr_hasher::equal): Update assert.
9958 (add_type_duplicate): Return true when bases should be computed;
9959 replace incomplete loader by complete; do not output duplicated
9960 warnings; do not ICE on non-records; set odr_violated flag.
9961 (get_odr_type): Be ready to replace incomplete type by complete
9962 one; work on ODR variants instead of main variants; reorder item
9963 in array so bases have still smaller indexes.
9964 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
9965 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
9967 2014-07-01 Cary Coutant <ccoutant@google.com>
9969 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
9971 (resolve_addr_in_expr): When replacing the rtx in a location list
9972 entry, get a new address table entry.
9973 (dwarf2out_finish): Call index_location_lists even if there are no
9974 addr_index_table entries yet.
9976 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9978 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
9979 change for not being obvious.
9981 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9983 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
9986 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9988 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
9989 (vcagt_f64): Likewise.
9990 (vcale_f64): Likewise.
9991 (vcaled_f64): Likewise.
9992 (vcales_f32): Likewise.
9993 (vcalt_f64): Likewise.
9994 (vcaltd_f64): Likewise.
9995 (vcalts_f32): Likewise.
9997 2014-07-01 Marek Polacek <polacek@redhat.com>
9999 * doc/invoke.texi: Document -Wint-conversion.
10001 2014-07-01 Marek Polacek <polacek@redhat.com>
10004 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10006 2014-07-01 Martin Liska <mliska@suse.cz>
10008 IPA REF alias refactoring
10009 * cgraph.h (iterate_direct_aliases): New function.
10010 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10011 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10012 FOR_EACH_ALIAS added.
10013 (cgraph_for_node_and_aliases): Likewise.
10014 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10015 * ipa-inline.c (reset_edge_caches): Likewise.
10016 (update_caller_keys): Likewise.
10017 * trans-mem.c (ipa_tm_execute): Likewise.
10018 *varpool.c (varpool_analyze_node): Likewise.
10019 (varpool_for_node_and_aliases): Likewise.
10020 * ipa-ref.h (first_alias): New function.
10021 (last_alias): Likewise.
10022 (has_aliases_p): Likewise.
10023 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10024 is sensitive to IPA_REF_ALIASes.
10025 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10026 are put at the beginning of the list.
10027 (symtab_node::iterate_direct_aliases): New function.
10029 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10032 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10034 (write_ts_type_common_tree_pointers): Do not stream fields not set
10035 for incomplete types; do not stream duplicated fields for variants;
10036 sanity check that variant and type match.
10037 (write_ts_type_non_common_tree_pointers): Likewise.
10038 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10039 TYPE_SIZE whether type is complete.
10040 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10041 write_ts_type_common_tree_pointers
10042 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10044 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10046 * var-tracking.c (add_stores): Return instead of asserting if old
10047 and new values for conditional store are the same.
10049 2014-06-30 Richard Henderson <rth@redhat.com>
10053 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10054 the cfg if there were any changes.
10055 * passes.def: Revert move of peephole2 after reorder_blocks;
10056 move duplicate_computed_gotos before peephole2.
10058 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10060 * except.c (emit_note_eh_region_end): New helper function.
10061 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10062 emit EH_REGION_END note.
10063 * jump.c (cleanup_barriers): Do not split a call and its
10064 corresponding CALL_ARG_LOCATION note.
10066 2014-06-30 Jeff Law <law@redhat.com>
10068 PR tree-optimization/61607
10069 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10070 deeper into the SSA_NAME_VALUE chain.
10072 2014-06-30 Marek Polacek <polacek@redhat.com>
10074 * convert.c (convert_to_integer): Don't instrument conversions if the
10075 function has no_sanitize_undefined attribute.
10076 * ubsan.c: Don't run the ubsan pass if the function has
10077 no_sanitize_undefined attribute.
10079 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10081 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10082 -fsanitize=undefined suboptions.
10084 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10086 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10087 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10088 against bigendian and adjust indices.
10090 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10092 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10094 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10097 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10098 Add alternative; make early clobber. Adjust both split patterns
10099 to use operand 0 as the working register.
10101 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10103 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10104 as ira_object_id_map might be NULL, or 1.
10106 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10108 * loop-invariant.c (get_inv_cost): Handle register class.
10109 (gain_for_invariant): Check the register pressure of the inv
10110 and its overlapped register class, other than all.
10112 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10114 * doc/invoke.texi (Optimize Options): Fix descriptions of
10115 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10117 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10119 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10122 2014-06-29 Tobias Grosser <tobias@grosser.es>
10125 * graphite-isl-ast-to-gimple.c: Add missing guards.
10127 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10129 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10130 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10131 * flag-types.h: Add new enum fgraphite_generator.
10132 * graphite-isl-ast-to-gimple.c: New.
10133 * graphite-isl-ast-to-gimple.h: New.
10134 * graphite.c (graphite_transform_loops): Add choice of Graphite
10135 code generator, which depends on flag_graphite_code_gen.
10137 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10139 * graphite-dependences.c (subtract_commutative_associative_deps):
10140 Add NULL checking of the following variables: must_raw_no_source,
10141 may_raw_no_source, must_war_no_source, may_war_no_source,
10142 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10143 must_war, may_war, must_waw, may_waw.
10145 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10147 * graphite-clast-to-gimple.c: gloog is renamed to
10148 graphite_regenerate_ast_cloog. gloog_error is renamed to
10149 graphite_regenerate_error.
10150 * graphite-clast-to-gimple.h: The definition of the struct
10151 bb_pbb_def is moved to graphite-htab.h.
10152 Add inclusion of the hash-table.h.
10153 * graphite-htab.h: The declaration of the function gloog is moved
10154 to graphite-clast-to-gimple.h and renamed to
10155 graphite_regenerate_ast_cloog.
10156 * graphite.c (graphite_transform_loops): gloog is renamed
10157 to graphite_regenerate_ast_cloog.
10159 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10161 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10163 (write_ts_type_common_tree_pointers): Do not stream fields not set
10164 for incomplete types; do not stream duplicated fields for variants;
10165 sanity check that variant and type match.
10166 (write_ts_type_non_common_tree_pointers): Likewise.
10167 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10168 TYPE_SIZE whether type is complete.
10169 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10170 write_ts_type_common_tree_pointers
10171 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10173 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10175 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10177 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10179 * tree-inline.c (remap_type_1): Do not duplicate fields
10180 that are shared in between type and its main variant.
10182 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10184 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10186 (ipa_set_ancestor_jf) Likewise.
10187 (check_stmt_for_type_change): Check that we work on main variant.
10188 (detect_type_change): Look into main variant.
10189 (compute_known_type_jump_func): Check that main variant has BINFO.
10191 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10193 * ipa-devirt.c (set_type_binfo): New function.
10194 (add_type_duplicate): Use it.
10195 (get_odr_type): Sanity check that binfos points to main variants.
10196 (get_class_context): Be sure the context's outer_type is main variant.
10197 (contains_type_p): Walk main variant.
10198 (get_polymorphic_call_info_for_decl): Set outer_type to be
10200 (get_polymorphic_call_info): Likewise.
10201 (possible_polymorphic_call_targets): Sanity check that we operate
10204 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10206 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10208 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10210 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10211 accidental change due to wide-int branch merge.
10213 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10215 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10216 compressed debug support.
10217 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10218 * configure: Regenerate.
10219 * config.in: Regenerate.
10220 * common.opt (compressed_debug_sections): New enum.
10221 (gz, gz=): New options.
10222 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10223 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10224 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10225 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10226 LINK_COMPRESS_DEBUG_SPEC.
10227 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10228 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10229 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10230 (Debugging Options): Document -gz[=type].
10232 2014-06-27 Martin Jambor <mjambor@suse.cz>
10235 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10236 args_to_skip, use those from node instead. Copy args_to_skip and
10237 combined_args_to_skip from node to the new thunk.
10238 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10239 (cgraph_create_virtual_clone): Moved computation of
10240 combined_args_to_skip...
10241 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10243 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10245 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10246 redundant diagnostic machinary.
10248 2014-06-27 Richard Biener <rguenther@suse.de>
10250 * tree-ssa-math-opts.c (bswap_replace): Fix
10251 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10253 2014-06-27 Martin Liska <mliska@suse.cz>
10255 * gimple.h (gimple_location_safe): New function introduced.
10256 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10257 of gimple_location_safe replaces gimple_location.
10258 (gimple_fold_call): Likewise.
10259 * ipa-devirt.c (ipa_devirt): Likewise.
10260 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10261 * ipa.c (walk_polymorphic_call_targets): Likewise.
10262 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10264 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10266 PR tree-optimization/57233
10267 PR tree-optimization/61299
10268 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10270 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10271 would be lowered to scalar shifts, check if corresponding
10272 shifts and vector BIT_IOR_EXPR are supported and don't lower
10273 or lower just to narrower vector type in that case.
10274 * expmed.c (expand_shift_1): Fix up handling of vector
10275 shifts and rotates.
10277 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10280 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10282 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10284 * doc/invoke.texi (-fsemantic-interposition): Document.
10285 * common.opt (fsemantic-interposition): New flag.
10286 * varasm.c (decl_replaceable_p): Use it.
10288 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10291 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10292 extraction other than index 3.
10294 2014-06-26 Teresa Johnson <tejohnson@google.com>
10296 * doc/invoke.texi: Fix typo.
10297 * dumpfile.c: Add support for documented -fdump-* options
10298 optimized/missed/note/optall.
10300 2014-06-26 Martin Jambor <mjambor@suse.cz>
10302 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10303 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10304 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10305 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10306 * opts.c (default_options_optimization): Set
10307 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10308 * doc/invoke.texi (allow-load-data-races)
10309 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10310 (allow-store-data-races): Document the new default.
10312 2014-06-26 Martin Jambor <mjambor@suse.cz>
10314 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10315 renamed to ipa_impossible_devirt_target. Fix typo.
10316 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10317 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10318 ipa_impossible_devirt_target.
10320 2014-06-26 Richard Biener <rguenther@suse.de>
10322 PR tree-optimization/61607
10323 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10324 explaining why we restrict copies on loop depth.
10325 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10327 (record_equivalences_from_phis): Instead add it here.
10329 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10331 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10332 (LTO_WRAPPER_OBJS): New variable.
10333 (lto-wrapper$(exeext)): Use it.
10334 * collect2.c: Include "collect-utils.h".
10335 (verbose, debug): Remove variables.
10336 (at_file_supplied): No longer static.
10337 (tool_name): New variable.
10338 (do_wait, fork_execute, maybe_unlink): Don't declare.
10339 (tool_cleanup): No longer static.
10340 (notice): Remove function.
10341 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10342 fork_execute calls.
10343 (collect_wait, do_wait, collect_execute): Remove functions.
10344 (maybe_unlink): No longer static.
10345 * collect2.h (verbose, debug): Don't declare.
10346 (at_file_supplied): Declare.
10347 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10349 (collect_execute): Replace with implementation from collect2, plus a
10350 new arg use_atfile. All callers changed.
10351 (collect_wait): Replace with implementation from collect2.
10352 (maybe_unlink_file): Remove function.
10353 (fork_execute): Replace with implementation from collect2, plus a
10354 new arg use_atfile. All callers changed.
10355 (do_wait): Add call to utils_cleanup to the error path.
10356 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10357 (tool_cleanup): Adjust declarations.
10358 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10359 * tlink.c: Include "collect-utils.h".
10360 (tlink_execute): New arg use_atfile. All callers changed.
10361 (tlink_init, tlink_execute): Remove declarations.
10363 * collect-utils.c (save_temps): New variable.
10364 (do_wait): Use it instead of debug. Use fatal_error.
10365 * collect-utils.h (save_temps): Declare.
10366 * collect2.c (verbose): Rename from vflag. All uses changed.
10367 (tool_cleanup): New function, copied from collect_atexit.
10368 (collect_atexit, handler): Just call it.
10369 * collect2.h (verbose): Declaration renamed from vflag.
10370 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10373 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10374 (lto-wrapper$(exeext)): Link with collect-utils.o.
10375 * collect-utils.c: New file.
10376 * collect-utils.h: New file.
10377 * lto-wrapper.c: Include "collect-utils.h".
10378 (args_name): Delete variable.
10379 (tool_name): New variable.
10380 (tool_cleanup): New function.
10381 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10382 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10383 (fork_execute): Remove functions.
10385 2014-06-26 Nick Clifton <nickc@redhat.com>
10387 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10389 * doc/extend.texi (Function Attributes): Fix typo in description
10390 of RX vector attribute.
10392 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10394 * config.gcc (supported_defaults): Error when passing either
10395 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10397 2014-06-26 Richard Biener <rguenther@suse.de>
10399 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10400 propagating volatile pointers.
10402 2014-06-26 Richard Biener <rguenther@suse.de>
10404 PR tree-optimization/61607
10405 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10406 loop if we redirected its latch edge.
10407 (thread_block_1): Do not cancel loops prematurely.
10409 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10411 * toplev.c (backend_init_target): Move init_emit_regs and
10413 (backend_init) ... here; skip ira_init_once and backend_init_target.
10414 (target_reinit) ... and here; clear
10415 this_target_rtl->lang_dependent_initialized.
10416 (lang_dependent_init_target): Clear
10417 this_target_rtl->lang_dependent_initialized;
10418 break out rtl initialization to ...
10419 (initialize_rtl): ... here; call also backend_init_target
10421 * toplev.h (initialize_rtl): New function.
10422 * function.c: Include toplev.h
10423 (init_function_start): Call initialize_rtl.
10424 * rtl.h (target_rtl): Add target_specific_initialized,
10425 lang_dependent_initialized.
10427 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10428 Jakub Jelinek <jakub@redhat.com>
10430 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10432 2014-06-25 Tom de Vries <tom@codesourcery.com>
10434 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10436 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10438 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10439 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10440 Issue a strict overflow warning if appropriate.
10442 2014-06-25 Martin Liska <mliska@suse.cz>
10444 IPA REF refactoring
10445 * Makefile.in: Removed header file (ipa-ref-inline.h).
10446 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10448 (cgraph_speculative_call_info): Likewise.
10449 (cgraph_for_node_thunks_and_aliases): Likewise.
10450 (cgraph_for_node_and_aliases): Likewise.
10451 (verify_cgraph_node): Likewise.
10452 * cgraph.h: Batch of IPA REF functions become member functions of
10453 symtab_node: add_reference, maybe_add_reference, clone_references,
10454 clone_referring, clone_reference, find_reference,
10455 remove_stmt_references, remove_all_references,
10456 remove_all_referring, dump_references, dump_referring,
10457 has_alias_p, iterate_reference, iterate_referring.
10458 * cgraphbuild.c (record_reference): New IPA REF function used.
10459 (record_type_list): Likewise.
10460 (record_eh_tables): Likewise.
10461 (mark_address): Likewise.
10462 (mark_load): Likewise.
10463 (mark_store): Likewise.
10464 (pass_build_cgraph_edges): Likewise.
10465 (rebuild_cgraph_edge): Likewise.
10466 (cgraph_rebuild_references): Likewise.
10467 (pass_remove_cgraph_callee_edges): Likewise.
10468 * cgraphclones.c (cgraph_clone_node): Likewise.
10469 (cgraph_create_virtual_clone): Likewise.
10470 (cgraph_materialize_clone): Likewise.
10471 (cgraph_materialize_all_clones): Likewise.
10472 * cgraphunit.c (cgraph_reset_node): Likewise.
10473 (cgraph_reset_node): Likewise.
10474 (analyze_function): Likewise.
10475 (assemble_thunks_and_aliases): Likewise.
10476 (expand_function): Likewise.
10477 * ipa-comdats.c (propagate_comdat_group): Likewise.
10478 (enqueue_references): Likewise.
10479 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10480 (create_specialized_node): Likewise.
10481 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10482 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10483 * ipa-inline.c (reset_edge_caches): Likewise.
10484 (update_caller_keys): Likewise.
10485 (execute): Likewise.
10486 * ipa-prop.c (remove_described_reference): Likewise.
10487 (propagate_controlled_uses): Likewise.
10488 (ipa_edge_duplication_hook): Likewise.
10489 (ipa_modify_call_arguments): Likewise.
10490 * ipa-pure-const.c (propagate_pure_const): Likewise.
10491 * ipa-ref-inline.h: Header file removed, functions moved
10492 to symtab_node class.
10493 * ipa-ref.c (remove_reference): New class member function.
10494 (cannot_lead_to_return): New class member function.
10495 (referring_ref_list): Likewise.
10496 (referred_ref_list): Likewise.
10497 Rest of functions moved to symtab_node class.
10498 * ipa-ref.h: New member functions remove_reference,
10499 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10501 ipa_ref_list class has new member functions: first_reference,
10502 first_referring, clear, nreferences.
10503 * ipa-reference.c (analyze_function): New IPA REF function used.
10504 (write_node_summary_p): Likewise.
10505 (ipa_reference_write_optimization_summary): Likewise.
10506 * ipa-split.c (split_function): Likewise.
10507 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10508 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10509 (function_and_variable_visibility): Likewise.
10510 * ipa.c (has_addr_references_p): Likewise.
10511 (process_references): Argument type changed.
10512 (symtab_remove_unreachable_nodes): New IPA REF function used.
10513 (process_references): Likewise.
10514 (set_writeonly_bit): Likewise.
10515 * lto-cgraph.c: Implementation of new symtab_node member functions
10516 that uses new IPA REF functions.
10517 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10519 * lto-streamer-out.c (output_symbol_p): Likewise.
10520 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10522 * symtab.c: Implementation of new IPA REF API.
10523 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10524 (ipa_tm_create_version): Likewise.
10525 (ipa_tm_execute): Likewise.
10526 * tree-emutls.c (gen_emutls_addr): Likewise.
10527 * tree-inline.c (copy_bb): Likewise.
10528 (delete_unreachable_blocks_update_callgraph): Likewise.
10529 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10530 (varpool_for_node_and_aliases): Likewise.
10532 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10534 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10536 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10539 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10540 tree_node * instead of tree_node *.
10542 (print_fold_checksum): Likewise.
10543 (fold_check_failed): Likewise.
10544 (debug_fold_checksum): Likewise.
10545 (fold_build1_stat_loc): Likewise.
10546 (fold_build2_stat_loc): Likewise.
10547 (fold_build3_stat_loc): Likewise.
10548 (fold_build_call_array_loc): Likewise.
10550 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10552 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10553 implementation with call to...
10554 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10556 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10559 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10561 PR tree-optimization/57742
10562 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10563 after replacing the statement.
10565 2014-06-25 Nick Clifton <nickc@redhat.com>
10567 * config/v850/v850.c (GHS_default_section_names): Change to const
10569 (GHS_current_section_names): Likewise.
10570 (v850_insert_attributes): Do not build strings, just assign the
10571 names directly. Change the type of 'chosen_section' to const
10573 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10574 directly to the array entry.
10575 * config/v850/v850.h (GHS_default_section_names): Change to const
10577 (GHS_current_section_names): Likewise.
10579 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10581 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10582 (LANG_HOOKS_DECLS): Add it.
10583 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10585 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10586 * langhooks.h (struct lang_hooks_for_decls): Add
10587 omp_clause_linear_ctor hook.
10588 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10589 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10590 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10591 combined simd loop use omp_clause_linear_ctor hook.
10593 2014-06-24 Cong Hou <congh@google.com>
10595 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10596 pattern recognition.
10597 (type_conversion_p): PROMOTION is true if it's a type promotion
10598 conversion, and false otherwise. Return true if the given expression
10599 is a type conversion one.
10600 * tree-vectorizer.h: Adjust the number of patterns.
10601 * tree.def: Add SAD_EXPR.
10602 * optabs.def: Add sad_optab.
10603 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10604 * expr.c (expand_expr_real_2): Likewise.
10605 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10606 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10607 * optabs.c (optab_for_tree_code): Likewise.
10608 * tree-cfg.c (estimate_operator_cost): Likewise.
10609 * tree-ssa-operands.c (get_expr_operands): Likewise.
10610 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10611 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10612 * doc/generic.texi: Add document for SAD_EXPR.
10613 * doc/md.texi: Add document for ssad and usad.
10615 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10617 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10618 qualification in cast.
10620 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10622 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10623 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10624 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10625 (tree_function_decl): ... here.
10626 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10627 streaming of vindex to ...
10628 (write_ts_function_decl_tree_pointers): ... here.
10629 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10630 Do not stream DECL_VINDEX.
10631 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10633 2014-06-24 Catherine Moore <clm@codesourcery.com>
10634 Sandra Loosemore <sandra@codesourcery.com>
10636 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10637 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10638 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10640 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10642 * doc/invoke.texi (Warning Options): Remove duplicated
10643 -Wmaybe-uninitialized.
10645 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10647 PR tree-optimization/57742
10648 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10649 (handle_builtin_malloc, handle_builtin_memset): New functions.
10650 (strlen_optimize_stmt): Call them.
10651 * passes.def: Move strlen after loop+dom but before vrp.
10653 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10656 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10657 model family 6 CPU with has_longmode never use a CPU without
10660 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10663 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10666 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10668 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10669 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10671 * hash-map.h: New file.
10672 * ipa-comdats.c: Use hash_map instead of pointer_map.
10674 * lto-section-out.c: Adjust.
10675 * lto-streamer.h: Replace pointer_map with hash_map.
10676 * symtab.c (verify_symtab): Likewise.
10677 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10678 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10679 * tree-streamer.h: Likewise.
10680 * tree-streamer.c: Adjust.
10681 * pointer-set.h: Remove pointer_map.
10683 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10685 * hash-table.h: Add a template arg to choose between storing values
10686 and storing pointers to values, and then provide partial
10687 specializations for both.
10688 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10689 should store, not the type values should point to.
10690 * tree-into-ssa.c (var_info_hasher): Likewise.
10691 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10692 * tree-complex.c: Adjust.
10693 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10694 table instead of int_tree_map *.
10695 * tree-parloops.c: Adjust.
10696 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10697 type is being stored.
10698 * tree-vectorizer.c: Adjust.
10700 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10702 * hash-table.h: Remove a layer of indirection from hash_table so that
10703 it contains the hash table's data instead of a pointer to the data.
10704 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10705 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10706 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10707 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10708 fold-const.c, gcse.c, ggc-common.c,
10709 gimple-ssa-strength-reduction.c, gimplify.c,
10710 graphite-clast-to-gimple.c, graphite-dependences.c,
10711 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10712 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10713 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10714 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10715 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10716 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10717 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10718 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10719 tree-ssa-live.c, tree-ssa-loop-im.c,
10720 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10721 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10722 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10723 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10724 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10725 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10726 vtable-verify.c, vtable-verify.h: Adjust.
10728 2014-06-24 Richard Biener <rguenther@suse.de>
10730 PR tree-optimization/61572
10731 * tree-ssa-sink.c (statement_sink_location): Do not sink
10732 loads from hard registers.
10734 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10736 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
10737 not mentioned in clauses use private clause if the iterator is
10738 declared in #pragma omp for simd, and when adding lastprivate
10739 instead, add it to the outer #pragma omp for too. Diagnose
10740 if the variable is private in outer context. For simd collapse > 1
10741 loops, replace all iterators with temporaries.
10742 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
10743 same even in collapse > 1 loops.
10745 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
10746 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
10748 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
10749 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
10751 (gimplify_adjust_omp_clauses): Likewise.
10752 * omp-low.c (lower_rec_simd_input_clauses,
10753 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
10754 safelen the same as safelen(1).
10755 * tree-nested.c (convert_nonlocal_omp_clauses,
10756 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
10757 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
10758 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
10759 Fixup handling of GIMPLE_OMP_TARGET.
10760 (convert_tramp_reference_stmt, convert_gimple_call): Handle
10763 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
10765 PR tree-optimization/61554
10766 * tree-ssa-propagate.c: Include "bitmap.h".
10767 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
10768 properly update constructor/destructor.
10769 (substitute_and_fold_dom_walker::before_dom_children):
10770 Remove call to gimple_purge_dead_eh_edges, add bb->index to
10771 need_eh_cleaup instead.
10772 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
10775 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10777 * varpool.c (dump_varpool_node): Dump used_by_single_function.
10778 * tree-pass.h (make_pass_ipa_single_use): New pass.
10779 * cgraph.h (used_by_single_function): New flag.
10780 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
10782 * passes.def (pass_ipa_single_use): Scedule.
10783 * ipa.c (BOTTOM): New macro.
10784 (meet): New function
10785 (propagate_single_user): New function.
10786 (ipa_single_use): New function.
10787 (pass_data_ipa_single_use): New pass.
10788 (pass_ipa_single_use): New pass.
10789 (pass_ipa_single_use::gate): New gate.
10790 (make_pass_ipa_single_use): New function.
10792 2014-06-23 Kai Tietz <ktietz@redhat.com>
10795 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
10796 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
10798 2014-06-23 Richard Biener <rguenther@suse.de>
10800 * tree-ssa-loop.c (gate_loop): New function.
10801 (pass_tree_loop::gate): Call it.
10802 (pass_data_tree_no_loop, pass_tree_no_loop,
10803 make_pass_tree_no_loop): New.
10804 * tree-vectorizer.c: Include tree-scalar-evolution.c
10805 (pass_slp_vectorize::execute): Initialize loops and SCEV if
10807 (pass_slp_vectorize::clone): New method.
10808 * timevar.def (TV_TREE_NOLOOP): New.
10809 * tree-pass.h (make_pass_tree_no_loop): Declare.
10810 * passes.def (pass_tree_no_loop): New pass group with
10813 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
10816 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
10817 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
10819 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10821 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
10822 "yes" where needed.
10824 2014-06-23 Alan Modra <amodra@gmail.com>
10827 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
10828 to zero on debug statements.
10830 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10833 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
10834 Ignore third operand if present by marking qualifier_internal.
10836 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
10838 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
10840 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
10841 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
10842 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
10843 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
10844 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
10845 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
10846 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
10847 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
10848 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
10849 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
10850 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
10851 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
10852 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
10853 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
10854 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
10855 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
10856 logic in GCC vector extensions
10858 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
10859 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
10860 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
10861 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
10862 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
10863 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
10864 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
10865 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
10866 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
10867 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
10869 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
10871 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
10874 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
10875 (vget_low_s64): Use __GET_LOW macro.
10876 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
10877 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
10878 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
10879 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
10880 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
10882 (vcombine_s64): Use GCC vector extensions; remove cast.
10883 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
10884 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
10885 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
10886 Fix type signature; remove cast.
10888 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10891 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
10893 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
10895 (BUILTIN_VD1): New.
10896 (BUILTIN_VD_RE): Remove.
10897 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
10898 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
10899 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
10900 variant but not df.
10901 (vreinterpretv1df*, vreinterpret*v1df): New.
10902 (vreinterpretdf*, vreinterpret*df): Remove.
10903 * config/aarch64/aarch64-simd.md (aarch64_create,
10904 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
10905 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
10907 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
10908 (vcreate_f64): Remove cast, use v1df builtin.
10909 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
10910 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
10911 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
10912 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
10913 vmov_n_f64, vst1_f64): Use gcc vector extensions.
10914 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
10915 add range check using __builtin_aarch64_im_lane_boundsi.
10916 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
10917 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
10918 type signature, use gcc vector extensions.
10919 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
10920 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
10921 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
10922 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
10923 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
10924 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
10925 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
10926 vreinterpret_u64_f64): Use v1df builtin not df.
10928 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10930 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
10933 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10935 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
10938 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10940 * loop-invariant.c (pre_check_invariant_p): New function.
10941 (find_invariant_insn): Call pre_check_invariant_p.
10943 2014-06-22 Richard Henderson <rth@redhat.com>
10946 * compare-elim.c (struct comparison): Add eh_note.
10947 (find_comparison_dom_walker::before_dom_children): Don't eliminate
10948 a redundant comparison in a different EH region. Purge EH edges if
10951 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10953 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
10954 (var_shift): Use it.
10955 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
10956 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10957 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10958 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10959 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10960 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
10961 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
10962 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
10963 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
10964 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
10965 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
10966 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
10967 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
10968 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
10969 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
10970 *rotldi3_internal15be): Use the new attribute. Merge register and
10971 integer alternatives.
10973 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10975 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
10976 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
10977 split, *ashrdi3_internal3 and split): Delete, merge into...
10978 (ashr<mode>3): New expander.
10979 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
10980 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
10982 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10984 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
10985 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
10986 *rotldi3_internal3 and split): Delete, merge into...
10987 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
10988 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
10989 Use "rotlw" extended mnemonic.
10991 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10993 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
10994 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
10995 and split, *ashldi3_internal3 and split): Delete, merge into...
10996 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
10997 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
10999 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11001 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11002 (lshrsi3, two anonymous define_insns and define_splits,
11003 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11004 *lshrdi3_internal3 and split): Delete, merge into...
11005 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11006 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11008 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11010 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11011 Remove "O" alternative.
11013 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11015 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11016 (mips_move_from_gpr_cost): Likewise.
11017 (mips_register_move_cost): Update accordingly.
11018 (mips_secondary_reload_class): Remove name of in_p.
11020 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11023 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11024 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11026 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11028 * config/nios2/nios2.c: Include "builtins.h".
11030 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11032 * cgraph.h (tls_model_names): New variable.
11033 * print-tree.c (print_node): Simplify.
11034 * varpool.c (tls_model_names): New variable.
11035 (dump_varpool_node): Output tls model.
11037 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11039 * ipa-visibility.c (function_and_variable_visibility): Disable
11040 temporarily local aliases for some targets.
11042 2014-06-20 Marek Polacek <polacek@redhat.com>
11044 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11045 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11046 into SANITIZE_UNDEFINED.
11047 * doc/invoke.texi: Describe -fsanitize=bounds.
11048 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11049 functions created in the FEs.
11050 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11051 (expand_UBSAN_BOUNDS): New function.
11052 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11053 * internal-fn.h: Don't define internal functions here.
11054 * opts.c (common_handle_option): Add -fsanitize=bounds.
11055 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11056 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11057 * tree-core.h: Define internal functions here.
11058 (struct tree_base): Add ifn field.
11059 * tree-pretty-print.c: Include "internal-fn.h".
11060 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11061 * tree.c (get_callee_fndecl): Likewise.
11062 (build_call_expr_internal_loc): New function.
11063 * tree.def (CALL_EXPR): Update description.
11064 * tree.h (CALL_EXPR_IFN): Define.
11065 (build_call_expr_internal_loc): Declare.
11066 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11068 (ubsan_type_descriptor): Change bool parameter to enum
11069 ubsan_print_style. Adjust the code. Add handling of
11071 (ubsan_expand_bounds_ifn): New function.
11072 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11073 (ubsan_build_overflow_builtin): Likewise.
11074 (instrument_bool_enum_load): Likewise.
11075 (ubsan_instrument_float_cast): Likewise.
11076 * ubsan.h (enum ubsan_print_style): New enum.
11077 (ubsan_expand_bounds_ifn): Declare.
11078 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11080 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11082 * config/rs6000/rs6000.md: Append `DONE' to preparation
11083 statements of `bswap' pattern splitters.
11085 2014-06-20 Tom de Vries <tom@codesourcery.com>
11087 * target.def (call_fusage_contains_non_callee_clobbers): Update
11089 * doc/tm.texi: Regenerate.
11091 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11092 Max Ostapenko <m.ostapenko@partner.samsung.com>
11095 * asan.c (instrument_strlen_call): Fixed instrumentation of
11098 2014-06-20 Martin Jambor <mjambor@suse.cz>
11101 * ipa-prop.c (impossible_devirt_target): New function.
11102 (try_make_edge_direct_virtual_call): Use it, also instead of
11105 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11106 Max Ostapenko <m.ostapenko@partner.samsung.com>
11109 * asan.c (build_check_stmt): Add condition.
11111 2014-06-20 Martin Jambor <mjambor@suse.cz>
11114 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11117 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11119 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11121 (VCONQ): Make comment more helpful.
11123 * config/aarch64/aarch64-simd.md
11124 (aarch64_sqdmulh_lane<mode>):
11125 Use VCOND for operands 2. Update lane checking and flipping logic.
11126 (aarch64_sqrdmulh_lane<mode>): Likewise.
11127 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11128 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11129 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11130 attribute of operand 3 to VCOND.
11131 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11132 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11133 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11134 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11135 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11136 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11138 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11139 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11140 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11141 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11142 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11143 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11144 operand to VCOND. Update lane flipping and bounds checking logic.
11145 (aarch64_sqdmlal2_lane<mode>): Likewise.
11146 (aarch64_sqdmlsl_lane<mode>): Likewise.
11147 (aarch64_sqdmull_lane<mode>): Likewise.
11148 (aarch64_sqdmull2_lane<mode>): Likewise.
11149 (aarch64_sqdmlal_laneq<mode>):
11150 Replace VCON usage with VCONQ.
11151 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11152 (aarch64_sqdmlal2_laneq<mode>): Emit
11153 aarch64_sqdmlal2_laneq<mode>_internal insn.
11154 Replace VCON with VCONQ.
11155 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11156 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11157 (aarch64_sqdmull_laneq<mode>): Emit
11158 aarch64_sqdmull_laneq<mode>_internal insn.
11159 Replace VCON with VCONQ.
11160 (aarch64_sqdmull2_laneq<mode>): Emit
11161 aarch64_sqdmull2_laneq<mode>_internal insn.
11162 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11163 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11164 of 3rd argument to int16x4_t.
11165 (vqdmlalh_lane_s16): Likewise.
11166 (vqdmlslh_lane_s16): Likewise.
11167 (vqdmull_high_lane_s16): Likewise.
11168 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11169 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11170 (vqdmlsl_lane_s16): Likewise.
11171 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11172 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11173 (vqdmlals_lane_s32): Likewise.
11174 (vqdmlsls_lane_s32): Likewise.
11175 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11176 (vqdmulls_lane_s32): Likewise.
11177 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11178 (vqdmlsl_lane_s32): Likewise.
11179 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11180 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11181 (vqrdmulhh_lane_s16): Likewise.
11182 (vqdmlsl_high_lane_s16): Likewise.
11183 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11184 (vqdmlsl_high_lane_s32): Likewise.
11185 (vqrdmulhs_lane_s32): Likewise.
11187 2014-06-20 Tom de Vries <tom@codesourcery.com>
11189 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11190 get_call_reg_set_usage.
11192 2014-06-20 Tom de Vries <tom@codesourcery.com>
11194 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11195 it contains all call_used_regs.
11197 2014-06-20 Tom de Vries <tom@codesourcery.com>
11199 * final.c (collect_fn_hard_reg_usage): Add and use variable
11200 function_used_regs.
11202 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11204 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11205 (set_init_priority, get_init_priority, set_fini_priority,
11206 get_fini_priority): New methods.
11207 * tree.c (init_priority_for_decl): Remove.
11208 (init_ttree): Do not initialize init priority.
11209 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11210 (decl_priority_info): Remove.
11211 (decl_init_priority_insert): Rewrite.
11212 (decl_fini_priority_insert): Rewrite.
11213 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11214 tree_priority_map_marked_p): Remove.
11215 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11216 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11217 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11218 not output priorities.
11219 (pack_ts_function_decl_value_fields): Likewise.
11220 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11221 not input priorities.
11222 (unpack_ts_function_decl_value_fields): Likewise.
11223 * symtab.c (symbol_priority_map): Declare.
11224 (init_priority_hash): Declare.
11225 (symtab_unregister_node): Unregister from priority hash, too.
11226 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11228 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11229 (symbol_priority_info): New function.
11230 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11232 * tree-core.h (tree_priority_map): Remove.
11234 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11236 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11237 0xff to uint64_t before shifting it up.
11239 2014-06-20 Julian Brown <julian@codesourcery.com>
11240 Chung-Lin Tang <cltang@codesourcery.com>
11242 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11243 TARGET_THUMB1_ONLY. Add comments.
11245 2014-06-19 Tom de Vries <tom@codesourcery.com>
11247 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11248 return type to void.
11249 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11251 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11253 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11254 as "move", from depends_on.
11256 2014-06-19 Terry Guo <terry.guo@arm.com>
11258 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11261 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11263 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11265 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11267 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11270 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11271 addresses here if reload in progress or completed.
11273 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11275 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11276 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11277 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11278 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11279 (mips_register_priority): New function that implements the target
11280 hook TARGET_REGISTER_PRIORITY.
11281 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11282 (mips_lra_p): Likewise for TARGET_LRA_P.
11283 (TARGET_REGISTER_PRIORITY): Define macro.
11284 (TARGET_SPILL_CLASS): Likewise.
11285 (TARGET_LRA_P): Likewise.
11286 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11288 (REG_CLASS_NAMES): Likewise.
11289 (REG_CLASS_CONTENTS): Likewise.
11290 (BASE_REG_CLASS): Use M16_SP_REGS.
11291 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11292 New set attribute to enable alternatives depending on the register
11294 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11295 (*lea64): Disable pattern for MIPS16.
11296 * config/mips/mips.opt (mlra): New option.
11298 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11300 * lra-constraints.c (base_to_reg): New function.
11301 (process_address): Use new function.
11303 2014-06-18 Tom de Vries <tom@codesourcery.com>
11305 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11306 * config/aarch64/aarch64.c
11307 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11308 (aarch64_emit_call_insn): New function.
11309 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11311 * config/aarch64/aarch64.md (define_expand "call_internal")
11312 (define_expand "call_value_internal", define_expand "sibcall_internal")
11313 (define_expand "sibcall_value_internal"): New.
11314 (define_expand "call", define_expand "call_value")
11315 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11316 expand variant and aarch64_emit_call_insn.
11318 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11319 Tom de Vries <tom@codesourcery.com>
11321 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11322 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11324 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11325 clobbers to CALL_INSN_FUNCTION_USAGE.
11326 (define_expand "sibcall_internal")
11327 (define_expand "sibcall_value_internal"): New.
11328 (define_expand "call", define_expand "call_value"): Add argument to
11329 arm_emit_call_insn.
11330 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11331 (define_expand "sibcall_value"): Use sibcall_value_internal and
11332 arm_emit_call_insn.
11334 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11336 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11338 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11340 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11343 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11345 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11346 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11347 annotations. Fix DWARF information.
11349 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11351 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11352 __udivmoddi4, and fixups for negative operands.
11354 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11356 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11358 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11360 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11363 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11365 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11368 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11370 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11371 describing register usage on function entry and exit.
11373 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11375 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11376 (__aeabi_ldivmod): Fix whitespace.
11378 2014-06-18 Andreas Schwab <schwab@suse.de>
11380 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11381 Remove blank line after @item.
11383 2014-06-18 Richard Henderson <rth@redhat.com>
11386 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11388 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11390 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11391 POST_MODIFY for neon loads and stores.
11392 (arm_print_operand): Output post-index register for neon loads and
11395 2014-06-18 Richard Biener <rguenther@suse.de>
11397 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11399 2014-06-18 Richard Biener <rguenther@suse.de>
11401 * tree-pass.h (make_pass_dce_loop): Remove.
11402 * passes.def: Replace pass_dce_loop with pass_dce.
11403 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11404 changed free niter estimates and reset the scev cache.
11405 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11406 make_pass_dce_loop): Remove.
11407 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11408 (fini_copy_prop): Return whether something changed. Always
11409 let substitute_and_fold perform DCE and free niter estimates
11410 and reset the scev cache if so.
11411 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11412 (pass_data_copy_prop): Do not unconditionally schedule
11413 cleanup-cfg or update-ssa.
11415 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11417 PR tree-optimization/61518
11418 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11419 reduction var is used in reduction stmt or phi-function only.
11421 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11423 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11425 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11427 PR tree-optimization/61517
11428 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11429 whose rhs's first tree is the source expression instead of the
11431 (find_bswap_or_nop): Likewise.
11432 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11433 gimple stmt whose rhs's first tree is the source. In the memory source
11434 case, move the stmt to be replaced close to one of the original load to
11435 avoid the problem of a store between the load and the stmt's original
11437 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11440 2014-06-18 Andreas Schwab <schwab@suse.de>
11442 PR rtl-optimization/54555
11443 * postreload.c (move2add_use_add2_insn): Substitute
11444 STRICT_LOW_PART only if it is cheaper.
11446 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11448 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11449 Do not use unspec as call operand. Use memory_operand instead of
11450 memory_nox32_operand and add "m" operand constraint. Disable
11451 pattern for TARGET_X32.
11452 (*sibcall_pop_memory): Ditto.
11453 (*sibcall_value_memory): Ditto.
11454 (*sibcall_value_pop_memory): Ditto.
11455 (sibcall peepholes): Merge SImode and DImode patterns using
11456 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11457 Disable pattern for TARGET_X32. Check if eliminated register is
11458 really dead after call insn. Generate call RTX without unspec operand.
11459 (sibcall_value peepholes): Ditto.
11460 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11461 instead of memory_nox32_operand. Check if eliminated register is
11462 really dead after call insn. Generate call RTX without unspec operand.
11463 (sibcall_value_pop peepholes): Ditto.
11464 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11466 2014-06-18 Terry Guo <terry.guo@arm.com>
11469 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11472 2014-06-18 Olivier Hainque <hainque@adacore.com>
11474 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11475 memorization of the end of block source location.
11476 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11477 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11478 end source location info we have on the block entry/exit code we
11481 2014-06-18 Richard Biener <rguenther@suse.de>
11483 * common.opt (fssa-phiopt): New option.
11484 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11486 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11487 * doc/invoke.texi (-fssa-phiopt): Document.
11489 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11491 * genattrtab.c (n_bypassed): New variable.
11492 (process_bypasses): Initialise n_bypassed.
11493 Count number of bypassed reservations.
11494 (make_automaton_attrs): Allocate space for bypassed reservations
11495 rather than number of bypasses.
11497 2014-06-18 Richard Biener <rguenther@suse.de>
11499 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11500 we propagated anything.
11501 (substitute_and_fold_dom_walker::before_dom_children): Something
11502 changed if we propagated into PHI arguments.
11503 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11506 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11508 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11510 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11511 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11512 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11513 Introduces alternative way of loads group permutaions.
11514 (vect_transform_grouped_load): Try alternative way of permutations.
11516 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11518 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11519 changed in ORT_TARGET region, don't jump to do_outer.
11520 (struct gimplify_adjust_omp_clauses_data): New type.
11521 (gimplify_adjust_omp_clauses_1): Adjust for data being
11522 a struct gimplify_adjust_omp_clauses_data pointer instead
11523 of tree *. Pass pre_p as a new argument to
11524 lang_hooks.decls.omp_finish_clause hook.
11525 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11526 splay_tree_foreach to pass both list_p and pre_p.
11527 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11528 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11529 gimplify_adjust_omp_clauses callers.
11530 * langhooks.c (lhd_omp_finish_clause): New function.
11531 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11532 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11533 * langhooks.h (struct lang_hooks_for_decls): Add a new
11534 gimple_seq * argument to omp_finish_clause hook.
11535 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11536 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11537 (scan_omp_parallel, lower_omp_for): When adding
11538 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11539 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11540 * tree-nested.c (convert_nonlocal_omp_clauses,
11541 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11542 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11544 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11546 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11547 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11549 2014-06-17 Xinliang David Li <davidxl@google.com>
11551 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11552 * passes.c (pass_init_dump_file): Do not set initialize
11553 flag to false unconditionally.
11555 2014-06-17 Richard Biener <rguenther@suse.de>
11557 * genopinit.c (main): Use vec<>::qsort method.
11558 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11560 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11562 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11564 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11565 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11566 (mips_move_to_gpr_cost): Remove ST_REGS case.
11567 (mips_move_from_gpr_cost): Likewise.
11568 (mips_register_move_cost): Likewise.
11569 (mips_secondary_reload_class): Likewise.
11571 2014-06-17 Richard Biener <rguenther@suse.de>
11573 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11574 (pass_all_optimizations): Move 3rd copy-prop pass from after
11575 fre to before ifcombine/phiopt.
11577 2014-06-17 Richard Biener <rguenther@suse.de>
11579 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11580 and allow all blocks to be forwarders.
11582 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11585 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11586 variable 'size'; calculate 'size' right in the front; use
11587 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11588 pcum->aapcs_stack_words.
11590 2014-06-17 Nick Clifton <nickc@redhat.com>
11592 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11593 (umulhi3, mulsidi3, umulsidi3): Likewise.
11595 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11597 PR middle-end/61508
11598 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11599 check for section name.
11601 2014-06-17 Richard Biener <rguenther@suse.de>
11603 * tree-ssa-propagate.c: Include domwalk.h.
11604 (substitute_and_fold): Outline main worker into a domwalker ...
11605 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11606 Schedule stmts we can fully propagate for removal. Remove
11608 (substitute_and_fold): Apply a dominator walk to perform
11609 substitution. Process stmts scheduled for removal here.
11611 2014-06-17 Richard Biener <rguenther@suse.de>
11613 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11614 of PHI node moving.
11616 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11618 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11619 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11620 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11621 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11622 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11624 (get_fpscr) : Likewise.
11626 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11628 PR rtl-optimization/61325
11629 * lra-constraints.c (valid_address_p): Add forward declaration.
11630 (simplify_operand_subreg): Check address validity before and after
11631 alter_reg of memory subreg.
11633 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11635 * config/i386/i386.c (decide_alg): Correctly handle
11636 maximum size of stringop algorithm.
11638 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11640 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11642 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11644 PR rtl-optimization/61522
11645 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11647 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11650 * symtab.c (symtab_node::reset_section): New method.
11651 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11653 * cgraph.h (reset_section): Declare.
11654 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11655 do not consider comdat locals.
11656 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11658 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11659 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11660 reset sections of symbols dragged out of the comdats.
11661 (function_and_variable_visibility): Reset sections of
11664 2014-06-16 Richard Biener <rguenther@suse.de>
11666 PR tree-optimization/61482
11667 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11668 [-INF(OVF), +INF(OVF)] range.
11670 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11672 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11673 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11674 handling 32-bit multiplication.
11676 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11678 PR middle-end/61430
11679 * lra-lives.c (process_bb_lives): Skip creating copy during
11680 insn scan when src/dest has constrained to same regno.
11682 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11684 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11685 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11687 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11689 * asan.c (check_func): New function.
11690 (maybe_create_ssa_name): Likewise.
11691 (build_check_stmt_with_calls): Likewise.
11692 (use_calls_p): Likewise.
11693 (report_error_func): Change interface.
11694 (build_check_stmt): Allow non-integer lengths; add support
11696 (asan_instrument): Likewise.
11697 (instrument_mem_region_access): Moved code to build_check_stmt.
11698 (instrument_derefs): Likewise.
11699 (instrument_strlen_call): Likewise.
11700 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11701 * doc/invoke.texi: Describe new parameter.
11702 * params.def: Define new parameter.
11703 * params.h: Likewise.
11704 * sanitizer.def: Describe new builtins.
11706 2014-06-16 Richard Biener <rguenther@suse.de>
11708 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11709 Make all defs available at the end.
11710 (eliminate): If we remove a PHI node schedule cfg-cleanup.
11712 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11715 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11717 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11720 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11721 initialization. Replace remaining use of uid.
11723 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11725 * c-family/c-common.c (handle_tls_model_attribute): Use
11726 set_decl_tls_model.
11727 * c-family/c-common.c (handle_tls_model_attribute): Use
11728 set_decl_tls_model.
11729 * cgraph.h (struct varpool_node): Add tls_model.
11730 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11731 * tree.h (DECL_TLS_MODEL): Update.
11732 (DECL_THREAD_LOCAL_P): Check that variable is static.
11733 (decl_tls_model): Declare.
11734 (set_decl_tls_model): Declare.
11735 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
11736 set symbol prorperties.
11737 (get_emutls_init_templ_addr): Cleanup.
11738 (new_emutls_decl): Update.
11739 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
11740 (lto_input_varpool_node): Likewise.
11741 * lto-streamer-out.c (hash_tree): Likewise.
11742 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11743 not stream DECL_TLS_MODEL.
11744 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
11745 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
11747 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11749 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
11751 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11753 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
11754 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
11756 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
11757 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
11758 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
11759 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
11760 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
11761 (df_get_artificial_defs, df_get_artificial_uses)
11762 (df_single_def, df_single_use): Update accordingly.
11763 (df_refs_chain_dump): Take the first element in a linked list as
11764 parameter, rather than a pointer to an array of pointers.
11765 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
11766 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
11767 (df_chain_create_bb_process_use): Likewise.
11768 (df_md_bb_local_compute_process_def): Likewise.
11769 * fwprop.c (process_defs, process_uses): Likewise.
11770 (register_active_defs, update_uses): Likewise.
11771 (forward_propagate_asm): Update for new df_ref linking.
11772 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
11773 (df_null_ref_rec, df_null_mw_rec): Likewise.
11774 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
11776 (df_scan_free_bb_info): Remove check for null artificial_defs.
11777 (df_install_ref_incremental): Adjust for new df_ref linking.
11778 Use a single-element insertion rather than a full sort.
11779 (df_ref_chain_delete_du_chain): Take the first element
11780 in a linked list as parameter, rather than a pointer to an array of
11782 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
11783 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
11784 (df_insn_info_delete): Remove check for null defs and call to
11785 df_scan_free_mws_vec.
11786 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
11787 null rather than df_null_*_rec.
11788 (df_insn_rescan_debug_internal): Likewise, and update null
11789 checks in the same way. Remove check for null defs.
11790 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
11791 Move a single element rather doing a full sort.
11792 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
11794 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
11795 Initialize df_ref and df_mw_hardreg lists to null rather than
11797 (df_ref_compare): Take df_refs as parameter, transferring the
11798 old interface to...
11799 (df_ref_ptr_compare): ...this new function.
11800 (df_sort_and_compress_refs): Update accordingly.
11801 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
11802 old interface to...
11803 (df_mw_ptr_compare): ...this new function.
11804 (df_sort_and_compress_mws): Update accordingly.
11805 (df_install_refs, df_install_mws): Return a linked list rather than
11806 an array of pointers.
11807 (df_refs_add_to_chains): Assert that old lists are empty rather
11809 (df_insn_refs_verify): Don't handle null defs speciailly.
11810 * web.c (union_match_dups): Update for new df_ref linking.
11812 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11814 * df.h (df_ref_create, df_ref_remove): Delete.
11815 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
11816 (df_ref_remove): Likewise.
11818 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11820 * df.h (df_single_def, df_single_use): New functions.
11821 * ira.c (find_moveable_pseudos): Use them.
11823 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11825 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
11826 * df-problems.c (df_note_bb_compute): Use it.
11827 * regstat.c (regstat_bb_compute_ri): Likewise.
11829 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11831 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
11832 * cse.c (cse_extended_basic_block): Use them.
11833 * dce.c (mark_artificial_use): Likewise.
11834 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
11835 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11836 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
11837 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
11838 (df_simulate_initialize_backwards): Likewise.
11839 (df_simulate_finalize_backwards): Likewise.
11840 (df_simulate_initialize_forwards): Likewise.
11841 (df_md_simulate_artificial_defs_at_top): Likewise.
11842 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11843 * regrename.c (init_rename_info): Likewise.
11844 * regstat.c (regstat_bb_compute_ri): Likewise.
11845 (regstat_bb_compute_calls_crossed): Likewise.
11847 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11849 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
11850 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
11851 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
11852 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
11853 * combine.c (create_log_links): Likewise.
11854 * compare-elim.c (find_flags_uses_in_insn): Likewise.
11855 (try_eliminate_compare): Likewise.
11856 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
11857 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
11858 (remove_reg_equal_equiv_notes_for_defs): Likewise.
11859 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
11860 (word_dce_process_block, dce_process_block): Likewise.
11861 * ddg.c (def_has_ccmode_p): Likewise.
11862 * df-core.c (df_bb_regno_first_def_find): Likewise.
11863 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
11864 * df-problems.c (df_rd_simulate_one_insn): Likewise.
11865 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11866 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
11867 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
11868 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
11869 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
11870 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
11871 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
11872 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
11873 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11874 * fwprop.c (local_ref_killed_between_p): Likewise.
11875 (all_uses_available_at, free_load_extend): Likewise.
11876 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
11877 * hw-doloop.c (scan_loop): Likewise.
11878 * ifcvt.c (dead_or_predicable): Likewise.
11879 * init-regs.c (initialize_uninitialized_regs): Likewise.
11880 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
11881 (process_bb_node_lives): Likewise.
11882 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
11883 (find_moveable_pseudos): Likewise.
11884 * loop-invariant.c (check_dependencies, record_uses): Likewise.
11885 * recog.c (peep2_find_free_register): Likewise.
11886 * ree.c (get_defs): Likewise.
11887 * regstat.c (regstat_bb_compute_ri): Likewise.
11888 (regstat_bb_compute_calls_crossed): Likewise.
11889 * sched-deps.c (find_inc, find_mem): Likewise.
11890 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
11891 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
11892 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11893 (prepare_shrink_wrap): Likewise.
11894 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
11895 * web.c (union_defs, pass_web::execute): Likewise.
11896 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
11897 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
11899 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
11901 * lra-assign.c (assign_by_spills): Add code to assign vector regs
11902 to inheritance pseudos.
11903 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
11905 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
11908 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
11909 (BU_MISC_2): Rename to ...
11910 (BU_LDBL128_2): ... this.
11911 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
11912 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
11913 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
11914 RS6000_BTM_LDBL128.
11915 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
11916 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
11917 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
11918 (unpacktf_1): Likewise.
11919 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
11920 (__builtin_longdouble_dw1): Likewise.
11921 * doc/sourcebuild.texi (longdouble128): Document.
11923 2014-06-13 Jeff Law <law@redhat.com>
11925 PR rtl-optimization/61094
11926 PR rtl-optimization/61446
11927 * ree.c (combine_reaching_defs): Get the mode for the copy from
11928 the extension insn rather than the defining insn.
11930 2014-06-13 Dehao Chen <dehao@google.com>
11932 * dwarf2out.c (add_linkage_name): Emit more linkage name.
11934 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
11936 * doc/install.texi (--enable-linker-plugin-configure-flags)
11937 (--enable-linker-plugin-flags): Document new flags.
11939 2014-06-13 Martin Jambor <mjambor@suse.cz>
11942 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
11943 cache_token if returning early.
11945 2014-06-13 Nick Clifton <nickc@redhat.com>
11947 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
11948 requested alignment is active.
11949 (LABEL_ALIGN): Likewise.
11950 (LOOP_ALIGN): Likewise.
11952 2014-06-13 Richard Biener <rguenther@suse.de>
11954 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11955 Rewrite to propagate the VN result into all uses where
11956 possible and to remove stmts becoming dead because of that.
11957 (eliminate): Generalize stmt removal handling, remove in
11958 reverse dominator order to support proper debug stmt
11959 generation. Update stmts before removing stmts.
11960 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
11962 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11964 PR tree-optimization/61375
11965 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
11966 symbolic number cannot be represented in an uint64_t.
11967 (find_bswap_or_nop_1): Likewise.
11969 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11971 * symtab.c (symtab_node::reset_section): New method.
11972 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11974 * cgraph.h (reset_section): Declare.
11975 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11976 do not consider comdat locals.
11977 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11979 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11980 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11981 reset sections of symbols dragged out of the comdats.
11982 (function_and_variable_visibility): Reset sections of
11985 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11987 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
11988 to use symtab and decl_binds_to_current_def_p
11989 * tree-vectorizer.c (increase_alignment): Increase alignment
11990 of alias target, too.
11992 2014-06-12 Jakub Jelinek <jakub@redhat.com>
11994 PR middle-end/61486
11995 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
11996 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
11997 if outer combined construct is distribute.
11998 (gimplify_omp_for): For OMP_DISTRIBUTE set
11999 gimplify_omp_ctxp->distribute.
12000 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12001 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12002 mapping into decl map.
12004 2014-06-12 Jason Merrill <jason@redhat.com>
12006 * common.opt (fabi-version): Change default to 0.
12008 2014-06-12 Jason Merrill <jason@redhat.com>
12010 * toplev.c (process_options): Reject -fabi-version=1.
12012 2014-06-12 Jeff Law <law@redhat.com>
12014 PR tree-optimization/61009
12015 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12016 value when we stop processing a block due to problematic PHIs.
12018 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12020 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12021 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12022 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12023 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12024 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12025 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12026 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12027 are not in the spec.
12029 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12032 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12033 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12036 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12038 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12040 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12043 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12044 loading from address spaces.
12046 2014-06-12 Martin Liska <mliska@suse.cz>
12049 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12050 statement is reachable.
12052 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12054 * symtab.c (section_hash): New hash.
12055 (symtab_unregister_node): Clear section before freeing.
12056 (hash_section_hash_entry): New haser.
12057 (eq_sections): New function.
12058 (symtab_node::set_section_for_node): New method.
12059 (set_section_1): Update.
12060 (symtab_node::set_section): Take string instead of tree as parameter.
12061 (symtab_resolve_alias): Update.
12062 * cgraph.h (section_hash_entry_d): New structure.
12063 (section_hash_entry): New typedef.
12064 (cgraph_node): Change comdat_group_ to x_comdat_group,
12065 change section_ to x_section and turn into section_hash_entry;
12066 update accestors; put set_section_for_node offline.
12067 * tree.c (decl_section_name): Turn into string.
12068 (set_decl_section_name): Change parameter to be string.
12069 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12070 * sdbout.c (sdbout_one_type): Update.
12071 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12072 * varasm.c (IN_NAMED_SECTION, get_named_section,
12073 resolve_unique_section, hot_function_section, get_named_text_section,
12074 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12075 make_decl_rtl, default_unique_section): Update.
12076 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12077 (c6x_elf_unique_section): Update.
12078 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12079 * config/pa/pa.c (pa_function_section): Update.
12080 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12081 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12082 * config/arc/arc.c (arc_in_small_data_p): Update.
12083 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12084 * config/mcore/mcore.c (mcore_unique_section): Update.
12085 * config/mips/mips.c (mips16_build_function_stub): Update.
12086 (mips16_build_call_stub): Update.
12087 (mips_function_rodata_section): Update.
12088 (mips_in_small_data_p): Update.
12089 * config/score/score.c (score_in_small_data_p): Update.
12090 * config/rx/rx.c (rx_in_small_data): Update.
12091 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12092 (rs6000_xcoff_asm_named_section): Update.
12093 (rs6000_xcoff_unique_section): Update.
12094 * config/frv/frv.c (frv_string_begins_with): Update.
12095 (frv_in_small_data_p): Update.
12096 * config/v850/v850.c (v850_encode_data_area): Update.
12097 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12098 (bfin_handle_l1_data_attribute): Update.
12099 (bfin_handle_l2_attribute): Update.
12100 * config/mep/mep.c (mep_unique_section): Update.
12101 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12103 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12104 (h8300_handle_tiny_data_attribute): Update.
12105 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12106 (m32r_in_small_data_p): Update.
12107 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12108 * config/i386/i386.c (ix86_in_large_data_p): Update.
12109 * config/i386/winnt.c (i386_pe_unique_section): Update.
12110 * config/darwin.c (darwin_function_section): Update.
12111 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12112 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12113 (new_emutls_decl): Update.
12114 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12115 input_varpool_node): Update.
12116 (ead_string_cst): Turn to ...
12117 (read_string): ... this one.
12118 * dwarf2out.c (secname_for_decl): Update.
12119 * asan.c (asan_protect_global): Update.
12121 2014-06-11 DJ Delorie <dj@redhat.com>
12123 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12125 * config/rx/rx.c (rx_option_override): Likewise.
12126 (rx_align_for_label): Likewise.
12128 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12130 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12132 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12135 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12137 * common.md: New file.
12138 * doc/md.texi: Update description of generic, machine-independent
12140 * config/s390/constraints.md (e): Delete.
12141 * Makefile.in (md_file): Include common.md.
12142 * config/m32c/t-m32c (md_file): Likewise.
12143 * genpreds.c (general_mem): New array.
12144 (generic_constraint_letters): Remove constraints now defined by
12146 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12147 Allow the first character to be '<' or '>' as well.
12148 * genoutput.c (general_mem): New array.
12149 (indep_constraints): Remove constraints now defined by common.md.
12150 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12151 Remove special handling of 'm'.
12152 * ira-costs.c (record_reg_classes): Remove special handling of
12153 constraints now defined by common.md.
12154 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12155 * ira-lives.c (single_reg_class): Likewise.
12156 (ira_implicitly_set_insn_hard_regs): Likewise.
12157 * lra-constraints.c (reg_class_from_constraints): Likewise.
12158 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12159 * postreload.c (reload_cse_simplify_operands): Likewise.
12160 * reload.c (push_secondary_reload, scratch_reload_class)
12161 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12162 * reload1.c (maybe_fix_stack_asms): Likewise.
12163 * targhooks.c (default_secondary_reload): Likewise.
12164 * stmt.c (parse_output_constraint): Likewise.
12165 * recog.c (preprocess_constraints): Likewise.
12166 (constrain_operands, peep2_find_free_register): Likewise.
12167 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12168 must be handled specially.
12170 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12172 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12173 * genpreds.c (have_const_dbl_constraints): Delete.
12174 (add_constraint): Don't set it.
12175 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12176 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12177 constraints using the lookup_constraint logic.
12178 * ira-lives.c (single_reg_class): Likewise.
12179 * ira.c (ira_setup_alts): Likewise.
12180 * lra-constraints.c (process_alt_operands): Likewise.
12181 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12182 * reload.c (find_reloads): Likewise.
12184 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12186 * genpreds.c (const_int_start, const_int_end): New variables.
12187 (choose_enum_order): Output CONST_INT constraints before memory
12189 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12191 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12192 * ira.c (ira_setup_alts): Likewise.
12193 * lra-constraints.c (process_alt_operands): Likewise.
12194 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12195 * reload.c (find_reloads): Likewise.
12197 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12199 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12200 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12201 * recog.c (preprocess_constraints): Update accordingly.
12203 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12205 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12206 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12207 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12208 * genpreds.c (print_type_tree): New function.
12209 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12210 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12211 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12212 Write out enum constraint_type and get_constraint_type.
12213 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12214 constraint_num rather than a constraint string.
12215 (satisfies_address_constraint_p): Likewise.
12216 (reg_class_from_constraints): Avoid old constraint macros.
12217 (process_alt_operands, process_address_1): Likewise.
12218 (curr_insn_transform): Likewise.
12219 * ira-costs.c (record_reg_classes): Likewise.
12220 (record_operand_costs): Likewise.
12221 * ira-lives.c (single_reg_class): Likewise.
12222 (ira_implicitly_set_insn_hard_regs): Likewise.
12223 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12224 * postreload.c (reload_cse_simplify_operands): Likewise.
12225 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12226 (constrain_operands, peep2_find_free_register): Likewise.
12227 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12228 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12229 * reload1.c (maybe_fix_stack_asms): Likewise.
12230 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12231 * targhooks.c (default_secondary_reload): Likewise.
12232 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12233 to EXTRA_CONSTRAINT_STR.
12234 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12236 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12238 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12239 (write_constraint_satisfied_p_array): ...this new function.
12240 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12242 (write_insn_preds_c): Update accordingly.
12244 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12246 * genpreds.c (write_lookup_constraint): Rename to...
12247 (write_lookup_constraint_1): ...this.
12248 (write_lookup_constraint_array): New function.
12249 (write_tm_preds_h): Define lookup_constraint as an inline function
12250 that uses write_lookup_constraint_array where possible.
12251 (write_insn_preds_c): Update for the changes above.
12253 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12255 * doc/md.texi (regclass_for_constraint): Rename to...
12256 (reg_class_for_constraint): ...this.
12257 * genpreds.c (num_constraints, enum_order, register_start)
12258 (register_end, satisfied_start, memory_start, memory_end)
12259 (address_start, address_end): New variables.
12260 (add_constraint): Count the number of constraints.
12261 (choose_enum_order): New function.
12262 (write_enum_constraint_num): Iterate over enum_order.
12263 (write_regclass_for_constraint): Rename to...
12264 (write_reg_class_for_constraint_1): ...this and update output
12266 (write_constraint_satisfied_p): Rename to...
12267 (write_constraint_satisfied_p_1): ...this and update output
12268 accordingly. Do nothing if all extra constraints are register
12270 (write_insn_extra_memory_constraint): Delete.
12271 (write_insn_extra_address_constraint): Delete.
12272 (write_range_function): New function.
12273 (write_tm_preds_h): Define constraint_satisfied_p and
12274 reg_class_for_constraint as inline functions that do a range check
12275 before calling the out-of-line function. Use write_range_function
12276 to implement insn_extra_{register,memory,address}_constraint,
12277 the first of which is new.
12278 (write_insn_preds_c): Update after above changes to write_* functions.
12279 (main): Call choose_enum_order.
12281 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12283 PR tree-optimization/61306
12284 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12285 expression instead of its size.
12286 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12287 false to prevent optimization when the result is unpredictable due to
12288 arithmetic right shift of signed type with highest byte is set.
12289 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12290 (init_symbolic_number): Likewise.
12291 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12292 when the result is unpredictable due to sign extension.
12294 2014-06-11 Terry Guo <terry.guo@arm.com>
12296 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12297 (*thumb1_addsi3): Ditto.
12298 (*thumb_subdi3): Ditto.
12299 (thumb1_subsi3_insn): Ditto.
12300 (*thumb_mulsi3): Ditto.
12301 (*thumb_mulsi3_v6): Ditto.
12302 (*thumb1_andsi3_insn): Ditto.
12303 (thumb1_bicsi3): Ditto.
12304 (*thumb1_iorsi3_insn): Ditto.
12305 (*thumb1_xorsi3_insn): Ditto.
12306 (*thumb1_ashlsi3): Ditto.
12307 (*thumb1_ashrsi3): Ditto.
12308 (*thumb1_lshrsi3): Ditto.
12309 (*thumb1_rotrsi3): Ditto.
12310 (*thumb1_negdi2): Ditto.
12311 (*thumb1_negsi2): Ditto.
12312 (*thumb1_abssi2): Ditto.
12313 (*thumb1_neg_abssi2): Ditto.
12314 (*thumb1_one_cmplsi2): Ditto.
12315 (*thumb1_zero_extendhisi2): Ditto.
12316 (*thumb1_zero_extendqisi2): Ditto.
12317 (*thumb1_zero_extendqisi2_v6): Ditto.
12318 (thumb1_extendhisi2): Ditto.
12319 (thumb1_extendqisi2): Ditto.
12320 (*thumb1_movdi_insn): Ditto.
12321 (*thumb1_movsi_insn): Ditto.
12322 (*thumb1_movhi_insn): Ditto.
12323 (thumb_movhi_clobber): Ditto.
12324 (*thumb1_movqi_insn): Ditto.
12325 (*thumb1_movhf): Ditto.
12326 (*thumb1_movsf_insn): Ditto.
12327 (*thumb_movdf_insn): Ditto.
12328 (movmem12b): Ditto.
12330 (cbranchqi4): Ditto.
12331 (cbranchsi4_insn): Ditto.
12332 (cbranchsi4_scratch): Ditto.
12333 (*negated_cbranchsi4): Ditto.
12334 (*tbit_cbranch): Ditto.
12335 (*tlobits_cbranch): Ditto.
12336 (*tstsi3_cbranch): Ditto.
12337 (*cbranchne_decr1): Ditto.
12338 (*addsi3_cbranch): Ditto.
12339 (*addsi3_cbranch_scratch): Ditto.
12340 (*thumb_cmpdi_zero): Ditto.
12341 (cstoresi_eq0_thumb1): Ditto.
12342 (cstoresi_ne0_thumb1): Ditto.
12343 (*cstoresi_eq0_thumb1_insn): Ditto.
12344 (*cstoresi_ne0_thumb1_insn): Ditto.
12345 (cstoresi_nltu_thumb1): Ditto.
12346 (cstoresi_ltu_thumb1): Ditto.
12347 (thumb1_addsi3_addgeu): Ditto.
12348 (*thumb_jump): Ditto.
12349 (*call_reg_thumb1_v5): Ditto.
12350 (*call_reg_thumb1): Ditto.
12351 (*call_value_reg_thumb1_v5): Ditto.
12352 (*call_value_reg_thumb1): Ditto.
12353 (*call_insn): Ditto.
12354 (*call_value_insn): Ditto.
12355 (thumb1_casesi_internal_pic): Ditto.
12356 (thumb1_casesi_dispatch): Ditto.
12357 (*thumb1_indirect_jump): Ditto.
12358 (prologue_thumb1_interwork): Ditto.
12359 (*epilogue_insns): Ditto.
12360 (consttable_1): Ditto.
12361 (consttable_2): Ditto.
12362 (tablejump): Ditto.
12363 (*thumb1_tablejump): Ditto.
12364 (thumb_eh_return): Ditto.
12365 (define_peephole2): Two of them are thumb1 only and got moved into
12366 new file thumb1.md.
12367 (define_split): Six of them are thumb1 only and got moved into new
12369 * config/arm/thumb1.md: New file comprised of above thumb1 only
12372 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12374 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12375 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12377 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12378 (aarch64_crc_builtin_datum): New struct.
12379 (aarch64_crc_builtin_data): New.
12380 (aarch64_init_crc32_builtins): New function.
12381 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12382 (aarch64_crc32_expand_builtin): New.
12383 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12384 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12385 __ARM_FEATURE_CRC32 when appropriate.
12386 (TARGET_CRC32): Define.
12387 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12388 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12389 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12390 (aarch64_<crc_variant>): New pattern.
12391 * config/aarch64/arm_acle.h: New file.
12392 * config/aarch64/iterators.md (CRC): New int iterator.
12393 (crc_variant, crc_mode): New int attributes.
12394 * doc/aarch64-acle-intrinsics.texi: New file.
12395 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12396 Include aarch64-acle-intrinsics.texi.
12398 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12400 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12401 check for stores group of length 3.
12402 (vect_permute_store_chain): New permutations for stores group of
12404 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12405 of vec_perm_shuffle for the new permutations.
12407 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12409 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12410 table rewriting temporarily on targets not supporting ONE_ONLY.
12412 2014-06-11 Richard Biener <rguenther@suse.de>
12414 PR middle-end/61437
12416 2014-06-04 Richard Biener <rguenther@suse.de>
12418 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12419 TREE_PUBLIC and DECL_EXTERNAL decls.
12421 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12423 * varasm.c (set_implicit_section): New function.
12424 (resolve_unique_section): Use it to set implicit section
12426 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12427 (default_function_section): Likewise.
12428 (decl_binds_to_current_def_p): Constify argument.
12429 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12430 * asan.c (asan_protect_global): Use
12431 symtab_get_node (decl)->implicit_section.
12432 * symtab.c (dump_symtab_base): Dump implicit sections.
12433 (verify_symtab_base): Verify sanity of sectoins and comdats.
12434 (symtab_resolve_alias): Alias share the section of its target.
12435 (set_section_1): New function.
12436 (symtab_node::set_section): Move here, recurse to aliases.
12437 (verify_symtab): Check for duplicated symtab lists.
12438 * tree-core.h (implicit_section_name_p): Remove.
12439 * tree-vect-data-refs.c: Include varasm.h.
12440 (vect_can_force_dr_alignment_p): Fix conditional on when
12441 decl bints to current definition; use
12442 symtab_get_node (decl)->implicit_section.
12443 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12444 * cgraph.h (struct symtab_node): Add implicit_section.
12445 (set_section): Rename to ...
12446 (set_section_for_node): ... this one.
12447 (set_section): Declare.
12448 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12449 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12450 input_overwrite_node, input_varpool_node): Stream implicit_section.
12451 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12452 removal; it will fail in LTO.
12454 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12456 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12457 Change second alternative type to f_mcr.
12458 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12459 and 12th alternatives' types to f_mcr and f_mrc.
12460 (*movdi_aarch64): Same for 12th and 13th alternatives.
12461 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12462 (aarch64_movtilow_tilow): Change type to fmov.
12464 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12466 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12467 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12469 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12471 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12473 (aarch64_sqrdmulh_lane<mode>): Likewise.
12474 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12475 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12476 (aarch64_sqdmulh_laneq<mode>): New expander.
12477 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12478 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12479 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12480 (aarch64_sqdmulh_lane<mode>): New expander.
12481 (aarch64_sqrdmulh_lane<mode>): Likewise.
12482 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12483 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12484 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12485 (aarch64_sqdmlal_laneq<mode>): Likewise.
12486 (aarch64_sqdmlsl_lane<mode>): Likewise.
12487 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12488 (aarch64_sqdmlal2_lane<mode>): Likewise.
12489 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12490 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12491 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12492 (aarch64_sqdmull_lane<mode>): Likewise.
12493 (aarch64_sqdmull_laneq<mode>): Likewise.
12494 (aarch64_sqdmull2_lane<mode>): Likewise.
12495 (aarch64_sqdmull2_laneq<mode>): Likewise.
12497 2014-06-10 Richard Biener <rguenther@suse.de>
12499 PR tree-optimization/61438
12500 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12501 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12502 insertion of IVs if running PRE.
12503 (eliminate): Adjust.
12504 (pass_pre::execute): Likewise.
12505 (pass_fre::execute): Likewise.
12507 2014-06-10 Richard Biener <rguenther@suse.de>
12509 PR middle-end/61456
12510 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12511 Do not use the main variant for the type comparison.
12512 (ncr_compar): Likewise.
12513 (nonoverlapping_component_refs_p): Likewise.
12515 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12517 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12518 REG_CFA_RESTORE mode.
12520 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12522 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12523 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12524 expand_vec_perm_pblendv.
12526 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12528 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12530 Simplify description of __crc32d and __crc32cd intrinsics.
12531 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12534 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12537 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12538 * config.in: Regenerate.
12539 * configure: Likewise.
12541 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12543 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12545 (intersect_static_var_sets): Remove.
12546 (propagate): Do not prune local statics.
12548 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12551 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12552 Set lastprivate_firstprivate even if omp_private_outer_ref
12553 langhook returns true.
12554 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12555 langhook, call unshare_expr on new_var and call
12556 build_outer_var_ref to get the last argument.
12558 2014-06-10 Marek Polacek <polacek@redhat.com>
12561 * doc/extend.texi: Add cindex for transparent_union.
12563 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12565 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12566 init_symbolic_number ().
12568 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12570 PR middle-end/61141
12571 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12572 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12573 (verify_rtl_sharing): Likewise.
12575 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12578 * tree.c (build_qualified_type): Use a canonical type for
12581 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12583 * config/arm/arm-modes.def: Remove XFmode.
12585 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12588 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12589 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12590 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12591 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12592 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12593 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12594 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12595 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12596 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12598 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12600 * tree-core.h (tree_decl_with_vis): Remove section_name.
12602 2014-06-09 Kito Cheng <kito@0xlab.org>
12604 * ira.c (ira): Don't call init_caller_save if LRA enabled
12605 since LRA use its own infrastructure to handle that.
12607 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12609 * symtab.c (dump_symtab_base): Update dumping.
12610 (symtab_make_decl_local): Clear only DECL_COMDAT.
12611 * tree-vect-data-refs.c (Check that variable is static before
12612 tampering with sections.
12613 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12614 (cgraph_create_virtual_clone): Likewise.
12615 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12616 (decl_section_name, set_decl_section_name): New accessors.
12617 (find_decls_types_r): Do not walk section name
12618 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12619 (decl_comdat_group, decl_comdat_group_id): Constify.
12620 (decl_section_name, set_decl_section_name): Update.
12621 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12622 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12623 (cgraph_make_node_local_1): Clear section and comdat group.
12624 * cgraph.h (set_comdat_group): Sanity check.
12625 (get_section, set_section): New.
12626 * ipa-comdats.c (ipa_comdats): Use get_section.
12627 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12628 * lto-streamer-out.c: Do not follow section names.
12629 * c-family/c-common.c (handle_section_attribute): Update.
12630 * lto-cgraph.c (lto_output_node): Output section.
12631 (lto_output_varpool_node): Likewise.
12632 (read_comdat_group): Rename to ...
12633 (read_identifier): ... this one.
12634 (read_string_cst): New function.
12635 (input_node, input_varpool_node): Input section names.
12636 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12637 (new_emutls_decl): Update.
12638 (secname_for_decl): Check section names only of static vars.
12639 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12640 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12641 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12642 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12643 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12644 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12645 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12646 * config/v850/v850.c (v850_insert_attributes): Likewise.
12647 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12649 (h8300_handle_tiny_data_attribute): Likewise.
12650 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12651 (bfin_handle_l2_attribute): Likewise.
12653 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12655 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12656 remove static initializer.
12658 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12660 * varasm.c (use_blocks_for_decl_p): Check symbol table
12661 instead of alias attribute.
12662 (place_block_symbol): Recurse on aliases.
12664 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12666 * ipa-visibility.c: Include varasm.h
12667 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12669 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12671 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12672 outputting aliases.
12674 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12676 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12677 from test_insn into GGC space escape via SET_SRC.
12679 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12681 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12682 call statement, if any.
12683 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12684 statements, if any. Tidy up.
12686 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12689 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12690 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12691 handles swapping the two 64-bit double words on little endian
12692 systems. Include V1TImode and optionally TImode in VSX_LE so that
12693 these types are properly swapped. Change all of the insns and
12694 splits that do the 64-bit swaps to use VSX_LE.
12695 (vsx_le_perm_load_<mode>): Likewise.
12696 (vsx_le_perm_store_<mode>): Likewise.
12697 (splitters for little endian memory operations): Likewise.
12698 (vsx_xxpermdi2_le_<mode>): Likewise.
12699 (vsx_lxvd2x2_le_<mode>): Likewise.
12700 (vsx_stxvd2x2_le_<mode>): Likewise.
12702 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12705 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12706 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12707 and corresponding splitters. Zero extend general register
12708 or memory input operand to XMM temporary. Enable for
12709 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12710 (floatunssi<mode>2): Update expander predicate.
12712 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
12714 PR rtl-optimization/61325
12715 * lra-constraints.c (process_address_1): Check scale equal to one
12716 to prevent transformation: base + scale * index => base + new_reg.
12718 2014-06-06 Richard Biener <rguenther@suse.de>
12720 PR tree-optimization/59299
12721 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12723 (nearest_common_dominator_of_uses): Likewise.
12724 (statement_sink_location): Adjust. Support sinking loads.
12726 2014-06-06 Martin Jambor <mjambor@suse.cz>
12728 * ipa-prop.c (get_place_in_agg_contents_list): New function.
12729 (build_agg_jump_func_from_list): Likewise.
12730 (determine_known_aggregate_parts): Renamed to
12731 determine_locally_known_aggregate_parts. Moved some functionality
12732 to the two functions above, removed bound checks.
12734 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
12736 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
12737 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
12738 (aarch64_progress_pointer): Likewise.
12739 (aarch64_copy_one_part_and_move_pointers): Likewise.
12740 (aarch64_expand_movmen): Likewise.
12741 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
12742 * config/aarch64/aarch64.md (movmem<mode>): New.
12744 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
12746 * targhooks.c (default_add_stmt_cost): Call target specific
12747 hook instead of default one.
12749 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12751 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
12752 endianness instead of host endianness.
12753 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
12756 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12759 * function.c (instantiate_decls): Process the saved static chain.
12760 (expand_function_start): If not optimizing, save the static chain
12762 * tree-nested.c (convert_all_function_calls): Always create the static
12763 chain for nested functions if not optimizing.
12765 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12767 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
12769 2014-06-06 Richard Biener <rguenther@suse.de>
12771 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
12772 (construct_init_block): Likewise.
12773 (construct_exit_block): Likewise.
12774 (pass_expand::execute): Likewise.
12775 * graphite.c (graphite_transforms): Replace check for current_loops
12776 with a check for > 1 loops.
12777 (pass_graphite_transforms::execute): Adjust.
12778 * ipa-split.c (split_function): Remove check for current_loops.
12779 * omp-low.c (expand_parallel_call): Likewise.
12780 (expand_omp_for_init_counts): Likewise.
12781 (extract_omp_for_update_vars): Likewise.
12782 (expand_omp_for_generic): Likewise.
12783 (expand_omp_sections): Likewise.
12784 (expand_omp_target): Likewise.
12785 * tracer.c (tail_duplicate): Likewise.
12786 (pass_tracer::execute): Likewise.
12787 * trans-mem.c (expand_transaction): Likewise.
12788 * tree-complex.c (expand_complex_div_wide): Likewise.
12789 * tree-eh.c (lower_resx): Likewise.
12790 (cleanup_empty_eh_merge_phis): Likewise.
12791 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
12792 current_loops with a check for > 1 loops.
12793 (pass_predcom::execute): Adjust.
12794 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
12795 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
12796 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
12797 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
12798 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12799 * tree-switch-conversion.c (process_switch): Likewise.
12800 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12801 * tree-vrp.c (vrp_visit_phi_node): Likewise.
12802 (execute_vrp): Likewise.
12803 * ubsan.c (ubsan_expand_null_ifn): Likewise.
12805 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12807 * rtl.h (insn_location): Declare.
12808 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
12809 with UNKNOWN_LOCATION.
12810 * emit-rtl.c (insn_location): New function.
12811 * final.c (notice_source_line): Check that the instruction has a
12812 location before retrieving it and use insn_location.
12813 * modulo-sched.c (loop_single_full_bb_p): Likewise.
12814 * print-rtl.c (print_rtx): Likewise.
12816 2014-06-06 Richard Biener <rguenther@suse.de>
12818 * passes.def: Move 2nd VRP pass before phi-only-cprop.
12820 2014-06-06 Christian Bruel <christian.bruel@st.com>
12822 PR tree-optimization/43934
12823 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
12826 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
12828 * ira-lives.c (single_reg_class): Add missing break. Explicitly
12829 return NO_REGS for extra address and memory constraints. Handle
12830 operands that match (or are equivalent to something that matches)
12831 extra constant constraints. Ignore other non-register operands.
12833 2014-06-06 Alan Modra <amodra@gmail.com>
12836 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
12837 * doc/tm.texi: Regenerate.
12838 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
12839 Use throughout in place of REG_PARM_STACK_SPACE.
12840 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
12841 "incoming" param. Pass to rs6000_function_parms_need_stack.
12842 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
12843 prototype_p when incoming. Use function decl when incoming
12844 to handle K&R style functions.
12845 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
12846 (INCOMING_REG_PARM_STACK_SPACE): Define.
12848 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12851 * cfgexpand.c (expand_debug_expr): Use address space of nested
12852 TREE_TYPE for ADDR_EXPR and MEM_REF.
12854 2014-06-05 Jeff Law <law@redhat.com>
12856 PR tree-optimization/61289
12857 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
12858 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
12859 looking for those which match LHS. All callers changed.
12860 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
12861 parameters and code which manipulated them. All callers changed.
12862 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
12863 and DST_MAP parameters. Simplify invalidation code by just calling
12864 invalidate_equivalences. All callers changed.
12865 (thread_across_edge): Simplify now that we don't need to maintain
12866 the map of equivalences to invalidate.
12868 2014-06-05 Kai Tietz <ktietz@redhat.com>
12869 Richard Henderson <rth@redhat.com>
12872 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
12873 checking for !TARGET_X32.
12874 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
12875 (sibcall_intern): New define_insn, plus required peepholes.
12876 (sibcall_pop_intern): Likewise.
12877 (sibcall_value_intern): Likewise.
12878 (sibcall_value_pop_intern): Likewise.
12880 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
12882 * tree-inline.c (tree_function_versioning): Check DF info existence
12883 before accessing it.
12885 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12887 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
12889 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
12890 aarch64_frame hard_fp_offset and frame_size.
12891 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
12892 frame_size; remove original_frame_size.
12893 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
12894 (aarch64_initial_elimination_offset): Remove frame_size and
12895 offset. Use aarch64_frame frame_size.
12897 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12898 Jiong Wang <jiong.wang@arm.com>
12899 Renlin <renlin.li@arm.com>
12901 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
12902 initialization of R30 offset. Update offset. Iterate core
12903 regisers upto X30. Remove X29, X30 specific code.
12905 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12906 Jiong Wang <jiong.wang@arm.com>
12908 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
12909 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
12910 (aarch64_register_saved_on_entry): Adjust test.
12912 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12914 * config/aarch64/aarch64.h (machine_function): Move
12915 saved_varargs_size from here...
12916 (aarch64_frame): ... to here.
12918 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12919 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
12920 (aarch64_initial_elimination_offset)
12921 (aarch64_setup_incoming_varargs): Adjust location of
12922 saved_varargs_size.
12924 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12926 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
12929 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
12930 Prachi Godbole <Prachi.Godbole@imgtec.com>
12932 * config/mips/mips-cpus.def: Add definition for p5600. Updated
12933 mips32r5 entry to use PROCESSOR_P5600.
12934 * config/mips/mips-tables.opt: Regenerate.
12935 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
12936 * config/mips/mips.c (mips_fmadd_bypass): New function.
12937 (mips_rtx_cost_data): Add costs for p5600.
12938 (mips_issue_rate): Add support for p5600.
12939 (mips_multipass_dfa_lookahead): Likewise.
12940 * config/mips/mips.h (TUNE_P5600): New define.
12941 (TUNE_MACC_CHAINS): Add TUNE_P5600.
12942 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
12943 * config/mips/mips.md: Include p5600.md.
12944 (processor): Add p5600.
12945 * config/mips/p5600.md: New file.
12947 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
12949 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
12950 * config/i386/predicates.md (palignr_operand): New.
12951 Indicates if permutation is suitable for palignr instruction.
12953 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
12955 PR tree-optimization/61319
12956 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12957 stmt belongs to loop.
12959 2014-06-05 Richard Biener <rguenther@suse.de>
12961 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
12962 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
12963 (lookup_tmp_var): Adjust.
12964 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
12966 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12968 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
12970 2014-06-05 Marek Polacek <polacek@redhat.com>
12973 * doc/invoke.texi: Document -Wlogical-not-parentheses.
12975 2014-06-04 Tom de Vries <tom@codesourcery.com>
12977 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
12980 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
12982 PR tree-optimization/61385
12983 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
12985 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
12987 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
12988 changed to use fatal_error.
12989 (main): Ensure lto_wrapper_cleanup is run atexit.
12991 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12993 * lra-constraints.c (valid_address_p): Move earlier in file.
12994 (address_eliminator): New structure.
12995 (satisfies_memory_constraint_p): New function.
12996 (satisfies_address_constraint_p): Likewise.
12997 (process_alt_operands, process_address, curr_insn_transform): Use them.
12999 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13001 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13003 (target_lra_int, default_target_lra_int, this_target_lra_int)
13004 (op_alt_data): Delete.
13005 * lra.h (lra_init): Delete.
13006 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13007 (init_insn_code_data_once): Remove op_alt_data handling.
13008 (finish_insn_code_data_once): Likewise.
13009 (init_op_alt_data): Delete.
13010 (get_static_insn_data): Initialize operand_alternative to null.
13011 (free_insn_recog_data): Cast operand_alternative before freeing it.
13012 (setup_operand_alternative): Take the operand_alternative as
13013 parameter and assume it isn't already cached in the static
13015 (lra_set_insn_recog_data): Update accordingly.
13016 (lra_init): Delete.
13017 * ira.c (ira_init): Don't call lra_init.
13018 * target-globals.h (this_target_lra_int): Declare.
13019 (target_globals): Remove lra_int.
13020 (restore_target_globals): Update accordingly.
13021 * target-globals.c: Don't include lra-int.h.
13022 (default_target_globals, save_target_globals): Remove lra_int.
13024 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13026 * recog.h (operand_alternative): Convert reg_class, reject,
13027 matched and matches into bitfields.
13028 (preprocess_constraints): New overload.
13029 (preprocess_insn_constraints): New function.
13030 (preprocess_constraints): Take the insn as parameter.
13031 (recog_op_alt): Change into a pointer.
13032 (target_recog): Add x_op_alt.
13033 * recog.c (asm_op_alt): New variable.
13034 (recog_op_alt): Change into a pointer.
13035 (preprocess_constraints): New overload, replacing the old function
13036 definition with one that doesn't use global state.
13037 (preprocess_insn_constraints): New function.
13038 (preprocess_constraints): Use them. Take the insn as parameter.
13039 Use asm_op_alt for asms.
13040 (recog_init): Free existing x_op_alt entries.
13041 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13043 (make_early_clobber_and_input_conflicts): Likewise.
13044 (process_bb_node_lives): Pass the insn to process_constraints.
13045 * reg-stack.c (check_asm_stack_operands): Likewise.
13046 (subst_asm_stack_regs): Likewise.
13047 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13048 * regrename.c (build_def_use): Likewise.
13049 * sched-deps.c (sched_analyze_insn): Likewise.
13050 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13051 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13052 (note_invalid_constants): Likewise.
13053 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13054 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13057 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13059 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13060 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13062 (make_early_clobber_and_input_conflicts): Likewise.
13063 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13065 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13067 * recog.h (alternative_class): New function.
13068 (which_op_alt): Return a const recog_op_alt.
13069 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13070 (subst_asm_stack_regs): Likewise.
13071 * config/arm/arm.c (note_invalid_constants): Likewise.
13072 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13073 the operand_alternative; use alternative class instead.
13074 * sel-sched.c (get_reg_class): Likewise.
13075 * regrename.c (build_def_use): Likewise.
13076 (hide_operands, restore_operands, record_out_operands): Update type
13079 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13081 * recog.h (recog_op_alt): Convert to a flat array.
13082 (which_op_alt): New function.
13083 * recog.c (recog_op_alt): Convert to a flat array.
13084 (preprocess_constraints): Update accordingly, grouping all
13085 operands of the same alternative together, rather than the
13087 * ira-lives.c (check_and_make_def_conflict): Likewise.
13088 (make_early_clobber_and_input_conflicts): Likewise.
13089 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13090 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13091 (subst_asm_stack_regs): Likewise.
13092 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13093 * regrename.c (hide_operands, record_out_operands): Likewise.
13094 (build_def_use): Likewise.
13095 * sel-sched.c (get_reg_class): Likewise.
13096 * config/arm/arm.c (note_invalid_constants): Likewise.
13098 2014-06-04 Jason Merrill <jason@redhat.com>
13102 * gimplify.c (gimplify_arg): Non-static.
13103 * gimplify.h: Declare it.
13105 2014-06-04 Richard Biener <rguenther@suse.de>
13107 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13108 TREE_PUBLIC and DECL_EXTERNAL decls.
13110 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13112 * regcprop.c (copyprop_hardreg_forward_1): Account for
13113 HARD_REGNO_CALL_PART_CLOBBERED.
13115 2014-06-04 Richard Biener <rguenther@suse.de>
13117 * configure.ac: Check whether the underlying type of int64_t
13118 is long or long long.
13119 * configure: Regenerate.
13120 * config.in: Likewise.
13121 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13122 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13124 2014-06-04 Richard Biener <rguenther@suse.de>
13126 PR tree-optimization/60098
13127 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13129 (dse_optimize_stmt): Simplify, now that we found a kill
13132 2014-06-04 Richard Biener <rguenther@suse.de>
13134 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13135 of accesses with non-invariant address.
13137 2014-06-04 Martin Liska <mliska@suse.cz>
13139 * cgraph.h (cgraph_make_wrapper): New function introduced.
13140 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13141 * ipa-inline.h (inline_analyze_function): The function is global.
13142 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13144 2014-06-04 Martin Liska <mliska@suse.cz>
13146 * tree.h (private_lookup_attribute_starting): New function.
13147 (lookup_attribute_starting): Likewise.
13148 * tree.c (private_lookup_attribute_starting): Likewise.
13150 2014-06-04 Martin Liska <mliska@suse.cz>
13152 * cgraph.h (expand_thunk): New argument added.
13153 (address_taken_from_non_vtable_p): New global function.
13154 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13155 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13156 * cgraphunit.c (analyze_function): Likewise.
13157 (assemble_thunks_and_aliases): Argument added to call.
13158 (expand_thunk): New argument forces to produce GIMPLE thunk.
13160 2014-06-04 Martin Liska <mliska@suse.cz>
13162 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13163 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13164 * profile.c (branch_prob): Likewise.
13166 2014-06-04 Martin Jambor <mjambor@suse.cz>
13169 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13170 handler for switch on an ipa_ref_use enum.
13171 * ipa-reference.c (analyze_function): Likewise.
13173 2014-06-04 Kai Tietz <ktietz@redhat.com>
13175 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13176 from old call-instruction.
13178 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13180 * config/aarch64/aarch64.c (aarch64_classify_address)
13181 (aarch64_legitimize_reload_address): Support full addressing modes
13183 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13184 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13186 2014-06-03 Andrew Pinski <apinski@cavium.com>
13188 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13191 2014-06-03 Andrew Pinski <apinski@cavium.com>
13193 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13194 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13196 2014-06-03 Kai Tietz <ktietz@redhat.com>
13198 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13201 2014-06-03 Dehao Chen <dehao@google.com>
13203 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13206 2014-06-03 Marek Polacek <polacek@redhat.com>
13209 * doc/invoke.texi: Document -Wswitch-bool.
13210 * function.c (stack_protect_epilogue): Cast controlling expression of
13212 * gengtype.c (walk_type): Generate switch expression with its
13213 controlling expression cast to int.
13215 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13217 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13219 * config/avr/avr-tables.opt: Regenerate.
13220 * config/avr/t-multilib: Regenerate.
13221 * doc/avr-mmcu.texi: Regenerate.
13223 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13224 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13226 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13227 (ata6617c, ata664251): Add new avr35 devices.
13228 (ata6612c): Add new avr4 device.
13229 (ata6613c, ata6614q): Add new avr5 devices.
13230 * config/avr/avr-tables.opt: Regenerate.
13231 * config/avr/t-multilib: Regenerate.
13232 * doc/avr-mmcu.texi: Regenerate.
13234 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13236 * gcc/config/aarch64/aarch64-builtins.c
13237 (aarch64_types_binop_ssu_qualifiers): New static data.
13238 (TYPES_BINOP_SSU): Define.
13239 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13240 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13241 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13242 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13243 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13244 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13245 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13246 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13247 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13248 suffix to builtin function name, remove cast.
13249 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13250 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13251 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13253 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13255 * gcc/config/aarch64/aarch64-builtins.c
13256 (aarch64_types_binop_uus_qualifiers,
13257 aarch64_types_shift_to_unsigned_qualifiers,
13258 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13259 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13260 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13261 sqshlu_n, uqshl_n): Update qualifiers.
13262 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13263 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13264 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13265 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13266 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13267 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13268 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13269 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13270 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13271 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13272 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13273 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13274 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13275 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13276 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13277 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13278 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13279 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13280 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13281 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13282 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13283 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13284 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13285 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13286 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13287 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13288 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13290 2014-06-03 Teresa Johnson <tejohnson@google.com>
13292 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13294 2014-06-02 Jason Merrill <jason@redhat.com>
13297 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13299 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13301 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13304 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13306 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13308 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13309 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13310 * config/aarch64/iterators.md (REVERSE): New iterator.
13311 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13312 (rev_op): New int_attribute.
13313 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13314 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13315 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13316 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13317 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13318 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13319 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13320 Replace temporary __asm__ with __builtin_shuffle.
13322 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13324 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13326 * config/mips/mips-tables.opt: Regenerate.
13327 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13328 to use mips_isa_rev rather than ISA_MIPS32R2.
13329 * config/mips/mips.h (ISA_MIPS32R3): New define.
13330 (ISA_MIPS32R5): New define.
13331 (ISA_MIPS64R3): New define.
13332 (ISA_MIPS64R5): New define.
13333 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13334 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13335 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13337 (MIPS_ISA_SYNCI_SPEC): Likewise.
13338 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13339 (LINK_SPEC): Added mips32r3 and mips32r5.
13340 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13341 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13342 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13343 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13344 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13345 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13346 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13348 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13350 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13352 * config/mips/mips.opt (mxpa): New option.
13353 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13356 2014-06-03 Martin Jambor <mjambor@suse.cz>
13359 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13362 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13364 PR tree-optimization/61328
13365 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13366 initialization from find_bswap_or_nop_1.
13367 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13368 in source_expr2 before using the size value the function sets. Also
13369 make use of init_symbolic_number () in both the old place and
13370 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13371 doing recursion in the GIMPLE_BINARY_RHS case.
13373 2014-06-03 Richard Biener <rguenther@suse.de>
13375 PR tree-optimization/61383
13376 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13379 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13381 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13382 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13383 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13384 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13386 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13387 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13388 * system.h: ...here and make it unconditional.
13389 * target.def (conditional_register_usage): Mention
13390 define_register_constraint instead of old-style constraint macros.
13391 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13392 * doc/tm.texi: Regenerate.
13393 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13394 protected by !USE_MD_CONSTRAINTS.
13395 * config/frv/frv.md: Remove quote from old version of documentation.
13396 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13397 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13398 CONST_DOUBLE_OK_FOR_LETTER.
13399 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13401 2014-06-02 Andrew Pinski <apinski@cavium.com>
13403 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13404 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13405 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13406 file whose name depends on -mabi= and -mbig-endian.
13407 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13408 Handle LP64 better and handle ilp32 too.
13409 (MULTILIB_OPTIONS): Delete.
13410 (MULTILIB_DIRNAMES): Delete.
13412 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13414 * expr.h: Remove prototypes of functions defined in builtins.c.
13415 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13416 Remove prototypes of functions defined in builtins.c.
13417 * builtins.h: Update prototype list to include all exported functions.
13418 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13419 no_c99_libc_has_function): Move to targhooks.c
13420 (build_string_literal, build_call_expr_loc_array,
13421 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13423 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13424 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13425 no_c99_libc_has_function): Relocate from builtins.c.
13426 * tree.c: Include builtins.h.
13427 (build_call_expr_loc_array, build_call_expr_loc_vec,
13428 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13430 * fold-const.h (fold_fma): Move prototype to builtins.h.
13431 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13432 * asan.c: Include builtins.h.
13433 * cfgexpand.c: Likewise.
13434 * convert.c: Likewise.
13435 * emit-rtl.c: Likewise.
13436 * except.c: Likewise.
13437 * expr.c: Likewise.
13438 * fold-const.c: Likewise.
13439 * gimple-fold.c: Likewise.
13440 * gimple-ssa-strength-reduction.c: Likewise.
13441 * gimplify.c: Likewise.
13442 * ipa-inline.c: Likewise.
13443 * ipa-prop.c: Likewise.
13444 * lto-streamer-out.c: Likewise.
13445 * stmt.c: Likewise.
13446 * tree-inline.c: Likewise.
13447 * tree-object-size.c: Likewise.
13448 * tree-sra.c: Likewise.
13449 * tree-ssa-ccp.c: Likewise.
13450 * tree-ssa-forwprop.c: Likewise.
13451 * tree-ssa-loop-ivcanon.c: Likewise.
13452 * tree-ssa-loop-ivopts.c: Likewise.
13453 * tree-ssa-math-opts.c: Likewise.
13454 * tree-ssa-reassoc.c: Likewise.
13455 * tree-ssa-threadedge.c: Likewise.
13456 * tree-streamer-in.c: Likewise.
13457 * tree-vect-data-refs.c: Likewise.
13458 * tree-vect-patterns.c: Likewise.
13459 * tree-vect-stmts.c: Likewise.
13460 * config/aarch64/aarch64.c: Likewise.
13461 * config/alpha/alpha.c: Likewise.
13462 * config/arc/arc.c: Likewise.
13463 * config/arm/arm.c: Likewise.
13464 * config/avr/avr.c: Likewise.
13465 * config/bfin/bfin.c: Likewise.
13466 * config/c6x/c6x.c: Likewise.
13467 * config/cr16/cr16.c: Likewise.
13468 * config/cris/cris.c: Likewise.
13469 * config/epiphany/epiphany.c: Likewise.
13470 * config/fr30/fr30.c: Likewise.
13471 * config/frv/frv.c: Likewise.
13472 * config/h8300/h8300.c: Likewise.
13473 * config/i386/i386.c: Likewise.
13474 * config/i386/winnt.c: Likewise.
13475 * config/ia64/ia64.c: Likewise.
13476 * config/iq2000/iq2000.c: Likewise.
13477 * config/lm32/lm32.c: Likewise.
13478 * config/m32c/m32c.c: Likewise.
13479 * config/m32r/m32r.c: Likewise.
13480 * config/m68k/m68k.c: Likewise.
13481 * config/mcore/mcore.c: Likewise.
13482 * config/mep/mep.c: Likewise.
13483 * config/microblaze/microblaze.c: Likewise.
13484 * config/mips/mips.c: Likewise.
13485 * config/mmix/mmix.c: Likewise.
13486 * config/mn10300/mn10300.c: Likewise.
13487 * config/moxie/moxie.c: Likewise.
13488 * config/msp430/msp430.c: Likewise.
13489 * config/nds32/nds32.c: Likewise.
13490 * config/pa/pa.c: Likewise.
13491 * config/pdp11/pdp11.c: Likewise.
13492 * config/picochip/picochip.c: Likewise.
13493 * config/rl78/rl78.c: Likewise.
13494 * config/rs6000/rs6000.c: Likewise.
13495 * config/rx/rx.c: Likewise.
13496 * config/s390/s390.c: Likewise.
13497 * config/score/score.c: Likewise.
13498 * config/sh/sh.c: Likewise.
13499 * config/sparc/sparc.c: Likewise.
13500 * config/spu/spu.c: Likewise.
13501 * config/stormy16/stormy16.c: Likewise.
13502 * config/tilegx/tilegx.c: Likewise.
13503 * config/tilepro/tilepro.c: Likewise.
13504 * config/v850/v850.c: Likewise.
13505 * config/vax/vax.c: Likewise.
13506 * config/xtensa/xtensa.c: Likewise.
13508 2014-06-02 Jeff Law <law@redhat.com>
13510 PR rtl-optimization/61094
13511 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13512 was marked as do_no_reextend. If a copy is needed to eliminate
13513 an extension, then mark it as do_not_reextend.
13515 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13517 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13519 2014-06-02 Richard Henderson <rth@redhat.com>
13522 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13523 addresses inside asms. Use output_operand_lossage instead of
13526 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13529 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13530 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13532 2014-06-02 Tom de Vries <tom@codesourcery.com>
13534 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13535 case that x has VOIDmode.
13537 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13539 * varasm.c (copy_constant): Delete function.
13540 (build_constant_desc): Don't call it.
13542 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13545 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13546 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13547 with immediate_operand.
13549 2014-06-02 Andreas Schwab <schwab@suse.de>
13551 * config/ia64/ia64.c
13552 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13553 pending_data_specs first.
13555 2014-06-02 Richard Biener <rguenther@suse.de>
13557 PR tree-optimization/61378
13558 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13559 valueized_anything.
13561 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13563 * config/i386/constraints.md (Bw): Rename from 'w'.
13564 (Bz): Rename from 'z'.
13565 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13567 2014-06-01 Kai Tietz <ktietz@redhat.com>
13570 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13571 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13572 instead of m constraint.
13574 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13576 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13577 a separate alternative where the scratch operand 2 is marked as
13580 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13582 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13583 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13584 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13585 and __builtins_arm_get_fpscr.
13586 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13587 __builtins_arm_get_fpscr.
13588 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13589 __builtins_arm_ldfpscr.
13590 (arm_atomic_assign_expand_fenv): New function.
13591 * config/arm/vfp.md (set_fpscr): New pattern.
13592 (get_fpscr) : Likewise.
13593 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13595 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13596 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13598 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13600 * asan.c (report_error_func): Add SLOW_P argument, use
13601 BUILT_IN_ASAN_*_N if set.
13602 (build_check_stmt): Likewise.
13603 (instrument_derefs): If T has insufficient alignment,
13604 force same handling as for odd sizes.
13606 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13607 BUILT_IN_ASAN_REPORT_STORE_N): New.
13608 * asan.c (struct asan_mem_ref): Change access_size type to
13610 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13611 update_mem_ref_hash_table): Likewise.
13612 (asan_mem_ref_hasher::hash): Hash in a HWI.
13613 (report_error_func): Change size_in_bytes argument to HWI.
13614 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13616 (build_shadow_mem_access): New function.
13617 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13618 Handle size_in_bytes not power of two or larger than 16.
13619 (instrument_derefs): Don't give up if size_in_bytes is not
13620 power of two or is larger than 16.
13622 2014-05-30 Kai Tietz <ktietz@redhat.com>
13625 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13626 for sibling-tail-calls.
13627 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13629 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13630 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13632 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13634 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13635 * config/avr/avr-tables.opt: Regenerate.
13636 * config/avr/t-multilib: Regenerate.
13637 * doc/avr-mmcu.texi: Regenerate.
13639 2014-05-30 Ian Lance Taylor <iant@google.com>
13641 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13644 2014-05-30 Tom de Vries <tom@codesourcery.com>
13646 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13649 2014-05-30 Tom de Vries <tom@codesourcery.com>
13651 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13652 * lra.c (initialize_lra_reg_info_element): Add init of
13653 actual_call_used_reg_set field.
13654 (lra): Call lra_create_live_ranges before lra_inheritance for
13656 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13658 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13659 instead of call_used_reg_set for -fuse-caller-save.
13660 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13662 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13664 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13666 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13668 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13670 * ira.c (ira_get_dup_out_num): Check for output operands at
13671 the start of the loop. Handle cases where an included alternative
13672 follows an excluded one.
13674 2014-05-29 Mike Stump <mikestump@comcast.net>
13677 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13678 post ld passes when lto is used.
13680 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13682 PR rtl-optimization/61325
13683 * lra-constraints.c (process_address): Rename to process_address_1.
13684 (process_address): New function.
13686 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13688 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13689 TYPES_BINOPV): New static data.
13690 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13692 * config/aarch64/aarch64-simd.md (aarch64_ext,
13693 aarch64_im_lane_boundsi): New patterns.
13694 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13696 (aarch64_evpc_ext): New function.
13698 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13700 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13701 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13702 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13703 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13704 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13706 2014-05-29 Tom de Vries <tom@codesourcery.com>
13708 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13710 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
13711 Richard Sandiford <rdsandiford@googlemail.com>
13713 * arm/iterators.md (shiftable_ops): New code iterator.
13714 (t2_binop0, arith_shift_insn): New code attributes.
13715 * arm/predicates.md (shift_nomul_operator): New predicate.
13716 * arm/arm.md (insn_enabled): Delete.
13717 (enabled): Remove insn_enabled test.
13718 (*arith_shiftsi): Delete. Replace with ...
13719 (*<arith_shift_insn>_multsi): ... new pattern.
13720 (*<arith_shift_insn>_shiftsi): ... new pattern.
13721 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13723 2014-05-29 Radovan Obradovic <robradovic@mips.com>
13724 Tom de Vries <tom@codesourcery.com>
13726 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13727 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13729 (mips_split_call): Use POST_CALL_TMP_REG.
13730 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13732 2014-05-29 Tom de Vries <tom@codesourcery.com>
13734 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
13735 with #ifdef STACK_REGS.
13737 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
13739 * varasm.c (get_variable_section): Walk aliases.
13740 (place_block_symbol): Walk aliases.
13742 2014-05-28 Tom de Vries <tom@codesourcery.com>
13745 2014-05-28 Tom de Vries <tom@codesourcery.com>
13747 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13748 * lra.c (initialize_lra_reg_info_element): Add init of
13749 actual_call_used_reg_set field.
13750 (lra): Call lra_create_live_ranges before lra_inheritance for
13752 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13754 * lra-constraints.c (need_for_call_save_p): Use
13755 actual_call_used_reg_set instead of call_used_reg_set for
13757 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13759 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13761 * doc/md.texi: Document that the % constraint character must
13762 be at the beginning of the string.
13763 * genoutput.c (validate_insn_alternatives): Check that '=',
13764 '+' and '%' only appear at the beginning of a constraint.
13765 * ira.c (commutative_constraint_p): Delete.
13766 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
13767 at the start of the string.
13768 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
13770 * config/arm/neon.md (bicdi3_neon): Likewise.
13771 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
13772 (slt_si, sltu_si): Likewise.
13773 * config/vax/vax.md (sbcdi3): Likewise.
13774 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
13775 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
13776 (mul64): Move '%' to beginning of constraint.
13777 * config/arm/arm.md (*xordi3_insn): Likewise.
13778 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
13779 (xorsi3): Likewise.
13781 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13783 * doc/md.texi: Document the restrictions on the "enabled" attribute.
13785 2014-05-28 Jason Merrill <jason@redhat.com>
13788 * cgraph.h (symtab_node::get_comdat_group_id): New.
13789 * cgraphunit.c (analyze_functions): Call it.
13790 * symtab.c (dump_symtab_node): Likewise.
13791 * tree.c (decl_comdat_group_id): New.
13792 * tree.h: Declare it.
13793 * lto-streamer-out.c (write_symbol): Use it.
13794 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
13796 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13798 PR bootstrap/PR61146
13799 * wide-int.cc: Do not include longlong.h when compiling with clang.
13801 2014-05-28 Richard Biener <rguenther@suse.de>
13803 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
13804 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
13805 (vrp_visit_assignment_or_call): Print less vertical space.
13806 (vrp_visit_stmt): Likewise.
13807 (vrp_visit_phi_node): Likewise. For a PHI argument with
13808 VR_VARYING range consider recording it as copy.
13810 2014-05-28 Richard Biener <rguenther@suse.de>
13813 2014-05-28 Richard Biener <rguenther@suse.de>
13815 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13817 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13819 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
13820 sufficiently aligned and an offset is used at the same time.
13821 (expand_expr_real_1): Likewise.
13823 2014-05-28 Richard Biener <rguenther@suse.de>
13825 PR middle-end/61045
13826 * fold-const.c (fold_comparison): When folding
13827 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
13828 the sign of the remaining constant operand stays the same.
13830 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
13832 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13833 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
13834 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
13836 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
13837 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
13838 (m32bit-doubles) Likewise.
13839 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
13840 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
13843 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13845 * configure.ac ($gcc_cv_ld_clearcap): New test.
13846 * configure: Regenerate.
13847 * config.in: Regenerate.
13848 * config/sol2.opt (mclear-hwcap): New option.
13849 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
13850 * config/sol2-clearcap.map: Moved here from
13851 testsuite/gcc.target/i386/clearcap.map.
13852 * config/sol2-clearcapv2.map: Move here from
13853 gcc.target/i386/clearcapv2.map.
13854 * config/t-sol2 (install): Depend on install-clearcap-map.
13855 (install-clearcap-map): New target.
13856 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
13859 2014-05-28 Richard Biener <rguenther@suse.de>
13861 * hwint.h (*_HALF_WIDE_INT*): Move to ...
13862 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
13863 ... here and remove the rest.
13864 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13866 2014-05-28 Richard Biener <rguenther@suse.de>
13868 PR tree-optimization/61335
13869 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
13870 new range fails, drop to varying.
13872 2014-05-28 Olivier Hainque <hainque@adacore.com>
13874 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
13875 (CPP_SPEC): Add entry for -mcpu=8548.
13876 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
13877 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
13879 2014-05-28 Tom de Vries <tom@codesourcery.com>
13881 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13882 * lra.c (initialize_lra_reg_info_element): Add init of
13883 actual_call_used_reg_set field.
13884 (lra): Call lra_create_live_ranges before lra_inheritance for
13886 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13888 * lra-constraints.c (need_for_call_save_p): Use
13889 actual_call_used_reg_set instead of call_used_reg_set for
13891 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13893 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13894 Tom de Vries <tom@codesourcery.com>
13896 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
13898 (@item -fuse-caller-save): New item.
13900 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13901 Tom de Vries <tom@codesourcery.com>
13903 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
13904 OPT_fuse_caller_save.
13906 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13907 Tom de Vries <tom@codesourcery.com>
13909 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
13910 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
13911 get_call_reg_set_usage.
13912 * resource.c (mark_set_resources, mark_target_live_regs): Use
13913 get_call_reg_set_usage.
13914 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
13916 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
13917 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
13918 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13919 * ira-build.c (ira_create_allocno): Init
13920 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13921 (create_cap_allocno, propagate_allocno_info)
13922 (propagate_some_info_from_allocno)
13923 (copy_info_to_removed_store_destinations): Handle
13924 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13925 * ira-costs.c (ira_tune_allocno_costs): Use
13926 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
13928 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13929 Tom de Vries <tom@codesourcery.com>
13931 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
13932 and function_used_regs_valid fields.
13933 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
13934 find_all_hard_reg_sets.
13935 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
13936 (get_call_reg_set_usage): New function.
13937 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
13938 * regs.h (get_call_reg_set_usage): Declare.
13940 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13943 * config/dbx.h (License): Add Runtime Library Exception.
13944 * config/newlib-stdint.h (License): Same.
13945 * config/rtems.h (License): Same
13946 * config/initfini-array.h (License): Same
13947 * config/v850/v850.h (License): Same.
13948 * config/v850/v850-opts.h (License): Same
13949 * config/v850/rtems.h (License): Same.
13951 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13954 * doc/extend.texi (Local Labels): Note that label differences are
13955 not supported for AVR.
13957 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13958 Olivier Hainque <hainque@adacore.com>
13960 * rtl.h (set_for_reg_notes): Declare.
13961 * emit-rtl.c (set_for_reg_notes): New function.
13962 (set_unique_reg_note): Use it.
13963 * optabs.c (add_equal_note): Likewise
13965 2014-05-27 Andrew Pinski <apinski@cavium.com>
13967 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
13968 Use <w> for the register in assembly template.
13969 (stack_protect_test): Use the mode of operands[0] for the result.
13970 (stack_protect_test_<mode>): Use <w> for the register
13971 in assembly template.
13973 2014-05-27 DJ Delorie <dj@redhat.com>
13975 * config/rx/rx.c (add_vector_labels): New.
13976 (rx_output_function_prologue): Call it.
13977 (rx_handle_func_attribute): Don't require empty arguments.
13978 (rx_handle_vector_attribute): New.
13979 (rx_attribute_table): Add "vector" attribute.
13980 * doc/extend.texi (interrupt, vector): Document new/changed
13981 RX-specific attributes.
13983 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
13985 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13987 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
13988 predicate to detect a negative quotient.
13990 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13992 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
13993 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
13994 Add X - Y CMP 0 to X CMP Y transformation.
13995 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
13997 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
13999 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14002 2014-05-27 Steve Ellcey <sellcey@mips.com>
14004 * config/mips/mips.c: Add include of cgraph.h.
14006 2014-05-27 Richard Biener <rguenther@suse.de>
14008 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14010 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14013 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14014 * config/arm/arm-cores.def (License): Same.
14015 * config/arm/arm-opts.h (License): Same.
14016 * config/arm/aout.h (License): Same.
14017 * config/arm/bpabi.h (License): Same.
14018 * config/arm/elf.h (License): Same.
14019 * config/arm/linux-elf.h (License): Same.
14020 * config/arm/linux-gas.h (License): Same.
14021 * config/arm/netbsd-elf.h (License): Same.
14022 * config/arm/uclinux-eabi.h (License): Same.
14023 * config/arm/uclinux-elf.h (License): Same.
14024 * config/arm/vxworks.h (License): Same.
14026 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14028 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14029 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14030 (arm_init_neon_builtins): Handle NEON_BSWAP.
14031 Define required type nodes.
14032 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14033 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14034 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14035 * config/arm/iterators.md (VDQHSD): New mode iterator.
14037 2014-05-27 Richard Biener <rguenther@suse.de>
14039 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14040 Try using literal operands when comparing value-ranges failed.
14042 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14044 * ira.c (commutative_operand): Adjust for change to recog_data.
14045 [Missing from previous commit.]
14047 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14049 * system.h (TEST_BIT): New macro.
14050 * recog.h (alternative_mask): New type.
14051 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14052 (recog_data_d): Replace alternative_enabled_p array with
14053 enabled_alternatives.
14054 (target_recog): New structure.
14055 (default_target_recog, this_target_recog): Declare.
14056 (get_enabled_alternatives, recog_init): Likewise.
14057 * recog.c (default_target_recog, this_target_recog): New variables.
14058 (get_enabled_alternatives): New function.
14059 (extract_insn): Use it.
14060 (recog_init): New function.
14061 (preprocess_constraints, constrain_operands): Adjust for change to
14063 * postreload.c (reload_cse_simplify_operands): Likewise.
14064 * reload.c (find_reloads): Likewise.
14065 * ira-costs.c (record_reg_classes): Likewise.
14066 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14067 all alternatives after a disabled one would be skipped.
14068 (ira_implicitly_set_insn_hard_regs): Likewise.
14069 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14070 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14071 with enabled_alternatives.
14072 * lra.c (free_insn_recog_data): Update accordingly.
14073 (lra_update_insn_recog_data): Likewise.
14074 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14075 * lra-constraints.c (process_alt_operands): Likewise. Handle
14076 only_alternative as part of the enabled mask.
14077 * target-globals.h (this_target_recog): Declare.
14078 (target_globals): Add a recog field.
14079 (restore_target_globals): Restore this_target_recog.
14080 * target-globals.c: Include recog.h.
14081 (default_target_globals): Initialize recog field.
14082 (save_target_globals): Likewise.
14083 * reginfo.c (reinit_regs): Call recog_init.
14084 * toplev.c (backend_init_target): Likewise.
14086 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14088 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14089 rather than any named insn's code.
14091 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14094 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14095 * config/arm/arm-cores.def (License): Same.
14097 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14099 * tree.h (decl_comdat_group): Declare.
14100 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14101 * tree.c (decl_comdat_group): Here.
14103 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14105 PR rtl-optimization/61222
14106 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14107 the shift, truncate the PLUS operand to the result mode.
14109 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14112 * config/i386/i386.c (ix86_rtx_costs)
14113 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14116 2014-05-26 Martin Jambor <mjambor@suse.cz>
14118 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14121 2014-05-26 Richard Biener <rguenther@suse.de>
14123 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14124 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14125 Provide specializations.
14126 (wi::int_traits <HOST_WIDE_INT>,
14127 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14129 2014-05-26 Alan Modra <amodra@gmail.com>
14132 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14133 params and return a bool. Remove dead code. Update comment.
14134 Assert we have a const_int source. Remove bogus code from
14135 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14136 handling of constants > 2G and reg_equal note, from..
14137 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14138 return value. Update comment. If we can, use a new pseudo
14139 for intermediate calculations.
14140 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14142 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14143 call to rs6000_emit_set_const in splitter.
14144 (movdi_internal64+2, +3): Likewise.
14146 2014-05-26 Richard Biener <rguenther@suse.de>
14148 * system.h: Define __STDC_FORMAT_MACROS before
14149 including inttypes.h.
14150 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14151 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14152 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14153 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14154 HOST_WIDEST_INT_C): Remove.
14155 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14156 if C99 inttypes.h is not available.
14157 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14158 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14159 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14160 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14161 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14162 (struct output_info): Likewise.
14163 (print_statistics): Adjust.
14164 (dump_bitmap_statistics): Likewise.
14165 * bt-load.c (migrate_btr_defs): Print with PRId64.
14166 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14167 (MAX_SAFE_MULTIPLIER): Adjust.
14168 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14169 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14170 dump_cgraph_node): Likewise.
14171 * final.c (dump_basic_block_info): Likewise.
14172 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14173 * gcov.c (format_gcov): Likewise.
14174 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14176 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14177 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14178 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14179 Use PRId64 for dumping.
14180 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14181 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14182 (add_allocno_hard_regs): Adjust.
14183 * loop-doloop.c (doloop_modify): Print using PRId64.
14184 * loop-iv.c (inverse): Compute in uint64_t.
14185 (determine_max_iter, iv_number_of_iterations): Likewise.
14186 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14187 Print using PRId64.
14188 * lto-streamer-out.c (write_symbol): Use uint64_t.
14189 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14190 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14191 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14192 * modulo-sched.c (const_iteration_count): Use int64_t.
14193 (sms_schedule): Dump using PRId64.
14194 * predict.c (dump_prediction): Likewise.
14195 * pretty-print.h (pp_widest_integer): Remove.
14196 * profile.c (get_working_sets, is_edge_inconsistent,
14197 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14198 * tree-pretty-print.c (pp_double_int): Remove case handling
14199 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14200 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14202 (pass_optimize_bswap::execute): Remove restriction on hosts.
14203 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14204 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14205 * tree.c (widest_int_cst_value): Remove.
14206 * tree.h (widest_int_cst_value): Likewise.
14207 * value-prof.c (dump_histogram_value): Print using PRId64.
14208 * gengtype.c (main): Also inject int64_t.
14209 * ggc-page.c (struct max_alignment): Use int64_t.
14210 * alloc-pool.c (struct allocation_object_def): Likewise.
14211 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14213 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14214 * doc/tm.texi: Regenerated.
14215 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14216 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14217 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14218 mmix_output_register_setting): Use [u]int64_t in prototypes.
14219 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14220 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14221 mmix_output_octa, mmix_output_shifted_value): Adjust.
14222 (mmix_intval): Adjust. Remove unreachable case.
14223 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14225 2014-05-26 Richard Biener <rguenther@suse.de>
14227 * configure.ac: Drop __int64 type check. Insist that we
14228 found uint64_t and int64_t.
14229 * hwint.h (HOST_BITS_PER___INT64): Remove.
14230 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14231 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14232 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14233 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14234 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14235 for dst_q_src_df_rms_cdt.
14236 * configure: Regenerate.
14237 * config.in: Likewise.
14239 2014-05-26 Michael Tautschnig <mt@debian.org>
14242 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14243 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14245 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14247 PR rtl-optimization/61278
14248 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14250 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14252 PR rtl-optimization/61220
14253 Part of PR rtl-optimization/61225
14254 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14255 insn; skip split_edge for a block with only one successor.
14257 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14259 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14262 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14264 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14265 (update_vtable_references): New function.
14266 (function_and_variable_visibility): Rewrite also vtable initializers.
14267 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14269 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14271 * ggc.h (ggc_grow): New function.
14272 * ggc-none.c (ggc_grow): New function.
14273 * ggc-page.c (ggc_grow): Likewise.
14275 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14277 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14278 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14279 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14280 varpool_externally_visible_p, can_replace_by_local_alias,
14281 update_visibility_by_resolution_info, function_and_variable_visibility,
14282 pass_data_ipa_function_and_variable_visibility,
14283 make_pass_ipa_function_and_variable_visibility,
14284 whole_program_function_and_variable_visibility,
14285 pass_data_ipa_whole_program_visibility,
14286 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14287 * cgraph.h (cgraph_local_node_p): Declare.
14288 * ipa-visibility.c: New file.
14289 * Makefile.in (OBJS): Add ipa-visiblity.o
14291 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14293 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14294 that var decl is available.
14296 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14298 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14299 symtab_node pointer.
14300 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14301 (find_decls_types_r): Do not walk COMDAT_GROUP.
14302 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14303 * varasm.c (make_decl_one_only): Use set_comdat_group;
14304 create node if needed.
14305 * ipa-inline-transform.c (save_inline_function_body): Update
14306 way we decl->symtab mapping.
14307 * symtab.c (symtab_hash, hash_node, eq_node
14308 symtab_insert_node_to_hashtable): Remove.
14309 (symtab_register_node): Update.
14310 (symtab_unregister_node): Update.
14311 (symtab_get_node): Reimplement as inline function.
14312 (symtab_add_to_same_comdat_group): Update.
14313 (symtab_dissolve_same_comdat_group_list): Update.
14314 (dump_symtab_base): Update.
14315 (verify_symtab_base): Update.
14316 (symtab_make_decl_local): Update.
14317 (fixup_same_cpp_alias_visibility): Update.
14318 (symtab_nonoverwritable_alias): Update.
14319 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14320 * ipa.c (update_visibility_by_resolution_info): UPdate.
14321 * bb-reorder.c: Include cgraph.h
14322 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14323 with comdat groups.
14324 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14325 * cgraph.c (cgraph_get_create_node): Update.
14326 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14328 (symtab_get_node): Make inline.
14329 (symtab_insert_node_to_hashtable): Remove.
14330 (symtab_can_be_discarded): Update.
14331 (decl_comdat_group): New function.
14332 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14334 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14336 (read_comdat_group): New function.
14337 (input_node, input_varpool_node): Use it.
14338 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14340 * mips.c (mips_start_unique_function): Likewise.
14341 (ix86_code_end): Likewise.
14342 (rs6000_code_end): Likweise.
14343 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14345 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14347 * gengtype-state.c (fatal_reading_state): Bring offline.
14348 * optabs.c (widening_optab_handler): Bring offline.
14349 * optabs.h (widening_optab_handler): Likewise.
14350 * final.c (get_attr_length_1): Likewise.
14352 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14354 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14356 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14358 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14359 (ppc440-compare): Include shift with dot.
14360 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14361 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14363 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14365 (e6500_sfx2): Include it.
14366 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14367 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14368 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14369 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14370 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14371 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14372 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14373 *lshiftrt_internal1le, *lshiftrt_internal1be,
14374 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14375 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14376 *rotldi3_internal10le, *rotldi3_internal10be,
14377 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14378 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14379 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14380 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14381 define_insns): Use type "shift" in the appropriate alternatives.
14383 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14385 * config/rs6000/rs6000.md (type): Add "logical". Delete
14387 (dot): Adjust comment.
14388 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14389 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14390 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14391 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14392 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14393 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14394 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14395 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14397 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14398 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14399 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14400 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14401 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14402 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14403 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14404 * config/rs6000/8540.md (ppc8540_su): Adjust.
14405 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14406 cell-cmp-microcoded): Adjust.
14407 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14408 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14409 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14410 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14411 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14412 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14413 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14414 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14415 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14417 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14418 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14419 Adjust. Adjust comment.
14420 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14421 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14423 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14425 * config/rs6000/rs6000.md (type): Add "add".
14426 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14427 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14428 define_insns): Use it.
14429 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14431 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14432 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14433 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14434 * config/rs6000/601.md (ppc601-integer): Adjust.
14435 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14436 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14437 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14438 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14439 * config/rs6000/8540.md (ppc8540_su): Adjust.
14440 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14441 cell-cmp-microcoded): Adjust.
14442 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14443 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14444 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14445 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14446 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14447 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14448 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14449 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14450 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14452 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14453 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14454 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14455 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14457 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14459 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14460 "delayed_compare", "var_delayed_compare".
14461 (var_shift): New attribute.
14462 (cell_micro): Adjust.
14463 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14464 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14465 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14466 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14467 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14468 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14469 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14470 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14471 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14472 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14473 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14474 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14475 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14476 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14477 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14478 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14479 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14480 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14481 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14482 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14483 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14484 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14485 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14486 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14487 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14489 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14490 * config/rs6000/440.md (ppc440-integer): Adjust.
14491 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14492 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14493 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14494 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14495 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14496 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14497 * config/rs6000/8540.md (ppc8540_su): Adjust.
14498 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14499 cell-cmp-microcoded): Adjust.
14500 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14501 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14502 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14503 e500mc64_delayed): Adjust.
14504 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14505 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14506 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14507 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14508 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14509 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14510 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14511 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14512 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14514 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14515 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14517 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14519 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14520 (bits): New mode_attr.
14521 (idiv_ldiv): Delete mode_attr.
14522 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14523 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14524 rs6000_adjust_priority, is_nonpipeline_insn,
14525 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14527 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14528 * config/rs6000/440.md (ppc440-idiv): Adjust.
14529 * config/rs6000/476.md (ppc476-idiv): Adjust.
14530 * config/rs6000/601.md (ppc601-idiv): Adjust.
14531 * config/rs6000/603.md (ppc603-idiv): Adjust.
14532 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14533 ppc620-ldiv): Adjust.
14534 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14535 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14536 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14537 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14538 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14539 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14540 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14541 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14542 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14543 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14544 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14545 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14546 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14547 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14548 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14549 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14550 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14551 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14553 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14555 * config/rs6000/rs6000.md (type): Delete "insert_word",
14556 "insert_dword". Add "insert".
14557 (size): Update comment.
14558 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14559 insn_must_be_first_in_group): Adjust.
14560 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14561 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14562 *insvsi_internal6, insvdi_internal): Adjust.
14564 * config/rs6000/40x.md (ppc403-integer): Adjust.
14565 * config/rs6000/440.md (ppc440-integer): Adjust.
14566 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14567 * config/rs6000/601.md (ppc601-integer): Adjust.
14568 * config/rs6000/603.md (ppc603-integer): Adjust.
14569 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14570 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14571 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14572 * config/rs6000/8540.md (ppc8540_su): Adjust.
14573 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14574 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14575 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14576 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14577 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14578 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14579 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14580 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14581 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14582 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14583 * config/rs6000/power7.md (power7-integer): Adjust.
14584 * config/rs6000/power8.md (power8-1cyc): Adjust.
14585 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14586 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14588 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14590 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14591 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14592 (size): New attribute.
14593 (dot): New attribute.
14594 (cell_micro): Adjust.
14595 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14596 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14597 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14598 umuldi3_highpart): Adjust.
14599 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14600 rs6000_adjust_priority, is_nonpipeline_insn,
14601 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14603 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14604 ppc405-imul3): Adjust.
14605 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14606 * config/rs6000/476.md (ppc476-imul): Adjust.
14607 * config/rs6000/601.md (ppc601-imul): Adjust.
14608 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14609 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14610 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14611 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14612 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14614 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14615 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14616 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14617 cell-imul): Adjust.
14618 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14619 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14620 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14621 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14622 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14623 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14624 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14625 power4-lmul, power4-imul, power4-imul3): Adjust.
14626 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14627 power5-lmul, power5-imul, power5-imul3): Adjust.
14628 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14629 power6-lmul, power6-imul, power6-imul3): Adjust.
14630 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14631 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14633 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14634 rs64a-lmul): Adjust.
14635 * config/rs6000/titan.md (titan_imul): Adjust.
14637 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14639 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14640 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14641 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14642 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14643 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14644 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14645 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14646 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14647 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14648 * config/rs6000/titan.md: Delete nonsensical comment.
14649 (titan_imul): Add type imul3.
14650 (titan_mulhw): Remove type imul3; add type halfmul.
14652 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14654 * config/rs6000/rs6000.md (type): Reorder, reformat.
14656 2014-05-23 Martin Jambor <mjambor@suse.cz>
14658 PR tree-optimization/53787
14659 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14660 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14661 analysis_done, update all uses.
14662 * ipa-prop.c: Include domwalk.h
14663 (param_analysis_info): Removed.
14664 (param_aa_status): New type.
14665 (ipa_bb_info): Likewise.
14666 (func_body_info): Likewise.
14667 (ipa_get_bb_info): New function.
14668 (aa_overwalked): Likewise.
14669 (find_dominating_aa_status): Likewise.
14670 (parm_bb_aa_status_for_bb): Likewise.
14671 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14672 (load_from_unmodified_param): Accept func_body_info as a parameter
14673 instead of parms_ainfo.
14674 (parm_ref_data_preserved_p): Changed to use new param AA info.
14675 (parm_ref_data_pass_through_p): Likewise.
14676 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14677 (compute_complex_assign_jump_func): Changed to use new param AA info.
14678 (compute_complex_ancestor_jump_func): Likewise.
14679 (ipa_compute_jump_functions_for_edge): Likewise.
14680 (ipa_compute_jump_functions): Removed.
14681 (ipa_compute_jump_functions_for_bb): New function.
14682 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14684 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14685 and info, moved variable declarations down.
14686 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14688 (ipa_analyze_stmt_uses): Likewise.
14689 (ipa_analyze_params_uses): Removed.
14690 (ipa_analyze_params_uses_in_bb): New function.
14691 (ipa_analyze_controlled_uses): Likewise.
14692 (free_ipa_bb_info): Likewise.
14693 (analysis_dom_walker): New class.
14694 (ipa_analyze_node): Handle node-specific forbidden analysis,
14695 initialize and free func_body_info, use dominator walker.
14696 (ipcp_modif_dom_walker): New class.
14697 (ipcp_transform_function): Create and free func_body_info, use
14698 ipcp_modif_dom_walker, moved a lot of functionality there.
14700 2014-05-23 Marek Polacek <polacek@redhat.com>
14701 Jakub Jelinek <jakub@redhat.com>
14703 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14704 * gcc.c (sanitize_spec_function): Likewise.
14705 * convert.c (convert_to_integer): Include "ubsan.h". Add
14706 floating-point to integer instrumentation.
14707 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14708 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14709 SANITIZE_NONDEFAULT.
14710 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14711 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14712 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14713 * ubsan.c: Include "realmpfr.h" and "dfp.h".
14714 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14715 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14716 float/double/long double.
14717 (ubsan_instrument_float_cast): New function.
14718 * ubsan.h (ubsan_instrument_float_cast): Declare.
14720 2014-05-23 Jiong Wang <jiong.wang@arm.com>
14722 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14724 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
14725 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14726 Adjust for tailcalling through registers.
14727 * config/aarch64/aarch64.h (enum reg_class): New caller save
14729 (REG_CLASS_NAMES): Likewise.
14730 (REG_CLASS_CONTENTS): Likewise.
14731 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14732 Allow tailcalling without decls.
14734 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14736 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14737 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
14739 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
14740 gsi, and variables v_* to v*.
14742 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
14744 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
14746 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14748 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
14749 * omp-low.c: Update accordingly.
14751 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
14752 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
14753 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
14754 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
14755 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
14756 GF_OMP_TARGET_KIND_UPDATE.
14758 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14759 Explicitly enumerate the expected region types.
14761 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
14764 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
14765 documentation; the old documentation didn't clearly state the
14766 constraints on the contents of the pointed-to storage.
14768 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14770 Fix bootstrap error on ia64
14771 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
14772 Return default value.
14774 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
14776 PR tree-optimization/54733
14777 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
14779 (find_bswap_or_nop_load): New.
14780 (find_bswap_1): Renamed to ...
14781 (find_bswap_or_nop_1): This. Also add support for memory source.
14782 (find_bswap): Renamed to ...
14783 (find_bswap_or_nop): This. Also add support for memory source and
14784 detection of bitwise operations equivalent to load in target
14786 (execute_optimize_bswap): Likewise. Also move its leading comment back
14787 in place and split statement transformation into ...
14788 (bswap_replace): This.
14790 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14792 PR rtl-optimization/61215
14793 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
14794 simplify_gen_subreg until final substitution.
14796 2014-05-23 Alan Modra <amodra@gmail.com>
14799 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
14800 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
14801 Use "Y" constraint rather than "m".
14803 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14805 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
14807 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
14808 New function declaration.
14809 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
14810 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
14811 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
14812 (aarch64_init_builtins) : Initialize builtins
14813 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14814 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14815 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
14816 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
14817 and __builtins_aarch64_set_fpsr.
14818 (aarch64_atomic_assign_expand_fenv): New function.
14819 * config/aarch64/aarch64.md (set_fpcr): New pattern.
14820 (get_fpcr) : Likewise.
14821 (set_fpsr) : Likewise.
14822 (get_fpsr) : Likewise.
14823 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
14824 and UNSPECV_SET_FPSR.
14825 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14826 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14827 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14829 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14831 PR rtl-optimization/60969
14832 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
14833 constraints. Set up mem cost for NO_REGS case.
14835 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
14837 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
14839 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
14841 * config/darwin.c: Include "lto-section-names.h".
14842 (LTO_SEGMENT_NAME): Don't define.
14843 * config/i386/winnt.c: Include "lto-section-names.h".
14844 * lto-streamer.c: Include "lto-section-names.h".
14845 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
14846 * lto-wrapper.c: Include "lto-section-names.h".
14847 (LTO_SECTION_NAME_PREFIX): Don't define.
14848 * lto-section-names.h: New file.
14849 * cgraphunit.c: Include "lto-section-names.h".
14851 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
14853 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
14855 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
14858 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
14860 2014-05-22 Nick Clifton <nickc@redhat.com>
14862 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
14864 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
14866 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
14867 -> (T)A transformation to integer types.
14869 2014-05-22 Teresa Johnson <tejohnson@google.com>
14871 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
14872 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
14873 (gcov_rewrite): Use gcov_nonruntime_assert.
14874 (gcov_open): Ditto.
14875 (gcov_write_words): Ditto.
14876 (gcov_write_length): Ditto.
14877 (gcov_read_words): Use gcov_nonruntime_assert, and remove
14878 gcc_assert from IN_LIBGCOV code.
14879 (gcov_read_summary): Use gcov_error to flag profile corruption.
14880 (gcov_sync): Use gcov_nonruntime_assert.
14881 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
14882 (gcov_histo_index): Use gcov_nonruntime_assert.
14883 (static void gcov_histogram_merge): Ditto.
14884 (compute_working_sets): Ditto.
14885 * gcov-io.h (gcov_nonruntime_assert): Define.
14886 (gcov_error): Define for !IN_LIBGCOV
14888 2014-05-22 Richard Biener <rguenther@suse.de>
14890 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14891 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
14892 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
14893 and deallocation site.
14894 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14895 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
14896 passing through the incoming points-to set.
14897 (handle_lhs_call): Use flags argument instead of recomputing it.
14898 (find_func_aliases_for_call): Call handle_lhs_call with proper
14901 2014-05-22 Jakub Jelinek <jakub@redhat.com>
14903 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
14904 all padding bits in REAL_VALUE_TYPE are cleared.
14906 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14908 Cleanup and improve multipass_dfa_lookahead_guard
14909 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
14910 (core2i7_first_cycle_multipass_begin,)
14911 (core2i7_first_cycle_multipass_issue,)
14912 (core2i7_first_cycle_multipass_backtrack): Update signature.
14913 * config/ia64/ia64.c
14914 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
14915 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
14916 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
14918 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
14919 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
14921 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
14923 * doc/tm.texi: Regenerate.
14925 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
14926 * haifa-sched.c (ready_try): Make signed to allow negative values.
14927 (rebug_ready_list_1): Update.
14928 (choose_ready): Simplify.
14929 (sched_extend_ready_list): Update.
14931 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14933 Remove IA64 speculation tweaking flags
14934 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
14935 speculation tuning flags.
14936 (msched-prefer-non-data-spec-insns,)
14937 (msched-prefer-non-control-spec-insns): Obsolete options.
14938 * haifa-sched.c (choose_ready): Remove handling of
14939 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14940 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
14941 and PREFER_NON_DATA_SPEC.
14942 * sel-sched.c (process_spec_exprs): Remove handling of
14943 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14945 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14947 Improve scheduling debug output
14948 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
14949 (advance_one_cycle): Update.
14950 (schedule_insn, queue_to_ready): Add debug printouts.
14951 (debug_ready_list_1): New static function.
14952 (debug_ready_list): Update.
14953 (max_issue): Add debug printouts.
14954 (dump_insn_stream): New static function.
14955 (schedule_block): Use it. Also better indent printouts.
14957 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14959 Fix sched_insn debug counter
14960 * haifa-sched.c (schedule_insn): Update.
14961 (struct haifa_saved_data): Add nonscheduled_insns_begin.
14962 (save_backtrack_point, restore_backtrack_point): Update.
14963 (first_nonscheduled_insn): New static function.
14964 (queue_to_ready, choose_ready): Use it.
14965 (schedule_block): Init nonscheduled_insns_begin.
14966 (sched_emit_insn): Update.
14969 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
14971 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
14973 (aarch64_secondary_reload) : LikeWise.
14974 (aarch64_class_max_nregs) : Remove CORE_REGS.
14975 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
14976 (REG_CLASS_NAMES) : Likewise.
14977 (REG_CLASS_CONTENTS) : LikeWise.
14978 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
14980 2014-05-21 Guozhi Wei <carrot@google.com>
14983 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
14985 (vqdmulhq_n_s16): Likewise.
14987 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
14989 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
14991 2014-05-21 Marek Polacek <polacek@redhat.com>
14994 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
14996 2014-05-21 Martin Jambor <mjambor@suse.cz>
14998 * doc/invoke.texi (Optimize Options): Document parameters
14999 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15000 ipa-cp-array-index-hint-bonus.
15002 2014-05-21 Mark Wielaard <mjw@redhat.com>
15005 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15006 version >= 3 or not strict DWARF.
15007 * langhooks.h (struct lang_hooks_for_types): Add
15008 enum_underlying_base_type.
15009 * langhooks.c (lhd_enum_underlying_base_type): New function.
15010 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15011 enum_underlying_base_type.
15012 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15013 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15014 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15016 2014-05-21 Richard Biener <rguenther@suse.de>
15018 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15020 2014-05-21 John Marino <gnugcc@marino.st>
15022 * config.gcc (*-*-dragonfly*): New target.
15023 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15024 * configure: Regenerate.
15025 * config/dragonfly-stdint.h: New.
15026 * config/dragonfly.h: New.
15027 * config/dragonfly.opt: New.
15028 * config/i386/dragonfly.h: New.
15029 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15031 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15033 * tree.def (VOID_CST): New.
15034 * tree-core.h (TI_VOID): New.
15035 * tree.h (void_node): New.
15036 * tree.c (tree_node_structure_for_code, tree_code_size)
15037 (iterative_hash_expr): Handle VOID_CST.
15038 (build_common_tree_nodes): Initialize void_node.
15040 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15042 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15044 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15046 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15049 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15050 flag_reorder_blocks_and_partition.
15051 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15053 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15056 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15058 (*addc_r_t): Add new insn_and_split.
15060 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15062 PR middle-end/61252
15063 * omp-low.c (handle_simd_reference): New function.
15064 (lower_rec_input_clauses): Use it. Defer adding reference
15065 initialization even for reduction without placeholder if in simd,
15066 handle it properly later on.
15068 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15070 PR tree-optimization/60899
15071 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15072 assume all static symbols will have definition wile parsing and
15073 check the do have definition later in compilation; check that
15074 variable referring symbol will be output before concluding that
15075 reference is safe; be conservative for referring local statics;
15076 be more precise about when comdat is output in other partition.
15078 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15081 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15083 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15084 (ipa_inline): Loop inline_to_all_callers until no more aliases
15087 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15089 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15090 set writeonly flag only for vars actually written to.
15092 2014-05-20 Dehao Chen <dehao@google.com>
15094 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15095 and callee count to get clone count.
15096 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15097 count in copy_body.
15099 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15101 PR rtl-optimization/61243
15102 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15104 2014-05-20 Xinliang David Li <davidxl@google.com>
15106 * cgraphunit.c (walk_polymorphic_call_targets): Add
15107 dbgcnt and fopt-info support.
15108 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15109 * ipa-devirt.c (ipa_devirt): Ditto.
15110 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15111 * ipa.c (walk_polymorphic_call_targets): Ditto.
15112 * gimple-fold.c (fold_gimple_assign): Ditto.
15113 (gimple_fold_call): Ditto.
15114 * dbgcnt.def: New counter.
15116 2014-05-20 DJ Delorie <dj@redhat.com>
15118 * config/msp430/msp430.md (split): Don't allow subregs when
15119 splitting SImode adds.
15120 (andneghi): Fix subtraction logic.
15121 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15123 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15125 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15127 * except.c (switch_to_exception_section, resolve_unique_section,
15128 get_named_text_section, default_function_rodata_section,
15129 align_variable, get_block_for_decl, default_section_type_flags):
15130 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15131 * symtab.c (symtab_add_to_same_comdat_group,
15132 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15133 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15135 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15136 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15137 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15138 (c6x_function_in_section_p): Likewise.
15139 * config/darwin.c (machopic_select_section): Likewise.
15140 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15141 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15142 * config/mep/mep.c (mep_select_section): LIkewise.
15143 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15145 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15147 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15148 EH region of calls to pure functions that can throw an exception.
15149 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15150 (copy_reference_ops_from_call): Also copy the EH region of the call if
15151 it can throw an exception.
15153 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15155 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15156 nested VEC_SELECTs that are inverses of each other.
15158 2014-05-20 Richard Biener <rguenther@suse.de>
15160 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15161 (extract_and_process_scc_for_name): not here.
15162 (cond_dom_walker::before_dom_children): Only process
15163 stmts that end the BB in interesting ways.
15164 (run_scc_vn): Mark param uses as visited.
15166 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15168 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15171 2014-05-20 Nick Clifton <nickc@redhat.com>
15173 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15174 (msp430_gimplify_va_arg_expr): New function.
15175 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15177 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15178 operand 0 in order to prevent confusion about the number of
15179 registers involved.
15181 2014-05-20 Richard Biener <rguenther@suse.de>
15183 PR tree-optimization/61221
15184 * tree-ssa-pre.c (el_to_update): Remove.
15185 (eliminate_dom_walker::before_dom_children): Handle released
15186 VDEFs by value-numbering them to the associated VUSE. Update
15187 stmt immediately for substituted call address.
15188 (eliminate): Remove delayed stmt updating code.
15189 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15190 possibly late re-numbered vuses.
15191 (vn_reference_lookup_2): Adjust.
15192 (vn_reference_lookup_pieces): Likewise.
15193 (vn_reference_lookup): Likewise.
15195 2014-05-20 Richard Biener <rguenther@suse.de>
15197 * config.gcc: Remove need_64bit_hwint.
15198 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15199 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15201 * config.in: Regenerate.
15202 * configure: Likewise.
15204 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15206 * doc/extend.texi: Create Label Attributes section,
15207 move all label attributes into it and reference it.
15209 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15211 * arm.c (thumb1_reorg): When scanning backwards skip anything
15212 that's not a proper insn.
15214 2014-05-19 Richard Biener <rguenther@suse.de>
15216 PR tree-optimization/61221
15217 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15218 Do nothing for unreachable blocks.
15219 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15220 Improve unreachability detection.
15222 2014-05-19 Richard Biener <rguenther@suse.de>
15224 PR tree-optimization/61209
15225 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15227 2014-05-19 Nick Clifton <nickc@redhat.com>
15229 * except.c (init_eh): Fix computation of builtin setjmp buffer
15230 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15232 2014-05-19 Richard Biener <rguenther@suse.de>
15234 PR tree-optimization/61184
15235 * tree-vrp.c (is_negative_overflow_infinity): Use
15236 TREE_OVERFLOW_P and do that check first.
15237 (is_positive_overflow_infinity): Likewise.
15238 (is_overflow_infinity): Likewise.
15239 (vrp_operand_equal_p): Properly treat operands with
15240 differing overflow as not equal.
15242 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15244 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15245 shift simplification where it was intended.
15247 2014-05-19 Christian Bruel <christian.bruel@st.com>
15250 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15252 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15255 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15258 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15260 * reg-notes.def (CROSSING_JUMP): Likewise.
15261 * rtl.h (rtx_def): Update comment for jump flag.
15262 (CROSSING_JUMP_P): Define.
15263 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15264 of a REG_CROSSING_JUMP note.
15265 * cfghooks.c (tidy_fallthru_edges): Likewise.
15266 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15267 * emit-rtl.c (try_split): Likewise.
15268 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15269 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15270 * jump.c (redirect_jump_2): Likewise.
15271 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15272 (relax_delay_slots): Likewise.
15273 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15274 (bbit_di): Likewise.
15275 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15276 * config/sh/sh.md (jump_compact): Likewise.
15277 * bb-reorder.c (rotate_loop): Likewise.
15278 (pass_duplicate_computed_gotos::execute): Likewise.
15279 (add_reg_crossing_jump_notes): Rename to...
15280 (update_crossing_jump_flags): ...this.
15281 (pass_partition_blocks::execute): Update accordingly.
15283 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15285 * tree.h: Remove extraneous template <>.
15287 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15289 * ipa.c (symtab_remove_unreachable_nodes): Remove
15290 symbol from comdat group if its body was eliminated.
15291 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15292 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15293 (symtab_unregister_node): ... this one.
15294 (verify_symtab_base): More strict checking of comdats.
15295 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15297 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15299 * tree-pass.h (make_pass_ipa_comdats): New pass.
15300 * timevar.def (TV_IPA_COMDATS): New timevar.
15301 * passes.def (pass_ipa_comdats): Add.
15302 * Makefile.in (OBJS): Add ipa-comdats.o
15303 * ipa-comdats.c: New file.
15305 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15307 * ipa.c (update_visibility_by_resolution_info): New function.
15308 (function_and_variable_visibility): Use it.
15310 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15312 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15314 (FOR_EACH_DEFINED_SYMBOL): New macro.
15315 (varpool_first_static_initializer, varpool_next_static_initializer,
15316 varpool_first_defined_variable, varpool_next_defined_variable):
15318 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15320 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15322 * ggc-page.c (ggc_handle_finalizers): Add comment.
15324 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15326 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15327 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15328 (ggc_internal_cleared_alloc): Likewise.
15329 * ggc-page.c (finalizer): New class.
15330 (vec_finalizer): Likewise.
15331 (globals::finalizers): New member.
15332 (globals::vec_finalizers): Likewise.
15333 (ggc_internal_alloc): Record the finalizer if any for the block being
15335 (ggc_handle_finalizers): New function.
15336 (ggc_collect): Call ggc_handle_finalizers.
15337 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15339 (ggc_internal_cleared_alloc): Likewise.
15340 (finalize): New function.
15341 (need_finalization_p): Likewise.
15342 (ggc_alloc): Install the type's destructor as the finalizer if it
15343 might do something.
15344 (ggc_cleared_alloc): Likewise.
15345 (ggc_vec_alloc): Likewise.
15346 (ggc_cleared_vec_alloc): Likewise.
15348 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15350 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15352 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15354 * alias.c (record_alias_subset): Adjust.
15355 * bitmap.c (bitmap_element_allocate): Likewise.
15356 (bitmap_gc_alloc_stat): Likewise.
15357 * cfg.c (init_flow): Likewise.
15358 (alloc_block): Likewise.
15359 (unchecked_make_edge): Likewise.
15360 * cfgloop.c (alloc_loop): Likewise.
15361 (flow_loops_find): Likewise.
15362 (rescan_loop_exit): Likewise.
15363 * cfgrtl.c (init_rtl_bb_info): Likewise.
15364 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15365 (cgraph_allocate_node): Likewise.
15366 (cgraph_create_edge_1): Likewise.
15367 (cgraph_allocate_init_indirect_info): Likewise.
15368 * cgraphclones.c (cgraph_clone_edge): Likewise.
15369 * cgraphunit.c (add_asm_node): Likewise.
15370 (init_lowered_empty_function): Likewise.
15371 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15372 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15373 (alpha_use_linkage): Likewise.
15374 * config/arc/arc.c (arc_init_machine_status): Likewise.
15375 * config/arm/arm.c (arm_init_machine_status): Likewise.
15376 * config/avr/avr.c (avr_init_machine_status): Likewise.
15377 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15378 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15379 * config/cris/cris.c (cris_init_machine_status): Likewise.
15380 * config/darwin.c (machopic_indirection_name): Likewise.
15381 (darwin_build_constant_cfstring): Likewise.
15382 (darwin_enter_string_into_cfstring_table): Likewise.
15383 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15384 * config/frv/frv.c (frv_init_machine_status): Likewise.
15385 * config/i386/i386.c (get_dllimport_decl): Likewise.
15386 (ix86_init_machine_status): Likewise.
15387 (assign_386_stack_local): Likewise.
15388 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15389 (i386_pe_maybe_record_exported_symbol): Likewise.
15390 (i386_pe_record_stub): Likewise.
15391 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15392 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15393 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15394 (m32c_note_pragma_address): Likewise.
15395 * config/mep/mep.c (mep_init_machine_status): Likewise.
15396 (mep_note_pragma_flag): Likewise.
15397 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15398 (mips16_local_alias): Likewise.
15399 (mips_init_machine_status): Likewise.
15400 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15401 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15402 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15403 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15404 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15405 * config/pa/pa.c (pa_init_machine_status): Likewise.
15406 (pa_get_deferred_plabel): Likewise.
15407 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15408 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15409 (rs6000_init_machine_status): Likewise.
15410 (output_toc): Likewise.
15411 * config/s390/s390.c (s390_init_machine_status): Likewise.
15412 * config/score/score.c (score_output_external): Likewise.
15413 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15414 * config/spu/spu.c (spu_init_machine_status): Likewise.
15415 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15416 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15417 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15418 * coverage.c (coverage_end_function): Likewise.
15419 * dbxout.c (dbxout_init): Likewise.
15420 * doc/gty.texi: Don't mention variable_size attribute.
15421 * dwarf2cfi.c (new_cfi): Adjust.
15422 (new_cfi_row): Likewise.
15423 (copy_cfi_row): Likewise.
15424 (create_cie_data): Likewise.
15425 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15426 (new_loc_descr): Likewise.
15427 (find_AT_string_in_table): Likewise.
15428 (add_addr_table_entry): Likewise.
15429 (new_die): Likewise.
15430 (add_var_loc_to_decl): Likewise.
15431 (clone_die): Likewise.
15432 (clone_as_declaration): Likewise.
15433 (break_out_comdat_types): Likewise.
15434 (new_loc_list): Likewise.
15435 (add_loc_descr_to_each): Likewise.
15436 (add_location_or_const_value_attribute): Likewise.
15437 (add_linkage_name): Likewise.
15438 (lookup_filename): Likewise.
15439 (dwarf2out_var_location): Likewise.
15440 (new_line_info_table): Likewise.
15441 (dwarf2out_init): Likewise.
15442 (mem_loc_descriptor): Likewise.
15443 (loc_descriptor): Likewise.
15444 (add_const_value_attribute): Likewise.
15445 (tree_add_const_value_attribute): Likewise.
15446 (comp_dir_string): Likewise.
15447 (dwarf2out_vms_debug_main_pointer): Likewise.
15448 (string_cst_pool_decl): Likewise.
15449 * emit-rtl.c (set_mem_attrs): Likewise.
15450 (get_reg_attrs): Likewise.
15451 (start_sequence): Likewise.
15452 (init_emit): Likewise.
15453 (init_emit_regs): Likewise.
15454 * except.c (init_eh_for_function): Likewise.
15455 (gen_eh_region): Likewise.
15456 (gen_eh_region_catch): Likewise.
15457 (gen_eh_landing_pad): Likewise.
15458 (add_call_site): Likewise.
15459 * function.c (add_frame_space): Likewise.
15460 (insert_temp_slot_address): Likewise.
15461 (assign_stack_temp_for_type): Likewise.
15462 (get_hard_reg_initial_val): Likewise.
15463 (allocate_struct_function): Likewise.
15464 (prepare_function_start): Likewise.
15465 (types_used_by_var_decl_insert): Likewise.
15466 * gengtype.c (variable_size_p): Remove function.
15467 (enum alloc_quantity): Remove enum.
15468 (write_typed_alloc_def): Remove function.
15469 (write_typed_struct_alloc_def): Likewise.
15470 (write_typed_typedef_alloc_def): Likewise.
15471 (write_typed_alloc_defns): Likewise.
15473 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15474 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15475 * ggc.h (ggc_alloc): new function.
15476 (ggc_cleared_alloc): Likewise.
15477 (ggc_vec_alloc): Template on type of vector element, and remove
15478 element size argument.
15479 (ggc_cleared_vec_alloc): Likewise.
15480 * gimple.c (gimple_build_omp_for): Adjust.
15481 (gimple_copy): Likewise.
15482 * ipa-cp.c (get_replacement_map): Likewise.
15483 (find_aggregate_values_for_callers_subset): Likewise.
15484 (known_aggs_to_agg_replacement_list): Likewise.
15485 * ipa-devirt.c (get_odr_type): Likewise.
15486 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15487 (read_agg_replacement_chain): Likewise.
15488 * loop-iv.c (get_simple_loop_desc): Likewise.
15489 * lto-cgraph.c (input_node_opt_summary): Likewise.
15490 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15491 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15492 (input_eh_region): Likewise.
15493 (input_eh_lp): Likewise.
15494 (input_cfg): Likewise.
15495 * optabs.c (set_optab_libfunc): Likewise.
15496 (init_tree_optimization_optabs): Likewise.
15497 (set_conv_libfunc): Likewise.
15498 * passes.c (do_per_function_toporder): Likewise.
15499 * rtl.h: Don't use variable_size gty attribute.
15500 * sese.c (if_region_set_false_region): Adjust.
15501 * stringpool.c (gt_pch_save_stringpool): Likewise.
15502 * target-globals.c (save_target_globals): Likewise.
15503 * toplev.c (general_init): Likewise.
15504 * trans-mem.c (record_tm_replacement): Likewise.
15505 (split_bb_make_tm_edge): Likewise.
15506 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15507 * tree-data-ref.h (lambda_vector_new): Likewise.
15508 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15509 * tree-iterator.c (tsi_link_before): Likewise.
15510 (tsi_link_after): Likewise.
15511 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15512 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15513 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15514 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15515 * tree-ssa.c (init_tree_ssa): Adjust.
15516 * tree-ssanames.c (set_range_info): Likewise.
15517 (get_ptr_info): Likewise.
15518 (duplicate_ssa_name_ptr_info): Likewise.
15519 (duplicate_ssa_name_range_info): Likewise.
15520 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15521 (unpack_ts_fixed_cst_value_fields): Likewise.
15522 * tree.c (build_fixed): Likewise.
15523 (build_real): Likewise.
15524 (build_string): Likewise.
15525 (decl_priority_info): Likewise.
15526 (decl_debug_expr_insert): Likewise.
15527 (decl_value_expr_insert): Likewise.
15528 (decl_debug_args_insert): Likewise.
15529 (type_hash_add): Likewise.
15530 (build_omp_clause): Likewise.
15531 * ubsan.c (decl_for_type_insert): Likewise.
15532 * varasm.c (get_unnamed_section): Likewise.
15533 (get_noswitch_section): Likewise.
15534 (get_section): Likewise.
15535 (get_block_for_section): Likewise.
15536 (create_block_symbol): Likewise.
15537 (build_constant_desc): Likewise.
15538 (create_constant_pool): Likewise.
15539 (force_const_mem): Likewise.
15540 (record_tm_clone_pair): Likewise.
15541 * varpool.c (varpool_create_empty_node): Likewise.
15543 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15545 * dwarf2out.c (tree_add_const_value_attribute): Call
15546 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15547 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15548 instead of ggc_internal_<x>alloc_stat.
15549 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15550 (ggc_realloc): Likewise.
15551 * ggc-none.c (ggc_internal_alloc): Likewise.
15552 (ggc_internal_cleared_alloc): Likewise.
15553 * ggc-page.c: Likewise.
15554 * ggc.h (ggc_internal_alloc_stat): Likewise.
15555 (ggc_internal_alloc): Remove macro.
15556 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15557 (ggc_internal_cleared_alloc): Remove macro.
15558 (GGC_RESIZEVEC): Adjust.
15559 (ggc_resizevar): Remove macro.
15560 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15561 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15562 (ggc_internal_vec_cleared_alloc): Remove macro.
15563 (ggc_alloc_atomic_stat): Drop _stat suffix.
15564 (ggc_alloc_atomic): Remove macro.
15565 (ggc_alloc_cleared_atomic): Remove macro.
15566 (ggc_alloc_string_stat): Drop _stat suffix.
15567 (ggc_alloc_string): Remove macro.
15568 (ggc_alloc_rtx_def_stat): Adjust.
15569 (ggc_alloc_tree_node_stat): Likewise.
15570 (ggc_alloc_cleared_tree_node_stat): Likewise.
15571 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15572 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15573 * gimple.c (gimple_build_omp_for): Likewise.
15574 (gimple_copy): Likewise.
15575 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15576 * toplev.c (realloc_for_line_map): Adjust.
15577 * tree-data-ref.h (lambda_vector_new): Likewise.
15578 * tree-phinodes.c (allocate_phi_node): Likewise.
15579 * tree.c (grow_tree_vec_stat): Likewise.
15580 * vec.h (va_gc::reserve): Adjust.
15582 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15584 * config/microblaze/microblaze.c (break_handler): New Declaration.
15585 (microblaze_break_function_p,microblaze_is_break_handler): New.
15586 (compute_frame_size): Use microblaze_break_function_p.
15587 Add the test of break_handler.
15588 (microblaze_function_prologue) : Add the test of variable
15589 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15590 (microblaze_function_epilogue) : Add the test of break_handler.
15591 (microblaze_globalize_label) : Add the test of break_handler.
15592 Check the name by BREAK_HANDLER_NAME.
15594 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15596 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15597 microblaze_is_break_handler test.
15598 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15599 Use SYMBOL_REF_DECL.
15601 * config/microblaze/microblaze-protos.h
15602 (microblaze_break_function_p,microblaze_is_break_handler):
15605 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15606 new MicroBlaze break_handler functions.
15608 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15610 * doc/extend.texi (Size of an asm): Move node text according
15611 to its @menu entry position.
15613 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15615 PR tree-optimization/61140
15616 PR tree-optimization/61150
15617 PR tree-optimization/61197
15618 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15620 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15622 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15624 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15626 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15627 __SIZEOF_INT128__ is defined.
15629 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15631 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15632 (rs6000_delegitimize_address): Use it.
15634 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15636 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15637 inplace argument. Store the new address in the original MEM when true.
15638 * emit-rtl.c (change_address_1): Likewise.
15639 (adjust_address_1, adjust_automodify_address_1, offset_address):
15640 Update accordingly.
15641 * rtl.h (plus_constant): Add an inplace argument.
15642 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15643 when true. Avoid generating (plus X (const_int 0)).
15644 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15645 in-place. Pass true to plus_constant.
15646 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15648 2014-05-16 Dehao Chen <dehao@google.com>
15650 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15652 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15655 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15657 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15659 2014-05-16 Dehao Chen <dehao@google.com>
15661 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15662 optimize_function_for_size_p.
15663 * regs.h (REG_FREQ_FROM_BB): Likewise.
15665 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15668 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15669 negt_reg_operand cases.
15670 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15672 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15674 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15676 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15679 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15682 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15684 * tree-cfg.c (dump_function_to_file): Dump the return type of
15685 functions, in a line to itself before the function body, mimicking
15686 the layout of a C function.
15688 2014-05-16 Dehao Chen <dehao@google.com>
15690 * cfghooks.c (make_forwarder_block): Use direct computation to
15691 get fall-through edge's count and frequency.
15693 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15695 * config/arc/arc.c (arc_init): Fix typo in error message.
15696 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15697 (split_stack_prologue_scratch_regno): Likewise.
15698 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15699 word from error message.
15701 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15703 * ira-costs.c: Fix typo in comment.
15705 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15707 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15709 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
15711 * varpool.c (dump_varpool_node): Dump write-only flag.
15712 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15714 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15715 write-only variables.
15716 * ipa.c (process_references): New function.
15717 (set_readonly_bit): New function.
15718 (set_writeonly_bit): New function.
15719 (clear_addressable_bit): New function.
15720 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15721 fix handling of aliases.
15722 * cgraph.h (struct varpool_node): Add writeonly flag.
15724 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
15726 PR rtl-optimization/60969
15727 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15728 Calculate costs for this case.
15730 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
15732 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
15733 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
15735 2014-05-16 Richard Biener <rguenther@suse.de>
15737 PR tree-optimization/61194
15738 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
15739 bool patterns ending in a COND_EXPR.
15741 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15743 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
15745 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15747 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
15748 where we were unable to cost an RTX.
15750 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15752 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
15755 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15756 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15758 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
15760 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15761 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15763 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
15764 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
15766 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15767 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15769 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
15772 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15773 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15775 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15778 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15779 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15781 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
15782 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
15784 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15785 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15787 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15788 rotates and shifts.
15790 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15791 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15793 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
15794 ZERO_EXTEND and SIGN_EXTEND better.
15796 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15797 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15799 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
15800 logical operations.
15802 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15803 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15805 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
15806 costs when costing loads and stores to memory.
15808 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15809 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
15811 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
15814 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15816 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
15818 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15819 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15821 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
15823 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
15825 (aarch64_rtx_mult_cost): New.
15826 (aarch64_rtx_costs): Use it, refactor as appropriate.
15828 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15829 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15831 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
15832 emit instructions, return number of instructions which would
15834 (aarch64_add_constant): Update call to aarch64_build_constant.
15835 (aarch64_output_mi_thunk): Likewise.
15836 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
15839 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15841 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
15842 (TARGET_RTX_COSTS): Call it.
15844 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15846 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
15847 (cortexa57_vector_cost): Likewise.
15848 (cortexa57_tunings): Use them.
15850 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15852 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
15853 (cpu_addrcost_table): Use it.
15854 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
15855 (aarch64_address_cost): Rewrite using aarch64_classify_address,
15858 2014-05-16 Richard Biener <rguenther@suse.de>
15860 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
15861 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
15862 (visit_phi): Ignore edges marked as not executable.
15863 (class cond_dom_walker): New.
15864 (cond_dom_walker::before_dom_children): Value-number
15865 control statements and mark successor edges as not
15866 executable if possible.
15867 (run_scc_vn): First walk all control statements in
15868 dominator order, marking edges as not executable.
15869 * tree-inline.c (copy_edges_for_bb): Be not confused
15870 about random edge flags.
15872 2014-05-16 Richard Biener <rguenther@suse.de>
15874 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
15876 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
15879 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
15880 (__TM_simple_begin): Use it.
15881 (__TM_begin): Likewise.
15883 2014-05-15 Martin Jambor <mjambor@suse.cz>
15886 * ipa-prop.c (update_indirect_edges_after_inlining): Check
15887 type_preserved flag when the indirect edge is polymorphic.
15889 2014-05-15 Martin Jambor <mjambor@suse.cz>
15891 PR tree-optimization/61090
15892 * tree-sra.c (sra_modify_expr): Pass the current gsi to
15893 build_ref_for_model.
15895 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15897 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
15898 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
15900 2014-05-15 Jakub Jelinek <jakub@redhat.com>
15902 PR tree-optimization/61158
15903 * fold-const.c (fold_binary_loc): If X is zero-extended and
15904 shiftc >= prec, make sure zerobits is all ones instead of
15905 invoking undefined behavior.
15907 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15909 * regcprop.h: New file.
15910 * regcprop.c (skip_debug_insn_p): New decl.
15911 (replace_oldest_value_reg): Check skip_debug_insn_p.
15912 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
15913 * shrink-wrap.c: Include regcprop.h.
15914 (prepare_shrink_wrap): Call
15915 copyprop_hardreg_forward_bb_without_debug_insn.
15917 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15919 * shrink-wrap.h: Update comment.
15920 * shrink-wrap.c: Update comment.
15921 (next_block_for_reg): Rename to live_edge_for_reg.
15922 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
15923 (move_insn_for_shrink_wrap): Split live_edge.
15924 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
15926 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15928 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
15930 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
15931 * config/sparc/sparc.md (fptype_ut699): New attribute.
15932 (in_branch_delay): Return false if -mfix-ut699 is specified and
15933 fptype_ut699 is set to single.
15934 (truncdfsf2): Add fptype_ut699 attribute.
15935 (fix_truncdfsi2): Likewise.
15936 (floatsisf2): Change fptype attribute.
15937 (fix_truncsfsi2): Likewise.
15938 (negtf2_notv9): Delete.
15939 (negtf2_v9): Likewise.
15940 (negtf2_hq): New instruction.
15941 (negtf2): New instruction and splitter.
15942 (negdf2_notv9): Rewrite.
15943 (abstf2_notv9): Delete.
15944 (abstf2_hq_v9): Likewise.
15945 (abstf2_v9): Likewise.
15946 (abstf2_hq): New instruction.
15947 (abstf2): New instruction and splitter.
15948 (absdf2_notv9): Rewrite.
15950 2014-05-14 Cary Coutant <ccoutant@google.com>
15953 * opts.c (common_handle_option): Don't special-case "-g".
15954 (set_debug_level): Default to at least level 2 with "-g".
15956 2014-05-14 DJ Delorie <dj@redhat.com>
15958 * config/msp430/msp430.c (msp430_builtin): Add
15959 MSP430_BUILTIN_DELAY_CYCLES.
15960 (msp430_init_builtins): Register void __delay_cycles(long long).
15961 (msp430_builtin_decl): Add it.
15962 (cg_magic_constant): New.
15963 (msp430_expand_delay_cycles): New.
15964 (msp430_expand_builtin): Call it.
15965 (msp430_print_operand_raw): Change integer printing from "int" to
15967 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
15968 (delay_cycles_start): New.
15969 (delay_cycles_end): New.
15970 (delay_cycles_32): New.
15971 (delay_cycles_32x): New.
15972 (delay_cycles_16): New.
15973 (delay_cycles_16x): New.
15974 (delay_cycles_2): New.
15975 (delay_cycles_1): New.
15976 * doc/extend.texi: Document __delay_cycles().
15978 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
15980 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
15981 length attribute computation.
15983 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
15986 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
15988 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
15991 * config/sparc/sparc.md: Fix types of low and high in DI constant
15992 splitter. Use gen_int_mode in some other splitters.
15994 2014-05-14 Martin Jambor <mjambor@suse.cz>
15997 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
15999 2014-05-14 James Norris <jnorris@codesourcery.com>
16001 * omp-low.c (expand_parallel_call): Remove shadow variable.
16002 (expand_omp_taskreg): Likewise.
16004 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16006 * common/config/i386/i386-common.c
16007 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16008 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16009 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16010 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16011 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16012 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16013 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16014 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16015 xsavecintrin.h, xsavesintrin.h.
16016 (x86_64-*-*): Ditto.
16017 * config/i386/clflushoptintrin.h: New.
16018 * config/i386/xsavecintrin.h: Ditto.
16019 * config/i386/xsavesintrin.h: Ditto.
16020 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16021 (bit_XSAVES): Ditto.
16022 (bit_XSAVES): Ditto.
16023 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16024 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16026 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16027 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16028 OPTION_MASK_ISA_XSAVES.
16029 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16030 -mxsavec, -mxsaves.
16031 (PTA_CLFLUSHOPT) Define.
16032 (PTA_XSAVEC): Ditto.
16033 (PTA_XSAVES): Ditto.
16034 (ix86_option_override_internal): Handle new options.
16035 (ix86_valid_target_attribute_inner_p): Ditto.
16036 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16037 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16038 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16039 (bdesc_special_args): Add __builtin_ia32_xsaves,
16040 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16041 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16042 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16043 (ix86_expand_builtin): Handle new builtins.
16044 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16045 (TARGET_CLFLUSHOPT_P): Ditto.
16046 (TARGET_XSAVEC): Ditto.
16047 (TARGET_XSAVEC_P): Ditto.
16048 (TARGET_XSAVES): Ditto.
16049 (TARGET_XSAVES_P): Ditto.
16050 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16051 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16052 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16054 (ANY_XRSTOR64): Ditto.
16056 (xrstor): Change into <xrstor>.
16057 (xrstor_rex64): Change into <xrstor>_rex64.
16058 (xrstor64): Change into <xrstor>64
16060 * config/i386/i386.opt (mclflushopt): New.
16063 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16065 * doc/invoke.texi: Document new options.
16067 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16069 PR rtl-optimization/60866
16070 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16071 Default it to -1. Pass it down to init_simplejump_data.
16072 (init_simplejump_data): New parameter old_seqno. Pass it down
16073 to get_seqno_for_a_jump.
16074 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16075 initializing new jump seqno as a last resort. Add comment.
16076 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16077 jump and pass it down to sel_init_new_insn.
16078 (sel_redirect_edge_and_branch_force): Likewise.
16080 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16082 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16083 shifted values to avoid build warning.
16085 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16087 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16088 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16089 (cfg_layout_merge_blocks): Likewise.
16090 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16092 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16094 PR rtl-optimization/60901
16095 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16096 bb predecessor belongs to the same scheduling region. Adjust comment.
16098 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16100 * doc/sourcebuild.texi: (dfp_hw): Document.
16101 (p8vector_hw): Likewise.
16102 (powerpc_eabi_ok): Likewise.
16103 (powerpc_elfv2): Likewise.
16104 (powerpc_htm_ok): Likewise.
16105 (ppc_recip_hw): Likewise.
16106 (vsx_hw): Likewise.
16108 2014-05-13 Cary Coutant <ccoutant@google.com>
16110 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16112 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16114 * gengtype-parse.c (require3): Eliminate in favor of...
16116 (require_template_declaration): Update to support optional single *
16119 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16120 (create_user_defined_type): Handle a single level of explicit
16121 pointerness within template arguments.
16122 (struct write_types_data): Add field "kind".
16123 (filter_type_name): Handle "*" character.
16124 (write_user_func_for_structure_ptr): Require a write_types_data
16125 rather than just a prefix string, so that we can look up the kind
16126 of the wtd and use it as an index into wrote_user_func_for_ptr,
16127 ensuring that such functions are written at most once. Support
16128 subclasses by invoking the marking function of the ultimate base class.
16129 (write_user_func_for_structure_body): Require a write_types_data
16130 rather than just a prefix string, so that we can pass this to
16131 write_user_func_for_structure_ptr.
16132 (write_func_for_structure): Likewise.
16133 (ggc_wtd): Add initializer of new "kind" field.
16134 (pch_wtd): Likewise.
16136 * gengtype.h (enum write_types_kinds): New.
16137 (struct type): Add field wrote_user_func_for_ptr to the "s"
16140 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16142 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16143 instead of const_binop.
16144 (fold_binary_loc): Likewise.
16146 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16148 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16149 calculation to match get_ref_base_and_extent.
16151 2014-05-13 Catherine Moore <clm@codesourcery.com>
16152 Sandra Loosemore <sandra@codesourcery.com>
16154 * configure.ac: Fix assembly for explicit JALR relocation check.
16155 * configure: Regenerate.
16157 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16159 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16160 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16161 Remove associated type declarations and initialisations.
16162 (arm_expand_neon_builtin): Likewise.
16163 (neon_emit_pair_result_insn): Delete.
16164 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16165 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16166 (neon_vzip<mode>): Likewise.
16167 (neon_vuzp<mode>): Likewise.
16169 2014-05-13 Richard Biener <rguenther@suse.de>
16172 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16173 it needs revisiting whether the call still may be tail-called.
16175 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16177 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16178 * rtl.h (block_symbol): Reduce number of fields to 2.
16179 (rtx_def): Add u2.symbol_ref_flags.
16180 (SYMBOL_REF_FLAGS): Use it.
16181 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16182 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16183 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16184 Lower index of SYMBOL_REF_DATA.
16185 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16186 Print SYMBOL_REF_FLAGS at the same time.
16187 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16189 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16191 * rtl.def (VAR_LOCATION): Remove "i" field.
16192 * rtl.h (rtx_def): Add u2.var_location_status.
16193 (PAT_VAR_LOCATION_STATUS): Use it.
16194 (gen_rtx_VAR_LOCATION): Declare.
16195 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16196 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16197 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16199 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16201 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16202 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16204 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16206 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16207 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16208 * rtl.h (rtx_def): Add insn_uid to u2 field.
16209 (RTX_FLAG_CHECK8): Delete in favor of...
16210 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16211 (INSN_DELETED_P): Update accordingly.
16212 (INSN_UID): Use u2.insn_uid.
16213 (INSN_CHAIN_CODE_P): Define.
16214 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16215 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16216 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16217 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16218 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16219 indices accordingly.
16220 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16221 Update indices for insn-chain rtxes.
16222 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16223 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16224 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16225 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16226 * combine.c (try_combine): Likewise.
16227 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16229 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16231 * rtl.def (REG): Remove middle field.
16232 * rtl.h (rtx_def): Add orignal_regno to u2.
16233 (ORIGINAL_REGNO): Use it instead of field 1.
16234 (REG_ATTRS): Lower field index accordingly.
16235 * gengtype.c (adjust_field_rtx_def): Remove handling of
16236 ORIGINAL_REGNO. Move REG_ATTRS index down.
16237 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16238 code that prints the REGNO.
16240 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16242 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16245 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16247 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16249 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16251 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16252 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16254 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16256 * config/aarch64/aarch64-protos.h
16257 (aarch64_hard_regno_caller_save_mode): New prototype.
16258 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16260 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16262 2014-05-13 Christian Bruel <christian.bruel@st.com>
16264 * target.def (mode_switching): New hook vector.
16265 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16266 (mode_exit, modepriority_to_mode): Likewise.
16267 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16268 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16269 * target.h: Include tm.h and hard-reg-set.h.
16270 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16271 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16272 * doc/tm.texi Regenerate.
16273 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16274 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16275 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16276 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16277 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16278 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16279 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16280 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16281 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16282 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16283 (ix86_emit_mode_set): Hookify.
16284 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16286 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16287 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16288 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16289 (epiphany_mode_priority_to_mode): Remove declaration.
16290 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16291 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16292 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16294 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16295 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16296 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16298 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16301 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16302 is const0_rtx, return immediately. Don't test count == 0 when
16305 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16307 * Makefile.in: add shrink-wrap.o.
16308 * config/i386/i386.c: include "shrink-wrap.h"
16309 * function.c: Likewise.
16310 (requires_stack_frame_p, next_block_for_reg,
16311 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16312 dup_block_and_redirect): Move to shrink-wrap.c
16313 (thread_prologue_and_epilogue_insns): Extract three code segments
16314 as functions in shrink-wrap.c
16315 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16317 * shrink-wrap.c: New file.
16318 * shrink-wrap.h: New file.
16320 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16322 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16323 reference to Solaris.
16325 2014-05-12 Mike Stump <mikestump@comcast.net>
16328 * genattrtab.c (filename): Add.
16329 (convert_set_attr_alternative): Improve error message.
16330 (check_defs): Restore read_md_filename for error messages.
16331 (gen_insn): Save filename.
16333 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16335 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16336 -fno-local-ivars and -fivar-visibility.
16337 * c-family/c.opt: Make -Wshadow also implicitly enable
16340 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16342 * doc/tm.texi: Remove reference to deleted macro.
16343 * doc/tm.texi.in: Likewise.
16345 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16348 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16351 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16354 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16355 * config/arm/aout.h (License): Same.
16356 * config/arm/bpabi.h (License): Same.
16357 * config/arm/elf.h (License): Same.
16358 * config/arm/linux-elf.h (License): Same.
16359 * config/arm/linux-gas.h (License): Same.
16360 * config/arm/netbsd-elf.h (License): Same.
16361 * config/arm/uclinux-eabi.h (License): Same.
16362 * config/arm/uclinux-elf.h (License): Same.
16363 * config/arm/vxworks.h (License): Same.
16365 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16367 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16368 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16369 number of operands to 3.
16370 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16371 * tree-nested.c (convert_nonlocal_omp_clauses,
16372 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16373 * gimplify.c (gimplify_scan_omp_clauses): Handle
16374 OMP_CLAUSE_LINEAR_STMT.
16375 * omp-low.c (lower_rec_input_clauses): Fix typo.
16376 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16377 cast between Fortran boolean_type_node and C _Bool if
16380 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16382 PR tree-optimization/61136
16383 * wide-int.h (multiple_of_p): Define a version that doesn't return
16385 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16386 integer_zerop/const_binop pair.
16387 (multiple_of_p): Likewise, converting both operands to widest_int
16390 2014-05-09 Teresa Johnson <tejohnson@google.com>
16392 * cgraphunit.c (analyze_functions): Use correct dump file.
16394 2014-05-09 Florian Weimer <fweimer@redhat.com>
16396 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16398 (stack_protect_return_slot_p): New function.
16399 (expand_used_vars): Call stack_protect_decl_p and
16400 stack_protect_return_slot_p for -fstack-protector-strong.
16402 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16403 Andrew Haley <aph@redhat.com>
16404 Richard Sandiford <rdsandiford@googlemail.com>
16406 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16409 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16411 PR middle-end/61111
16412 * fold-const.c (fold_binary_loc): Changed width of mask.
16414 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16416 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16417 unsigned int initializers for regno_in, regno_out.
16419 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16422 * config/avr/avr.md (cc): Add new attribute set_vzn.
16423 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16424 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16425 with INC, DEC or NEG.
16426 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16427 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16428 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16430 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16433 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16435 * wide-int.cc (UTItype): Define.
16436 (UDWtype): Define for appropriate W_TYPE_SIZE.
16438 2014-05-09 Richard Biener <rguenther@suse.de>
16440 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16441 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16442 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16443 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16444 ssa_propagate): Adjust.
16446 2014-05-08 Jeff Law <law@redhat.com>
16448 PR tree-optimization/61009
16449 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16450 tri-state rather than a boolean. When a block is too big to
16451 thread through, inform caller via negative return value.
16452 (thread_across_edge): If a block was too big for normal threading,
16453 then it's too big for a joiner too, so remove temporary equivalences
16454 and return immediately.
16456 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16457 Matthias Klose <doko@ubuntu.com>
16460 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16462 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16465 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16467 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16470 * config/alpha/alpha.c: Include gimple-iterator.h.
16471 (alpha_gimple_fold_builtin): New function. Move
16472 ALPHA_BUILTIN_UMULH folding from ...
16473 (alpha_fold_builtin): ... here.
16474 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16476 2014-05-08 Wei Mi <wmi@google.com>
16479 * config/i386/i386.c (ix86_compute_frame_layout): Update
16480 preferred_stack_boundary for call, expanded from tls descriptor.
16481 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16482 to depend on SP register.
16483 (*tls_local_dynamic_base_32_gnu): Ditto.
16484 (*tls_local_dynamic_32_once): Ditto.
16485 (tls_global_dynamic_64_<mode>): Set
16486 ix86_tls_descriptor_calls_expanded_in_cfun.
16487 (tls_local_dynamic_base_64_<mode>): Ditto.
16488 (tls_global_dynamic_32): Set
16489 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16490 to depend on SP register.
16491 (tls_local_dynamic_base_32): Ditto.
16493 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16495 * config/arm/arm_neon.h: Update comment.
16496 * config/arm/neon-docgen.ml: Delete.
16497 * config/arm/neon-gen.ml: Delete.
16498 * doc/arm-neon-intrinsics.texi: Update comment.
16500 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16502 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16504 (vand, vorr, veor, vorn, vbic): Remove.
16505 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16507 (neon_vsub_unspec): Likewise.
16508 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16510 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16512 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16513 (vadd_s16): Likewise.
16514 (vadd_s32): Likewise.
16515 (vadd_f32): Likewise.
16516 (vadd_u8): Likewise.
16517 (vadd_u16): Likewise.
16518 (vadd_u32): Likewise.
16519 (vadd_s64): Likewise.
16520 (vadd_u64): Likewise.
16521 (vaddq_s8): Likewise.
16522 (vaddq_s16): Likewise.
16523 (vaddq_s32): Likewise.
16524 (vaddq_s64): Likewise.
16525 (vaddq_f32): Likewise.
16526 (vaddq_u8): Likewise.
16527 (vaddq_u16): Likewise.
16528 (vaddq_u32): Likewise.
16529 (vaddq_u64): Likewise.
16530 (vmul_s8): Likewise.
16531 (vmul_s16): Likewise.
16532 (vmul_s32): Likewise.
16533 (vmul_f32): Likewise.
16534 (vmul_u8): Likewise.
16535 (vmul_u16): Likewise.
16536 (vmul_u32): Likewise.
16537 (vmul_p8): Likewise.
16538 (vmulq_s8): Likewise.
16539 (vmulq_s16): Likewise.
16540 (vmulq_s32): Likewise.
16541 (vmulq_f32): Likewise.
16542 (vmulq_u8): Likewise.
16543 (vmulq_u16): Likewise.
16544 (vmulq_u32): Likewise.
16545 (vsub_s8): Likewise.
16546 (vsub_s16): Likewise.
16547 (vsub_s32): Likewise.
16548 (vsub_f32): Likewise.
16549 (vsub_u8): Likewise.
16550 (vsub_u16): Likewise.
16551 (vsub_u32): Likewise.
16552 (vsub_s64): Likewise.
16553 (vsub_u64): Likewise.
16554 (vsubq_s8): Likewise.
16555 (vsubq_s16): Likewise.
16556 (vsubq_s32): Likewise.
16557 (vsubq_s64): Likewise.
16558 (vsubq_f32): Likewise.
16559 (vsubq_u8): Likewise.
16560 (vsubq_u16): Likewise.
16561 (vsubq_u32): Likewise.
16562 (vsubq_u64): Likewise.
16563 (vand_s8): Likewise.
16564 (vand_s16): Likewise.
16565 (vand_s32): Likewise.
16566 (vand_u8): Likewise.
16567 (vand_u16): Likewise.
16568 (vand_u32): Likewise.
16569 (vand_s64): Likewise.
16570 (vand_u64): Likewise.
16571 (vandq_s8): Likewise.
16572 (vandq_s16): Likewise.
16573 (vandq_s32): Likewise.
16574 (vandq_s64): Likewise.
16575 (vandq_u8): Likewise.
16576 (vandq_u16): Likewise.
16577 (vandq_u32): Likewise.
16578 (vandq_u64): Likewise.
16579 (vorr_s8): Likewise.
16580 (vorr_s16): Likewise.
16581 (vorr_s32): Likewise.
16582 (vorr_u8): Likewise.
16583 (vorr_u16): Likewise.
16584 (vorr_u32): Likewise.
16585 (vorr_s64): Likewise.
16586 (vorr_u64): Likewise.
16587 (vorrq_s8): Likewise.
16588 (vorrq_s16): Likewise.
16589 (vorrq_s32): Likewise.
16590 (vorrq_s64): Likewise.
16591 (vorrq_u8): Likewise.
16592 (vorrq_u16): Likewise.
16593 (vorrq_u32): Likewise.
16594 (vorrq_u64): Likewise.
16595 (veor_s8): Likewise.
16596 (veor_s16): Likewise.
16597 (veor_s32): Likewise.
16598 (veor_u8): Likewise.
16599 (veor_u16): Likewise.
16600 (veor_u32): Likewise.
16601 (veor_s64): Likewise.
16602 (veor_u64): Likewise.
16603 (veorq_s8): Likewise.
16604 (veorq_s16): Likewise.
16605 (veorq_s32): Likewise.
16606 (veorq_s64): Likewise.
16607 (veorq_u8): Likewise.
16608 (veorq_u16): Likewise.
16609 (veorq_u32): Likewise.
16610 (veorq_u64): Likewise.
16611 (vbic_s8): Likewise.
16612 (vbic_s16): Likewise.
16613 (vbic_s32): Likewise.
16614 (vbic_u8): Likewise.
16615 (vbic_u16): Likewise.
16616 (vbic_u32): Likewise.
16617 (vbic_s64): Likewise.
16618 (vbic_u64): Likewise.
16619 (vbicq_s8): Likewise.
16620 (vbicq_s16): Likewise.
16621 (vbicq_s32): Likewise.
16622 (vbicq_s64): Likewise.
16623 (vbicq_u8): Likewise.
16624 (vbicq_u16): Likewise.
16625 (vbicq_u32): Likewise.
16626 (vbicq_u64): Likewise.
16627 (vorn_s8): Likewise.
16628 (vorn_s16): Likewise.
16629 (vorn_s32): Likewise.
16630 (vorn_u8): Likewise.
16631 (vorn_u16): Likewise.
16632 (vorn_u32): Likewise.
16633 (vorn_s64): Likewise.
16634 (vorn_u64): Likewise.
16635 (vornq_s8): Likewise.
16636 (vornq_s16): Likewise.
16637 (vornq_s32): Likewise.
16638 (vornq_s64): Likewise.
16639 (vornq_u8): Likewise.
16640 (vornq_u16): Likewise.
16641 (vornq_u32): Likewise.
16642 (vornq_u64): Likewise.
16644 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16646 * wide-int.cc (UTItype): Define.
16647 (UDWtype): Define for appropriate W_TYPE_SIZE.
16649 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16651 PR tree-optimization/59100
16652 * tree-ssa-phiopt.c: Include tree-inline.h.
16653 (neutral_element_p, absorbing_element_p): New functions.
16654 (value_replacement): Handle conditional binary operations with a
16655 neutral or absorbing element.
16657 2014-05-08 Richard Biener <rguenther@suse.de>
16659 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16660 folding the expression.
16661 (valueize_expr): Remove.
16662 (visit_reference_op_load): Do not valueize the result of
16664 (simplify_binary_expression): Likewise.
16665 (simplify_unary_expression): Likewise.
16667 2014-05-08 Richard Biener <rguenther@suse.de>
16669 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16670 looking at TYPE_ARG_TYPES.
16672 2014-05-08 Richard Biener <rguenther@suse.de>
16674 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16675 pointer propagation special-case.
16677 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16679 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16680 core part of address expressions.
16682 2014-05-08 Alan Modra <amodra@gmail.com>
16685 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16686 loads and stores when -mno-strict-align at any alignment.
16687 (expand_block_clear): Similarly. Also correct calculation of
16690 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16692 PR middle-end/39246
16693 * tree-complex.c (expand_complex_move): Keep line info when expanding
16695 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16696 of complex expression. Use new argument to display correct location
16697 for values coming from phi statement.
16698 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16699 (warn_uninitialized_phi): Pass location of phi argument to
16701 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16702 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16704 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16706 * config/rs6000/predicates.md (indexed_address_mem): New.
16707 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16708 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16709 fpstore_ux, fpstore_u.
16710 (sign_extend, indexed, update): New.
16711 (cell_micro): Adjust.
16712 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16713 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16714 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16715 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16716 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16717 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16718 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16719 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16720 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16721 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16722 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16723 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16724 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16725 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16726 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16728 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16729 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16730 *vsx_extract_<mode>_store): Adjust.
16731 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16732 is_cracked_insn, insn_must_be_first_in_group,
16733 insn_must_be_last_in_group): Adjust.
16735 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
16737 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
16738 ppc440-fpstore): Adjust.
16739 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
16740 ppc476-fpstore): Adjust.
16741 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
16742 ppc601-fpstore): Adjust.
16743 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
16745 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
16747 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
16748 ppc7450-fpstore): Adjust.
16749 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
16750 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
16751 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
16753 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
16754 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
16755 cell-fpstore, cell-fpstore-update): Adjust.
16756 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
16757 ppce300c3_store, ppce300c3_fpstore): Adjust.
16758 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
16759 e500mc_fpstore): Adjust.
16760 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
16761 e500mc64_store, e500mc64_fpstore): Adjust.
16762 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
16763 e5500_fpstore): Adjust.
16764 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
16765 e6500_fpstore): Adjust.
16766 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
16768 * config/rs6000/power4.md (power4-load, power4-load-ext,
16769 power4-load-ext-update, power4-load-ext-update-indexed,
16770 power4-load-update-indexed, power4-load-update, power4-fpload,
16771 power4-fpload-update, power4-store, power4-store-update,
16772 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
16774 * config/rs6000/power5.md (power5-load, power5-load-ext,
16775 power5-load-ext-update, power5-load-ext-update-indexed,
16776 power5-load-update-indexed, power5-load-update, power5-fpload,
16777 power5-fpload-update, power5-store, power5-store-update,
16778 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
16780 * config/rs6000/power6.md (power6-load, power6-load-ext,
16781 power6-load-update, power6-load-update-indexed,
16782 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
16783 power6-fpload-update, power6-store, power6-store-update,
16784 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
16786 * config/rs6000/power7.md (power7-load, power7-load-ext,
16787 power7-load-update, power7-load-update-indexed,
16788 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
16789 power7-fpload-update, power7-store, power7-store-update,
16790 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
16792 * config/rs6000/power8.md (power8-load, power8-load-update,
16793 power8-load-ext, power8-load-ext-update, power8-fpload,
16794 power8-fpload-update, power8-store, power8-store-update-indexed,
16795 power8-fpstore, power8-fpstore-update): Adjust.
16796 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
16798 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
16799 titan_lsu_store, titan_lsu_fpstore): Adjust.
16800 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
16802 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16805 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
16806 unrolled byte insns. Emit address increments after move insns.
16808 2014-05-07 David Malcolm <dmalcolm@redhat.com>
16810 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
16811 const_gimple, rather than a gimple.
16812 (gimple_call_builtin_p): Likewise, for the three variants.
16814 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
16815 (gimple_call_builtin_p): Likewise, for the three variants.
16817 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16819 PR tree-optimization/61095
16820 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
16822 2014-05-07 Richard Biener <rguenther@suse.de>
16824 PR tree-optimization/61034
16825 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
16826 (maybe_skip_until): Use translate to take into account
16827 lattices when trying to do disambiguations.
16828 (get_continuation_for_phi_1): Likewise.
16829 (get_continuation_for_phi): Adjust for added translate arguments.
16830 (walk_non_aliased_vuses): Likewise.
16831 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
16832 (walk_non_aliased_vuses): Likewise.
16833 (call_may_clobber_ref_p_1): Declare.
16834 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
16835 calls. Stop early if we are only supposed to disambiguate.
16836 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
16838 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
16840 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
16841 Emit an error when the function has arguments.
16843 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16845 * cfgloop.h (unswitch_loops): Remove.
16846 * doc/passes.texi: Remove references to loop-unswitch.c
16847 * timevar.def (TV_LOOP_UNSWITCH): Remove.
16849 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
16851 * tree-vect-data-refs.c (vect_grouped_load_supported): New
16852 check for loads group of length 3.
16853 (vect_permute_load_chain): New permutations for loads group of
16855 * tree-vect-stmts.c (vect_model_load_cost): Change cost
16856 of vec_perm_shuffle for the new permutations.
16858 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
16860 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
16861 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
16862 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
16863 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
16864 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
16865 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
16866 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
16867 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
16869 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16871 * loop-unswitch.c: Delete.
16873 2014-05-07 Richard Biener <rguenther@suse.de>
16875 * config.gcc: Always set need_64bit_hwint to yes.
16877 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
16879 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
16880 of using optimize_size.
16882 2014-05-06 Mike Stump <mikestump@comcast.net>
16884 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
16886 2014-05-06 Joseph Myers <joseph@codesourcery.com>
16888 * config/i386/sse.md (*mov<mode>_internal)
16889 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
16890 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
16891 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
16892 (*<code><mode>3, *andnot<mode>3<mask_name>)
16893 (<mask_codefor><code><mode>3<mask_name>): Only consider
16894 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
16896 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16899 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
16901 * lra-constraints.c (valid_address_p): Move earlier in file.
16902 Add a constraint argument to the address_info version.
16903 (satisfies_memory_constraint_p): New function.
16904 (satisfies_address_constraint_p): Likewise.
16905 (process_alt_operands, curr_insn_transform): Use them.
16906 (process_address): Pass the constraint to valid_address_p when
16907 checking address operands.
16909 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
16911 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
16912 to their respective blocks. Fix inadvertent use of "node".
16914 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16916 * emit-rtl.c (init_derived_machine_modes): New functionm, split
16918 (init_emit_once): ...here.
16919 * rtl.h (init_derived_machine_modes): Declare.
16920 * toplev.c (do_compile): Call it even if no_backend.
16922 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
16923 Mike Stump <mikestump@comcast.net>
16924 Richard Sandiford <rdsandiford@googlemail.com>
16925 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16927 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
16928 (rtx_equal_for_memref_p): Update comment.
16929 (adjust_offset_for_component_ref): Use wide-int interfaces.
16930 * builtins.c (get_object_alignment_2): Likewise.
16931 (c_readstr): Likewise.
16932 (target_char_cast): Add comment.
16933 (determine_block_size): Use wide-int interfaces.
16934 (expand_builtin_signbit): Likewise.
16935 (fold_builtin_int_roundingfn): Likewise.
16936 (fold_builtin_bitop): Likewise.
16937 (fold_builtin_bswap): Likewise.
16938 (fold_builtin_logarithm): Use signop.
16939 (fold_builtin_pow): Likewise.
16940 (fold_builtin_memory_op): Use wide-int interfaces.
16941 (fold_builtin_object_size): Likewise.
16942 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
16943 nb_iterations_estimate.
16944 (record_niter_bound): Use wide-int interfaces.
16945 (get_estimated_loop_iterations_int): Likewise.
16946 (get_estimated_loop_iterations): Likewise.
16947 (get_max_loop_iterations): Likewise.
16948 * cfgloop.h: Include wide-int.h.
16949 (struct nb_iter_bound): Change bound to widest_int.
16950 (struct loop): Change nb_iterations_upper_bound and
16951 nb_iterations_estimate to widest_int.
16952 (record_niter_bound): Switch to use widest_int.
16953 (get_estimated_loop_iterations): Likewise.
16954 (get_max_loop_iterations): Likewise.
16955 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
16956 update for wide-int.
16957 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
16958 * combine.c (try_combine): Likewise.
16959 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
16960 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
16962 (aarch64_float_const_representable_p): Likewise.
16963 * config/arc/arc.c: Include wide-int.h.
16964 (arc_can_use_doloop_p): Use wide-int interfaces.
16965 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
16966 (vfp3_const_double_index): Likewise.
16967 * config/avr/avr.c (avr_out_round): Likewise.
16968 (avr_fold_builtin): Likewise.
16969 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
16970 (bfin_can_use_doloop_p): Likewise.
16971 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
16972 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
16973 * config/i386/i386.c: Include wide-int.h.
16974 (ix86_data_alignment): Use wide-int interfaces.
16975 (ix86_local_alignment): Likewise.
16976 (ix86_emit_swsqrtsf): Update real_from_integer.
16977 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
16978 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
16979 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
16980 (zero_constant): Likewise.
16981 (input_operand): Likewise.
16982 (splat_input_operand): Likewise.
16983 (non_logical_cint_operand): Change const_double to const_wide_int.
16984 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
16985 (easy_altivec_constant): Remove comment.
16986 (paired_expand_vector_init): Use CONSTANT_P.
16987 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
16988 (rs6000_emit_move): Update checks.
16989 (rs6000_aggregate_candidate): Use wide-int interfaces.
16990 (rs6000_expand_ternop_builtin): Likewise.
16991 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
16992 (rs6000_assemble_integer): Likewise.
16993 (rs6000_hash_constant): Likewise.
16994 (output_toc): Likewise.
16995 (rs6000_rtx_costs): Likewise.
16996 (rs6000_emit_swrsqrt); Update call to real_from_integer.
16997 * config/rs6000/rs6000-c.c: Include wide-int.h.
16998 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
16999 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17000 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17001 Handle CONST_WIDE_INT.
17002 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17003 Use tree_fits_uhwi_p.
17004 * config/sparc/sparc.c: Include wide-int.h.
17005 (sparc_fold_builtin): Use wide-int interfaces.
17006 * config/vax/vax.c: Include wide-int.h.
17007 (vax_float_literal): Use real_from_integer.
17008 * coretypes.h (struct hwivec_def): New.
17010 (const_hwivec): New.
17011 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17012 (equiv_constant): Handle CONST_WIDE_INT.
17013 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17014 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17015 * dbxout.c (stabstr_U): Use wide-int interfaces.
17016 (dbxout_type): Update to use cst_fits_shwi_p.
17017 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17018 (TARGET_SUPPORTS_WIDE_INT): Add default.
17019 * dfp.c: Include wide-int.h.
17020 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17021 decimal_real_to_integer.
17022 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17023 decimal_real_to_integer.
17024 * doc/generic.texi (Constant expressions): Update for wide_int.
17025 * doc/rtl.texi (const_double): Likewise.
17026 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17027 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17028 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17029 (REAL_VALUE_FROM_INT): Remove.
17030 (TARGET_SUPPORTS_WIDE_INT): New.
17031 * doc/tm.texi: Regenerate.
17032 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17033 * double-int.h: Include wide-int.h.
17034 (struct wi::int_traits): New.
17035 * dwarf2out.c (get_full_len): New.
17036 (dw_val_equal_p): Add case dw_val_class_wide_int.
17037 (size_of_loc_descr): Likewise.
17038 (output_loc_operands): Likewise.
17039 (insert_double): Remove.
17040 (insert_wide_int): New.
17041 (add_AT_wide): New.
17042 (print_die): Add case dw_val_class_wide_int.
17043 (attr_checksum): Likewise.
17044 (attr_checksum_ordered): Likewise.
17045 (same_dw_val_p): Likewise.
17046 (size_of_die): Likewise.
17047 (value_format): Likewise.
17048 (output_die): Likewise.
17049 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17051 (clz_loc_descriptor): Use wide-int interfaces.
17052 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17053 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17054 (round_up_to_align): Use wide-int interfaces.
17055 (field_byte_offset): Likewise.
17056 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17057 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17058 CONST_DOUBLE handling. Use wide-int interfaces.
17059 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17060 (gen_enumeration_type_die): Use add_AT_wide.
17061 (hash_loc_operands): Add case dw_val_class_wide_int.
17062 (compare_loc_operands): Likewise.
17063 * dwarf2out.h: Include wide-int.h.
17064 (wide_int_ptr): New.
17065 (enum dw_val_class): Add dw_val_class_wide_int.
17066 (struct dw_val_struct): Add val_wide.
17067 * emit-rtl.c (const_wide_int_htab): New.
17068 (const_wide_int_htab_hash): New.
17069 (const_wide_int_htab_eq): New.
17070 (lookup_const_wide_int): New.
17071 (const_double_htab_hash): Use wide-int interfaces.
17072 (const_double_htab_eq): Likewise.
17073 (rtx_to_double_int): Conditionally compile for wide-int.
17074 (immed_double_int_const): Rename to immed_wide_int_const and
17075 update for wide-int.
17076 (immed_double_const): Conditionally compile for wide-int.
17077 (init_emit_once): Use wide-int interfaces.
17078 * explow.c (plus_constant): Likewise.
17079 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17080 (lshift_value): Use wide-int interfaces.
17081 (expand_mult): Likewise.
17082 (choose_multiplier): Likewise.
17083 (expand_smod_pow2): Likewise.
17084 (make_tree): Likewise.
17085 * expr.c (convert_modes): Consolidate handling of constants.
17086 Use wide-int interfaces.
17087 (emit_group_load_1): Add note.
17088 (store_expr): Update comment.
17089 (get_inner_reference): Use wide-int interfaces.
17090 (expand_constructor): Update comment.
17091 (expand_expr_real_2): Use wide-int interfaces.
17092 (expand_expr_real_1): Likewise.
17093 (reduce_to_bit_field_precision): Likewise.
17094 (const_vector_from_tree): Likewise.
17095 * final.c: Include wide-int-print.h.
17096 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17097 * fixed-value.c: Include wide-int.h.
17098 (fixed_from_string): Use wide-int interfaces.
17099 (fixed_to_decimal): Likewise.
17100 (fixed_convert_from_real): Likewise.
17101 (real_convert_from_fixed): Likewise.
17102 * fold-const.h (mem_ref_offset): Return an offset_int.
17103 (div_if_zero_remainder): Remove code parameter.
17104 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17105 Use wide-int interfaces.
17106 (may_negate_without_overflow_p): Use wide-int interfaces.
17107 (negate_expr_p): Likewise.
17108 (fold_negate_expr): Likewise.
17109 (int_const_binop_1): Likewise.
17110 (const_binop): Likewise.
17111 (fold_convert_const_int_from_int): Likewise.
17112 (fold_convert_const_int_from_real): Likewise.
17113 (fold_convert_const_int_from_fixed): Likewise.
17114 (fold_convert_const_fixed_from_int): Likewise.
17115 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17116 (sign_bit_p): Use wide-int interfaces.
17117 (make_range_step): Likewise.
17118 (build_range_check): Likewise. Pass an integer of the correct type
17119 instead of using integer_one_node.
17120 (range_predecessor): Pass an integer of the correct type instead
17121 of using integer_one_node.
17122 (range_successor): Likewise.
17123 (merge_ranges): Likewise.
17124 (unextend): Use wide-int interfaces.
17125 (extract_muldiv_1): Likewise.
17126 (fold_div_compare): Likewise.
17127 (fold_single_bit_test): Likewise.
17128 (fold_sign_changed_comparison): Likewise.
17129 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17130 (fold_plusminus_mult_expr): Use wide-int interfaces.
17131 (native_encode_int): Likewise.
17132 (native_interpret_int): Likewise.
17133 (fold_unary_loc): Likewise.
17134 (pointer_may_wrap_p): Likewise.
17135 (size_low_cst): Likewise.
17136 (mask_with_tz): Likewise.
17137 (fold_binary_loc): Likewise.
17138 (fold_ternary_loc): Likewise.
17139 (multiple_of_p): Likewise.
17140 (tree_call_nonnegative_warnv_p): Update calls to
17141 tree_int_cst_min_precision and real_from_integer.
17142 (fold_negate_const): Use wide-int interfaces.
17143 (fold_abs_const): Likewise.
17144 (fold_relational_const): Use tree_int_cst_lt.
17145 (round_up_loc): Use wide-int interfaces.
17146 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17147 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17148 * gengtype.c: Remove include of double-int.h.
17149 (do_typedef): Use wide-int interfaces.
17150 (open_base_files): Add wide-int.h.
17151 (main): Add offset_int and widest_int typedefs.
17152 * gengtype-lex.l: Handle "^".
17153 (CXX_KEYWORD): Add "static".
17154 * gengtype-parse.c (require3): New.
17155 (require_template_declaration): Handle constant template arguments
17156 and nested templates.
17157 * gengtype-state.c: Don't include "double-int.h".
17158 * genpreds.c (write_one_predicate_function): Update comment.
17159 (write_tm_constrs_h): Add check for hval and lval use in
17161 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17162 (add_to_sequence): Likewise.
17163 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17164 and const_double_operand.
17165 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17167 * gimple-fold.c (get_base_constructor): Likewise.
17168 (fold_array_ctor_reference): Likewise.
17169 (fold_nonarray_ctor_reference): Likewise.
17170 (fold_const_aggregate_ref_1): Likewise.
17171 (gimple_val_nonnegative_real_p): Likewise.
17172 (gimple_fold_indirect_ref): Likewise.
17173 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17174 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17175 (struct slsr_cand_d): Change index to be widest_int.
17176 (struct incr_info_d): Change incr to be widest_int.
17177 (alloc_cand_and_find_basis): Use wide-int interfaces.
17178 (slsr_process_phi): Likewise.
17179 (backtrace_base_for_ref): Likewise. Return a widest_int.
17180 (restructure_reference): Take a widest_int instead of a double_int.
17181 (slsr_process_ref): Use wide-int interfaces.
17182 (create_mul_ssa_cand): Likewise.
17183 (create_mul_imm_cand): Likewise.
17184 (create_add_ssa_cand): Likewise.
17185 (create_add_imm_cand): Take a widest_int instead of a double_int.
17186 (slsr_process_add): Use wide-int interfaces.
17187 (slsr_process_cast): Likewise.
17188 (slsr_process_copy): Likewise.
17189 (dump_candidate): Likewise.
17190 (dump_incr_vec): Likewise.
17191 (replace_ref): Likewise.
17192 (cand_increment): Likewise. Return a widest_int.
17193 (cand_abs_increment): Likewise.
17194 (replace_mult_candidate): Take a widest_int instead of a double_int.
17195 (replace_unconditional_candidate): Use wide-int interfaces.
17196 (incr_vec_index): Take a widest_int instead of a double_int.
17197 (create_add_on_incoming_edge): Likewise.
17198 (create_phi_basis): Use wide-int interfaces.
17199 (replace_conditional_candidate): Likewise.
17200 (record_increment): Take a widest_int instead of a double_int.
17201 (record_phi_increments): Use wide-int interfaces.
17202 (phi_incr_cost): Take a widest_int instead of a double_int.
17203 (lowest_cost_path): Likewise.
17204 (total_savings): Likewise.
17205 (analyze_increments): Use wide-int interfaces.
17206 (ncd_with_phi): Take a widest_int instead of a double_int.
17207 (ncd_of_cand_and_phis): Likewise.
17208 (nearest_common_dominator_for_cands): Likewise.
17209 (insert_initializers): Use wide-int interfaces.
17210 (all_phi_incrs_profitable): Likewise.
17211 (replace_one_candidate): Likewise.
17212 (replace_profitable_candidates): Likewise.
17213 * godump.c: Include wide-int-print.h.
17214 (go_output_typedef): Use wide-int interfaces.
17215 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17216 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17217 (build_loop_iteration_domains): Likewise.
17218 * hooks.h: Include wide-int.h rather than double-int.h.
17219 (hook_bool_dint_dint_uint_bool_true): Delete.
17220 (hook_bool_wint_wint_uint_bool_true): Declare.
17221 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17222 (hook_bool_wint_wint_uint_bool_true): New.
17223 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17225 (ubsan_expand_si_overflow_mul_check): Likewise.
17226 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17227 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17228 (get_ancestor_addr_info): Likewise.
17229 (ipa_modify_call_arguments): Likewise.
17230 * loop-doloop.c (doloop_modify): Likewise.
17231 (doloop_optimize): Likewise.
17232 * loop-iv.c (iv_number_of_iterations): Likewise.
17233 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17234 (unroll_loop_constant_iterations): Likewise.
17235 (decide_unroll_runtime_iterations): Likewise.
17236 (unroll_loop_runtime_iterations): Likewise.
17237 (decide_peel_simple): Likewise.
17238 (decide_unroll_stupid): Likewise.
17239 * lto-streamer-in.c (streamer_read_wi): Add.
17240 (input_cfg): Use wide-int interfaces.
17241 (lto_input_tree_1): Likewise.
17242 * lto-streamer-out.c (streamer_write_wi): Add.
17243 (hash_tree): Use wide-int interfaces.
17244 (output_cfg): Likewise.
17245 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17246 (GTFILES): Add wide-int.h and signop.h.
17247 (TAGS): Look for .cc files too.
17248 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17249 * optabs.c (expand_subword_shift): Likewise.
17250 (expand_doubleword_shift): Likewise.
17251 (expand_absneg_bit): Likewise.
17252 (expand_copysign_absneg): Likewise.
17253 (expand_copysign_bit): Likewise.
17254 * postreload.c (reload_cse_simplify_set): Likewise.
17255 * predict.c (predict_iv_comparison): Likewise.
17256 * pretty-print.h: Include wide-int-print.h.
17258 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17259 * print-tree.c: Include wide-int-print.h.
17260 (print_node_brief): Use wide-int interfaces.
17261 (print_node): Likewise.
17262 * read-rtl.c (validate_const_wide_int): New.
17263 (read_rtx_code): Add CONST_WIDE_INT case.
17264 * real.c: Include wide-int.h.
17265 (real_to_integer2): Delete.
17266 (real_to_integer): New function, returning a wide_int.
17267 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17268 (ten_to_ptwo): Update call to real_from_integer.
17269 (real_digit): Likewise.
17270 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17271 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17272 (REAL_VALUE_TO_INT): Delete.
17273 (real_to_integer): Declare a wide-int form.
17274 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17275 * recog.c (const_int_operand): Improve comment.
17276 (const_scalar_int_operand): New.
17277 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17278 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17279 (split_double): Likewise.
17280 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17281 (rtx_size): Likewise.
17282 (rtx_alloc_stat_v): New.
17283 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17284 (cwi_output_hex): New.
17285 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17286 (cwi_check_failed_bounds): New.
17287 * rtl.def (CONST_WIDE_INT): New.
17288 * rtl.h: Include <utility> and wide-int.h.
17289 (struct hwivec_def): New.
17290 (CWI_GET_NUM_ELEM): New.
17291 (CWI_PUT_NUM_ELEM): New.
17292 (struct rtx_def): Add num_elem and hwiv.
17293 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17294 (CASE_CONST_UNIQUE): Likewise.
17295 (CASE_CONST_ANY): Likewise.
17296 (CONST_SCALAR_INT_P): Likewise.
17297 (CONST_WIDE_INT_P): New.
17299 (HWIVEC_CHECK): New.
17300 (cwi_check_failed_bounds): New.
17302 (HWIVEC_CHECK): New.
17303 (CONST_WIDE_INT_VEC) New.
17304 (CONST_WIDE_INT_NUNITS) New.
17305 (CONST_WIDE_INT_ELT) New.
17306 (rtx_mode_t): New type.
17307 (wi::int_traits <rtx_mode_t>): New.
17309 (wi::min_value): New.
17310 (wi::max_value): New.
17312 (const_wide_int_alloc): New.
17313 (immed_wide_int_const): New.
17314 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17315 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17316 * signop.h: New file.
17317 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17318 (simplify_const_unary_operation): Use wide-int interfaces.
17319 (simplify_binary_operation_1): Likewise.
17320 (simplify_const_binary_operation): Likewise.
17321 (simplify_const_relational_operation): Likewise.
17322 (simplify_immed_subreg): Likewise.
17323 * stmt.c (expand_case): Likewise.
17324 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17325 signop rather than a bool.
17326 * stor-layout.c (layout_type): Use wide-int interfaces.
17327 (initialize_sizetypes): Update calls to
17328 set_min_and_max_values_for_integral_type.
17329 (set_min_and_max_values_for_integral_type): Take a signop rather
17330 than a bool. Use wide-int interfaces.
17331 (fixup_signed_type): Update accordingly. Remove
17332 HOST_BITS_PER_DOUBLE_INT limit.
17333 (fixup_unsigned_type): Likewise.
17334 * system.h (STATIC_CONSTANT_P): New.
17335 (STATIC_ASSERT): New.
17336 * target.def (can_use_doloop_p): Take widest_ints rather than
17338 * target.h: Include wide-int.h rather than double-int.h.
17339 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17341 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17342 rather than INT_CST_LT_UNSIGNED.
17343 (can_use_doloop_if_innermost): Take widest_ints rather than
17345 * tree-affine.c: Include wide-int-print.h.
17346 (double_int_ext_for_comb): Delete.
17347 (wide_int_ext_for_comb): New.
17348 (aff_combination_zero): Use wide-int interfaces.
17349 (aff_combination_const): Take a widest_int instead of a double_int.
17350 (aff_combination_elt): Use wide-int interfaces.
17351 (aff_combination_scale): Take a widest_int instead of a double_int.
17352 (aff_combination_add_elt): Likewise.
17353 (aff_combination_add_cst): Likewise.
17354 (aff_combination_add): Use wide-int interfaces.
17355 (aff_combination_convert): Likewise.
17356 (tree_to_aff_combination): Likewise.
17357 (add_elt_to_tree): Take a widest_int instead of a double_int.
17358 (aff_combination_to_tree): Use wide-int interfaces.
17359 (aff_combination_remove_elt): Likewise.
17360 (aff_combination_add_product): Take a widest_int instead of
17362 (aff_combination_mult): Use wide-int interfaces.
17363 (aff_combination_expand): Likewise.
17364 (double_int_constant_multiple_p): Delete.
17365 (wide_int_constant_multiple_p): New.
17366 (aff_combination_constant_multiple_p): Take a widest_int pointer
17367 instead of a double_int pointer.
17368 (print_aff): Use wide-int interfaces.
17369 (get_inner_reference_aff): Take a widest_int pointer
17370 instead of a double_int pointer.
17371 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17372 * tree-affine.h: Include wide-int.h.
17373 (struct aff_comb_elt): Change type of coef to widest_int.
17374 (struct affine_tree_combination): Change type of offset to widest_int.
17375 (double_int_ext_for_comb): Delete.
17376 (wide_int_ext_for_comb): New.
17377 (aff_combination_const): Use widest_int instead of double_int.
17378 (aff_combination_scale): Likewise.
17379 (aff_combination_add_elt): Likewise.
17380 (aff_combination_constant_multiple_p): Likewise.
17381 (get_inner_reference_aff): Likewise.
17382 (aff_comb_cannot_overlap_p): Likewise.
17383 (aff_combination_zero_p): Use wide-int interfaces.
17384 * tree.c: Include tree.h.
17385 (init_ttree): Use make_int_cst.
17386 (tree_code_size): Removed code for INTEGER_CST case.
17387 (tree_size): Add INTEGER_CST case.
17388 (make_node_stat): Update comment.
17389 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17390 (build_int_cst_type): Use wide-int interfaces.
17391 (double_int_to_tree): Likewise.
17392 (double_int_fits_to_tree_p): Delete.
17393 (force_fit_type_double): Delete.
17394 (force_fit_type): New.
17395 (int_cst_hash_hash): Use wide-int interfaces.
17396 (int_cst_hash_eq): Likewise.
17397 (build_int_cst_wide): Delete.
17398 (wide_int_to_tree): New.
17399 (cache_integer_cst): Use wide-int interfaces.
17400 (build_low_bits_mask): Likewise.
17401 (cst_and_fits_in_hwi): Likewise.
17402 (real_value_from_int_cst): Likewise.
17403 (make_int_cst_stat): New.
17404 (integer_zerop): Use wide_int interfaces.
17405 (integer_onep): Likewise.
17406 (integer_all_onesp): Likewise.
17407 (integer_pow2p): Likewise.
17408 (integer_nonzerop): Likewise.
17409 (tree_log2): Likewise.
17410 (tree_floor_log2): Likewise.
17411 (tree_ctz): Likewise.
17412 (int_size_in_bytes): Likewise.
17413 (mem_ref_offset): Return an offset_int rather than a double_int.
17414 (build_type_attribute_qual_variant): Use wide_int interfaces.
17415 (type_hash_eq): Likewise
17416 (tree_int_cst_equal): Likewise.
17417 (tree_int_cst_lt): Delete.
17418 (tree_int_cst_compare): Likewise.
17419 (tree_fits_shwi_p): Use wide_int interfaces.
17420 (tree_fits_uhwi_p): Likewise.
17421 (tree_int_cst_sign_bit): Likewise.
17422 (tree_int_cst_sgn): Likewise.
17423 (tree_int_cst_min_precision): Take a signop rather than a bool.
17424 (simple_cst_equal): Use wide_int interfaces.
17425 (compare_tree_int): Likewise.
17426 (iterative_hash_expr): Likewise.
17427 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17429 (get_type_static_bounds): Use wide_int interfaces.
17430 (tree_int_cst_elt_check_failed): New.
17431 (build_common_tree_nodes): Reordered to set prec before filling in
17433 (int_cst_value): Check cst_and_fits_in_hwi.
17434 (widest_int_cst_value): Use wide_int interfaces.
17435 (upper_bound_in_type): Likewise.
17436 (lower_bound_in_type): Likewise.
17437 (num_ending_zeros): Likewise.
17438 (drop_tree_overflow): Likewise.
17439 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17440 (gen_conditions_for_pow_cst_base): Likewise.
17441 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17442 (group_case_labels_stmt): Use wide-int interfaces.
17443 (verify_gimple_assign_binary): Likewise.
17444 (print_loop): Likewise.
17445 * tree-chrec.c (tree_fold_binomial): Likewise.
17446 * tree-core.h (struct tree_base): Add int_length.
17447 (struct tree_int_cst): Change rep of value.
17448 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17449 (dr_may_alias_p): Likewise.
17450 (max_stmt_executions_tree): Likewise.
17451 * tree.def (INTEGER_CST): Update comment.
17452 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17453 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17454 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17455 (dequeue_and_dump): Use wide-int interfaces.
17456 * tree.h: Include wide-int.h.
17457 (NULL_TREE): Moved to earlier loc in file.
17458 (TREE_INT_CST_ELT_CHECK): New.
17459 (tree_int_cst_elt_check_failed): New.
17461 (TREE_INT_CST): Delete.
17462 (TREE_INT_CST_LOW): Use wide-int interfaces.
17463 (TREE_INT_CST_HIGH): Delete.
17464 (TREE_INT_CST_NUNITS): New.
17465 (TREE_INT_CST_EXT_NUNITS): Likewise.
17466 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17467 (TREE_INT_CST_ELT): Likewise.
17468 (INT_CST_LT): Delete.
17469 (tree_int_cst_elt_check): New (two forms).
17470 (type_code_size): Update comment.
17471 (make_int_cst_stat, make_int_cst): New.
17472 (tree_to_double_int): Delete.
17473 (double_int_fits_to_tree_p): Delete.
17474 (force_fit_type_double): Delete.
17475 (build_int_cstu): Replace with out-of-line function.
17476 (build_int_cst_wide): Delete.
17477 (tree_int_cst_lt): Define inline.
17478 (tree_int_cst_le): New.
17479 (tree_int_cst_compare): Define inline.
17480 (tree_int_cst_min_precision): Take a signop rather than a bool.
17481 (wi::int_traits <const_tree>): New.
17482 (wi::int_traits <tree>): New.
17483 (wi::extended_tree): New.
17484 (wi::int_traits <wi::extended_tree>): New.
17485 (wi::to_widest): New.
17486 (wi::to_offset): New.
17487 (wi::fits_to_tree_p): New.
17488 (wi::min_value): New.
17489 (wi::max_value): New.
17490 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17491 (copy_tree_body_r): Likewise.
17492 * tree-object-size.c (compute_object_offset): Likewise.
17493 (addr_object_size): Likewise.
17494 * tree-predcom.c: Include wide-int-print.h.
17495 (struct dref_d): Change type of offset to widest_int.
17496 (dump_dref): Call wide-int printer.
17497 (aff_combination_dr_offset): Use wide-int interfaces.
17498 (determine_offset): Take a widest_int pointer rather than a
17499 double_int pointer.
17500 (split_data_refs_to_components): Use wide-int interfaces.
17501 (suitable_component_p): Likewise.
17502 (order_drefs): Likewise.
17503 (add_ref_to_chain): Likewise.
17504 (valid_initializer_p): Likewise.
17505 (determine_roots_comp): Likewise.
17506 * tree-pretty-print.c: Include wide-int-print.h.
17507 (dump_generic_node): Use wide-int interfaces.
17508 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17509 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17510 (move_fixed_address_to_symbol): Likewise.
17511 (move_hint_to_base): Likewise.
17512 (move_pointer_to_base): Likewise.
17513 (move_variant_to_index): Likewise.
17514 (most_expensive_mult_to_index): Likewise.
17515 (addr_to_parts): Likewise.
17516 (copy_ref_info): Likewise.
17517 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17518 (indirect_refs_may_alias_p): Likewise.
17519 (stmt_kills_ref_p_1): Likewise.
17520 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17521 * tree-ssa-ccp.c: Update comment at top of file. Include
17523 (struct prop_value_d): Change type of mask to widest_int.
17524 (extend_mask): New function.
17525 (dump_lattice_value): Use wide-int interfaces.
17526 (get_default_value): Likewise.
17527 (set_constant_value): Likewise.
17528 (set_value_varying): Likewise.
17529 (valid_lattice_transition): Likewise.
17530 (set_lattice_value): Likewise.
17531 (value_to_double_int): Delete.
17532 (value_to_wide_int): New.
17533 (get_value_from_alignment): Use wide-int interfaces.
17534 (get_value_for_expr): Likewise.
17535 (do_dbg_cnt): Likewise.
17536 (ccp_finalize): Likewise.
17537 (ccp_lattice_meet): Likewise.
17538 (bit_value_unop_1): Use widest_ints rather than double_ints.
17539 (bit_value_binop_1): Likewise.
17540 (bit_value_unop): Use wide-int interfaces.
17541 (bit_value_binop): Likewise.
17542 (bit_value_assume_aligned): Likewise.
17543 (evaluate_stmt): Likewise.
17544 (ccp_fold_stmt): Likewise.
17545 (visit_cond_stmt): Likewise.
17546 (ccp_visit_stmt): Likewise.
17547 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17548 (constant_pointer_difference): Likewise.
17549 (associate_pointerplus): Likewise.
17550 (combine_conversions): Likewise.
17551 * tree-ssa-loop.h: Include wide-int.h.
17552 (struct tree_niter_desc): Change type of max to widest_int.
17553 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17554 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17555 (remove_redundant_iv_tests): Likewise.
17556 (canonicalize_loop_induction_variables): Likewise.
17557 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17558 (constant_multiple_of): Take a widest_int pointer instead of
17559 a double_int pointer.
17560 (get_computation_aff): Use wide-int interfaces.
17561 (ptr_difference_cost): Likewise.
17562 (difference_cost): Likewise.
17563 (get_loop_invariant_expr_id): Likewise.
17564 (get_computation_cost_at): Likewise.
17565 (iv_elimination_compare_lt): Likewise.
17566 (may_eliminate_iv): Likewise.
17567 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17568 instead of double_int.
17569 (max_loop_iterations): Likewise.
17570 (max_stmt_executions): Likewise.
17571 (estimated_stmt_executions): Likewise.
17572 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17573 (split_to_var_and_offset): Use wide-int interfaces.
17574 (determine_value_range): Likewise.
17575 (bound_difference_of_offsetted_base): Likewise.
17576 (bounds_add): Take a widest_int instead of a double_int.
17577 (number_of_iterations_ne_max): Use wide-int interfaces.
17578 (number_of_iterations_ne): Likewise.
17579 (number_of_iterations_lt_to_ne): Likewise.
17580 (assert_loop_rolls_lt): Likewise.
17581 (number_of_iterations_lt): Likewise.
17582 (number_of_iterations_le): Likewise.
17583 (number_of_iterations_cond): Likewise.
17584 (number_of_iterations_exit): Likewise.
17585 (finite_loop_p): Likewise.
17586 (derive_constant_upper_bound_assign): Likewise.
17587 (derive_constant_upper_bound): Return a widest_int.
17588 (derive_constant_upper_bound_ops): Likewise.
17589 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17590 (record_estimate): Take a widest_int rather than a double_int.
17591 (record_nonwrapping_iv): Use wide-int interfaces.
17592 (double_int_cmp): Delete.
17593 (wide_int_cmp): New.
17594 (bound_index): Take a widest_int rather than a double_int.
17595 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17596 (maybe_lower_iteration_bound): Likewise.
17597 (estimate_numbers_of_iterations_loop): Likewise.
17598 (estimated_loop_iterations): Take a widest_int pointer than than
17599 a double_int pointer.
17600 (estimated_loop_iterations_int): Use wide-int interfaces.
17601 (max_loop_iterations): Take a widest_int pointer than than
17602 a double_int pointer.
17603 (max_loop_iterations_int): Use wide-int interfaces.
17604 (max_stmt_executions): Take a widest_int pointer than than
17605 a double_int pointer.
17606 (estimated_stmt_executions): Likewise.
17607 (n_of_executions_at_most): Use wide-int interfaces.
17608 (scev_probably_wraps_p): Likewise.
17609 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17610 to real_to_integer.
17611 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17613 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17614 double_ints. Adjust for trailing_wide_ints <3> representation.
17615 (set_nonzero_bits): Likewise.
17616 (get_range_info): Return wide_ints rather than double_ints.
17617 Adjust for trailing_wide_ints <3> representation.
17618 (get_nonzero_bits): Likewise.
17619 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17621 * tree-ssanames.h (struct range_info_def): Replace min, max and
17622 nonzero_bits with a trailing_wide_ints <3>.
17623 (set_range_info): Use wide_int_refs rather than double_ints.
17624 (set_nonzero_bits): Likewise.
17625 (get_range_info): Return wide_ints rather than double_ints.
17626 (get_nonzero_bits): Likewise.
17627 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17628 * tree-ssa-pre.c (phi_translate_1): Likewise.
17629 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17630 (acceptable_pow_call): Likewise.
17631 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17633 (vn_reference_fold_indirect): Likewise.
17634 (vn_reference_maybe_forwprop_address): Likewise.
17635 (valueize_refs_1): Likewise.
17636 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17637 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17638 tree_int_cst_lt and tree_int_cst_le.
17639 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17641 (streamer_alloc_tree): Likewise.
17642 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17643 (streamer_write_tree_header): Likewise.
17644 (streamer_write_integer_cst): Likewise.
17645 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17646 (build_constructors): Likewise.
17647 (array_value_type): Likewise.
17648 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17649 (vect_check_gather): Likewise.
17650 * tree-vect-generic.c (build_replicated_const): Likewise.
17651 (expand_vector_divmod): Likewise.
17652 * tree-vect-loop.c (vect_transform_loop): Likewise.
17653 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17654 (vect_do_peeling_for_alignment): Likewise.
17655 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17656 * tree-vrp.c: Include wide-int.h.
17657 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17658 (extract_range_from_assert): Use wide-int interfaces.
17659 (vrp_int_const_binop): Likewise.
17660 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17661 double_int pointers.
17662 (ranges_from_anti_range): Use wide-int interfaces.
17663 (quad_int_cmp): Delete.
17664 (quad_int_pair_sort): Likewise.
17665 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17666 (extract_range_from_unary_expr_1): Likewise.
17667 (adjust_range_with_scev): Likewise.
17668 (masked_increment): Take and return wide_ints rather than double_ints.
17669 (register_edge_assert_for_2): Use wide-int interfaces.
17670 (check_array_ref): Likewise.
17671 (search_for_addr_array): Likewise.
17672 (maybe_set_nonzero_bits): Likewise.
17673 (union_ranges): Pass an integer of the correct type instead of
17674 using integer_one_node.
17675 (intersect_ranges): Likewise.
17676 (simplify_truth_ops_using_ranges): Likewise.
17677 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17678 (range_fits_type_p): Likewise.
17679 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17681 (simplify_conversion_using_ranges): Use wide-int interfaces.
17682 (simplify_float_conversion_using_ranges): Likewise.
17683 (vrp_finalize): Likewise.
17684 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17685 (gimple_stringops_transform): Likewise.
17686 * varasm.c (decode_addr_const): Likewise.
17687 (const_hash_1): Likewise.
17688 (const_rtx_hash_1): Likewise
17689 (output_constant): Likewise.
17690 (array_size_for_constructor): Likewise.
17691 (output_constructor_regular_field): Likewise.
17692 (output_constructor_bitfield): Likewise.
17693 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17694 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17696 * gencheck.c: Define BITS_PER_UNIT.
17697 * wide-int.cc: New.
17699 * wide-int-print.cc: New.
17700 * wide-int-print.h: New.
17702 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17704 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17706 2014-05-06 Richard Biener <rguenther@suse.de>
17708 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17709 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17710 (TODO_verify_all): Adjust.
17711 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17712 TODO_verify_stmts and TODO_verify_rtl_sharing.
17713 * bb-reorder.c: Likewise.
17714 * cfgexpand.c: Likewise.
17715 * cprop.c: Likewise.
17717 * function.c: Likewise.
17718 * fwprop.c: Likewise.
17719 * gcse.c: Likewise.
17720 * gimple-ssa-isolate-paths.c: Likewise.
17721 * gimple-ssa-strength-reduction.c: Likewise.
17722 * ipa-split.c: Likewise.
17723 * loop-init.c: Likewise.
17724 * loop-unroll.c: Likewise.
17725 * lower-subreg.c: Likewise.
17726 * modulo-sched.c: Likewise.
17727 * postreload-gcse.c: Likewise.
17728 * predict.c: Likewise.
17729 * recog.c: Likewise.
17730 * sched-rgn.c: Likewise.
17731 * store-motion.c: Likewise.
17732 * tracer.c: Likewise.
17733 * trans-mem.c: Likewise.
17734 * tree-call-cdce.c: Likewise.
17735 * tree-cfg.c: Likewise.
17736 * tree-cfgcleanup.c: Likewise.
17737 * tree-complex.c: Likewise.
17738 * tree-eh.c: Likewise.
17739 * tree-emutls.c: Likewise.
17740 * tree-if-conv.c: Likewise.
17741 * tree-into-ssa.c: Likewise.
17742 * tree-loop-distribution.c: Likewise.
17743 * tree-object-size.c: Likewise.
17744 * tree-parloops.c: Likewise.
17745 * tree-pass.h: Likewise.
17746 * tree-sra.c: Likewise.
17747 * tree-ssa-ccp.c: Likewise.
17748 * tree-ssa-copy.c: Likewise.
17749 * tree-ssa-copyrename.c: Likewise.
17750 * tree-ssa-dce.c: Likewise.
17751 * tree-ssa-dom.c: Likewise.
17752 * tree-ssa-dse.c: Likewise.
17753 * tree-ssa-forwprop.c: Likewise.
17754 * tree-ssa-ifcombine.c: Likewise.
17755 * tree-ssa-loop-ch.c: Likewise.
17756 * tree-ssa-loop-ivcanon.c: Likewise.
17757 * tree-ssa-loop.c: Likewise.
17758 * tree-ssa-math-opts.c: Likewise.
17759 * tree-ssa-phiopt.c: Likewise.
17760 * tree-ssa-phiprop.c: Likewise.
17761 * tree-ssa-pre.c: Likewise.
17762 * tree-ssa-reassoc.c: Likewise.
17763 * tree-ssa-sink.c: Likewise.
17764 * tree-ssa-strlen.c: Likewise.
17765 * tree-ssa-tail-merge.c: Likewise.
17766 * tree-ssa-uncprop.c: Likewise.
17767 * tree-switch-conversion.c: Likewise.
17768 * tree-tailcall.c: Likewise.
17769 * tree-vect-generic.c: Likewise.
17770 * tree-vectorizer.c: Likewise.
17771 * tree-vrp.c: Likewise.
17772 * tsan.c: Likewise.
17773 * var-tracking.c: Likewise.
17774 * bt-load.c: Likewise.
17775 * cfgcleanup.c: Likewise.
17776 * combine-stack-adj.c: Likewise.
17777 * combine.c: Likewise.
17778 * compare-elim.c: Likewise.
17779 * config/epiphany/resolve-sw-modes.c: Likewise.
17780 * config/i386/i386.c: Likewise.
17781 * config/mips/mips.c: Likewise.
17782 * config/s390/s390.c: Likewise.
17783 * config/sh/sh_treg_combine.cc: Likewise.
17784 * config/sparc/sparc.c: Likewise.
17787 * final.c: Likewise.
17788 * ifcvt.c: Likewise.
17789 * mode-switching.c: Likewise.
17790 * passes.c: Likewise.
17791 * postreload.c: Likewise.
17793 * reg-stack.c: Likewise.
17794 * regcprop.c: Likewise.
17795 * regrename.c: Likewise.
17798 2014-05-06 Richard Biener <rguenther@suse.de>
17800 PR middle-end/61070
17801 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
17802 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
17804 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
17807 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
17809 2014-05-05 Radovan Obradovic <robradovic@mips.com>
17810 Tom de Vries <tom@codesourcery.com>
17812 * target.def (call_fusage_contains_non_callee_clobbers): New
17814 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
17816 (@node Miscellaneous Register Hooks): New node.
17817 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
17818 * doc/tm.texi: Regenerate.
17820 2014-05-05 Marek Polacek <polacek@redhat.com>
17823 * opts.c (common_handle_option): Call error_at instead of warning_at.
17825 2014-05-05 Richard Biener <rguenther@suse.de>
17827 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
17828 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
17829 under the TODO_verify_il umbrella.
17831 2014-05-05 Richard Biener <rguenther@suse.de>
17833 * passes.c (execute_function_todo): Move TODO_verify_flow under
17834 the TODO_verify_ul umbrella.
17836 2014-05-05 Richard Biener <rguenther@suse.de>
17838 PR middle-end/61010
17839 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
17840 X & CST away from a CST that is the mask of a mode.
17842 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17844 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
17845 int argument to enum machine_mode.
17846 (picochip_class_max_nregs): Ditto.
17847 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
17848 (picochip_class_max_nregs): Ditto.
17850 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17852 * target.def: Add new target hook.
17853 * doc/tm.texi: Regenerate.
17854 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
17855 * targhooks.c (default_keep_leaf_when_profiled): New function.
17857 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
17858 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
17860 2014-05-05 Bin Cheng <bin.cheng@arm.com>
17862 PR tree-optimization/60363
17863 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
17864 (copy_phi_args): New parameters. Call get_value_locus_in_path.
17865 (update_destination_phis): New parameter.
17866 (create_edge_and_update_destination_phis): Ditto.
17867 (ssa_fix_duplicate_block_edges): Pass new arguments.
17868 (thread_single_edge): Ditto.
17870 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
17872 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
17873 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
17874 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
17875 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
17876 Use RS6000_BTM_HARD_FLOAT.
17877 (BU_MISC_2): Likewise.
17878 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17879 RS6000_BTM_HARD_FLOAT.
17880 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
17881 is explicitly used.
17882 (rs6000_invalid_builtin): Add hard floating builtin support.
17883 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
17884 hard float builtins.
17885 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
17887 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17889 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
17890 Add missing function* argument.
17892 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17894 * lra-constraints.c (valid_address_p): Move earlier in file.
17895 Add a constraint argument to the address_info version.
17896 (satisfies_memory_constraint_p): New function.
17897 (satisfies_address_constraint_p): Likewise.
17898 (process_alt_operands, curr_insn_transform): Use them.
17899 (process_address): Pass the constraint to valid_address_p when
17900 checking address operands.
17902 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17904 * config/mips/mips.c (mips_isa_rev): New variable.
17905 (mips_set_architecture): Set it.
17906 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
17908 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
17909 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
17910 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
17911 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
17912 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
17913 conditions in terms of mips_isa_rev.
17914 (mips_isa_rev): Declare.
17916 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17918 * config/sh/sh-mem.cc: Use tabs instead of spaces.
17919 (prob_unlikely, prob_likely): Make variables const.
17921 2014-05-03 Denis Chertykov <chertykov@gmail.com>
17923 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
17925 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17927 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
17929 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17931 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
17932 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
17933 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
17935 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
17936 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
17938 Replace usage of ROUND_REG with sh_round_reg.
17939 Use CEIL instead of ROUND_ADVANCE.
17941 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17944 * config/sh/sh.c: Include stdlib headers before everything else.
17946 2014-05-02 Jakub Jelinek <jakub@redhat.com>
17948 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
17949 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
17950 (gimplify_adjust_omp_clauses): Simd region is never
17951 directly nested in combined parallel. Instead, for linear
17952 with copyin/copyout, if in combined for simd loop, make decl
17953 firstprivate/lastprivate on OMP_FOR.
17954 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
17955 expand_omp_for_static_chunk): When setting endvar, also set
17956 fd->loop.v to the same value.
17958 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17960 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
17962 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
17964 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
17967 2014-05-02 Marek Polacek <polacek@redhat.com>
17969 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
17971 2014-05-02 Kito Cheng <kito@0xlab.org>
17973 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
17974 to a C expression marco.
17975 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
17976 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
17977 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
17978 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
17979 HONOR_REG_ALLOC_ORDER.
17980 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
17982 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17984 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
17986 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17988 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
17990 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
17992 * tree-if-conv.c (is_cond_scalar_reduction): New function.
17993 (convert_scalar_cond_reduction): Likewise.
17994 (predicate_scalar_phi): Add recognition and transformation
17995 of simple conditioanl reduction to be vectorizable.
17997 2014-05-01 Marek Polacek <polacek@redhat.com>
18000 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18002 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18004 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18005 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18006 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18007 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18008 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18009 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18010 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18011 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18013 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18015 * config/arc/arc.opt (mlra): Move comment above option name
18016 to avoid mis-parsing as language options.
18018 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18020 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18021 * config/sol2.h: ... here.
18022 * config/sol2-10.h: Remove.
18024 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18025 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18026 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18027 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18028 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18029 * config/sol2.h: ... here.
18030 (SECTION_NAME_FORMAT): Don't redefine.
18031 (STARTFILE_ARCH32_SPEC): Rename to ...
18032 (STARTFILE_ARCH_SPEC): ... this.
18033 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18034 * config/sparc/sol2.h: ... here.
18035 (SECTION_NAME_FORMAT): Don't undef.
18036 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18037 (SUBTARGET_EXTRA_SPECS): Remove.
18038 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18040 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18041 (MD_STARTFILE_PREFIX): Remove.
18042 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18043 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18044 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18045 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18046 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18047 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18048 * config/i386/sol2.h: ... here.
18049 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18050 * config/i386/sol2-bi.h: Remove.
18051 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18052 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18054 * config/i386/t-sol2-64: Rename to ...
18055 * config/i386/t-sol2: ... this.
18056 * config/sparc/t-sol2-64: Rename to ...
18057 * config/sparc/t-sol2: ... this.
18059 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18060 sol2_tm_file_head, sol2_tm_file_tail.
18061 Include ${cpu_type}/sol2.h before sol2.h.
18063 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18064 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18065 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18066 Reflect i386/t-sol2-64 renaming.
18067 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18068 Reflect sparc/t-sol2-64 renaming.
18070 2014-04-30 Richard Biener <rguenther@suse.de>
18072 * passes.c (execute_function_todo): Move TODO_verify_stmts
18073 and TODO_verify_ssa under the TODO_verify_il umbrella.
18074 * tree-ssa.h (verify_ssa): Adjust prototype.
18075 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18076 we should verify SSA operands.
18077 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18078 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18079 whether we should verify whether not throwing stmts have EH info.
18080 * graphite-scop-detection.c (create_sese_edges): Adjust.
18081 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18082 * tree-eh.c (lower_try_finally_switch): Do not add the
18083 default case label twice.
18085 2014-04-30 Marek Polacek <polacek@redhat.com>
18087 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18088 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18089 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18090 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18092 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18094 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18095 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18096 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18097 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18098 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18099 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18100 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18101 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18103 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18105 * tree-cfg.c (dump_function_to_file): Dump the return type of
18106 functions, in a line to itself before the function body, mimicking
18107 the layout of a C function.
18109 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18111 PR tree-optimization/60971
18112 * tree-tailcall.c (process_assignment): Reject conversions which
18115 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18117 * calls.c (initialize_argument_information): Always treat
18118 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18119 (expand_call): Likewise.
18120 (emit_library_call_calue_1): Likewise.
18121 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18122 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18125 2014-04-29 Nick Clifton <nickc@redhat.com>
18127 * config/msp430/msp430.md (umulsidi): Fix typo.
18128 (mulhisi3): Enable even inside interrupt handlers.
18129 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18130 bigger return address pushed in large mode.
18132 2014-04-29 Nick Clifton <nickc@redhat.com>
18134 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18135 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18137 * config/m32r/m32r.c (init_reg_tables): Likewise.
18138 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18139 enum to hold the modes.
18141 2014-04-29 Richard Biener <rguenther@suse.de>
18143 * dominance.c (free_dominance_info): Add overload with
18144 function parameter.
18145 (dom_info_state): Likewise.
18146 (dom_info_available_p): Likewise.
18147 * basic-block.h (free_dominance_info, dom_info_state,
18148 dom_info_available_p): Declare overloads.
18149 * passes.c (execute_function_todo): Verify that verifiers
18150 don't change dominator info state. Drop dominator info
18151 for IPA pass invocations.
18152 * cgraph.c (release_function_body): Restore asserts that
18153 dominator information is released.
18155 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18157 * doc/invoke.texi: Fix typo.
18158 * tree-vrp.c: Fix typos.
18159 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18161 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18163 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18165 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18167 * config/aarch64/aarch64-builtins.c
18168 (aarch64_types_storestruct_lane_qualifiers): New.
18169 (TYPES_STORESTRUCT_LANE): Likewise.
18170 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18171 (st3_lane): Likewise.
18172 (st4_lane): Likewise.
18173 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18174 (vec_store_lanesci_lane<mode>): Likewise.
18175 (vec_store_lanesxi_lane<mode>): Likewise.
18176 (aarch64_st2_lane<VQ:mode>): Likewise.
18177 (aarch64_st3_lane<VQ:mode>): Likewise.
18178 (aarch64_st4_lane<VQ:mode>): Likewise.
18179 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18180 * config/aarch64/arm_neon.h
18181 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18182 use new macro arguments.
18183 (__ST3_LANE_FUNC): Likewise.
18184 (__ST4_LANE_FUNC): Likewise.
18185 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18186 (V_THREE_ELEM): Likewise.
18187 (V_FOUR_ELEM): Likewise.
18189 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18191 * doc/gimple.texi: Replace the description of the now-defunct
18192 union gimple_statement_d with a diagram showing the
18193 gimple_statement_base class hierarchy and its relationships to
18194 the GSS_ and GIMPLE_ enums.
18196 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18198 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18199 * config/aarch64/aarch64.c
18200 (aarch64_cannot_change_mode_class): Weaken conditions.
18201 (aarch64_modes_tieable_p): New.
18202 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18204 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18206 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18207 (loadsync_<mode>): Change mode.
18208 (load_quadpti, store_quadpti): New.
18209 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18210 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18212 2014-04-28 Martin Jambor <mjambor@suse.cz>
18214 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18215 same alias type as the original statement.
18216 (subreplacement_assignment_data): New type.
18217 (handle_unscalarized_data_in_subtree): New type of parameter,
18218 generate new memory accesses with same alias type as the original
18220 (load_assign_lhs_subreplacements): Likewise.
18221 (sra_modify_constructor_assign): Generate new memory accesses with
18222 same alias type as the original statement.
18224 2014-04-28 Richard Biener <rguenther@suse.de>
18226 * tree-pass.h (TODO_verify_il): Define.
18227 (TODO_verify_all): Complete properly.
18228 * passes.c (execute_function_todo): Move existing loop-closed
18229 SSA verification under TODO_verify_il.
18230 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18231 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18232 Fix tree sharing issue.
18234 2014-04-28 Richard Biener <rguenther@suse.de>
18236 PR middle-end/60092
18237 * builtins.def (DEF_C11_BUILTIN): Add.
18238 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18239 * coretypes.h (enum function_class): Add function_c11_misc.
18240 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18241 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18242 (call_may_clobber_ref_p_1): Likewise.
18243 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18244 (mark_all_reaching_defs_necessary_1): Likewise.
18245 (propagate_necessity): Likewise.
18246 (eliminate_unnecessary_stmts): Likewise.
18247 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18249 2014-04-28 Richard Biener <rguenther@suse.de>
18251 * tree-vrp.c (vrp_var_may_overflow): Remove.
18252 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18253 with overflow immediately bump to one before that value and
18254 let iteration figure out overflow status.
18256 2014-04-28 Richard Biener <rguenther@suse.de>
18258 * configure.ac: Do valgrind header checks unconditionally.
18259 Add --enable-valgrind-annotations.
18260 * system.h: Guard valgrind header inclusion with
18261 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18262 * alloc-pool.c (pool_alloc, pool_free): Use
18263 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18264 to guard possibly dead code.
18265 * config.in: Regenerated.
18266 * configure: Likewise.
18268 2014-04-28 Jeff Law <law@redhat.com>
18270 PR tree-optimization/60902
18271 * tree-ssa-threadedge.c
18272 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18273 over real defs when invalidating outputs from statements that do not
18274 produce useful outputs for threading.
18276 2014-04-28 Richard Biener <rguenther@suse.de>
18278 PR tree-optimization/60979
18279 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18280 SCOPs that end in a block with a successor with abnormal
18283 2014-04-28 Richard Biener <rguenther@suse.de>
18285 * tree-pass.h (execute_pass_list): Adjust prototype.
18286 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18287 (do_per_function): Change callback signature, push all actual
18288 work to the callbals.
18289 (do_per_function_toporder): Likewise.
18290 (execute_function_dump): Adjust.
18291 (execute_function_todo): Likewise.
18292 (clear_last_verified): Likewise.
18293 (verify_curr_properties): Likewise.
18294 (update_properties_after_pass): Likewise.
18295 (execute_pass_list_1): Split out from ...
18296 (execute_pass_list): ... here. Adjust.
18297 (execute_ipa_pass_list): Likewise.
18298 * cgraphunit.c (cgraph_add_new_function): Adjust.
18299 (analyze_function): Likewise.
18300 (expand_function): Likewise.
18301 * cgraph.c (release_function_body): Free dominance info
18302 here instead of asserting it was magically freed elsewhere.
18304 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18306 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18307 * configure: Regenerate.
18308 * config/sparc/sparc.opt (muser-mode): New option.
18309 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18311 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18312 * doc/invoke.texi (SPARC options): Document -muser-mode.
18314 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18316 * cselib.c (find_slot_memmode): Delete.
18317 (cselib_hasher): Change compare_type to a struct.
18318 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18320 (preserve_constants_and_equivs): Adjust for new compare_type.
18321 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18322 (wrap_constant): Delete.
18323 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18325 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18327 * doc/install.texi (Building with profile feedback): Remove
18330 2014-04-26 Tom de Vries <tom@codesourcery.com>
18332 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18335 2014-04-25 Cary Coutant <ccoutant@google.com>
18338 * dwarf2out.c (should_move_die_to_comdat): A type definition
18339 can contain a subprogram definition, but don't move it to a
18341 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18342 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18344 (clone_tree_hash): Rename to...
18345 (clone_tree_partial): ...this; change callers. Copy
18346 DW_TAG_subprogram DIEs as declarations.
18347 (copy_decls_walk): Don't copy children of a declaration into a
18350 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18353 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18356 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18358 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18359 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18361 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18364 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18366 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18368 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18370 PR tree-optimization/60930
18371 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18372 creating a multiply candidate by folding two constant
18373 multiplicands when the result overflows.
18375 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18377 PR tree-optimization/60960
18378 * tree-vect-generic.c (expand_vector_operation): Only call
18379 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18381 2014-04-25 Tom de Vries <tom@codesourcery.com>
18383 * expr.c (clobber_reg_mode): New function.
18384 * expr.h (clobber_reg): New function.
18386 2014-04-25 Tom de Vries <tom@codesourcery.com>
18388 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18391 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18392 Tom de Vries <tom@codesourcery.com>
18394 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18396 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18397 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18398 new argument to find_all_hard_reg_sets call.
18400 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18402 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18403 Use HOST_WIDE_INT_C for mask literal.
18404 (aarch_rev16_shleft_mask_imm_p): Likewise.
18406 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18409 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18411 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18413 PR preprocessor/56540
18414 * config/i386/i386-c.c (ix86_target_macros): Define
18415 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18417 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18419 * configure.ac (tga_func): Remove.
18420 (LIB_TLS_SPEC): Remove.
18421 * configure: Regenerate.
18422 * config.in: Regenerate.
18423 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18425 2014-04-25 Richard Biener <rguenther@suse.de>
18428 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18429 call stmt use/clobber sets during stmt walk instead of
18430 walking the possibly incomplete set of caller edges.
18432 2014-04-25 Richard Biener <rguenther@suse.de>
18435 * passes.c (apply_ipa_transforms): Inline into only caller ...
18436 (execute_one_pass): ... here. Properly bring in function
18437 bodies for nodes we want to apply IPA transforms to.
18439 2014-04-24 Cong Hou <congh@google.com>
18441 PR tree-optimization/60896
18442 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18443 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18444 (vect_mark_pattern_stmts): Set the def type of all statements in
18445 PATTERN_DEF_SEQ as vect_internal_def.
18447 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18449 * doc/extend.texi (PowerPC Built-in Functions): Document new
18450 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18451 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18453 * config/rs6000/predicates.md (const_0_to_3_operand): New
18454 predicate to match 0..3 integer constants.
18456 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18457 to support adding miscellaneous builtin functions.
18458 (BU_DFP_MISC_2): Likewise.
18459 (BU_P7_MISC_1): Likewise.
18460 (BU_P7_MISC_2): Likewise.
18461 (BU_P8V_MISC_3): Likewise.
18462 (BU_MISC_1): Likewise.
18463 (BU_MISC_2): Likewise.
18464 (DIVWE): Add extended divide builtin functions.
18465 (DIVWEO): Likewise.
18466 (DIVWEU): Likewise.
18467 (DIVWEUO): Likewise.
18469 (DIVDEO): Likewise.
18470 (DIVDEU): Likewise.
18471 (DIVDEUO): Likewise.
18472 (DXEX): Add decimal floating-point builtin functions.
18474 (DDEDPD): Likewise.
18475 (DDEDPDQ): Likewise.
18476 (DENBCD): Likewise.
18477 (DENBCDQ): Likewise.
18481 (DSCLIQ): Likewise.
18483 (DSCRIQ): Likewise.
18484 (CDTBCD): Add new BCD builtin functions.
18485 (CBCDTD): Likewise.
18486 (ADDG6S): Likewise.
18487 (BCDADD): Likewise.
18488 (BCDADD_LT): Likewise.
18489 (BCDADD_EQ): Likewise.
18490 (BCDADD_GT): Likewise.
18491 (BCDADD_OV): Likewise.
18492 (BCDSUB): Likewise.
18493 (BCDSUB_LT): Likewise.
18494 (BCDSUB_EQ): Likewise.
18495 (BCDSUB_GT): Likewise.
18496 (BCDSUB_OV): Likewise.
18497 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18498 (UNPACK_TD): Likewise.
18499 (PACK_TF): Likewise.
18500 (UNPACK_TF): Likewise.
18501 (UNPACK_TF_0): Likewise.
18502 (UNPACK_TF_1): Likewise.
18503 (PACK_V1TI): Likewise.
18504 (UNPACK_V1TI): Likewise.
18506 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18507 support for decimal floating point builtin functions.
18508 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18509 functions that take constant arguments.
18510 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18511 (rs6000_init_builtins): Setup long double, _Decimal64, and
18512 _Decimal128 types for new builtin functions.
18513 (builtin_function_type): Set the unsigned flags appropriately for
18514 the new builtin functions.
18515 (rs6000_opt_masks): Add support for decimal floating point builtin
18518 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18519 floating point builtin functions.
18520 (RS6000_BTM_COMMON): Likewise.
18521 (RS6000_BTI_long_double): Likewise.
18522 (RS6000_BTI_dfloat64): Likewise.
18523 (RS6000_BTI_dfloat128): Likewise.
18524 (long_double_type_internal_node): Likewise.
18525 (dfloat64_type_internal_node): Likewise.
18526 (dfloat128_type_internal_node): Likewise.
18528 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18529 2.07 bcd arithmetic instructions.
18530 (UNSPEC_BCDSUB): Likewise.
18531 (UNSPEC_BCD_OVERFLOW): Likewise.
18532 (UNSPEC_BCD_ADD_SUB): Likewise.
18533 (bcd_add_sub): Likewise.
18534 (BCD_TEST): Likewise.
18535 (bcd<bcd_add_sub>): Likewise.
18536 (bcd<bcd_add_sub>_test): Likewise.
18537 (bcd<bcd_add_sub>_test2): Likewise.
18538 (bcd<bcd_add_sub>_<code>): Likewise.
18539 (peephole2 for combined bcd ops): Likewise.
18541 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18542 decimal floating point builtin functions.
18543 (UNSPEC_DENBCD): Likewise.
18544 (UNSPEC_DXEX): Likewise.
18545 (UNSPEC_DIEX): Likewise.
18546 (UNSPEC_DSCLI): Likewise.
18547 (UNSPEC_DSCRI): Likewise.
18548 (D64_D128): Likewise.
18549 (dfp_suffix): Likewise.
18550 (dfp_ddedpd_<mode>): Likewise.
18551 (dfp_denbcd_<mode>): Likewise.
18552 (dfp_dxex_<mode>): Likewise.
18553 (dfp_diex_<mode>): Likewise.
18554 (dfp_dscli_<mode>): Likewise.
18555 (dfp_dscri_<mode>): Likewise.
18557 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18559 (UNSPEC_CDTBCD): Likewise.
18560 (UNSPEC_CBCDTD): Likewise.
18561 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18562 (UNSPEC_DIVEO): Likewise.
18563 (UNSPEC_DIVEU): Likewise.
18564 (UNSPEC_DIVEUO): Likewise.
18565 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18566 pack/unpack 128-bit types.
18567 (UNSPEC_PACK_128BIT): Likewise.
18568 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18569 (udiv<mode>3): Use idiv_ldiv mode attribute.
18570 (div<mode>3): Likewise.
18571 (addg6s): Add new BCD builtin functions.
18572 (cdtbcd): Likewise.
18573 (cbcdtd): Likewise.
18574 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18575 (div_extend): Likewise.
18576 (div<div_extend>_<mode>"): Likewise.
18577 (FP128_64): Add support for new builtin functions to pack/unpack
18579 (unpack<mode>): Likewise.
18580 (unpacktf_0): Likewise.
18581 (unpacktf_1): Likewise.
18582 (unpack<mode>_dm): Likewise.
18583 (unpack<mode>_nodm): Likewise.
18584 (pack<mode>): Likewise.
18585 (unpackv1ti): Likewise.
18586 (packv1ti): Likewise.
18588 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18590 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18593 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18595 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18596 * gimplify.c (omp_is_private): Change last argument's type to int.
18597 Only diagnose lastprivate if the simd argument is 1, only diagnose
18598 linear if the simd argument is 2.
18599 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18600 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18601 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18602 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18603 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18604 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18605 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18606 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18607 * tree-nested.c (convert_nonlocal_omp_clauses,
18608 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18610 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18613 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18616 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18618 * flag-types.h (enum ivar_visibility): Add.
18620 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18622 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18623 function * argument.
18625 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18627 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18629 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18630 Tom de Vries <tom@codesourcery.com>
18632 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18633 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18635 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18636 * emit-rtl.c (try_split): Same.
18638 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18639 Tom de Vries <tom@codesourcery.com>
18641 * common.opt (fuse-caller-save): New option.
18643 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18645 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18646 elements for big-endian.
18648 2014-04-24 Richard Biener <rguenther@suse.de>
18650 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18651 during TER and instead use the sepops interface for expanding
18652 non-GIMPLE_SINGLE_RHS.
18654 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18656 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18657 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18659 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18661 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18662 assembler 64-bit option.
18663 * configure: Regenerate.
18665 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18667 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18668 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18669 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18670 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18671 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18673 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18675 * config/aarch64/aarch64-builtins.c
18676 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18677 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18678 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18679 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18681 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18682 (Vrevsuff): New mode attribute.
18684 2014-04-24 Terry Guo <terry.guo@arm.com>
18686 * config/arm/arm.h (machine_function): Define variable
18687 after_arm_reorg here.
18688 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18689 (arm_split_constant): Update the way to access variable
18691 (arm_reorg): Ditto.
18692 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18694 2014-04-23 Tom de Vries <tom@codesourcery.com>
18696 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18698 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18700 * is-a.h: Update comments to reflect the following changes to the
18701 "pointerness" of the API, making the template parameter match the
18702 return type, allowing use of is-a.h with typedefs of pointers.
18703 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18704 that the return type matches the parameter to the is_a_helper.
18706 (dyn_cast): Likewise.
18708 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18709 pointer from the is-a.h API.
18711 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18712 (is_a_helper <cgraph_node *>::test): ...this, matching change to
18714 (is_a_helper <varpool_node>::test): Likewise, convert to...
18715 (is_a_helper <varpool_node *>::test): ...this.
18717 (varpool_first_variable): Update for removal of implicit pointer
18718 from the is-a.h API.
18719 (varpool_next_variable): Likewise.
18720 (varpool_first_static_initializer): Likewise.
18721 (varpool_next_static_initializer): Likewise.
18722 (varpool_first_defined_variable): Likewise.
18723 (varpool_next_defined_variable): Likewise.
18724 (cgraph_first_defined_function): Likewise.
18725 (cgraph_next_defined_function): Likewise.
18726 (cgraph_first_function): Likewise.
18727 (cgraph_next_function): Likewise.
18728 (cgraph_first_function_with_gimple_body): Likewise.
18729 (cgraph_next_function_with_gimple_body): Likewise.
18730 (cgraph_alias_target): Likewise.
18731 (varpool_alias_target): Likewise.
18732 (cgraph_function_or_thunk_node): Likewise.
18733 (varpool_variable_node): Likewise.
18734 (symtab_real_symbol_p): Likewise.
18735 * cgraphunit.c (referred_to_p): Likewise.
18736 (analyze_functions): Likewise.
18737 (handle_alias_pairs): Likewise.
18738 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
18739 * gimple-ssa.h (gimple_vuse_op): Likewise.
18740 (gimple_vdef_op): Likewise.
18741 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
18742 * gimple.c (gimple_build_asm_1): Likewise.
18743 (gimple_build_try): Likewise.
18744 (gimple_build_resx): Likewise.
18745 (gimple_build_eh_dispatch): Likewise.
18746 (gimple_build_omp_for): Likewise.
18747 (gimple_omp_for_set_clauses): Likewise.
18749 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
18750 (is_a_helper <gimple_statement_asm *>::test): ...this.
18751 (is_a_helper <gimple_statement_bind>::test): Convert to...
18752 (is_a_helper <gimple_statement_bind *>::test): ...this.
18753 (is_a_helper <gimple_statement_call>::test): Convert to...
18754 (is_a_helper <gimple_statement_call *>::test): ...this.
18755 (is_a_helper <gimple_statement_catch>::test): Convert to...
18756 (is_a_helper <gimple_statement_catch *>::test): ...this.
18757 (is_a_helper <gimple_statement_resx>::test): Convert to...
18758 (is_a_helper <gimple_statement_resx *>::test): ...this.
18759 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
18760 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
18761 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
18762 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
18763 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
18764 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
18765 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
18766 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
18767 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
18768 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
18769 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
18770 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
18771 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
18772 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
18773 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
18774 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
18775 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
18776 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
18777 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
18778 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
18779 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
18780 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
18781 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
18782 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
18783 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
18784 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
18785 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
18786 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
18787 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
18788 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
18789 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
18790 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
18791 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
18792 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
18793 (is_a_helper <gimple_statement_phi>::test): Convert to...
18794 (is_a_helper <gimple_statement_phi *>::test): ...this.
18795 (is_a_helper <gimple_statement_transaction>::test): Convert to...
18796 (is_a_helper <gimple_statement_transaction *>::test): ...this.
18797 (is_a_helper <gimple_statement_try>::test): Convert to...
18798 (is_a_helper <gimple_statement_try *>::test): ...this.
18799 (is_a_helper <gimple_statement_wce>::test): Convert to...
18800 (is_a_helper <gimple_statement_wce *>::test): ...this.
18801 (is_a_helper <const gimple_statement_asm>::test): Convert to...
18802 (is_a_helper <const gimple_statement_asm *>::test): ...this.
18803 (is_a_helper <const gimple_statement_bind>::test): Convert to...
18804 (is_a_helper <const gimple_statement_bind *>::test): ...this.
18805 (is_a_helper <const gimple_statement_call>::test): Convert to...
18806 (is_a_helper <const gimple_statement_call *>::test): ...this.
18807 (is_a_helper <const gimple_statement_catch>::test): Convert to...
18808 (is_a_helper <const gimple_statement_catch *>::test): ...this.
18809 (is_a_helper <const gimple_statement_resx>::test): Convert to...
18810 (is_a_helper <const gimple_statement_resx *>::test): ...this.
18811 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
18812 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
18813 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
18814 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
18815 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
18817 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
18819 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
18821 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
18823 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
18824 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
18825 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
18827 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
18828 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
18830 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
18831 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
18832 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
18833 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
18834 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
18835 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
18837 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
18838 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
18839 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
18840 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
18842 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
18843 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
18844 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
18845 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
18846 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
18847 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
18848 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
18849 (is_a_helper <const gimple_statement_phi>::test): Convert to...
18850 (is_a_helper <const gimple_statement_phi *>::test): ...this.
18851 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
18852 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
18853 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
18854 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
18855 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
18856 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
18857 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
18859 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
18861 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
18862 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
18864 (gimple_use_ops): Update for removal of implicit pointer from the
18866 (gimple_set_use_ops): Likewise.
18867 (gimple_vuse): Likewise.
18868 (gimple_vdef): Likewise.
18869 (gimple_vuse_ptr): Likewise.
18870 (gimple_vdef_ptr): Likewise.
18871 (gimple_set_vuse): Likewise.
18872 (gimple_set_vdef): Likewise.
18873 (gimple_omp_return_set_lhs): Likewise.
18874 (gimple_omp_return_lhs): Likewise.
18875 (gimple_omp_return_lhs_ptr): Likewise.
18876 (gimple_call_fntype): Likewise.
18877 (gimple_call_set_fntype): Likewise.
18878 (gimple_call_set_internal_fn): Likewise.
18879 (gimple_call_use_set): Likewise.
18880 (gimple_call_clobber_set): Likewise.
18881 (gimple_bind_vars): Likewise.
18882 (gimple_bind_set_vars): Likewise.
18883 (gimple_bind_body_ptr): Likewise.
18884 (gimple_bind_set_body): Likewise.
18885 (gimple_bind_add_stmt): Likewise.
18886 (gimple_bind_block): Likewise.
18887 (gimple_bind_set_block): Likewise.
18888 (gimple_asm_ninputs): Likewise.
18889 (gimple_asm_noutputs): Likewise.
18890 (gimple_asm_nclobbers): Likewise.
18891 (gimple_asm_nlabels): Likewise.
18892 (gimple_asm_input_op): Likewise.
18893 (gimple_asm_input_op_ptr): Likewise.
18894 (gimple_asm_output_op): Likewise.
18895 (gimple_asm_output_op_ptr): Likewise.
18896 (gimple_asm_set_output_op): Likewise.
18897 (gimple_asm_clobber_op): Likewise.
18898 (gimple_asm_set_clobber_op): Likewise.
18899 (gimple_asm_label_op): Likewise.
18900 (gimple_asm_set_label_op): Likewise.
18901 (gimple_asm_string): Likewise.
18902 (gimple_catch_types): Likewise.
18903 (gimple_catch_types_ptr): Likewise.
18904 (gimple_catch_handler_ptr): Likewise.
18905 (gimple_catch_set_types): Likewise.
18906 (gimple_catch_set_handler): Likewise.
18907 (gimple_eh_filter_types): Likewise.
18908 (gimple_eh_filter_types_ptr): Likewise.
18909 (gimple_eh_filter_failure_ptr): Likewise.
18910 (gimple_eh_filter_set_types): Likewise.
18911 (gimple_eh_filter_set_failure): Likewise.
18912 (gimple_eh_must_not_throw_fndecl): Likewise.
18913 (gimple_eh_must_not_throw_set_fndecl): Likewise.
18914 (gimple_eh_else_n_body_ptr): Likewise.
18915 (gimple_eh_else_e_body_ptr): Likewise.
18916 (gimple_eh_else_set_n_body): Likewise.
18917 (gimple_eh_else_set_e_body): Likewise.
18918 (gimple_try_eval_ptr): Likewise.
18919 (gimple_try_cleanup_ptr): Likewise.
18920 (gimple_try_set_eval): Likewise.
18921 (gimple_try_set_cleanup): Likewise.
18922 (gimple_wce_cleanup_ptr): Likewise.
18923 (gimple_wce_set_cleanup): Likewise.
18924 (gimple_phi_capacity): Likewise.
18925 (gimple_phi_num_args): Likewise.
18926 (gimple_phi_result): Likewise.
18927 (gimple_phi_result_ptr): Likewise.
18928 (gimple_phi_set_result): Likewise.
18929 (gimple_phi_arg): Likewise.
18930 (gimple_phi_set_arg): Likewise.
18931 (gimple_resx_region): Likewise.
18932 (gimple_resx_set_region): Likewise.
18933 (gimple_eh_dispatch_region): Likewise.
18934 (gimple_eh_dispatch_set_region): Likewise.
18935 (gimple_omp_critical_name): Likewise.
18936 (gimple_omp_critical_name_ptr): Likewise.
18937 (gimple_omp_critical_set_name): Likewise.
18938 (gimple_omp_for_clauses): Likewise.
18939 (gimple_omp_for_clauses_ptr): Likewise.
18940 (gimple_omp_for_set_clauses): Likewise.
18941 (gimple_omp_for_collapse): Likewise.
18942 (gimple_omp_for_index): Likewise.
18943 (gimple_omp_for_index_ptr): Likewise.
18944 (gimple_omp_for_set_index): Likewise.
18945 (gimple_omp_for_initial): Likewise.
18946 (gimple_omp_for_initial_ptr): Likewise.
18947 (gimple_omp_for_set_initial): Likewise.
18948 (gimple_omp_for_final): Likewise.
18949 (gimple_omp_for_final_ptr): Likewise.
18950 (gimple_omp_for_set_final): Likewise.
18951 (gimple_omp_for_incr): Likewise.
18952 (gimple_omp_for_incr_ptr): Likewise.
18953 (gimple_omp_for_set_incr): Likewise.
18954 (gimple_omp_for_pre_body_ptr): Likewise.
18955 (gimple_omp_for_set_pre_body): Likewise.
18956 (gimple_omp_parallel_clauses): Likewise.
18957 (gimple_omp_parallel_clauses_ptr): Likewise.
18958 (gimple_omp_parallel_set_clauses): Likewise.
18959 (gimple_omp_parallel_child_fn): Likewise.
18960 (gimple_omp_parallel_child_fn_ptr): Likewise.
18961 (gimple_omp_parallel_set_child_fn): Likewise.
18962 (gimple_omp_parallel_data_arg): Likewise.
18963 (gimple_omp_parallel_data_arg_ptr): Likewise.
18964 (gimple_omp_parallel_set_data_arg): Likewise.
18965 (gimple_omp_task_clauses): Likewise.
18966 (gimple_omp_task_clauses_ptr): Likewise.
18967 (gimple_omp_task_set_clauses): Likewise.
18968 (gimple_omp_task_child_fn): Likewise.
18969 (gimple_omp_task_child_fn_ptr): Likewise.
18970 (gimple_omp_task_set_child_fn): Likewise.
18971 (gimple_omp_task_data_arg): Likewise.
18972 (gimple_omp_task_data_arg_ptr): Likewise.
18973 (gimple_omp_task_set_data_arg): Likewise.
18974 (gimple_omp_taskreg_clauses): Likewise.
18975 (gimple_omp_taskreg_clauses_ptr): Likewise.
18976 (gimple_omp_taskreg_set_clauses): Likewise.
18977 (gimple_omp_taskreg_child_fn): Likewise.
18978 (gimple_omp_taskreg_child_fn_ptr): Likewise.
18979 (gimple_omp_taskreg_set_child_fn): Likewise.
18980 (gimple_omp_taskreg_data_arg): Likewise.
18981 (gimple_omp_taskreg_data_arg_ptr): Likewise.
18982 (gimple_omp_taskreg_set_data_arg): Likewise.
18983 (gimple_omp_task_copy_fn): Likewise.
18984 (gimple_omp_task_copy_fn_ptr): Likewise.
18985 (gimple_omp_task_set_copy_fn): Likewise.
18986 (gimple_omp_task_arg_size): Likewise.
18987 (gimple_omp_task_arg_size_ptr): Likewise.
18988 (gimple_omp_task_set_arg_size): Likewise.
18989 (gimple_omp_task_arg_align): Likewise.
18990 (gimple_omp_task_arg_align_ptr): Likewise.
18991 (gimple_omp_task_set_arg_align): Likewise.
18992 (gimple_omp_single_clauses): Likewise.
18993 (gimple_omp_single_clauses_ptr): Likewise.
18994 (gimple_omp_single_set_clauses): Likewise.
18995 (gimple_omp_target_clauses): Likewise.
18996 (gimple_omp_target_clauses_ptr): Likewise.
18997 (gimple_omp_target_set_clauses): Likewise.
18998 (gimple_omp_target_child_fn): Likewise.
18999 (gimple_omp_target_child_fn_ptr): Likewise.
19000 (gimple_omp_target_set_child_fn): Likewise.
19001 (gimple_omp_target_data_arg): Likewise.
19002 (gimple_omp_target_data_arg_ptr): Likewise.
19003 (gimple_omp_target_set_data_arg): Likewise.
19004 (gimple_omp_teams_clauses): Likewise.
19005 (gimple_omp_teams_clauses_ptr): Likewise.
19006 (gimple_omp_teams_set_clauses): Likewise.
19007 (gimple_omp_sections_clauses): Likewise.
19008 (gimple_omp_sections_clauses_ptr): Likewise.
19009 (gimple_omp_sections_set_clauses): Likewise.
19010 (gimple_omp_sections_control): Likewise.
19011 (gimple_omp_sections_control_ptr): Likewise.
19012 (gimple_omp_sections_set_control): Likewise.
19013 (gimple_omp_for_set_cond): Likewise.
19014 (gimple_omp_for_cond): Likewise.
19015 (gimple_omp_atomic_store_set_val): Likewise.
19016 (gimple_omp_atomic_store_val): Likewise.
19017 (gimple_omp_atomic_store_val_ptr): Likewise.
19018 (gimple_omp_atomic_load_set_lhs): Likewise.
19019 (gimple_omp_atomic_load_lhs): Likewise.
19020 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19021 (gimple_omp_atomic_load_set_rhs): Likewise.
19022 (gimple_omp_atomic_load_rhs): Likewise.
19023 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19024 (gimple_omp_continue_control_def): Likewise.
19025 (gimple_omp_continue_control_def_ptr): Likewise.
19026 (gimple_omp_continue_set_control_def): Likewise.
19027 (gimple_omp_continue_control_use): Likewise.
19028 (gimple_omp_continue_control_use_ptr): Likewise.
19029 (gimple_omp_continue_set_control_use): Likewise.
19030 (gimple_transaction_body_ptr): Likewise.
19031 (gimple_transaction_label): Likewise.
19032 (gimple_transaction_label_ptr): Likewise.
19033 (gimple_transaction_set_body): Likewise.
19034 (gimple_transaction_set_label): Likewise.
19036 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19037 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19038 * ipa-ref.c (ipa_record_reference): Likewise.
19039 * ipa-reference.c (analyze_function): Likewise.
19040 (ipa_reference_write_optimization_summary): Likewise.
19041 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19042 (address_taken_from_non_vtable_p): Likewise.
19043 (comdat_can_be_unshared_p_1): Likewise.
19044 * lto-cgraph.c (lto_output_ref): Likewise.
19045 (add_references): Likewise.
19046 (compute_ltrans_boundary): Likewise.
19047 (output_symtab): Likewise.
19048 (input_ref): Likewise.
19049 (input_cgraph_1): Likewise.
19050 (output_cgraph_opt_summary): Likewise.
19051 * lto-streamer-out.c (lto_output): Likewise.
19052 (output_symbol_p): Likewise.
19053 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19054 (lsei_start_function_in_partition): Likewise.
19055 (lsei_next_variable_in_partition): Likewise.
19056 (lsei_start_variable_in_partition): Likewise.
19057 * symtab.c (insert_to_assembler_name_hash): Likewise.
19058 (unlink_from_assembler_name_hash): Likewise.
19059 (symtab_unregister_node): Likewise.
19060 (symtab_remove_node): Likewise.
19061 (dump_symtab_node): Likewise.
19062 (verify_symtab_base): Likewise.
19063 (verify_symtab_node): Likewise.
19064 (symtab_make_decl_local): Likewise.
19065 (symtab_alias_ultimate_target): Likewise.
19066 (symtab_resolve_alias): Likewise.
19067 (symtab_get_symbol_partitioning_class): Likewise.
19068 * tree-phinodes.c (allocate_phi_node): Likewise.
19069 (reserve_phi_args_for_new_edge): Likewise.
19070 (remove_phi_args): Likewise.
19071 * varpool.c (varpool_node_for_asm): Likewise.
19072 (varpool_remove_unreferenced_decls): Likewise.
19074 2014-04-23 Jeff Law <law@redhat.com>
19076 PR tree-optimization/60902
19077 * tree-ssa-threadedge.c
19078 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19079 invalidate outputs from statements that do not produce useful
19080 outputs for threading.
19082 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19084 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19085 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19086 machine descriptions for Stack Smashing Protector.
19088 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19090 * aarch64.md (<optab>_rol<mode>3): New pattern.
19091 (<optab>_rolsi3_uxtw): Likewise.
19092 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19094 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19096 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19097 (arm_cortex_a12_tune): Likewise.
19099 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19101 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19103 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19105 * config/arm/arm.md (arm_rev16si2): New pattern.
19106 (arm_rev16si2_alt): Likewise.
19107 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19109 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19111 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19112 (rev16<mode>2_alt): Likewise.
19113 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19114 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19115 (aarch_rev16_shleft_mask_imm_p): Likewise.
19116 (aarch_rev16_p_1): Likewise.
19117 (aarch_rev16_p): Likewise.
19118 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19119 (aarch_rev16_shright_mask_imm_p): Likewise.
19120 (aarch_rev16_shleft_mask_imm_p): Likewise.
19122 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19124 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19125 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19127 (cortex_a53_extra_costs): Likewise.
19128 (cortex_a57_extra_costs): Likewise.
19129 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19130 (cortexa7_extra_costs): Likewise.
19131 (cortexa8_extra_costs): Likewise.
19132 (cortexa12_extra_costs): Likewise.
19133 (cortexa15_extra_costs): Likewise.
19134 (v7m_extra_costs): Likewise.
19135 (arm_new_rtx_costs): Handle BSWAP.
19137 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19139 * config/arm/arm.c (cortexa8_extra_costs): New table.
19140 (arm_cortex_a8_tune): New tuning struct.
19141 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19143 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19145 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19147 2014-04-23 Richard Biener <rguenther@suse.de>
19149 * Makefile.in (OBJS): Remove loop-unswitch.o.
19150 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19151 * passes.def (pass_rtl_unswitch): Likewise.
19152 * loop-init.c (gate_rtl_unswitch): Likewise.
19153 (rtl_unswitch): Likewise.
19154 (pass_data_rtl_unswitch): Likewise.
19155 (pass_rtl_unswitch): Likewise.
19156 (make_pass_rtl_unswitch): Likewise.
19157 * rtl.h (reversed_condition): Likewise.
19158 (compare_and_jump_seq): Likewise.
19159 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19161 * loop-unroll.c (compare_and_jump_seq): Likewise.
19163 2014-04-23 Richard Biener <rguenther@suse.de>
19165 PR tree-optimization/60903
19166 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19167 commented code block.
19168 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19169 loop flags to newly created BBs and edges.
19171 2014-04-23 Nick Clifton <nickc@redhat.com>
19173 * config/msp430/msp430.c (msp430_handle_option): Move function
19175 (msp430_option_override): Simplify mcu and mcpu option handling.
19176 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19177 support for -mhwmult command line option.
19178 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19179 -mhwmult command line option.
19180 (msp430_hwmult_enabled): Delete.
19181 (msp43o_output_labelref): Add support for -mhwmult command line option.
19182 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19183 (umulsidi3): Likewise.
19184 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19185 (mcpu, mlarge, msmall): Likewise.
19186 (mhwmult): New option.
19187 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19189 (msp430_is_f5_mcu): Remove prototype.
19190 (msp430_use_f5_series_hwmult): Add prototype.
19191 * config/msp430/msp430-opts.h: New file.
19192 * common/config/msp430: New directory.
19193 * common/config/msp430/msp430-common.c: New file.
19194 * config.gcc (msp430): Remove target_has_targetm_common.
19195 * doc/invoke.texi: Document -mhwmult command line option.
19197 2014-04-23 Nick Clifton <nickc@redhat.com>
19199 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19200 default-manifest.o if it can be found in the search path.
19201 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19203 2014-04-23 Terry Guo <terry.guo@arm.com>
19205 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19207 2014-04-23 Richard Biener <rguenther@suse.de>
19209 PR middle-end/60895
19210 * tree-inline.c (declare_return_variable): Use mark_addressable.
19212 2014-04-23 Richard Biener <rguenther@suse.de>
19214 PR middle-end/60891
19215 * loop-init.c (loop_optimizer_init): Make sure to apply
19216 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19218 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19221 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19223 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19224 if flag_sanitize_undefined_trap_on_error.
19225 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19226 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19227 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19228 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19229 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19230 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19231 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19232 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19233 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19234 * ubsan.c (ubsan_instrument_unreachable): Return
19235 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19236 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19237 if flag_sanitize_undefined_trap_on_error and
19238 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19239 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19240 instrument_bool_enum_load): Emit __builtin_trap () if
19241 flag_sanitize_undefined_trap_on_error and
19242 __builtin_handle_*_abort () if !flag_sanitize_recover.
19243 * doc/invoke.texi (-fsanitize-recover,
19244 -fsanitize-undefined-trap-on-error): Document.
19246 2014-04-22 Christian Bruel <christian.bruel@st.com>
19248 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19249 Force immediates to SImode.
19251 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19253 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19254 (lroundsfsi2): New.
19255 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19256 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19257 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19258 (nios2_fpu_insn): Add entry for round.
19259 (N2FPU_NO_ERRNO_P): Define.
19260 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19262 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19264 2014-04-22 Richard Henderson <rth@redhat.com>
19266 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19267 (add<GPI>3_compare0): Remove leading * from name.
19268 (add<GPI>3_carryin): Likewise.
19269 (sub<GPI>3_compare0): Likewise.
19270 (sub<GPI>3_carryin): Likewise.
19271 (<su_optab>mulditi3): New expander.
19272 (multi3): New expander.
19273 (madd<GPI>): Remove leading * from name.
19275 2014-04-22 Martin Jambor <mjambor@suse.cz>
19277 * cgraphclones.c (cgraph_function_versioning): Copy
19278 ipa_transforms_to_apply instead of asserting it is empty.
19280 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19283 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19284 on count_exp to get mode.
19286 2014-04-22 Andrew Pinski <apinski@cavium.com>
19288 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19289 Handle TLS for ILP32.
19290 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19291 (tlsie_small_<mode>): this and handle PTR.
19292 (tlsie_small_sidi): New pattern.
19293 (tlsle_small): Change to an expand to handle ILP32.
19294 (tlsle_small_<mode>): New pattern.
19295 (tlsdesc_small): Rename to ...
19296 (tlsdesc_small_<mode>): this and handle PTR.
19298 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19300 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19302 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19304 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19305 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19306 (aarch64_types_signed_poly_qualifiers): Likewise.
19307 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19308 (aarch64_types_poly_signed_qualifiers): Likewise.
19309 (TYPES_REINTERP_SS): Type macro added.
19310 (TYPES_REINTERP_SU): Likewise.
19311 (TYPES_REINTERP_SP): Likewise.
19312 (TYPES_REINTERP_US): Likewise.
19313 (TYPES_REINTERP_PS): Likewise.
19314 (aarch64_fold_builtin): New expression folding added.
19315 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19316 Declarations removed.
19317 (REINTERP_SS): Declarations added.
19318 (REINTERP_US): Likewise.
19319 (REINTERP_PS): Likewise.
19320 (REINTERP_SU): Likewise.
19321 (REINTERP_SP): Likewise.
19322 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19323 (vreinterpretq_p8_f64): Likewise.
19324 (vreinterpret_p16_f64): Likewise.
19325 (vreinterpretq_p16_f64): Likewise.
19326 (vreinterpret_f32_f64): Likewise.
19327 (vreinterpretq_f32_f64): Likewise.
19328 (vreinterpret_f64_f32): Likewise.
19329 (vreinterpret_f64_p8): Likewise.
19330 (vreinterpret_f64_p16): Likewise.
19331 (vreinterpret_f64_s8): Likewise.
19332 (vreinterpret_f64_s16): Likewise.
19333 (vreinterpret_f64_s32): Likewise.
19334 (vreinterpret_f64_s64): Likewise.
19335 (vreinterpret_f64_u8): Likewise.
19336 (vreinterpret_f64_u16): Likewise.
19337 (vreinterpret_f64_u32): Likewise.
19338 (vreinterpret_f64_u64): Likewise.
19339 (vreinterpretq_f64_f32): Likewise.
19340 (vreinterpretq_f64_p8): Likewise.
19341 (vreinterpretq_f64_p16): Likewise.
19342 (vreinterpretq_f64_s8): Likewise.
19343 (vreinterpretq_f64_s16): Likewise.
19344 (vreinterpretq_f64_s32): Likewise.
19345 (vreinterpretq_f64_s64): Likewise.
19346 (vreinterpretq_f64_u8): Likewise.
19347 (vreinterpretq_f64_u16): Likewise.
19348 (vreinterpretq_f64_u32): Likewise.
19349 (vreinterpretq_f64_u64): Likewise.
19350 (vreinterpret_s64_f64): Likewise.
19351 (vreinterpretq_s64_f64): Likewise.
19352 (vreinterpret_u64_f64): Likewise.
19353 (vreinterpretq_u64_f64): Likewise.
19354 (vreinterpret_s8_f64): Likewise.
19355 (vreinterpretq_s8_f64): Likewise.
19356 (vreinterpret_s16_f64): Likewise.
19357 (vreinterpretq_s16_f64): Likewise.
19358 (vreinterpret_s32_f64): Likewise.
19359 (vreinterpretq_s32_f64): Likewise.
19360 (vreinterpret_u8_f64): Likewise.
19361 (vreinterpretq_u8_f64): Likewise.
19362 (vreinterpret_u16_f64): Likewise.
19363 (vreinterpretq_u16_f64): Likewise.
19364 (vreinterpret_u32_f64): Likewise.
19365 (vreinterpretq_u32_f64): Likewise.
19367 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19369 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19370 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19371 (vreinterpret_p8_s8): Likewise.
19372 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19373 (vreinterpret_p8_s16): Likewise.
19374 (vreinterpret_p8_s32): Likewise.
19375 (vreinterpret_p8_s64): Likewise.
19376 (vreinterpret_p8_f32): Likewise.
19377 (vreinterpret_p8_u8): Likewise.
19378 (vreinterpret_p8_u16): Likewise.
19379 (vreinterpret_p8_u32): Likewise.
19380 (vreinterpret_p8_u64): Likewise.
19381 (vreinterpret_p8_p16): Likewise.
19382 (vreinterpretq_p8_s8): Likewise.
19383 (vreinterpretq_p8_s16): Likewise.
19384 (vreinterpretq_p8_s32): Likewise.
19385 (vreinterpretq_p8_s64): Likewise.
19386 (vreinterpretq_p8_f32): Likewise.
19387 (vreinterpretq_p8_u8): Likewise.
19388 (vreinterpretq_p8_u16): Likewise.
19389 (vreinterpretq_p8_u32): Likewise.
19390 (vreinterpretq_p8_u64): Likewise.
19391 (vreinterpretq_p8_p16): Likewise.
19392 (vreinterpret_p16_s8): Likewise.
19393 (vreinterpret_p16_s16): Likewise.
19394 (vreinterpret_p16_s32): Likewise.
19395 (vreinterpret_p16_s64): Likewise.
19396 (vreinterpret_p16_f32): Likewise.
19397 (vreinterpret_p16_u8): Likewise.
19398 (vreinterpret_p16_u16): Likewise.
19399 (vreinterpret_p16_u32): Likewise.
19400 (vreinterpret_p16_u64): Likewise.
19401 (vreinterpret_p16_p8): Likewise.
19402 (vreinterpretq_p16_s8): Likewise.
19403 (vreinterpretq_p16_s16): Likewise.
19404 (vreinterpretq_p16_s32): Likewise.
19405 (vreinterpretq_p16_s64): Likewise.
19406 (vreinterpretq_p16_f32): Likewise.
19407 (vreinterpretq_p16_u8): Likewise.
19408 (vreinterpretq_p16_u16): Likewise.
19409 (vreinterpretq_p16_u32): Likewise.
19410 (vreinterpretq_p16_u64): Likewise.
19411 (vreinterpretq_p16_p8): Likewise.
19412 (vreinterpret_f32_s8): Likewise.
19413 (vreinterpret_f32_s16): Likewise.
19414 (vreinterpret_f32_s32): Likewise.
19415 (vreinterpret_f32_s64): Likewise.
19416 (vreinterpret_f32_u8): Likewise.
19417 (vreinterpret_f32_u16): Likewise.
19418 (vreinterpret_f32_u32): Likewise.
19419 (vreinterpret_f32_u64): Likewise.
19420 (vreinterpret_f32_p8): Likewise.
19421 (vreinterpret_f32_p16): Likewise.
19422 (vreinterpretq_f32_s8): Likewise.
19423 (vreinterpretq_f32_s16): Likewise.
19424 (vreinterpretq_f32_s32): Likewise.
19425 (vreinterpretq_f32_s64): Likewise.
19426 (vreinterpretq_f32_u8): Likewise.
19427 (vreinterpretq_f32_u16): Likewise.
19428 (vreinterpretq_f32_u32): Likewise.
19429 (vreinterpretq_f32_u64): Likewise.
19430 (vreinterpretq_f32_p8): Likewise.
19431 (vreinterpretq_f32_p16): Likewise.
19432 (vreinterpret_s64_s8): Likewise.
19433 (vreinterpret_s64_s16): Likewise.
19434 (vreinterpret_s64_s32): Likewise.
19435 (vreinterpret_s64_f32): Likewise.
19436 (vreinterpret_s64_u8): Likewise.
19437 (vreinterpret_s64_u16): Likewise.
19438 (vreinterpret_s64_u32): Likewise.
19439 (vreinterpret_s64_u64): Likewise.
19440 (vreinterpret_s64_p8): Likewise.
19441 (vreinterpret_s64_p16): Likewise.
19442 (vreinterpretq_s64_s8): Likewise.
19443 (vreinterpretq_s64_s16): Likewise.
19444 (vreinterpretq_s64_s32): Likewise.
19445 (vreinterpretq_s64_f32): Likewise.
19446 (vreinterpretq_s64_u8): Likewise.
19447 (vreinterpretq_s64_u16): Likewise.
19448 (vreinterpretq_s64_u32): Likewise.
19449 (vreinterpretq_s64_u64): Likewise.
19450 (vreinterpretq_s64_p8): Likewise.
19451 (vreinterpretq_s64_p16): Likewise.
19452 (vreinterpret_u64_s8): Likewise.
19453 (vreinterpret_u64_s16): Likewise.
19454 (vreinterpret_u64_s32): Likewise.
19455 (vreinterpret_u64_s64): Likewise.
19456 (vreinterpret_u64_f32): Likewise.
19457 (vreinterpret_u64_u8): Likewise.
19458 (vreinterpret_u64_u16): Likewise.
19459 (vreinterpret_u64_u32): Likewise.
19460 (vreinterpret_u64_p8): Likewise.
19461 (vreinterpret_u64_p16): Likewise.
19462 (vreinterpretq_u64_s8): Likewise.
19463 (vreinterpretq_u64_s16): Likewise.
19464 (vreinterpretq_u64_s32): Likewise.
19465 (vreinterpretq_u64_s64): Likewise.
19466 (vreinterpretq_u64_f32): Likewise.
19467 (vreinterpretq_u64_u8): Likewise.
19468 (vreinterpretq_u64_u16): Likewise.
19469 (vreinterpretq_u64_u32): Likewise.
19470 (vreinterpretq_u64_p8): Likewise.
19471 (vreinterpretq_u64_p16): Likewise.
19472 (vreinterpret_s8_s16): Likewise.
19473 (vreinterpret_s8_s32): Likewise.
19474 (vreinterpret_s8_s64): Likewise.
19475 (vreinterpret_s8_f32): Likewise.
19476 (vreinterpret_s8_u8): Likewise.
19477 (vreinterpret_s8_u16): Likewise.
19478 (vreinterpret_s8_u32): Likewise.
19479 (vreinterpret_s8_u64): Likewise.
19480 (vreinterpret_s8_p8): Likewise.
19481 (vreinterpret_s8_p16): Likewise.
19482 (vreinterpretq_s8_s16): Likewise.
19483 (vreinterpretq_s8_s32): Likewise.
19484 (vreinterpretq_s8_s64): Likewise.
19485 (vreinterpretq_s8_f32): Likewise.
19486 (vreinterpretq_s8_u8): Likewise.
19487 (vreinterpretq_s8_u16): Likewise.
19488 (vreinterpretq_s8_u32): Likewise.
19489 (vreinterpretq_s8_u64): Likewise.
19490 (vreinterpretq_s8_p8): Likewise.
19491 (vreinterpretq_s8_p16): Likewise.
19492 (vreinterpret_s16_s8): Likewise.
19493 (vreinterpret_s16_s32): Likewise.
19494 (vreinterpret_s16_s64): Likewise.
19495 (vreinterpret_s16_f32): Likewise.
19496 (vreinterpret_s16_u8): Likewise.
19497 (vreinterpret_s16_u16): Likewise.
19498 (vreinterpret_s16_u32): Likewise.
19499 (vreinterpret_s16_u64): Likewise.
19500 (vreinterpret_s16_p8): Likewise.
19501 (vreinterpret_s16_p16): Likewise.
19502 (vreinterpretq_s16_s8): Likewise.
19503 (vreinterpretq_s16_s32): Likewise.
19504 (vreinterpretq_s16_s64): Likewise.
19505 (vreinterpretq_s16_f32): Likewise.
19506 (vreinterpretq_s16_u8): Likewise.
19507 (vreinterpretq_s16_u16): Likewise.
19508 (vreinterpretq_s16_u32): Likewise.
19509 (vreinterpretq_s16_u64): Likewise.
19510 (vreinterpretq_s16_p8): Likewise.
19511 (vreinterpretq_s16_p16): Likewise.
19512 (vreinterpret_s32_s8): Likewise.
19513 (vreinterpret_s32_s16): Likewise.
19514 (vreinterpret_s32_s64): Likewise.
19515 (vreinterpret_s32_f32): Likewise.
19516 (vreinterpret_s32_u8): Likewise.
19517 (vreinterpret_s32_u16): Likewise.
19518 (vreinterpret_s32_u32): Likewise.
19519 (vreinterpret_s32_u64): Likewise.
19520 (vreinterpret_s32_p8): Likewise.
19521 (vreinterpret_s32_p16): Likewise.
19522 (vreinterpretq_s32_s8): Likewise.
19523 (vreinterpretq_s32_s16): Likewise.
19524 (vreinterpretq_s32_s64): Likewise.
19525 (vreinterpretq_s32_f32): Likewise.
19526 (vreinterpretq_s32_u8): Likewise.
19527 (vreinterpretq_s32_u16): Likewise.
19528 (vreinterpretq_s32_u32): Likewise.
19529 (vreinterpretq_s32_u64): Likewise.
19530 (vreinterpretq_s32_p8): Likewise.
19531 (vreinterpretq_s32_p16): Likewise.
19532 (vreinterpret_u8_s8): Likewise.
19533 (vreinterpret_u8_s16): Likewise.
19534 (vreinterpret_u8_s32): Likewise.
19535 (vreinterpret_u8_s64): Likewise.
19536 (vreinterpret_u8_f32): Likewise.
19537 (vreinterpret_u8_u16): Likewise.
19538 (vreinterpret_u8_u32): Likewise.
19539 (vreinterpret_u8_u64): Likewise.
19540 (vreinterpret_u8_p8): Likewise.
19541 (vreinterpret_u8_p16): Likewise.
19542 (vreinterpretq_u8_s8): Likewise.
19543 (vreinterpretq_u8_s16): Likewise.
19544 (vreinterpretq_u8_s32): Likewise.
19545 (vreinterpretq_u8_s64): Likewise.
19546 (vreinterpretq_u8_f32): Likewise.
19547 (vreinterpretq_u8_u16): Likewise.
19548 (vreinterpretq_u8_u32): Likewise.
19549 (vreinterpretq_u8_u64): Likewise.
19550 (vreinterpretq_u8_p8): Likewise.
19551 (vreinterpretq_u8_p16): Likewise.
19552 (vreinterpret_u16_s8): Likewise.
19553 (vreinterpret_u16_s16): Likewise.
19554 (vreinterpret_u16_s32): Likewise.
19555 (vreinterpret_u16_s64): Likewise.
19556 (vreinterpret_u16_f32): Likewise.
19557 (vreinterpret_u16_u8): Likewise.
19558 (vreinterpret_u16_u32): Likewise.
19559 (vreinterpret_u16_u64): Likewise.
19560 (vreinterpret_u16_p8): Likewise.
19561 (vreinterpret_u16_p16): Likewise.
19562 (vreinterpretq_u16_s8): Likewise.
19563 (vreinterpretq_u16_s16): Likewise.
19564 (vreinterpretq_u16_s32): Likewise.
19565 (vreinterpretq_u16_s64): Likewise.
19566 (vreinterpretq_u16_f32): Likewise.
19567 (vreinterpretq_u16_u8): Likewise.
19568 (vreinterpretq_u16_u32): Likewise.
19569 (vreinterpretq_u16_u64): Likewise.
19570 (vreinterpretq_u16_p8): Likewise.
19571 (vreinterpretq_u16_p16): Likewise.
19572 (vreinterpret_u32_s8): Likewise.
19573 (vreinterpret_u32_s16): Likewise.
19574 (vreinterpret_u32_s32): Likewise.
19575 (vreinterpret_u32_s64): Likewise.
19576 (vreinterpret_u32_f32): Likewise.
19577 (vreinterpret_u32_u8): Likewise.
19578 (vreinterpret_u32_u16): Likewise.
19579 (vreinterpret_u32_u64): Likewise.
19580 (vreinterpret_u32_p8): Likewise.
19581 (vreinterpret_u32_p16): Likewise.
19582 (vreinterpretq_u32_s8): Likewise.
19583 (vreinterpretq_u32_s16): Likewise.
19584 (vreinterpretq_u32_s32): Likewise.
19585 (vreinterpretq_u32_s64): Likewise.
19586 (vreinterpretq_u32_f32): Likewise.
19587 (vreinterpretq_u32_u8): Likewise.
19588 (vreinterpretq_u32_u16): Likewise.
19589 (vreinterpretq_u32_u64): Likewise.
19590 (vreinterpretq_u32_p8): Likewise.
19591 (vreinterpretq_u32_p16): Likewise.
19593 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19595 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19597 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19599 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19600 (vqnegd_s64): Likewise.
19601 (vqabs_s64): Likewise.
19602 (vqabsd_s64): Likewise.
19604 2014-04-22 Richard Henderson <rth@redhat.com>
19606 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19607 computation to the top of the loop.
19609 2014-04-22 Renlin <renlin.li@arm.com>
19610 Jiong Wang <jiong.wang@arm.com>
19612 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19613 * config/aarch64/aarch64.c (aarch64_layout_frame)
19614 (aarch64_initial_elimination_offset): Likewise.
19616 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19618 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19621 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19623 * machmode.h (bitwise_mode_for_mode): Declare.
19624 * stor-layout.h (bitwise_type_for_mode): Likewise.
19625 * stor-layout.c (bitwise_mode_for_mode): New function.
19626 (bitwise_type_for_mode): Likewise.
19627 * builtins.c (fold_builtin_memory_op): Use it instead of
19628 int_mode_for_mode and build_nonstandard_integer_type.
19630 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19632 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19633 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19634 (*-*-solaris2*): Simplify.
19635 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19636 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19637 *-*-solaris2.9* handling.
19639 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19641 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19642 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19643 handling, simplify.
19644 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19645 * configure: Regenerate.
19647 * config/i386/sol2-9.h: Remove.
19649 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19650 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19651 Remove Solaris 9 references.
19653 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19655 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19656 (floatuns<GPI:mode><GPF:mode>2): Remove.
19657 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19658 and floatuns conversions.
19659 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19660 and floatuns conversions.
19661 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19662 (w1,w2): New mode attributes for inequal width conversions.
19664 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19666 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19667 the output asm format.
19669 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19671 * config/aarch64/aarch64-simd.md
19672 (aarch64_cm<optab>di): Always split.
19673 (*aarch64_cm<optab>di): New.
19674 (aarch64_cmtstdi): Always split.
19675 (*aarch64_cmtstdi): New.
19677 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19679 PR tree-optimization/60823
19680 * omp-low.c (ipa_simd_modify_function_body): Go through
19681 all SSA_NAMEs and for those refering to vector arguments
19682 which are going to be replaced adjust SSA_NAME_VAR and,
19683 if it is a default definition, change it into a non-default
19684 definition assigned at the beginning of function from new_decl.
19685 (ipa_simd_modify_stmt_ops): Rewritten.
19686 * tree-dfa.c (set_ssa_default_def): When removing default def,
19687 check for NULL loc instead of NULL *loc.
19689 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19691 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19692 restrictions on core registers for DImode values in Thumb2.
19694 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19696 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19697 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19699 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19701 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19702 (*iordi_notzesidi_di): Likewise.
19703 (*iordi_notsesidi_di): Likewise.
19705 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19707 * config/arm/arm-protos.h (tune_params): New struct members.
19708 * config/arm/arm.c: Initialise tune_params per processor.
19709 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19710 for speed, based on new tune_params.
19712 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19714 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19715 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19716 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19717 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19718 * config/aarch64/arm_neon.h (vrnd_f64): Added.
19719 (vrnda_f64): Likewise.
19720 (vrndi_f64): Likewise.
19721 (vrndm_f64): Likewise.
19722 (vrndn_f64): Likewise.
19723 (vrndp_f64): Likewise.
19724 (vrndx_f64): Likewise.
19726 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19728 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19729 GET_MODE_SIZE argument is enum machine_mode.
19731 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19734 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
19735 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
19737 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
19739 PR middle-end/60281
19740 * asan.c (asan_emit_stack_protection): Force the base to align to
19741 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
19742 appropriate bits if STRICT_ALIGNMENT.
19743 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
19745 (expand_used_vars): Leave a space in the stack frame for alignment
19746 if STRICT_ALIGNMENT.
19748 2014-04-21 David Malcolm <dmalcolm@redhat.com>
19750 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
19752 (gimple_store_p): Likewise.
19753 (gimple_assign_load_p): Likewise.
19754 (gimple_assign_cast_p): Likewise.
19755 (gimple_clobber_p): Likewise.
19757 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
19758 rather than a gimple.
19759 (gimple_assign_cast_p): Likewise.
19761 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19764 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
19765 If mode is DDmode and TARGET_E500_DOUBLE allow move.
19767 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
19768 more debug information for E500 if -mdebug=reg.
19770 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
19773 * config/i386/i386.c (ix86_expand_builtin)
19774 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
19775 register for target RTX.
19776 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
19778 2014-04-18 Cong Hou <congh@google.com>
19780 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
19781 the widen-mult pattern by handling two operands with different sizes,
19782 and operands whose size is smaller than half of the result type.
19784 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19786 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
19787 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
19788 (do_estimate_edge_time): Compute it.
19789 * ipa-inline.c (want_inline_small_function_p): Bypass
19790 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
19792 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19794 * ipa-inline.c (spec_rem): New static variable.
19795 (dump_overall_stats): New function.
19796 (dump_inline_stats): New function.
19798 2014-04-18 Richard Henderson <rth@redhat.com>
19800 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
19801 to GET_MODE_SIZE, not a reg_class_t.
19803 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19805 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
19806 (vsx_xxmrglw_<mode>): Likewise.
19808 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
19811 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
19812 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
19813 (rs6000_init_hard_regno_mode_ok): Likewise.
19815 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
19817 * ipa-inline.c (inline_small_functions): Account only non-cold
19819 * doc/invoke.texi (inline-unit-growth): Update documentation.
19821 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
19823 * config/rs6000/rs6000.md (addti3, subti3): New.
19825 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
19828 * config/i386/i386.c (ix86_expand_clear): Remove outdated
19829 comment. Check optimize_insn_for_size_p instead of
19830 optimize_insn_for_speed_p.
19832 2014-04-17 Martin Jambor <mjambor@suse.cz>
19834 * gimple-iterator.c (gsi_start_edge): New function.
19835 * gimple-iterator.h (gsi_start_edge): Declare.
19836 * tree-sra.c (single_non_eh_succ): New function.
19837 (disqualify_ops_if_throwing_stmt): Renamed to
19838 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
19839 having one non-EH successor BB.
19840 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
19841 generate loads into replacements.
19842 (sra_modify_assign): Likewise and and also use the simple path for
19844 (sra_modify_function_body): Commit statements on edges.
19846 2014-04-17 Richard Biener <rguenther@suse.de>
19848 PR middle-end/60849
19849 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
19850 comparison results and add clarifying comment.
19852 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19854 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
19855 (blank_mode): Initialize it.
19856 (emit_mode_size_inline, emit_mode_nunits_inline,
19857 emit_mode_inner_inline): New functions.
19858 (emit_insn_modes_h): Call them and surround their output with
19859 #if GCC_VERSION >= 4001 ... #endif.
19860 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
19861 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
19862 mode_* arrays if the argument is __builtin_constant_p.
19863 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
19864 is enum machine_mode.
19866 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19868 * passes.c (opt_pass::execute): Adjust.
19869 (pass_manager::execute_pass_mode_switching): Likewise.
19870 (early_local_passes::execute): Likewise.
19871 (execute_one_pass): Pass cfun to the pass's execute method.
19872 * tree-pass.h (opt_pass::execute): Add function * argument.
19873 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19874 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19875 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19876 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19877 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19878 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
19879 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
19880 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19881 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19882 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
19883 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
19884 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
19885 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
19886 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
19887 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19888 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19889 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19890 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
19891 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19892 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19893 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19894 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19895 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19896 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19897 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19898 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19899 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19900 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19901 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19904 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19906 * passes.c (opt_pass::gate): Take function * argument.
19907 (gate_all_early_local_passes): Merge into
19908 (early_local_passes::gate): this.
19909 (gate_all_early_optimizations): Merge into
19910 (all_early_optimizations::gate): this.
19911 (gate_all_optimizations): Mege into
19912 (all_optimizations::gate): this.
19913 (gate_all_optimizations_g): Merge into
19914 (all_optimizations_g::gate): this.
19915 (gate_rest_of_compilation): Mege into
19916 (rest_of_compilation::gate): this.
19917 (gate_postreload): Merge into
19918 (postreload::gate): this.
19919 (dump_one_pass): Pass cfun to the pass's gate method.
19920 (execute_ipa_summary_passes): Likewise.
19921 (execute_one_pass): Likewise.
19922 (ipa_write_summaries_2): Likewise.
19923 (ipa_write_optimization_summaries_1): Likewise.
19924 (ipa_read_summaries_1): Likewise.
19925 (ipa_read_optimization_summaries_1): Likewise.
19926 (execute_ipa_stmt_fixups): Likewise.
19927 * tree-pass.h (opt_pass::gate): Add function * argument.
19928 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
19929 combine-stack-adj.c, combine.c, compare-elim.c,
19930 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19931 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
19932 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
19933 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
19934 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19935 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19936 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19937 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
19938 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19939 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
19940 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19941 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19942 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
19943 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19944 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19945 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19946 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19947 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19948 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19949 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19950 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19951 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19952 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
19953 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
19954 var-tracking.c, vtable-verify.c, web.c: Adjust.
19956 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19958 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
19959 * configure: Regenerate.
19961 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19963 * passes.c (dump_one_pass): don't check pass->has_gate.
19964 (execute_ipa_summary_passes): Likewise.
19965 (execute_one_pass): Likewise.
19966 (ipa_write_summaries_2): Likewise.
19967 (ipa_write_optimization_summaries_1): Likewise.
19968 (ipa_read_optimization_summaries_1): Likewise.
19969 (execute_ipa_stmt_fixups): Likewise.
19970 * tree-pass.h (pass_data::has_gate): Remove.
19971 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19972 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19973 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19974 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19975 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19976 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19977 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19978 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19979 gimple-low.c, gimple-ssa-isolate-paths.c,
19980 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19981 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
19982 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19983 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
19984 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
19985 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
19986 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
19987 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
19988 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
19989 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19990 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19991 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19992 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19993 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19994 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19995 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19996 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19997 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19998 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19999 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20000 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20001 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20004 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20006 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20008 * passes.c (pass_manager::register_dump_files_1): Merge into
20009 (pass_manager::register_dump_files): this, and remove its handling of
20010 properties since the pass always has the properties anyway.
20011 (pass_manager::pass_manager): Adjust.
20013 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20015 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20016 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20017 dealing with properties.
20018 (pass_manager::register_dump_files): Adjust.
20020 2014-03-20 Mark Wielaard <mjw@redhat.com>
20022 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20023 then represent the bound as normal constant value.
20025 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20028 Forward port from 4.8 branch
20029 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20031 * config/i386/bmiintrin.h (_blsi_u32): New.
20032 (_blsi_u64): Ditto.
20033 (_blsr_u32): Ditto.
20034 (_blsr_u64): Ditto.
20035 (_blsmsk_u32): Ditto.
20036 (_blsmsk_u64): Ditto.
20037 (_tzcnt_u32): Ditto.
20038 (_tzcnt_u64): Ditto.
20040 2014-04-17 Kito Cheng <kito@0xlab.org>
20042 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20044 2014-04-17 Richard Biener <rguenther@suse.de>
20046 PR middle-end/60849
20047 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20048 boolean results for comparisons.
20050 2014-04-17 Richard Biener <rguenther@suse.de>
20052 PR tree-optimization/60836
20053 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20054 initial PHI args to be gimple values.
20056 2014-04-17 Richard Biener <rguenther@suse.de>
20058 PR tree-optimization/60841
20059 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20060 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20061 of stmts to SLP build.
20062 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20063 (vect_analyze_slp): Likewise.
20064 (vect_analyze_slp_instance): Likewise.
20065 (vect_build_slp_tree): Limit overall SLP tree growth.
20066 * tree-vectorizer.h (vect_analyze_data_refs,
20067 vect_analyze_slp): Adjust prototypes.
20069 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20071 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20074 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20076 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20077 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20078 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20079 for TARGET_SLOW_PSHUFB
20081 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20083 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20084 * config/i386/i386.c (intel_cost): Ditto.
20086 2014-04-17 Joey Ye <joey.ye@arm.com>
20088 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20090 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20092 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20093 with -fuse-profile.
20095 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20097 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20098 (type_all_derivations_known_p): New predicate.
20099 (type_all_ctors_visible_p): New predicate.
20100 (type_possibly_instantiated_p): New predicate.
20101 (get_odr_type): Compute all_derivations_known.
20102 (dump_odr_type): Dump the flag.
20103 (maybe_record_type): Cleanup.
20104 (record_target_from_binfo): Add bases_to_consider array;
20105 record bases for types w/o instances and skip CXX destructor.
20106 (possible_polymorphic_call_targets_1): Add bases_to_consider
20107 and consider_construction parameters; check if type may have instance.
20108 (get_polymorphic_call_info): Set maybe_in_construction to true
20109 when we know nothing.
20110 (record_targets_from_bases): Skip CXX destructors; they are
20111 never called for types in construction.
20112 (possible_polymorphic_call_targets): Do not record target when
20113 type may not have instance.
20115 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20118 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20119 external aliases alive, too.
20121 2014-04-16 Andrew Pinski <apinski@cavium.com>
20123 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20126 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20128 * final.c (compute_alignments): Do not apply loop alignment to a block
20129 falling through to the exit.
20131 2014-04-16 Catherine Moore <clm@codesourcery.com>
20133 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20134 Adjust constraints for microMIPS store patterns.
20136 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20138 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20140 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20142 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20143 (append_use): Run at -O0.
20144 (append_vdef): Likewise.
20145 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20146 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20148 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20150 PR tree-optimization/60844
20151 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20152 (propagate_op_to_single_use, remove_visited_stmt_chain,
20153 linearize_expr, repropagate_negates, reassociate_bb): Use it
20154 instead of gsi_remove.
20156 2014-04-16 Martin Jambor <mjambor@suse.cz>
20158 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20159 ipa_transforms_to_apply.
20160 (cgraph_function_versioning): Assert that old_node has empty
20161 ipa_transforms_to_apply.
20162 * trans-mem.c (ipa_tm_create_version): Likewise.
20163 * tree-inline.c (tree_function_versioning): Do not duplicate
20164 ipa_transforms_to_apply.
20166 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20169 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20171 Pass necessary as flags on 64-bit Solaris/x86.
20172 Use lowercase relocs for x86_64-*-*.
20173 * configure: Regenerate.
20175 2014-04-15 Jan Hubicka <jh@suse.cz>
20177 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20178 (maybe_record_node, likely_target_p): Use it.
20180 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20183 Revert following patch
20185 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20188 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20189 software floating point or no floating point registers, do not
20190 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20191 in GPRs that occurs after we tested for GPRs that would never be
20194 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20195 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20196 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20197 specifically allow DDmode, since that does not use the SPE SIMD
20200 2014-03-21 Mark Wielaard <mjw@redhat.com>
20202 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20203 as unsigned or int depending on type and value used.
20205 2014-04-15 Richard Biener <rguenther@suse.de>
20207 PR rtl-optimization/56965
20208 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20209 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20211 * alias.c (true_dependence_1): Do not call
20212 nonoverlapping_component_refs_p.
20213 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20214 nonoverlapping_component_refs_p.
20215 (indirect_refs_may_alias_p): Likewise.
20217 2014-04-15 Teresa Johnson <tejohnson@google.com>
20219 * cfg.c (dump_bb_info): Fix flags check.
20220 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20222 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20224 PR rtl-optimization/60663
20225 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20228 2014-04-15 Richard Biener <rguenther@suse.de>
20230 * lto-streamer.h (LTO_major_version): Bump to 4.
20232 2014-04-15 Richard Biener <rguenther@suse.de>
20234 * common.opt (lto_partition_model): New enum.
20235 (flto-partition=): Merge separate options with a single with argument,
20236 add -flto-partition=one support.
20237 * flag-types.h (enum lto_partition_model): Declare.
20238 * opts.c (finish_options): Remove duplicate -flto-partition=
20240 * lto-wrapper.c (run_gcc): Adjust.
20242 2014-04-15 Richard Biener <rguenther@suse.de>
20244 * alias.c (ncr_compar): New function.
20245 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20247 2014-04-15 Richard Biener <rguenther@suse.de>
20249 * alias.c (record_component_aliases): Do not walk BINFOs.
20251 2014-04-15 Richard Biener <rguenther@suse.de>
20253 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20254 Add struct function argument and adjust.
20255 (find_func_aliases_for_call): Likewise.
20256 (find_func_aliases): Likewise.
20257 (find_func_clobbers): Likewise.
20258 (intra_create_variable_infos): Likewise.
20259 (compute_points_to_sets): Likewise.
20260 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20262 2014-04-15 Richard Biener <rguenther@suse.de>
20264 * tree.c (iterative_hash_expr): Use enum tree_code_class
20265 to store TREE_CODE_CLASS.
20266 (tree_block): Likewise.
20267 (tree_set_block): Likewise.
20268 * tree.h (fold_build_pointer_plus_loc): Use
20269 convert_to_ptrofftype_loc.
20271 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20274 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20277 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20279 * cfgloop.h (struct loop): Move force_vectorize down.
20280 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20281 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20282 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20283 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20284 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20285 * tree-core.h (enum annot_expr_kind): Add new kind values.
20286 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20287 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20289 * tree.def (ANNOTATE_EXPR): Tweak comment.
20291 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20293 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20296 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20298 * tree.h (TYPE_IDENTIFIER): Declare.
20299 * tree.c (subrange_type_for_debug_p): Use it.
20300 * godump.c (go_format_type): Likewise.
20301 * dwarf2out.c (is_cxx_auto, modified_type_die,
20302 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20303 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20305 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20308 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20310 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20312 * config/i386/i386.c (examine_argument): Return bool. Return true if
20313 parameter should be passed in memory.
20314 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20315 (construct_container): Update calls to examine_argument.
20316 (function_arg_advance_64): Ditto.
20317 (return_in_memory_32): Merge with ix86_return_in_memory.
20318 (return_in_memory_64): Ditto.
20319 (return_in_memory_ms_64): Ditto.
20321 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20323 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20324 * coverage.c (coverage_compute_profile_id): Handle externally visible
20327 2014-04-14 Martin Jambor <mjambor@suse.cz>
20329 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20330 DECL_DISREGARD_INLINE_LIMITS functions.
20332 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20335 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20337 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20340 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20341 optimize_insn_for_speed_p instead of
20342 optimize_function_for_speed_p.
20344 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20346 * doc/invoke.texi (free): Document AArch64.
20348 2014-04-14 Richard Biener <rguenther@suse.de>
20350 PR tree-optimization/60042
20351 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20352 (insert_into_preds_of_block): Do not prevent PHI insertion
20353 for REFERENCE exprs here ...
20354 (eliminate_dom_walker::before_dom_children): ... but prevent
20355 their use here under similar conditions when applied to the
20356 IL after PRE optimizations.
20358 2014-04-14 Richard Biener <rguenther@suse.de>
20360 * passes.def: Move early points-to after early SRA.
20362 2014-04-14 Richard Biener <rguenther@suse.de>
20364 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20365 check for which sign-changes we allow when forwarding
20366 a converted value into a switch.
20368 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20370 * stor-layout.c (place_field): Finalize non-constant offset for the
20373 2014-04-14 Richard Biener <rguenther@suse.de>
20375 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20377 (expand_switch_using_bit_tests_p): Likewise.
20378 (process_switch): Compute and pass on speed_p based on the
20380 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20381 optimize_bb_for_speed_p.
20383 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20385 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20386 * function.h (struct function): Rename has_force_vect_loops into
20387 has_force_vectorize_loops.
20388 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20389 (input_struct_function_base): Likewise.
20390 * lto-streamer-out.c (output_cfg): Likewise.
20391 (output_struct_function_base): Likewise.
20392 * omp-low.c (expand_omp_simd): Likewise.
20393 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20394 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20395 (version_loop_for_if_conversion): Likewise.
20396 (tree_if_conversion): Likewise.
20397 (main_tree_if_conversion): Likewise.
20398 (gate_tree_if_conversion): Likewise.
20399 * tree-inline.c (copy_loops): Likewise.
20400 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20401 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20402 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20403 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20404 * tree-vectorizer.c (vectorize_loops): Likewise.
20405 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20407 2014-04-14 Richard Biener <rguenther@suse.de>
20410 * lto-streamer-out.c (wrap_refs): New function.
20411 (lto_output): Wrap symbol references in global initializes in
20412 type-preserving MEM_REFs.
20414 2014-04-14 Christian Bruel <christian.bruel@st.com>
20416 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20418 2014-04-14 Christian Bruel <christian.bruel@st.com>
20420 * config/sh/sh.md (setmemqi): New expand pattern.
20421 * config/sh/sh.h (CLEAR_RATIO): Define.
20422 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20423 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20425 2014-04-14 Richard Biener <rguenther@suse.de>
20427 PR middle-end/55022
20428 * fold-const.c (negate_expr_p): Don't negate directional rounding
20430 (fold_negate_expr): Likewise.
20432 2014-04-14 Richard Biener <rguenther@suse.de>
20434 PR tree-optimization/59817
20435 PR tree-optimization/60453
20436 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20437 recursion to catch all CHRECs in the scalar evolution and restrict
20438 the predicate for the remains appropriately.
20440 2014-04-12 Catherine Moore <clm@codesourcery.com>
20442 * config/mips/constraints.md: Add new register constraint "kb".
20443 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20444 (*movhi_internal): Likewise.
20445 (*movqi_internal): Likewise.
20446 * config/mips/mips.h (M16_STORE_REGS): New register class.
20447 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20448 (REG_CLASS_CONTENTS): Likewise.
20449 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20451 2014-04-11 Tobias Burnus <burnus@net-b.de>
20454 * doc/invoke.texi (-Wformat-signedness): Document it.
20455 (Wformat=2): Mention that this enables -Wformat-signedness.
20457 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20459 * common/config/epiphany/epiphany-common.c
20460 (epiphany_option_optimization_table): Enable section anchors by
20461 default at -O1 or higher.
20462 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20463 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20464 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20465 carries no extra cost.
20466 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20467 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20468 * config/epiphany/predicates.md (memclob_operand): New predicate.
20469 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20470 Use memclob_operand predicate and X constraint for operand 3.
20472 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20474 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20475 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20478 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20480 PR rtl-optimization/60651
20481 * mode-switching.c (optimize_mode_switching): Make sure to emit
20482 sets of a lower numbered entity before sets of a higher numbered
20483 entity to a mode of the same or lower priority.
20484 When creating a seginfo for a basic block that starts with a code
20485 label, move the insertion point past the code label.
20486 (new_seginfo): Document and enforce requirement that
20487 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20488 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20489 * doc/tm.texi: Regenerate.
20491 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20494 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20496 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20498 * BASE-VER: Set to 4.10.0.
20500 2014-04-11 Tobias Burnus <burnus@net-b.de>
20503 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20504 * doc/gcc.texi (Service): Update description in the @menu
20505 * doc/invoke.texi (Option Summary): Remove misplaced and
20508 2014-04-11 Steve Ellcey <sellcey@mips.com>
20509 Jakub Jelinek <jakub@redhat.com>
20511 PR middle-end/60556
20512 * expr.c (convert_move): Use emit_store_flag_force instead of
20513 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20516 2014-04-11 Richard Biener <rguenther@suse.de>
20518 PR middle-end/60797
20519 * varasm.c (assemble_alias): Avoid endless error reporting
20520 recursion by setting TREE_ASM_WRITTEN.
20522 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20524 * config/s390/s390.md: Add a splitter for NOT rtx.
20526 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20528 PR rtl-optimization/60663
20529 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20531 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20532 Jakub Jelinek <jakub@redhat.com>
20535 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20536 flag from decl_node to node.
20538 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20541 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20542 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20543 ameliorating the cases where it can be.
20545 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20548 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20550 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20551 (loadsync_<mode>): Change mode.
20552 (load_quadpti, store_quadpti): New.
20553 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20554 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20555 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20557 2014-04-09 Cong Hou <congh@google.com>
20560 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20563 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20565 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20566 instead of vnor to exploit possible fusion opportunity in the
20568 (altivec_expand_vec_perm_const_le): Likewise.
20570 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20572 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20573 (loadsync_<mode>): Change mode.
20574 (load_quadpti, store_quadpti): New.
20575 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20576 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20578 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20581 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20582 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20583 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20585 2014-04-08 Richard Biener <rguenther@suse.de>
20587 PR middle-end/60706
20588 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20589 a 64bit widest int print double-int similar to on HWI64 hosts.
20591 2014-04-08 Richard Biener <rguenther@suse.de>
20593 PR tree-optimization/60785
20594 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20595 default defs properly.
20597 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20599 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20600 (Weffc++): Likewise.
20602 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20604 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20605 set completep to false rather than true.
20607 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20610 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20611 ARM_TARGET2_DWARF_FORMAT.
20613 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20616 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20617 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20620 2014-04-07 Richard Biener <rguenther@suse.de>
20622 PR tree-optimization/60766
20623 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20624 (may_eliminate_iv): Convert cand_value_at result to desired type.
20626 2014-04-07 Jason Merrill <jason@redhat.com>
20629 * common.opt (-fno-gnu-unique): Add.
20630 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20632 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20634 * haifa-sched.c: Fix outdated function reference and minor
20635 grammar errors in introductory comment.
20637 2014-04-07 Richard Biener <rguenther@suse.de>
20639 PR middle-end/60750
20640 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20641 for noreturn calls.
20642 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20644 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20647 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20648 size accounting for thunks.
20649 (pa_asm_output_mi_thunk): Use final_start_function() and
20650 final_end_function() to output function start and end directives.
20652 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20654 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20655 device specific ISA/ feature information. Remove short_sp and
20656 errata_skip ds. Add avr_device_specific_features enum to have device
20658 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20659 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20660 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20661 updated device specific info.
20662 * config/avr/avr-mcus.def: Merge device specific details to
20663 dev_attribute field.
20664 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20666 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20667 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20668 assembler if RMW isa supported by current device.
20669 * config/avr/genmultilib.awk: Update as device info structure changed.
20670 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20672 2014-04-04 Cong Hou <congh@google.com>
20674 PR tree-optimization/60656
20675 * tree-vect-stmts.c (supportable_widening_operation):
20676 Fix a bug that elements in a vector with vect_used_by_reduction
20677 property are incorrectly reordered when the operation on it is not
20678 consistant with the one in reduction operation.
20680 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20682 PR rtl-optimization/60155
20683 * gcse.c (record_set_data): New function.
20684 (single_set_gcse): New function.
20685 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20686 (hoist_code): Likewise.
20687 (get_pressure_class_and_nregs): Likewise.
20689 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20691 * explow.c (probe_stack_range): Emit a final optimization blockage.
20693 2014-04-04 Anthony Green <green@moxielogic.com>
20695 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20698 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20701 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20702 flags are set only during streaming.
20703 * ipa.c (process_references, walk_polymorphic_call_targets,
20704 symtab_remove_unreachable_nodes): Drop bodies of always inline
20705 after early inlining.
20706 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20708 2014-04-04 Jakub Jelinek <jakub@redhat.com>
20709 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20712 * dwarf2out.c (const_ok_for_output_1): Reject expressions
20715 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20718 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20720 (cortex_a53_fdivd): Likewise.
20722 2014-04-04 Martin Jambor <mjambor@suse.cz>
20725 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20726 Adjust all callers.
20727 * cgraph.c (clone_of_p): Also return true if thunks match.
20728 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20729 cgraph_function_or_thunk_node and an obsolete comment.
20730 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20732 (build_function_decl_skip_args): Likewise.
20733 (set_new_clone_decl_and_node_flags): New function.
20734 (duplicate_thunk_for_node): Likewise.
20735 (redirect_edge_duplicating_thunks): Likewise.
20736 (cgraph_clone_node): New parameter args_to_skip, pass it to
20737 redirect_edge_duplicating_thunks which is called instead of
20738 cgraph_redirect_edge_callee.
20739 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
20740 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
20742 2014-04-04 Jeff Law <law@redhat.com>
20745 * config/arm/predicates.md (const_int_I_operand): New predicate.
20746 (const_int_M_operand): Similarly.
20747 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
20749 (insv_t2, extv_reg, extzv_t2): Likewise.
20750 (load_multiple_with_writeback): Similarly for const_int_I_operand.
20751 (pop_multiple_with_writeback_and_return): Likewise.
20752 (vfp_pop_multiple_with_writeback): Likewise
20754 2014-04-04 Richard Biener <rguenther@suse.de>
20757 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
20758 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
20760 * gimplify.h (gimple_add_tmp_var_fn): Declare.
20761 * gimplify.c (gimple_add_tmp_var_fn): New function.
20762 * gimple-expr.h (create_tmp_reg_fn): Declare.
20763 * gimple-expr.c (create_tmp_reg_fn): New function.
20764 * gimple-low.c (record_vars_into): Don't change cfun.
20765 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
20766 code generation without cfun.
20768 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
20771 * Makefile.in (install-driver): Fix shell scripting.
20773 2014-04-03 Cong Hou <congh@google.com>
20775 PR tree-optimization/60505
20776 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
20777 threshold of number of iterations below which no vectorization
20779 * tree-vect-loop.c (new_loop_vec_info):
20780 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
20781 * tree-vect-loop.c (vect_analyze_loop_operations):
20782 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
20783 * tree-vect-loop.c (vect_transform_loop):
20784 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
20785 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
20786 of iterations of the loop and see if we should build the epilogue.
20788 2014-04-03 Richard Biener <rguenther@suse.de>
20790 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
20791 (streamer_tree_cache_create): Adjust.
20792 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
20793 to allow optional nodes array.
20794 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
20795 (streamer_tree_cache_append): Likewise.
20796 (streamer_tree_cache_create): Create nodes array optionally
20797 as specified by parameter.
20798 * lto-streamer-out.c (create_output_block): Avoid maintaining
20799 the node array in the writer cache.
20800 (DFS_write_tree): Remove assertion.
20801 (produce_asm_for_decls): Free the out decl state hash table early.
20802 * lto-streamer-in.c (lto_data_in_create): Adjust for
20803 streamer_tree_cache_create prototype change.
20805 2014-04-03 Richard Biener <rguenther@suse.de>
20807 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
20808 set TREE_CHAIN to NULL_TREE.
20810 2014-04-03 Richard Biener <rguenther@suse.de>
20812 PR tree-optimization/60740
20813 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
20814 over all GIMPLE_COND operands.
20816 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
20818 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
20819 (Weffc++): Remove Scott's numbering, merge lists and reference
20822 2014-04-03 Nick Clifton <nickc@redhat.com>
20824 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
20827 2014-04-03 Martin Jambor <mjambor@suse.cz>
20829 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
20830 mention gcc_unreachable before failing.
20831 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
20834 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
20837 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
20838 inconsistent code and instead mark the context inconsistent.
20839 (possible_polymorphic_call_targets): For inconsistent contexts
20840 return empty complete list.
20842 2014-04-02 Anthony Green <green@moxielogic.com>
20844 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
20845 (extendqisi2, extendhisi2): Define.
20846 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
20847 (WCHAR_TYPE): Change to unsigned int.
20849 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20851 PR tree-optimization/60733
20852 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
20853 insertion point for PHI candidates to be the end of the feeding
20854 block for the PHI argument.
20856 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
20858 PR rtl-optimization/60650
20859 * lra-constraints.c (process_alt_operands): Decrease reject for
20860 earlyclobber matching.
20862 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20864 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
20866 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20868 * config/spu/spu.c (pad_bb): Do not crash when the last
20869 insn is CODE_FOR_blockage.
20871 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20873 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
20874 lies outside the target mode.
20876 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20879 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20880 software floating point or no floating point registers, do not
20881 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20882 in GPRs that occurs after we tested for GPRs that would never be
20885 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20886 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20887 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20888 specifically allow DDmode, since that does not use the SPE SIMD
20891 2014-04-02 Richard Biener <rguenther@suse.de>
20893 PR middle-end/60729
20894 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
20895 MODE_INTs. Properly use negv_optab.
20896 (expand_abs): Likewise.
20898 2014-04-02 Richard Biener <rguenther@suse.de>
20901 * Makefile.in (install-driver): Guard extra installs with special
20904 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
20906 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20907 Document vec_vgbbd.
20909 2014-04-01 Richard Henderson <rth@redhat.com>
20912 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
20913 alternative enabled before register allocation.
20915 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
20917 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
20918 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
20920 (nios2_large_got_address): Remove unneeded 'sym' parameter.
20921 (nios2_got_address): Update nios2_large_got_address call site.
20922 (nios2_delegitimize_address): New function.
20923 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
20924 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
20925 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
20927 2014-04-01 Martin Husemann <martin@duskware.de>
20929 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
20932 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
20934 PR rtl-optimization/60604
20935 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
20936 check from register_operand.
20937 (register_operand): Redefine in terms of general_operand.
20938 (nonmemory_operand): Use register_operand for the non-constant cases.
20940 2014-04-01 Richard Biener <rguenther@suse.de>
20942 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
20944 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
20946 * doc/invoke.texi (mapp-regs): Clarify.
20948 2014-03-31 Ulrich Drepper <drepper@gmail.com>
20950 * config/i386/avx512fintrin.h (__v32hi): Define type.
20951 (__v64qi): Likewise.
20952 (_mm512_set1_epi8): Define.
20953 (_mm512_set1_epi16): Define.
20954 (_mm512_set4_epi32): Define.
20955 (_mm512_set4_epi64): Define.
20956 (_mm512_set4_pd): Define.
20957 (_mm512_set4_ps): Define.
20958 (_mm512_setr4_epi64): Define.
20959 (_mm512_setr4_epi32): Define.
20960 (_mm512_setr4_pd): Define.
20961 (_mm512_setr4_ps): Define.
20962 (_mm512_setzero_epi32): Define.
20964 2014-03-31 Martin Jambor <mjambor@suse.cz>
20966 PR middle-end/60647
20967 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
20968 callsite_arguments_match_p. Updated all callers. Also check types of
20969 corresponding formal parameters and actual arguments.
20970 (not_all_callers_have_enough_arguments_p) Renamed to
20971 some_callers_have_mismatched_arguments_p.
20973 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
20975 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
20977 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
20980 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
20983 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
20985 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
20986 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
20988 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
20989 Use FMAMODE_NOVF512 mode iterator.
20990 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
20991 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
20992 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
20993 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
20995 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
20996 Use VF_128_256 mode iterator.
20997 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21000 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21002 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21003 static chain if needed.
21005 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21008 * lra-constraints.c (index_part_to_reg): New.
21009 (process_address): Use it.
21011 2014-03-27 Jeff Law <law@redhat.com>
21012 Jakub Jelinek <jakub@redhat.com>
21015 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21016 gen_rtx_{PLUS,MULT} to build up the address expression.
21018 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21019 creating non-canonical RTL.
21021 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21024 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21025 functions; reorganize to make cheap checks first.
21026 (inline_small_functions): Do not estimate growth when dumping;
21028 * ipa-inline.h (inline_summary): Add min_size.
21029 (growth_likely_positive): New function.
21030 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21031 (set_cond_stmt_execution_predicate): Cleanup.
21032 (estimate_edge_size_and_time): Compute min_size.
21033 (estimate_calls_size_and_time): Likewise.
21034 (estimate_node_size_and_time): Likewise.
21035 (inline_update_overall_summary): Update min_size.
21036 (do_estimate_edge_time): Likewise.
21037 (do_estimate_edge_size): Update.
21038 (do_estimate_edge_hints): Update.
21039 (growth_likely_positive): New function.
21041 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21044 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21045 also if addr has VOIDmode.
21047 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21049 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21050 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21052 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21053 instructions as well as AdvancedSIMD loads.
21055 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21057 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21058 Use crypto_aese type.
21059 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21060 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21061 crypto_aese, crypto_aesmc. Move to types.md.
21062 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21064 * config/arm/iterators.md (crypto_type): Likewise.
21066 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21068 * cgraph.c: Include expr.h and tree-dfa.h.
21069 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21072 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21075 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21076 regs from checking multi-reg pseudos.
21078 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21080 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21082 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21084 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21085 if it would clobber the stack pointer, even temporarily.
21087 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21089 * mode-switching.c: Make small adjustments to the top comment.
21091 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21093 * config/rs6000/constraints.md (wD constraint): New constraint to
21094 match the constant integer to get the top DImode/DFmode out of a
21095 vector in a VSX register.
21097 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21098 match the constant integer to get the top DImode/DFmode out of a
21099 vector in a VSX register.
21101 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21104 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21107 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21108 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21110 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21111 Optimize vec_extract of 64-bit values, where the value being
21112 extracted is in the top word, where we can use scalar
21113 instructions. Add direct move and store support. Combine the big
21114 endian/little endian vector select load support into a single insn.
21115 (vsx_extract_<mode>_internal1): Likewise.
21116 (vsx_extract_<mode>_internal2): Likewise.
21117 (vsx_extract_<mode>_load): Likewise.
21118 (vsx_extract_<mode>_store): Likewise.
21119 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21120 combined into vsx_extract_<mode>_load.
21121 (vsx_extract_<mode>_one_le): Likewise.
21123 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21124 define the top 64-bit vector element.
21126 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21129 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21130 Document vec_vbpermq builtin.
21133 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21134 enable use of xxsldwi and xxpermdi builtin functions.
21135 (vec_xxpermdi): Likewise.
21137 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21138 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21140 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21142 PR rtl-optimization/60650
21143 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21145 (find_spills_for): New.
21146 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21147 Spill all pseudos on the second iteration.
21149 2014-03-27 Marek Polacek <polacek@redhat.com>
21152 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21155 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21157 * config/s390/s390.c (s390_can_use_return_insn): Check for
21158 call-saved FPRs on 31 bit.
21160 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21162 PR middle-end/60682
21163 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21164 if they need regimplification, just drop them instead of
21165 calling gimple_regimplify_operands on them.
21167 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21170 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21171 (aarch64_frame_pointer_required): Adjust logic.
21172 (aarch64_can_eliminate): Adjust logic.
21173 (aarch64_override_options_after_change): Adjust logic.
21175 2014-03-27 Dehao Chen <dehao@google.com>
21177 * ipa-inline.c (early_inliner): Update node's inline info.
21179 2014-03-26 Dehao Chen <dehao@google.com>
21181 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21182 compiler inserted conditional jumps for NAN float check.
21184 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21186 * ubsan.h (ubsan_create_data): Change second argument's type
21187 to const location_t *.
21188 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21190 (ubsan_create_data): Change second argument to const location_t *PLOC.
21191 Create Loc field whenever PLOC is non-NULL.
21192 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21193 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21197 * real.c (real_to_integer2): Change type of low to UHWI.
21199 2014-03-26 Tobias Burnus <burnus@net-b.de>
21201 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21202 (CILK_SELF_SPECS): New define.
21203 (driver_self_specs): Use it.
21205 2014-03-26 Richard Biener <rguenther@suse.de>
21207 * tree-pretty-print.c (percent_K_format): Implement special
21208 case for LTO and its stripped down BLOCK tree.
21210 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21213 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21215 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21216 one range is range_int_cst_p, but not both, at least optimize
21217 addition/subtraction of 0 and multiplication by 0 or 1.
21218 * gimple-fold.c (gimple_fold_call): Fold
21219 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21220 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21221 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21223 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21225 PR rtl-optimization/60452
21226 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21227 <case REG>: Return 1 for invalid offsets from the frame pointer.
21229 2014-03-26 Marek Polacek <polacek@redhat.com>
21232 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21235 2014-03-26 Marek Polacek <polacek@redhat.com>
21238 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21241 2014-03-26 Marek Polacek <polacek@redhat.com>
21244 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21245 multiplication in unsigned type.
21247 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21249 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21251 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21253 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21255 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21258 * cif-code.def (UNREACHABLE) New code.
21259 * ipa-inline.c (inline_small_functions): Skip edges to
21260 __builtlin_unreachable.
21261 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21262 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21263 predicate to __bulitin_unreachable.
21264 (set_cond_stmt_execution_predicate): Fix issue when
21265 invert_tree_comparison returns ERROR_MARK.
21266 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21267 propagate to inline clones.
21268 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21270 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21271 * cgraphclones.c (cgraph_clone_node): If call destination is already
21272 ureachable, do not redirect it back.
21273 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21276 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21278 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21279 Do not modify inline clones.
21281 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21283 * config/i386/i386.md (general_sext_operand): New mode attr.
21284 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21285 don't generate (sign_extend (const_int)).
21286 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21287 operands[2]. Use We constraint instead of <i> and
21288 <general_sext_operand> predicate instead of <general_operand>.
21289 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21290 * config/i386/constraints.md (We): New constraint.
21291 * config/i386/predicates.md (x86_64_sext_operand,
21292 sext_operand): New predicates.
21294 2014-03-25 Martin Jambor <mjambor@suse.cz>
21297 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21298 inconsistent devirtualizations to __builtin_unreachable.
21300 2014-03-25 Marek Polacek <polacek@redhat.com>
21303 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21305 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21307 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21308 order of elements for big-endian.
21310 2014-03-25 Richard Biener <rguenther@suse.de>
21312 PR middle-end/60635
21313 * gimplify-me.c (gimple_regimplify_operands): Update the
21316 2014-03-25 Martin Jambor <mjambor@suse.cz>
21319 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21320 (lto_output_varpool_node): Likewise.
21321 (input_overwrite_node): Likewise.
21322 (input_varpool_node): Likewise.
21324 2014-03-25 Richard Biener <rguenther@suse.de>
21326 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21327 (run_gcc): Likewise.
21329 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21331 * combine.c (simplify_compare_const): Add MODE argument.
21332 Handle mode_width 0 as very large mode_width.
21333 (try_combine, simplify_comparison): Adjust callers.
21335 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21336 type to avoid signed integer overflow.
21337 * explow.c (plus_constant): Likewise.
21339 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21341 * doc/generic.texi: Correct typos.
21343 2014-03-24 Tobias Burnus <burnus@net-b.de>
21345 * doc/invoke.texi (-flto): Expand section about
21346 using static libraries with LTO.
21348 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21350 PR rtl-optimization/60501
21351 * optabs.def (addptr3_optab): New optab.
21352 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21353 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21354 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21356 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21358 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21360 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21362 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21365 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21366 (_mm256_undefined_ps): Define.
21367 (_mm256_undefined_pd): Define.
21368 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21369 (_mm_undefined_pd): Define.
21370 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21371 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21372 (_mm512_undefined_ps): Define.
21373 (_mm512_undefined_pd): Define.
21374 Use _mm*_undefined_*.
21375 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21377 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21379 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21380 (lshr_simd): DI mode added.
21381 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21382 (aarch64_ushr_simddi): Likewise.
21383 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21384 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21385 (vshrd_n_u64): Likewise.
21387 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21389 * Makefile.in (s-macro_list): Depend on cc1.
21391 2014-03-23 Teresa Johnson <tejohnson@google.com>
21393 * ipa-utils.c (ipa_print_order): Use specified dump file.
21395 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21397 PR rtl-optimization/60601
21398 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21400 * gcc.c (eval_spec_function): Initialize save_growing_value.
21402 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21405 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21406 code == MINUS_EXPR, never swap op0 with op1.
21408 * toplev.c (init_local_tick): Avoid signed integer multiplication
21410 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21411 shift by first operand's bitsize.
21413 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21416 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21417 redefine to 1 or 0.
21418 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21419 TARGET_ISA_64BIT_P(x).
21421 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21423 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21424 pattern for vector nor instead of subtract from splat(-1).
21425 (altivec_expand_vec_perm_const_le): Likewise.
21427 2014-03-21 Richard Henderson <rth@twiddle.net>
21430 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21431 related insns after epilogue_completed.
21433 2014-03-21 Martin Jambor <mjambor@suse.cz>
21436 * cgraph.h (symtab_node): New flag body_removed.
21437 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21438 when removing bodies.
21439 * symtab.c (dump_symtab_base): Dump body_removed flag.
21440 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21441 had their bodies removed.
21443 2014-03-21 Martin Jambor <mjambor@suse.cz>
21446 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21449 2014-03-21 Richard Biener <rguenther@suse.de>
21451 PR tree-optimization/60577
21452 * tree-core.h (struct tree_base): Document nothrow_flag use
21453 in DECL_NONALIASED.
21454 * tree.h (DECL_NONALIASED): New.
21455 (may_be_aliased): Adjust.
21456 * coverage.c (build_var): Set DECL_NONALIASED.
21458 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21460 * expr.c (expand_expr_real_1): Remove outdated comment.
21462 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21464 PR middle-end/60597
21465 * ira.c (adjust_cleared_regs): Call copy_rtx on
21466 *reg_equiv[REGNO (loc)].src_p before passing it to
21467 simplify_replace_fn_rtx.
21470 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21471 into CONST, put pic register as first operand of PLUS. Use
21472 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21474 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21476 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21478 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21480 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21481 around for store forwarding issue in the FPU on the UT699.
21482 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21483 loads and operations if -mfix-ut699 is specified.
21484 (divtf3_hq): Tweak attribute.
21485 (sqrttf2_hq): Likewise.
21487 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21489 * calls.c (store_one_arg): Remove incorrect const qualification on the
21490 type of the temporary.
21491 * cfgexpand.c (expand_return): Likewise.
21492 * expr.c (expand_constructor): Likewise.
21493 (expand_expr_real_1): Likewise.
21495 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21497 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21500 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21503 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21505 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21507 * config/arm/aarch-common-protos.h
21508 (alu_cost_table): Fix spelling of "extend".
21509 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21511 2014-03-19 Richard Biener <rguenther@suse.de>
21513 PR middle-end/60553
21514 * tree-core.h (tree_type_common): Re-order pointer members
21515 to reduce recursion depth during GC walks.
21517 2014-03-19 Marek Polacek <polacek@redhat.com>
21520 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21521 before accessing it.
21523 2014-03-19 Richard Biener <rguenther@suse.de>
21526 * lto-streamer-in.c (input_function): In WPA stage do not drop
21529 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21531 PR tree-optimization/60559
21532 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21533 with build_zero_cst assignment.
21535 2014-03-18 Kai Tietz <ktietz@redhat.com>
21537 PR rtl-optimization/56356
21538 * sdbout.c (sdbout_parms): Verify that parms'
21539 incoming argument is valid.
21540 (sdbout_reg_parms): Likewise.
21542 2014-03-18 Richard Henderson <rth@redhat.com>
21545 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21546 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21547 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21549 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21551 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21552 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21553 Italicize plugin event names in description. Explain that
21554 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21555 Remind that no GCC functions should be called after PLUGIN_FINISH.
21556 Explain what pragmas with expansion are.
21558 2014-03-18 Martin Liska <mliska@suse.cz>
21560 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21561 gimple call statement is update.
21562 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21563 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21565 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21568 * ubsan.c (ubsan_instrument_unreachable): Call
21569 initialize_sanitizer_builtins.
21570 (ubsan_pass): Likewise.
21573 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21574 varpool_finalize_decl instead of rest_of_decl_compilation.
21576 2014-03-18 Richard Biener <rguenther@suse.de>
21578 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21579 by using bitmap_and_compl instead of bitmap_and_compl_into.
21580 (df_rd_transfer_function): Likewise.
21582 2014-03-18 Richard Biener <rguenther@suse.de>
21584 * doc/lto.texi (fresolution): Fix typo.
21586 2014-03-18 Richard Biener <rguenther@suse.de>
21588 * doc/invoke.texi (flto): Update for changes in 4.9.
21590 2014-03-18 Richard Biener <rguenther@suse.de>
21592 * doc/loop.texi: Remove section on the removed lambda framework.
21593 Update loop docs with recent changes in preserving loop structure.
21595 2014-03-18 Richard Biener <rguenther@suse.de>
21597 * doc/lto.texi (-fresolution): Document.
21599 2014-03-18 Richard Biener <rguenther@suse.de>
21601 * doc/contrib.texi: Adjust my name.
21603 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21606 * internal-fn.c: Include diagnostic-core.h.
21607 (expand_BUILTIN_EXPECT): New function.
21608 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21609 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21610 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21611 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21612 IFN_BUILTIN_EXPECT.
21613 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21614 Revert 3 argument __builtin_expect code.
21615 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21616 * gimple-fold.c (gimple_fold_call): Likewise.
21617 * tree.h (fold_builtin_expect): New prototype.
21618 * builtins.c (build_builtin_expect_predicate): Add predictor
21619 argument, if non-NULL, create 3 argument __builtin_expect.
21620 (fold_builtin_expect): No longer static. Add ARG2 argument,
21621 pass it through to build_builtin_expect_predicate.
21622 (fold_builtin_2): Adjust caller.
21623 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21624 * internal-fn.def (BUILTIN_EXPECT): New.
21626 2014-03-18 Tobias Burnus <burnus@net-b.de>
21629 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21630 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21631 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21633 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21636 * predict.c (combine_predictions_for_bb): Fix up formatting.
21637 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21638 fill what it points to if non-NULL.
21639 (tree_predict_by_opcode): Adjust caller, use the predictor.
21640 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21642 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21644 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21645 proper constant for the store mode.
21647 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21649 * symtab.c (change_decl_assembler_name): Fix transparent alias
21650 chain construction.
21652 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21654 * config/aarch64/aarch64.c: Correct the comments about the
21655 aarch64 stack layout.
21657 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21659 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21660 check for GF_OMP_FOR_KIND_FOR.
21662 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21664 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21665 ymm and zmm register names.
21667 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21670 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21671 note creation for the 2010-08-31 changes.
21673 2014-03-17 Marek Polacek <polacek@redhat.com>
21675 PR middle-end/60534
21676 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21677 as -fno-tree-loop-vectorize.
21678 (expand_omp_simd): Likewise.
21680 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21682 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21683 (eligible_for_call_delay): New prototype.
21684 * config/sparc/sparc.c (tls_call_delay): Rename into...
21685 (eligible_for_call_delay): ...this. Return false if the instruction
21686 cannot be put in the delay slot of a branch.
21687 (eligible_for_restore_insn): Simplify.
21688 (eligible_for_return_delay): Return false if the instruction cannot be
21689 put in the delay slot of a branch and simplify.
21690 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21691 put in the delay slot of a branch.
21692 * config/sparc/sparc.md (fix_ut699): New attribute.
21693 (tls_call_delay): Delete.
21694 (in_call_delay): Reimplement.
21695 (eligible_for_sibcall_delay): Rename into...
21696 (in_sibcall_delay): ...this.
21697 (eligible_for_return_delay): Rename into...
21698 (in_return_delay): ...this.
21699 (in_branch_delay): Reimplement.
21700 (in_uncond_branch_delay): Delete.
21701 (in_annul_branch_delay): Delete.
21703 2014-03-14 Richard Henderson <rth@redhat.com>
21706 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21707 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21708 (*floathi<X87MODEF>2_i387_with_temp): Remove.
21709 (floathi splitters): Remove.
21710 (float<SWI48x>xf2): New pattern.
21711 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
21712 code that tried to handle DImode for 32-bit, but which was excluded
21713 by the pattern's condition. Drop allocation of stack temporary.
21714 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21715 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21716 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21717 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21718 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21719 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21720 (*float<SWI48><MODEF>2_sse_interunit): Remove.
21721 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21722 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21723 (*float<SWI48x><X87MODEF>2_i387): Remove.
21724 (all float _with_temp splitters): Remove.
21725 (*float<SWI48x><MODEF>2_i387): New pattern.
21726 (*float<SWI48><MODEF>2_sse): New pattern.
21727 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21728 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21730 2014-03-14 Jakub Jelinek <jakub@redhat.com>
21731 Marek Polacek <polacek@redhat.com>
21733 PR middle-end/60484
21734 * common.opt (dump_base_name_prefixed): New Variable.
21735 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
21736 if x_dump_base_name_prefixed is already set, set it at the end.
21738 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
21740 PR rtl-optimization/60508
21741 * lra-constraints.c (get_reload_reg): Add new parameter
21743 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
21744 Pass the new parameter values.
21746 2014-03-14 Richard Biener <rguenther@suse.de>
21748 * common.opt: Revert unintented changes from r205065.
21749 * opts.c: Likewise.
21751 2014-03-14 Richard Biener <rguenther@suse.de>
21753 PR middle-end/60518
21754 * cfghooks.c (split_block): Properly adjust all loops the
21755 block was a latch of.
21757 2014-03-14 Martin Jambor <mjambor@suse.cz>
21760 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
21763 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
21766 * config/avr/avr.c (avr_set_current_function): Pass function name
21767 through default_strip_name_encoding before sanity checking instead
21768 of skipping the first char of the assembler name.
21770 2014-03-13 Richard Henderson <rth@redhat.com>
21773 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
21774 (ix86_force_to_memory, ix86_free_from_memory): Remove.
21775 * config/i386/i386-protos.h: Likewise.
21776 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
21777 in the expander instead of a splitter.
21778 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
21779 any possibility of requiring a memory.
21780 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
21781 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
21782 (fp branch splitters): Update for ix86_split_fp_branch.
21783 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
21784 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
21785 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
21786 (*fop_<MODEF>_2_i387): Remove f/r alternative.
21787 (*fop_<MODEF>_3_i387): Likewise.
21788 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
21789 (splitters for the fop_* register patterns): Remove.
21790 (fscalexf4_i387): Rename from *fscalexf4_i387.
21791 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
21793 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21795 PR tree-optimization/59779
21796 * tree-dfa.c (get_ref_base_and_extent): Use double_int
21797 type for bitsize and maxsize instead of HOST_WIDE_INT.
21799 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
21801 PR rtl-optimization/57320
21802 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
21803 the CFG after thread_prologue_and_epilogue_insns.
21805 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
21807 PR rtl-optimization/57189
21808 * lra-constraints.c (process_alt_operands): Disfavor spilling
21811 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
21813 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
21815 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21817 PR tree-optimization/59025
21818 PR middle-end/60418
21819 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
21820 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
21822 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
21825 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
21826 calls of avr_out_plus_1.
21828 2014-03-13 Bin Cheng <bin.cheng@arm.com>
21830 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
21831 BB's single pred and update the father loop's latch info later.
21833 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21835 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
21839 (VEC_base): Likewise.
21840 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
21841 registers, we need to swap double words in little endian mode.
21843 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
21844 to be a container mode for 128-bit integer operations added in ISA
21845 2.07. Unlike TImode and PTImode, the preferred register set is
21846 the Altivec/VMX registers for the 128-bit operations.
21848 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
21850 (rs6000_split_128bit_ok_p): Likewise.
21852 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
21853 macros for creating ISA 2.07 normal and overloaded builtin
21854 functions with 3 arguments.
21855 (BU_P8V_OVERLOAD_3): Likewise.
21856 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
21857 for use as overloaded functions.
21858 (VPERM_1TI_UNS): Likewise.
21859 (VSEL_1TI): Likewise.
21860 (VSEL_1TI_UNS): Likewise.
21861 (ST_INTERNAL_1ti): Likewise.
21862 (LD_INTERNAL_1ti): Likewise.
21863 (XXSEL_1TI): Likewise.
21864 (XXSEL_1TI_UNS): Likewise.
21865 (VPERM_1TI): Likewise.
21866 (VPERM_1TI_UNS): Likewise.
21867 (XXPERMDI_1TI): Likewise.
21868 (SET_1TI): Likewise.
21869 (LXVD2X_V1TI): Likewise.
21870 (STXVD2X_V1TI): Likewise.
21871 (VEC_INIT_V1TI): Likewise.
21872 (VEC_SET_V1TI): Likewise.
21873 (VEC_EXT_V1TI): Likewise.
21874 (EQV_V1TI): Likewise.
21875 (NAND_V1TI): Likewise.
21876 (ORC_V1TI): Likewise.
21877 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
21878 added in ISA 2.07. Add both normal 'altivec' builtins, and the
21879 overloaded builtin.
21880 (VADDUQM): Likewise.
21881 (VSUBCUQ): Likewise.
21882 (VADDEUQM): Likewise.
21883 (VADDECUQ): Likewise.
21884 (VSUBEUQM): Likewise.
21885 (VSUBECUQ): Likewise.
21887 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
21888 __int128_t and __uint128_t types.
21889 (__uint128_type): Likewise.
21890 (altivec_categorize_keyword): Add support for vector __int128_t,
21891 vector __uint128_t, vector __int128, and vector unsigned __int128
21892 as a container type for TImode operations that need to be done in
21893 VSX/Altivec registers.
21894 (rs6000_macro_to_expand): Likewise.
21895 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
21896 to support 128-bit integer instructions vaddcuq, vadduqm,
21897 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
21898 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
21900 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
21901 for V1TImode, and set up preferences to use VSX/Altivec registers.
21902 Setup VSX reload handlers.
21903 (rs6000_debug_reg_global): Likewise.
21904 (rs6000_init_hard_regno_mode_ok): Likewise.
21905 (rs6000_preferred_simd_mode): Likewise.
21906 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
21907 (easy_altivec_constant): Likewise.
21908 (output_vec_const_move): Likewise.
21909 (rs6000_expand_vector_set): Convert V1TImode set and extract to
21911 (rs6000_expand_vector_extract): Likewise.
21912 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
21914 (rs6000_const_vec): Add support for V1TImode.
21915 (rs6000_emit_le_vsx_load): Swap double words when loading or
21916 storing TImode/V1TImode.
21917 (rs6000_emit_le_vsx_store): Likewise.
21918 (rs6000_emit_le_vsx_move): Likewise.
21919 (rs6000_emit_move): Add support for V1TImode.
21920 (altivec_expand_ld_builtin): Likewise.
21921 (altivec_expand_st_builtin): Likewise.
21922 (altivec_expand_vec_init_builtin): Likewise.
21923 (altivec_expand_builtin): Likewise.
21924 (rs6000_init_builtins): Add support for V1TImode type. Add
21925 support for ISA 2.07 128-bit integer builtins. Define type names
21926 for the VSX/Altivec vector types.
21927 (altivec_init_builtins): Add support for overloaded vector
21928 functions with V1TImode type.
21929 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
21930 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
21932 (rs6000_split_128bit_ok_p): Likewise.
21933 (rs6000_handle_altivec_attribute): Create V1TImode from vector
21934 __int128_t and vector __uint128_t.
21936 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
21937 and mode attributes.
21939 (VSX_M2): Likewise.
21944 (VS_scalar): Likewise.
21945 (VS_double): Likewise.
21946 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
21948 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
21949 we support the ISA 2.07 128-bit integer arithmetic instructions.
21950 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
21951 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
21952 and TImode types for use with the builtin functions.
21953 (V1TI_type_node): Likewise.
21954 (unsigned_V1TI_type_node): Likewise.
21955 (intTI_type_internal_node): Likewise.
21956 (uintTI_type_internal_node): Likewise.
21958 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
21959 128-bit builtin functions.
21960 (UNSPEC_VADDEUQM): Likewise.
21961 (UNSPEC_VADDECUQ): Likewise.
21962 (UNSPEC_VSUBCUQ): Likewise.
21963 (UNSPEC_VSUBEUQM): Likewise.
21964 (UNSPEC_VSUBECUQ): Likewise.
21965 (VM): Add V1TImode to vector mode iterators.
21967 (VI_unit): Likewise.
21968 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
21969 (altivec_vaddcuq): Likewise.
21970 (altivec_vsubuqm): Likewise.
21971 (altivec_vsubcuq): Likewise.
21972 (altivec_vaddeuqm): Likewise.
21973 (altivec_vaddecuq): Likewise.
21974 (altivec_vsubeuqm): Likewise.
21975 (altivec_vsubecuq): Likewise.
21977 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
21979 (BOOL_128): Likewise.
21980 (BOOL_REGS_OUTPUT): Likewise.
21981 (BOOL_REGS_OP1): Likewise.
21982 (BOOL_REGS_OP2): Likewise.
21983 (BOOL_REGS_UNARY): Likewise.
21984 (BOOL_REGS_AND_CR0): Likewise.
21986 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
21987 128-bit integer builtin support.
21988 (vec_vadduqm): Likewise.
21989 (vec_vaddecuq): Likewise.
21990 (vec_vaddeuqm): Likewise.
21991 (vec_vsubecuq): Likewise.
21992 (vec_vsubeuqm): Likewise.
21993 (vec_vsubcuq): Likewise.
21994 (vec_vsubuqm): Likewise.
21996 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21997 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
21998 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
21999 128-bit integer add/subtract to ISA 2.07.
22001 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22003 * config/arc/arc.c (arc_predicate_delay_insns):
22004 Fix third argument passed to conditionalize_nonjump.
22006 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22008 * config/aarch64/aarch64-builtins.c
22009 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22010 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22011 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22012 instead of __builtin_lfloor.
22013 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22015 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22017 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22018 (tree_ssa_ifcombine_bb_1): New function.
22019 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22020 is an empty forwarder block to then_bb or vice versa and then_bb
22021 and else_bb are effectively swapped.
22023 2014-03-12 Christian Bruel <christian.bruel@st.com>
22026 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22027 REG_CFA_DEF_CFA note.
22028 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22029 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22031 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22033 PR tree-optimization/60454
22034 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22036 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22038 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22039 Do not define target_cpu_default2 to generic.
22040 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22041 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22042 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22044 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22045 Marc Glisse <marc.glisse@inria.fr>
22047 PR tree-optimization/60502
22048 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22049 instead of build_low_bits_mask.
22051 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22053 PR middle-end/60482
22054 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22055 if there are multiple uses, but op doesn't live on E edge.
22056 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22057 clobber stmts before __builtin_unreachable.
22059 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22061 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22062 hard_frame_pointer_rtx.
22063 * cse.c (cse_insn): Remove volatile check.
22064 * cselib.c (cselib_process_insn): Likewise.
22065 * dse.c (scan_insn): Likewise.
22067 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22069 * config/arc/arc.c (conditionalize_nonjump): New function,
22071 (arc_ifcvt): ... this.
22072 (arc_predicate_delay_insns): Use it.
22074 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22076 * config/arc/predicates.md (extend_operand): During/after reload,
22077 allow const_int_operand.
22078 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22079 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22080 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22082 (umulsi3_highpart_i): Likewise.
22084 2014-03-11 Richard Biener <rguenther@suse.de>
22086 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22087 Add asserts to guard possible wrong-code bugs.
22089 2014-03-11 Richard Biener <rguenther@suse.de>
22091 PR tree-optimization/60429
22092 PR tree-optimization/60485
22093 * tree-ssa-structalias.c (set_union_with_increment): Properly
22094 take into account all fields that overlap the shifted vars.
22095 (do_sd_constraint): Likewise.
22096 (do_ds_constraint): Likewise.
22097 (get_constraint_for_ptr_offset): Likewise.
22099 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22101 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22102 (nios2_compute_frame_layout):
22103 Add calculation of cfun->machine->fp_save_offset.
22104 (nios2_expand_prologue): Correct setting of frame pointer register
22106 (nios2_expand_epilogue): Update recovery of stack pointer from
22107 frame pointer accordingly.
22108 (nios2_initial_elimination_offset): Update calculation of offset
22109 for eliminating to HARD_FRAME_POINTER_REGNUM.
22111 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22114 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22115 cgraph_get_create_node on VAR_DECLs.
22117 2014-03-10 Richard Biener <rguenther@suse.de>
22119 PR middle-end/60474
22120 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22122 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22124 * config/vms/vms.opt (vms_float_format): New variable.
22126 2014-03-08 Tobias Burnus <burnus@net-b.de>
22128 * doc/invoke.texi (-fcilkplus): Update implementation status.
22130 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22131 Richard Biener <rguenther@suse.de>
22133 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22134 consistently accross all TUs.
22135 (run_gcc): Enable -fshort-double automatically at link at link-time
22136 and disallow override.
22138 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22141 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22142 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22143 if they can't be used.
22145 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22147 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22148 for Solaris 11/x86 ld.
22149 * configure: Regenerate.
22151 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22153 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22154 (LIB_TLS_SPEC): Save as ld_tls_libs.
22155 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22156 (HAVE_AS_IX86_TLSLDM): New test.
22157 * configure, config.in: Regenerate.
22158 * config/i386/i386.c (legitimize_tls_address): Fall back to
22159 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22160 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22161 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22162 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22164 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22166 * common.opt (fira-loop-pressure): Mark as optimization.
22168 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22170 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22171 an OpenMP mappable type.
22173 2014-03-06 Matthias Klose <doko@ubuntu.com>
22175 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22176 MULTILIB_OSDIRNAMES is not defined.
22178 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22179 Meador Inge <meadori@codesourcery.com>
22182 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22183 (arm_legitimize_address): Call legitimize_tls_address for any
22184 arm_tls_referenced_p expression, handle constant addend. Call it
22185 before testing for !TARGET_ARM.
22186 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22188 2014-03-06 Richard Biener <rguenther@suse.de>
22190 PR middle-end/60445
22194 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22196 * tree-streamer.c (record_common_node): Assert we don't record
22197 nodes with type double.
22198 (preload_common_node): Skip type double, complex double and double
22199 pointer since it is now frontend dependent due to fshort-double option.
22201 2014-03-06 Richard Biener <rguenther@suse.de>
22203 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22204 or -fno-lto is specified and the linker has full plugin support.
22205 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22206 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22207 * lto-wrapper.c (merge_and_complain): Merge compile-time
22208 optimization levels.
22209 (run_gcc): And pass it through to the link options.
22211 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22215 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22217 * cselib.c (remove_useless_values): Skip to avoid quadratic
22218 behavior if the condition moved from...
22219 (cselib_process_insn): ... here holds.
22221 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22224 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22225 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22228 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22229 (TM_H): Add x86-tune.def.
22231 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22233 * config/aarch64/aarch64.c (generic_tunings):
22234 Use cortexa57_extra_costs.
22236 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22239 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22240 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22241 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22244 2014-03-04 Heiher <r@hev.cc>
22246 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22247 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22249 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22251 * config/i386/predicates.md (const2356_operand): Change to ...
22252 (const2367_operand): ... this.
22253 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22255 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22256 (*avx512pf_scatterpf<mode>sf): Ditto.
22257 (avx512pf_scatterpf<mode>df): Ditto.
22258 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22259 (*avx512pf_scatterpf<mode>df): Ditto.
22260 * config/i386/i386.c (ix86_expand_builtin): Update
22261 incorrect hint operand error message.
22263 2014-03-04 Richard Biener <rguenther@suse.de>
22265 * lto-section-in.c (lto_get_section_data): Fix const cast.
22267 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22269 * tree-streamer.c (record_common_node): Assert we don't record
22270 nodes with type double.
22271 (preload_common_node): Skip type double, complex double and double
22272 pointer since it is now frontend dependent due to fshort-double option.
22274 2014-03-04 Richard Biener <rguenther@suse.de>
22277 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22278 (lto_input_toplevel_asms): Likewise.
22279 * lto-section-in.c (lto_get_section_data): Instead do it here
22282 2014-03-04 Richard Biener <rguenther@suse.de>
22284 PR tree-optimization/60382
22285 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22286 dead PHIs a reduction.
22288 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22290 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22292 (_mm_prefetch): Move out of GCC target("sse") pragma.
22293 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22294 GCC target("prfchw") pragma.
22295 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22297 * config/i386/i386.c (ix86_option_override_internal): Enable
22298 -mprfchw with -mprefetchwt1.
22300 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22302 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22305 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22307 * opts.h (CL_PCH_IGNORE): Define.
22308 * targhooks.c (option_affects_pch_p):
22309 Return false for options that have CL_PCH_IGNORE set.
22310 * opt-functions.awk: Process PchIgnore.
22311 * doc/options.texi: Document PchIgnore.
22313 * config/arc/arc.opt (misize): Add PchIgnore property.
22315 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22317 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22318 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22319 constraint on constants to permit them being loaded into
22320 GENERAL_REGS or BASE_REGS.
22322 2014-03-03 Nick Clifton <nickc@redhat.com>
22324 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22325 anti-cacnonical alternatives.
22326 (negandhi3_real): New pattern.
22327 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22329 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22331 * config/avr/avr-mcus.def: Remove atxmega16x1.
22332 * config/avr/avr-tables.opt: Regenerate.
22333 * config/avr/t-multilib: Regenerate.
22334 * doc/avr-mmcu.texi: Regenerate.
22336 2014-03-03 Tobias Grosser <tobias@grosser.es>
22337 Mircea Namolaru <mircea.namolaru@inria.fr>
22339 PR tree-optimization/58028
22340 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22343 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22345 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22346 not handled by recognizers.
22348 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22350 PR middle-end/60175
22351 * function.c (expand_function_end): Don't emit
22352 clobber_return_register sequence if clobber_after is a BARRIER.
22353 * cfgexpand.c (construct_exit_block): Append instructions before
22354 return_label to prev_bb.
22356 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22358 * config/rs6000/constraints.md: Document reserved use of "wc".
22360 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22363 * ipa.c (function_and_variable_visibility): When dissolving comdat
22364 group, also set all symbols to local.
22366 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22371 2013-12-14 Jan Hubicka <jh@suse.cz>
22372 PR middle-end/58477
22373 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22375 2014-03-02 Jon Beniston <jon@beniston.com>
22381 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22382 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22383 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22384 (simple_return, *simple_return): New patterns
22385 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22386 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22388 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22390 * dwarf2out.c (gen_subprogram_die): Tidy.
22392 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22395 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22396 (*mov_t_msb_neg_negc): ... this new insn.
22398 2014-02-28 Jason Merrill <jason@redhat.com>
22401 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22404 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22407 * dwarf2out.c (decltype_auto_die): New static.
22408 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22409 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22410 (is_cxx_auto): Likewise.
22412 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22414 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22415 we are not using general regs only.
22417 2014-02-28 Richard Biener <rguenther@suse.de>
22420 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22421 previous fix and only allow to remove trivial pre-headers
22422 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22423 (remove_forwarder_block): Properly update the latch of a loop.
22425 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22428 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22429 (cselib_preserved_hash_table): New.
22430 (preserve_constants_and_equivs): Move preserved vals to it.
22431 (cselib_find_slot): Look it up first.
22432 (cselib_init): Initialize it.
22433 (cselib_finish): Release it.
22434 (dump_cselib_table): Dump it.
22436 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22439 * cselib.c (remove_useless_values): Skip to avoid quadratic
22440 behavior if the condition moved from...
22441 (cselib_process_insn): ... here holds.
22443 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22446 * var-tracking.c (vt_initialize): Apply the same condition to
22447 preserve the CFA base value.
22449 2014-02-28 Joey Ye <joey.ye@arm.com>
22452 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22453 if reload in progress or completed.
22455 2014-02-28 Tobias Burnus <burnus@net-b.de>
22457 PR middle-end/60147
22458 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22461 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22463 * doc/tm.texi.in (Condition Code Status): Update documention for
22464 relative locations of cc0-setter and cc0-user.
22466 2014-02-27 Jeff Law <law@redhat.com>
22468 PR rtl-optimization/52714
22469 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22470 into two independent simple sets, if I3 is a jump, ensure the
22471 pattern we place into I3 is a (set (pc) ...).
22473 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22474 Jeff Law <law@redhat.com>
22476 PR rtl-optimization/49847
22477 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22478 are in different blocks.
22479 * doc/tm.texi (Condition Code Status): Update documention for
22480 relative locations of cc0-setter and cc0-user.
22482 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22485 * lra.c (lra_emit_add): Check SUBREG too.
22487 2014-02-27 Andreas Schwab <schwab@suse.de>
22489 * config/m68k/m68k.c (m68k_option_override): Disable
22490 -flive-range-shrinkage for classic m68k.
22491 (m68k_override_options_after_change): Likewise.
22493 2014-02-27 Marek Polacek <polacek@redhat.com>
22495 PR middle-end/59223
22496 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22497 -Wmaybe-uninitialized.
22499 2014-02-27 Alan Modra <amodra@gmail.com>
22502 * reload1.c (emit_input_reload_insns): When reload_override_in,
22503 set old to rl->in_reg when rl->in_reg is a subreg.
22505 2014-02-26 Richard Biener <rguenther@suse.de>
22508 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22510 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22512 * common/config/i386/predicates.md (const1256_operand): Remove.
22513 (const2356_operand): New.
22514 (const_1_to_2_operand): Remove.
22515 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22516 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22517 (*avx512pf_gatherpf<mode>sf): Ditto.
22518 (avx512pf_gatherpf<mode>df): Ditto.
22519 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22520 (*avx512pf_gatherpf<mode>df): Ditto.
22521 (avx512pf_scatterpf<mode>sf): Ditto.
22522 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22523 (*avx512pf_scatterpf<mode>sf): Ditto.
22524 (avx512pf_scatterpf<mode>df): Ditto.
22525 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22526 (*avx512pf_scatterpf<mode>df): Ditto.
22527 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22529 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22531 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22532 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22533 (_mm512_mask_testn_epi64_mask): Move to ...
22534 * config/i386/avx512cdintrin.h: Here.
22535 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22536 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22537 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22538 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22539 TARGET_AVX512F from TARGET_AVX512CD.
22541 2014-02-26 Richard Biener <rguenther@suse.de>
22544 * ipa.c (walk_polymorphic_call_targets): Properly guard
22545 call to inline_update_overall_summary.
22547 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22550 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22551 and latches only if requested. Fix latch if it is removed.
22552 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22553 LOOPS_HAVE_PREHEADERS.
22555 2014-02-25 Andrew Pinski <apinski@cavium.com>
22557 * builtins.c (expand_builtin_thread_pointer): Create a new target
22558 when the target is NULL.
22560 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22562 PR rtl-optimization/60317
22563 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22564 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22565 * lra-assigns.c: Include params.h.
22566 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22567 other reload pseudos considerations.
22569 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22571 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22572 to use canonical form for nor<mode>3.
22574 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22577 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22580 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22582 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22583 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22584 (ix86_handle_option): Handle OPT_mprefetchwt1.
22585 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22586 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22588 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22589 OPTION_MASK_ISA_PREFETCHWT1.
22590 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22591 (PTA_PREFETCHWT1): New.
22592 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22593 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22594 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22595 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22596 (*prefetch_avx512pf_<mode>_: Change into ...
22597 (*prefetch_prefetchwt1_<mode>: This.
22598 * config/i386/i386.opt (mprefetchwt1): New.
22599 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22600 (_mm_prefetch): Handle intent to write.
22601 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22603 2014-02-25 Richard Biener <rguenther@suse.de>
22605 PR middle-end/60291
22606 * emit-rtl.c (mem_attrs_htab): Remove.
22607 (mem_attrs_htab_hash): Likewise.
22608 (mem_attrs_htab_eq): Likewise.
22609 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22610 (init_emit_once): Do not allocate mem_attrs_htab.
22612 2014-02-25 Richard Biener <rguenther@suse.de>
22615 * lto-opts.c (lto_write_options): Output non-explicit conservative
22616 -fwrapv, -fno-trapv and -fno-strict-overflow.
22617 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22618 (run_gcc): And pass them through.
22620 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22622 * sel-sched.c (calculate_new_fences): New parameter ptime.
22623 Calculate it as a maximum over all fence cycles.
22624 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22625 Print the final schedule timing when sched_verbose.
22627 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22629 PR rtl-optimization/60292
22630 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22631 bit fot the fence instruction.
22633 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22635 * calls.h: Fix typo in comment.
22637 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22639 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22640 adjusting offsetable addresses.
22642 2014-02-24 Guozhi Wei <carrot@google.com>
22644 * sparseset.h (sparseset_pop): Fix the wrong index.
22646 2014-02-24 Walter Lee <walt@tilera.com>
22648 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22649 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22651 * common/config/tilegx/tilegx-common.c
22652 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22653 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22654 (LINK_SPEC): Ditto.
22655 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22656 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22657 (tilegx_gimplify_va_arg_expr): Handle big endian.
22658 (tilegx_expand_unaligned_load): Ditto.
22659 (tilegx_expand_unaligned_store): Ditto.
22660 (TARGET_RETURN_IN_MSB): New.
22661 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22662 (TARGET_ENDIAN_DEFAULT): New.
22663 (TARGET_BIG_ENDIAN): Handle big endian.
22664 (BYTES_BIG_ENDIAN): Ditto.
22665 (WORDS_BIG_ENDIAN): Ditto.
22666 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22667 (ENDIAN_SPEC): New.
22668 (EXTRA_SPECS): New.
22669 * config/tilegx/tilegx.md (extv): Handle big endian.
22671 (insn_st<n>): Ditto.
22672 (insn_st<n>_add<bitsuffix>): Ditto.
22673 (insn_stnt<n>): Ditto.
22674 (insn_stnt<n>_add<bitsuffix>):Ditto.
22675 (vec_interleave_highv8qi): Handle big endian.
22676 (vec_interleave_highv8qi_be): New.
22677 (vec_interleave_highv8qi_le): New.
22678 (insn_v1int_h): Handle big endian.
22679 (vec_interleave_lowv8qi): Handle big endian.
22680 (vec_interleave_lowv8qi_be): New.
22681 (vec_interleave_lowv8qi_le): New.
22682 (insn_v1int_l): Handle big endian.
22683 (vec_interleave_highv4hi): Handle big endian.
22684 (vec_interleave_highv4hi_be): New.
22685 (vec_interleave_highv4hi_le): New.
22686 (insn_v2int_h): Handle big endian.
22687 (vec_interleave_lowv4hi): Handle big endian.
22688 (vec_interleave_lowv4hi_be): New.
22689 (vec_interleave_lowv4hi_le): New.
22690 (insn_v2int_l): Handle big endian.
22691 (vec_interleave_highv2si): Handle big endian.
22692 (vec_interleave_highv2si_be): New.
22693 (vec_interleave_highv2si_le): New.
22694 (insn_v4int_h): Handle big endian.
22695 (vec_interleave_lowv2si): Handle big endian.
22696 (vec_interleave_lowv2si_be): New.
22697 (vec_interleave_lowv2si_le): New.
22698 (insn_v4int_l): Handle big endian.
22699 * config/tilegx/tilegx.opt (mbig-endian): New option.
22700 (mlittle-endian): New option.
22701 * doc/install.texi: Document tilegxbe-linux.
22702 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22704 2014-02-24 Martin Jambor <mjambor@suse.cz>
22707 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22708 there are no parameter descriptors.
22710 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
22712 PR rtl-optimization/60268
22713 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22714 initialization to ...
22715 (sched_rgn_init): ... here.
22716 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22718 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22720 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22723 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22725 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22728 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22730 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22731 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22733 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22735 * config/microblaze/predicates.md: Add cmp_op predicate.
22736 * config/microblaze/microblaze.md: Add branch_compare instruction
22737 which uses cmp_op predicate and emits cmp insn before branch.
22738 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
22739 to microblaze_expand_conditional_branch and consolidate logic.
22740 (microblaze_expand_conditional_branch): emit branch_compare
22741 insn instead of handling cmp op separate from branch insn.
22743 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22745 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
22748 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22750 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
22751 define_insn with define_expand and new define_insn
22752 *altivec_lve<VI_char>x_internal.
22753 (altivec_stve<VI_char>x): Replace define_insn with define_expand
22754 and new define_insn *altivec_stve<VI_char>x_internal.
22755 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
22757 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
22759 (altivec_expand_stvex_be): New function.
22761 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
22763 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
22764 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
22765 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
22766 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
22768 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
22771 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
22772 instead of emit_move_insn.
22774 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22776 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
22777 vspltw with vsldoi.
22778 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
22779 gen_altivec_vsumsws.
22781 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22783 * config/rs6000/altivec.md (altivec_lvxl): Rename as
22784 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
22785 (altivec_lvxl_<mode>): New define_expand incorporating
22786 -maltivec=be semantics where needed.
22787 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
22788 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
22789 semantics where needed.
22790 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
22791 (altivec_stvx_<mode>): New define_expand incorporating
22792 -maltivec=be semantics where needed.
22793 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
22794 VM2 iterator instead of V4SI.
22795 (altivec_stvxl_<mode>): New define_expand incorporating
22796 -maltivec=be semantics where needed.
22797 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
22798 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
22799 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
22800 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
22801 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
22802 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
22803 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
22804 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
22805 ALTIVEC_BUILTIN_STVXL.
22806 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
22807 (altivec_expand_stvx_be): Likewise.
22808 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
22809 (altivec_expand_lvx_be): Likewise.
22810 (altivec_expand_stvx_be): Likewise.
22811 (altivec_expand_builtin): Add cases for
22812 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
22813 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
22814 (altivec_init_builtins): Add definitions for
22815 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
22816 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
22818 2014-02-21 Catherine Moore <clm@codesourcery.com>
22820 * doc/invoke.texi (mvirt, mno-virt): Document.
22821 * config/mips/mips.opt (mvirt): New option.
22822 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
22824 2014-02-21 Richard Biener <rguenther@suse.de>
22826 PR tree-optimization/60276
22827 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
22828 (STMT_VINFO_MIN_NEG_DIST): New macro.
22829 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
22830 STMT_VINFO_MIN_NEG_DIST.
22831 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
22832 made for negative dependence distances still hold.
22834 2014-02-21 Richard Biener <rguenther@suse.de>
22836 PR middle-end/60291
22837 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
22838 DECL_INITIAL for globals not in the current function context.
22840 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22842 PR tree-optimization/56490
22843 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
22844 * tree-ssa-uninit.c: Include params.h.
22845 (compute_control_dep_chain): Add num_calls argument, return false
22846 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
22847 num_calls to recursive call.
22848 (find_predicates): Change dep_chain into normal array,
22849 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
22850 variable and adjust compute_control_dep_chain caller.
22851 (find_def_preds): Likewise.
22853 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
22855 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
22856 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
22858 2014-02-21 Nick Clifton <nickc@redhat.com>
22860 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
22861 (pushhi1): Likewise.
22862 (popqi1): Add mode to pre_dec.
22863 (pophi1): Likewise.
22865 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22867 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
22868 mode for mask of V8SFmode permutation.
22870 2014-02-20 Richard Henderson <rth@redhat.com>
22873 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
22874 a new pseudo for OLDVAL.
22876 2014-02-20 Jakub Jelinek <jakub@redhat.com>
22879 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
22880 gen_reg_rtx if d->testing_p.
22881 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
22882 if d->testing_p and we will certainly return true.
22883 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
22886 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
22888 * emit-rtl.c (gen_reg_rtx): Assert that
22889 crtl->emit.regno_pointer_align_length is non-zero.
22891 2014-02-20 Richard Henderson <rth@redhat.com>
22894 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
22895 on failure the store back into EXPECT.
22897 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
22898 Sandra Loosemore <sandra@codesourcery.com>
22900 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
22901 * config/nios2/nios2.c (nios2_function_profiler): Add
22902 -fPIC (flag_pic == 2) support.
22903 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
22904 (nios2_large_offset_p): New function.
22905 (nios2_unspec_reloc_p): Move up position, update to use
22906 nios2_large_offset_p.
22907 (nios2_unspec_address): Remove function.
22908 (nios2_unspec_offset): New function.
22909 (nios2_large_got_address): New function.
22910 (nios2_got_address): Add large offset support.
22911 (nios2_legitimize_tls_address): Update usage of removed and new
22913 (nios2_symbol_binds_local_p): New function.
22914 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
22915 (nios2_legitimize_address): Update to use nios2_large_offset_p.
22916 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
22917 (nios2_print_operand): Merge H/L processing, add hiadj/lo
22918 processing for (const (unspec ...)).
22919 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
22921 2014-02-20 Richard Biener <rguenther@suse.de>
22923 * tree-cfg.c (replace_uses_by): Mark altered BBs before
22924 doing the substitution.
22925 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
22927 2014-02-20 Martin Jambor <mjambor@suse.cz>
22930 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
22931 info when checking whether lattices are bottom.
22933 2014-02-20 Richard Biener <rguenther@suse.de>
22935 PR middle-end/60221
22936 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
22939 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
22942 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
22943 parameter specifying the scaling.
22944 (inline_call): Update.
22945 (want_inline_recursively): Guard division by zero.
22946 (recursive_inlining): Update.
22947 * ipa-inline.h (clone_inlined_nodes): Update.
22949 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22952 * config/i386/i386.c (classify_argument): Pass structures of size
22953 64 bytes or less in register.
22955 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22956 Kirill Yukhin <kirill.yukhin@intel.com>
22958 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
22959 (_mm_rcp28_round_ss): Ditto.
22960 (_mm_rsqrt28_round_sd): Ditto.
22961 (_mm_rsqrt28_round_ss): Ditto.
22962 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
22963 (_mm_rcp14_round_ss): Ditto.
22964 (_mm_rsqrt14_round_sd): Ditto.
22965 (_mm_rsqrt14_round_ss): Ditto.
22966 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
22967 the first input operand, get rid of match_dup.
22968 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
22970 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
22972 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
22973 operand as the first input operand, set type attribute.
22974 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
22975 Set type attribute.
22976 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
22977 operand as the first input operand, set type attribute.
22979 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22981 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
22984 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
22987 * config/i386/i386.c (construct_container): Remove TFmode check
22988 for X86_64_INTEGER_CLASS.
22990 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
22993 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
22994 only when -Wpsabi is enabled.
22996 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
22999 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23000 passing arrays in registers are the same as for structs, so remove the
23001 special case for them.
23003 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23005 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23006 destination type, extract only the valid bits if the source type is not
23007 integral and has a different mode.
23009 2014-02-19 Richard Biener <rguenther@suse.de>
23012 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23015 2014-02-19 Richard Biener <rguenther@suse.de>
23018 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23019 (ipa_modify_call_arguments): Emit an argument load explicitely and
23020 preserve virtual SSA form there and for the replacement call.
23021 Do not update SSA form nor free dominance info.
23023 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23025 * ipa.c (function_and_variable_visibility): Also clear WEAK
23026 flag when disolving COMDAT_GROUP.
23028 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23030 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23031 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23032 not devirtualizing.
23033 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23034 do more sanity checks.
23035 (detect_type_change): Return true when giving up early.
23036 (compute_complex_assign_jump_func): Fix type parameter of
23037 ipa_set_ancestor_jf.
23038 (compute_complex_ancestor_jump_func): Likewise.
23039 (update_jump_functions_after_inlining): Fix updating of
23041 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23043 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23045 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23046 inline clones when edge disappears.
23048 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23051 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23052 Split 64-bit moves into 2 patterns. Do not allow the use of
23053 direct move for TDmode in little endian, since the decimal value
23054 has little endian bytes within a word, but the 64-bit pieces are
23055 ordered in a big endian fashion, and normal subreg's of TDmode are
23057 (mov<mode>_64bit_dm): Likewise.
23058 (movtd_64bit_nodm): Likewise.
23060 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23062 PR tree-optimization/60174
23063 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23064 statement of an SSA_NAME that occurs in an abnormal PHI node.
23066 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23069 * final.c (SEEN_BB): Remove.
23070 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23071 (final_scan_insn): Don't force_source_line on second
23072 NOTE_INSN_BASIC_BLOCK.
23074 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23077 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23078 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23079 (type_natural_mode): Warn ABI change when %zmm register is not
23080 available for AVX512F vector value passing.
23082 2014-02-18 Kai Tietz <ktietz@redhat.com>
23085 * config/i386/i386.c (ix86_expand_prologue): Use value in
23086 rax register as displacement when restoring %r10 or %rax.
23087 Fix wrong offset when restoring both registers.
23089 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23091 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23092 assertion with conditional return.
23094 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23095 Uros Bizjak <ubizjak@gmail.com>
23098 * config/i386/driver-i386.c (host_detect_local_cpu): If
23099 YMM state is not saved by the OS, also clear has_f16c. Move
23100 CPUID 0x80000001 handling before YMM state saving checking.
23102 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23104 PR rtl-optimization/58960
23105 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23106 factored out from ...
23107 (sched_init): ... here.
23108 (free_global_sched_pressure_data): New, factored out from ...
23109 (sched_finish): ... here.
23110 * sched-int.h (free_global_sched_pressure_data): Declare.
23111 * sched-rgn.c (nr_regions_initial): New static global.
23112 (haifa_find_rgns): Initialize it.
23113 (schedule_region): Disable sched-pressure for the newly
23116 2014-02-17 Richard Biener <rguenther@suse.de>
23118 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23119 release SSA defs of pattern stmts.
23121 2014-02-17 Richard Biener <rguenther@suse.de>
23123 * tree-inline.c (expand_call_inline): Release the virtual
23124 operand defined by the call we are about to inline.
23126 2014-02-17 Richard Biener <rguenther@suse.de>
23128 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23130 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23131 Ilya Tocar <ilya.tocar@intel.com>
23133 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23134 arguments order in builtin.
23135 (_mm512_permutexvar_epi64): Ditto.
23136 (_mm512_mask_permutexvar_epi64): Ditto
23137 (_mm512_maskz_permutexvar_epi32): Ditto
23138 (_mm512_permutexvar_epi32): Ditto
23139 (_mm512_mask_permutexvar_epi32): Ditto
23141 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23143 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23144 (p8_vmrgow): Likewise.
23146 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23148 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23151 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23154 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23155 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23156 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23157 using direct move instructions on ISA 2.07. Also adjust
23158 instruction length for 64-bit.
23159 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23160 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23162 2014-02-15 Alan Modra <amodra@gmail.com>
23166 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23167 find_replacement on parts of insn rtl that might be reloaded.
23169 2014-02-15 Richard Biener <rguenther@suse.de>
23171 PR tree-optimization/60183
23172 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23173 (tree_ssa_phiprop): Calculate and free post-dominators.
23175 2014-02-14 Jeff Law <law@redhat.com>
23177 PR rtl-optimization/60131
23178 * ree.c (get_extended_src_reg): New function.
23179 (combine_reaching_defs): Use it rather than assuming location of REG.
23180 (find_and_remove_re): Verify first operand of extension is
23181 a REG before adding the insns to the copy list.
23183 2014-02-14 Roland McGrath <mcgrathr@google.com>
23185 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23186 * configure: Regenerated.
23187 * config.in: Regenerated.
23188 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23189 instead of ASM_SHORT.
23191 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23192 Richard Earnshaw <rearnsha@arm.com>
23194 PR rtl-optimization/59535
23195 * lra-constraints.c (process_alt_operands): Encourage alternative
23196 when unassigned pseudo class is superset of the alternative class.
23197 (inherit_reload_reg): Don't inherit when optimizing for code size.
23198 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23199 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23200 modes not less than 4 for Thumb1.
23202 2014-02-14 Kyle McMartin <kyle@redhat.com>
23205 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23207 2014-02-14 Richard Biener <rguenther@suse.de>
23209 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23210 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23211 Do not strip INDIRECT_REFs.
23213 2014-02-14 Richard Biener <rguenther@suse.de>
23216 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23217 DECL_FUNCTION_SPECIFIC_TARGET.
23218 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23219 * tree-streamer-out.c (pack_ts_target_option): Remove.
23220 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23221 (write_ts_function_decl_tree_pointers): Do not stream
23222 DECL_FUNCTION_SPECIFIC_TARGET.
23223 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23224 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23225 (lto_input_ts_function_decl_tree_pointers): Do not stream
23226 DECL_FUNCTION_SPECIFIC_TARGET.
23228 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23230 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23231 (get_initial_def_for_induction, vectorizable_induction): Ignore
23232 debug stmts when looking for exit_phi.
23233 (vectorizable_live_operation): Fix up condition.
23235 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23237 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23238 nreverse() because it changes the content of original tree list.
23240 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23242 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23243 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23245 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23247 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23248 GNU coding standards.
23250 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23253 * dwarf2out.c (gen_subprogram_die): Don't call
23254 add_calling_convention_attribute if subr_die is old_die.
23256 2014-02-13 Sharad Singhai <singhai@google.com>
23258 * doc/optinfo.texi: Fix order of nodes.
23260 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23262 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23263 operands[2], not operands[3].
23265 2014-02-13 Richard Biener <rguenther@suse.de>
23268 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23269 mention the possibility of an in-tree build.
23270 (CLooG): Update recommended version to 0.18.1, mention the
23271 possibility of an in-tree build and clarify that the ISL
23272 bundled with CLooG does not work.
23274 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23277 * expr.c (compress_float_constant): If x is a hard register,
23278 extend into a pseudo and then move to x.
23280 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23282 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23283 caused by bad second argument to warning_at() with -mhotpatch and
23284 nested functions (e.g. with gfortran).
23286 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23288 * opts.c (option_name): Remove "enabled by default" rider.
23290 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23292 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23294 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23295 Uros Bizjak <ubizjak@gmail.com>
23298 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23299 * configure: Regenerated.
23301 2014-02-12 Richard Biener <rguenther@suse.de>
23303 * vec.c (vec_prefix::calculate_allocation): Move as
23304 inline variant to vec.h.
23305 (vec_prefix::calculate_allocation_1): New out-of-line version.
23306 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23307 (vec_prefix::m_has_auto_buf): Rename to ...
23308 (vec_prefix::m_using_auto_storage): ... this.
23309 (vec_prefix::calculate_allocation): Inline the easy cases
23310 and dispatch to calculate_allocation_1 which doesn't need the
23312 (va_heap::reserve): Use gcc_checking_assert.
23313 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23314 m_using_auto_storage.
23315 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23317 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23318 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23319 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23321 2014-02-12 Richard Biener <rguenther@suse.de>
23323 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23324 when we found a dependence.
23326 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23328 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23330 (maybe_fold_stmt): ... into this new function.
23331 * omp-low.c (lower_omp): Update comment.
23333 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23336 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23339 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23341 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23342 identifiers in comments.
23343 (cortexa53_extra_costs): Likewise.
23344 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23345 (cortexa7_extra_costs): Likewise.
23346 (cortexa12_extra_costs): Likewise.
23347 (cortexa15_extra_costs): Likewise.
23348 (v7m_extra_costs): Likewise.
23350 2014-02-12 Richard Biener <rguenther@suse.de>
23352 PR middle-end/60092
23353 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23354 of posix_memalign being successful.
23355 (lower_stmt): Restrict lowering of posix_memalign to when
23356 -ftree-bit-ccp is enabled.
23358 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23360 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23362 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23364 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23366 PR rtl-optimization/60116
23367 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23368 other_insn once the combination has been validated.
23370 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23373 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23375 * ipa-devirt.c: Include demangle.h
23376 (odr_violation_reported): New static variable.
23377 (add_type_duplicate): Update odr_violations.
23378 (maybe_record_node): Add completep parameter; update it.
23379 (record_target_from_binfo): Add COMPLETEP parameter;
23380 update it as needed.
23381 (possible_polymorphic_call_targets_1): Likewise.
23382 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23383 rename FINAL to COMPLETE.
23384 (record_targets_from_bases): Sanity check we found the binfo;
23385 fix COMPLETEP updating.
23386 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23387 parameter, fix computing of COMPLETEP.
23388 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23389 at LTO time do demangling.
23390 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23391 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23393 (gimple_get_virt_method_for_binfo): Likewise.
23394 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23395 gimple_get_virt_method_for_vtable): Update prototypes.
23397 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23400 * genautomata.c (add_presence_absence): Fix typo with
23401 {final_}presence_list.
23403 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23406 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23407 for VSX/Altivec vectors that land in GPR registers.
23409 2014-02-11 Richard Henderson <rth@redhat.com>
23410 Jakub Jelinek <jakub@redhat.com>
23413 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23414 around drhs if type conversion to lacc->type is not useless.
23416 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23418 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23420 (cortex-a57.cortex-a53): Likewise.
23421 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23423 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23425 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23428 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23430 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23431 add_options_for_arm_vfp3.
23433 2014-02-11 Jeff Law <law@redhat.com>
23435 PR middle-end/54041
23436 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23437 object with an undesirable mode.
23439 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23442 * config/i386/sol2-9.h: New file.
23443 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23444 *-*-solaris2.9*): Use it.
23446 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23448 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23449 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23451 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23453 * config/microblaze/microblaze.c: Extend mcpu version format
23455 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23457 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23459 2014-02-10 Richard Henderson <rth@redhat.com>
23462 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23463 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23464 ms-abi vs -mno-accumulate-outgoing-args.
23465 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23466 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23469 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23471 PR middle-end/60080
23472 * cfgexpand.c (expand_asm_operands): Attach source location to
23473 ASM_INPUT rtx objects.
23474 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23476 2014-02-10 Nick Clifton <nickc@redhat.com>
23478 * config/mn10300/mn10300.c (popcount): New function.
23479 (mn10300_expand_prologue): Include saved registers in stack usage
23482 2014-02-10 Jeff Law <law@redhat.com>
23484 PR middle-end/52306
23485 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23486 when changing the SET_DEST of a prior insn to avoid an input reload.
23488 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23490 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23491 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23492 -mcall-openbsd, or -mcall-linux.
23493 (CC1_ENDIAN_BIG_SPEC): Remove.
23494 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23495 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23496 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23497 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23498 and %cc1_endian_default.
23499 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23501 2014-02-10 Richard Biener <rguenther@suse.de>
23503 PR tree-optimization/60115
23504 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23505 MEM_REF handling. Properly verify that the accesses are not
23506 out of the objects bound.
23508 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23510 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23513 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23515 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23516 proper constants and fix formatting.
23517 (possible_polymorphic_call_targets): Fix formatting.
23519 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23520 Ilya Tocar <ilya.tocar@intel.com>
23522 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23523 (_mm512_loadu_epi32): Renamed into...
23524 (_mm512_loadu_si512): This.
23525 (_mm512_storeu_epi32): Renamed into...
23526 (_mm512_storeu_si512): This.
23527 (_mm512_maskz_ceil_ps): Removed.
23528 (_mm512_maskz_ceil_pd): Ditto.
23529 (_mm512_maskz_floor_ps): Ditto.
23530 (_mm512_maskz_floor_pd): Ditto.
23531 (_mm512_floor_round_ps): Ditto.
23532 (_mm512_floor_round_pd): Ditto.
23533 (_mm512_ceil_round_ps): Ditto.
23534 (_mm512_ceil_round_pd): Ditto.
23535 (_mm512_mask_floor_round_ps): Ditto.
23536 (_mm512_mask_floor_round_pd): Ditto.
23537 (_mm512_mask_ceil_round_ps): Ditto.
23538 (_mm512_mask_ceil_round_pd): Ditto.
23539 (_mm512_maskz_floor_round_ps): Ditto.
23540 (_mm512_maskz_floor_round_pd): Ditto.
23541 (_mm512_maskz_ceil_round_ps): Ditto.
23542 (_mm512_maskz_ceil_round_pd): Ditto.
23543 (_mm512_expand_pd): Ditto.
23544 (_mm512_expand_ps): Ditto.
23545 * config/i386/i386.c (ix86_builtins): Remove
23546 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23547 (bdesc_args): Ditto.
23548 * config/i386/predicates.md (const1256_operand): New.
23549 (const_1_to_2_operand): Ditto.
23550 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23551 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23552 (*avx512pf_gatherpf<mode>sf): Ditto.
23553 (avx512pf_gatherpf<mode>df): Ditto.
23554 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23555 (*avx512pf_gatherpf<mode>df): Ditto.
23556 (avx512pf_scatterpf<mode>sf): Ditto.
23557 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23558 (*avx512pf_scatterpf<mode>sf): Ditto.
23559 (avx512pf_scatterpf<mode>df): Ditto.
23560 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23561 (*avx512pf_scatterpf<mode>df): Ditto.
23562 (avx512f_expand<mode>): Removed.
23563 (<shift_insn><mode>3<mask_name>): Change predicate type.
23565 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23567 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23568 not at the end of datarefs vector use ordered_remove to avoid
23569 reordering datarefs vector.
23572 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23573 mark local addressable non-static vars as GOVD_PRIVATE
23574 instead of GOVD_LOCAL.
23575 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23576 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23579 PR middle-end/60092
23580 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23581 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23582 assume_aligned or alloc_align attributes.
23583 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23584 arguments. Handle also assume_aligned and alloc_align attributes.
23585 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23586 calls to functions with assume_aligned or alloc_align attributes.
23587 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23589 2014-02-08 Terry Guo <terry.guo@arm.com>
23591 * doc/invoke.texi: Document ARM -march=armv7e-m.
23593 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23595 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23596 flag on __cilkrts_rethrow builtin.
23599 * ipa-cp.c (determine_versionability): Fail at -O0
23600 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23601 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23604 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23607 * tree-inline.c (copy_forbidden): Fail for
23608 __attribute__((optimize (0))) functions.
23610 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23612 * varpool.c: Include pointer-set.h.
23613 (varpool_remove_unreferenced_decls): Variables in other partitions
23614 will not be output; be however careful to not lose information
23615 about partitioning.
23617 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23619 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23620 lookup in the vtable constructor.
23622 2014-02-07 Jeff Law <law@redhat.com>
23625 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23626 define_insn_and_split.
23628 * ipa-inline.c (inline_small_functions): Fix typos.
23630 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23632 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23633 (s390_can_use_return_insn): Declare.
23634 * config/s390/s390.h (EPILOGUE_USES): Define.
23635 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23637 (s390_chunkify_start): Handle return JUMP_LABELs.
23638 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23639 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23640 (s390_can_use_return_insn): New functions.
23641 (s390_fix_long_loop_prediction): Handle conditional returns.
23642 (TARGET_SET_UP_BY_PROLOGUE): Define.
23643 * config/s390/s390.md (ANY_RETURN): New code iterator.
23644 (*creturn, *csimple_return, return, simple_return): New patterns.
23646 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23648 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23649 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23650 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23651 REG_CFA_RESTORE list when deciding not to restore a register.
23653 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23655 * config/s390/s390.c: Include tree-pass.h and context.h.
23656 (s390_early_mach): New function, split out from...
23657 (s390_emit_prologue): ...here.
23658 (pass_data_s390_early_mach): New pass structure.
23659 (pass_s390_early_mach): New class.
23660 (s390_option_override): Create and register early_mach pass.
23661 Move to end of file.
23663 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23665 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23666 to match for the exit block.
23668 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23670 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23671 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23672 Reject misaligned operands.
23674 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23676 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23678 2014-02-07 Richard Biener <rguenther@suse.de>
23680 PR middle-end/60092
23681 * gimple-low.c (lower_builtin_posix_memalign): New function.
23682 (lower_stmt): Call it to lower posix_memalign in a way
23683 to make alignment info accessible.
23685 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23688 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23689 __builtin_setjmp_receiver.
23691 2014-02-07 Richard Biener <rguenther@suse.de>
23693 PR middle-end/60092
23694 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23695 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23696 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23697 Handle BUILT_IN_POSIX_MEMALIGN.
23698 (find_func_clobbers): Likewise.
23699 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23700 (call_may_clobber_ref_p_1): Likewise.
23702 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23705 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23708 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23711 * lto-cgraph.c (lto_output_node): Use
23712 symtab_get_symbol_partitioning_class.
23713 (lto_output_varpool_node): likewise.
23714 (symtab_get_symbol_partitioning_class): Move here from
23715 lto/lto-partition.c
23716 * cgraph.h (symbol_partitioning_class): Likewise.
23717 (symtab_get_symbol_partitioning_class): Declare.
23719 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23721 * ggc.h (ggc_internal_cleared_alloc): New macro.
23722 * vec.h (vec_safe_copy): Handle memory stats.
23723 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23724 * target-globals.c (save_target_globals): Likewise.
23726 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23729 * expr.c (emit_move_resolve_push): Export; be bit more selective
23730 on when to clear alias set.
23731 * expr.h (emit_move_resolve_push): Declare.
23732 * function.h (struct function): Add tail_call_marked.
23733 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
23734 * config/i386/i386-protos.h (ix86_expand_push): Remove.
23735 * config/i386/i386.md (TImode move expander): De not call
23737 (FP push expanders): Preserve memory attributes.
23738 * config/i386/sse.md (push<mode>1): Remove.
23739 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
23740 (ix86_expand_push): Remove.
23741 * config/i386/mmx.md (push<mode>1): Remove.
23743 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23745 PR rtl-optimization/60030
23746 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
23747 lopart with paradoxical subreg before shifting it up by hprec.
23749 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23751 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
23752 Remove extra newline at end of file.
23753 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
23754 (arm_issue_rate): Handle cortexa57.
23755 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
23756 (cortex-a57.cortex-a53): Likewise.
23758 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23761 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
23762 don't record in REG_FRAME_RELATED_EXPR registers not set in that
23764 (arm_expand_prologue): Adjust all callers.
23765 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
23766 info, registers also at the lowest numbered registers side. Use
23767 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
23771 * var-tracking.c (adjust_mems): Before adding a SET to
23772 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
23774 2014-02-06 Alan Modra <amodra@gmail.com>
23777 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
23778 change SDmode to DDmode when lra_in_progress.
23780 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23782 PR middle-end/59150
23783 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
23784 free_data_ref on the dr first, and before goto again also set dr
23785 to the next dr. For simd_lane_access, free old datarefs[i] before
23786 overwriting it. For get_vectype_for_scalar_type failure, don't
23787 free_data_ref if simd_lane_access.
23789 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
23792 * tree.h (opts_for_fn): New inline function.
23793 (opt_for_fn): Define.
23794 * config/i386/i386.c (ix86_function_regparm): Use
23795 opt_for_fn (decl, optimize) instead of optimize.
23797 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
23799 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
23800 for SYMBOL_REF in large memory model.
23802 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23804 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
23805 and crypto support.
23806 (cortex-a57): Likewise.
23807 (cortex-a57.cortex-a53): Likewise.
23809 2014-02-06 Yury Gribov <y.gribov@samsung.com>
23810 Kugan Vivekanandarajah <kuganv@linaro.org>
23812 * config/arm/arm.c (arm_vector_alignment_reachable): Check
23814 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
23816 2014-02-06 Richard Biener <rguenther@suse.de>
23818 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
23819 set_loop_copy and initialize_original_copy_tables.
23821 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
23823 * config/aarch64/aarch64-simd.md
23824 (aarch64_ashr_simddi): Change QI to SI.
23826 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23827 Jakub Jelinek <jakub@redhat.com>
23829 PR middle-end/60013
23830 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
23833 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23835 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
23836 CODE_FOR_altivec_vpku[hw]um to
23837 CODE_FOR_altivec_vpku[hw]um_direct.
23838 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
23839 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
23840 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
23841 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
23843 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23845 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
23846 generation for -maltivec=be.
23847 (altivec_vsumsws): Simplify redundant test.
23849 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23851 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
23852 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
23853 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
23854 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
23855 gen_altivec_vpkuwum.
23856 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
23858 (altivec_vpks<VI_char>ss): Likewise.
23859 (altivec_vpks<VI_char>us): Likewise.
23860 (altivec_vpku<VI_char>us): Likewise.
23861 (altivec_vpku<VI_char>um): Likewise.
23862 (altivec_vpku<VI_char>um_direct): New (copy of
23863 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
23865 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
23866 target is little endian and -maltivec=be is not specified.
23867 (*altivec_vupkhs<VU_char>_direct): New (copy of
23868 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
23869 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
23870 target is little endian and -maltivec=be is not specified.
23871 (*altivec_vupkls<VU_char>_direct): New (copy of
23872 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
23873 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
23874 little endian and -maltivec=be is not specified.
23875 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
23876 little endian and -maltivec=be is not specified.
23878 2014-02-05 Richard Henderson <rth@redhat.com>
23881 * combine-stack-adj.c: Revert r206943.
23882 * sched-int.h (struct deps_desc): Add last_args_size.
23883 * sched-deps.c (init_deps): Initialize it.
23884 (sched_analyze_insn): Add OUTPUT dependencies between insns that
23885 contain REG_ARGS_SIZE notes.
23887 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23889 * lto-cgraph.c (asm_nodes_output): Make global.
23890 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
23891 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
23892 (driver_handle_option): Handle OPT_fwpa.
23894 2014-02-05 Jakub Jelinek <jakub@redhat.com>
23897 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
23898 a comment typo and formatting issue. If odr_hash hasn't been
23899 created, return vNULL and set *completep to false.
23901 PR middle-end/57499
23902 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
23903 bb with no successors.
23905 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
23908 * doc/invoke.texi (-march): Clarify documentation for ARM.
23909 (-mtune): Likewise.
23912 2014-02-05 Richard Biener <rguenther@suse.de>
23914 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
23915 when not vectorizing because of too many alias checks.
23916 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23917 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
23919 2014-02-05 Nick Clifton <nickc@redhat.com>
23921 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
23922 accept extended registers in any mode when compiling for the MN10300.
23924 2014-02-05 Yury Gribov <y.gribov@samsung.com>
23926 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
23927 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
23928 sanitization attributes.
23929 (can_inline_edge_p): Likewise.
23930 (sanitize_attrs_match_for_inline_p): New function.
23932 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23934 * ipa-prop.c (detect_type_change): Shor circuit testing of
23935 type changes on THIS pointer.
23937 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
23940 * config/pa/pa.c (legitimize_tls_address): Return original address
23941 if not passed a SYMBOL_REF rtx.
23942 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
23944 (pa_emit_move_sequence): Simplify TLS source operands.
23945 (pa_legitimate_constant_p): Reject all TLS constants.
23946 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
23947 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
23949 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23951 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
23952 groups when we know they are controlled by LTO.
23953 * varasm.c (default_binds_local_p_1): If object is in other partition,
23954 it will be resolved locally.
23956 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23958 * config/host-linux.c (linux_gt_pch_use_address): Don't
23959 use SSIZE_MAX because it is not always defined.
23961 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
23964 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
23965 threshold for pseudo splitting.
23966 (update_ebb_live_info): Process call argument hard registers and
23967 hard registers from insn definition too.
23968 (max_small_class_regs_num): New constant.
23969 (inherit_in_ebb): Update live hard regs through EBBs. Update
23970 reloads_num only for small register classes. Don't split for
23973 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
23976 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
23979 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23981 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
23982 visibility is safe.
23984 2014-02-04 Marek Polacek <polacek@redhat.com>
23986 * gdbinit.in (pel): Define.
23988 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23990 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
23993 2014-02-04 Richard Biener <rguenther@suse.de>
23996 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
23997 in function context local.
23998 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
23999 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24000 similar to LTO_imported_decl_ref.
24002 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24004 PR tree-optimization/60002
24005 * cgraphclones.c (build_function_decl_skip_args): Clear
24006 DECL_LANG_SPECIFIC.
24008 PR tree-optimization/60023
24009 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24010 false to gsi_replace.
24011 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24012 has been in some EH region and vec_stmt could throw, add
24013 vec_stmt into the same EH region.
24014 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24015 has no lhs, ignore it.
24016 * internal-fn.c (expand_MASK_LOAD): Likewise.
24019 * tree-inline.c (copy_forbidden): Fail for
24020 __attribute__((optimize (0))) functions.
24023 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24024 is set, copy one less argument.
24025 (expand_simd_clones): Don't subtract clone_info->inbranch
24026 from simd_clone_struct_alloc argument.
24028 PR rtl-optimization/57915
24029 * recog.c (simplify_while_replacing): If all unary/binary/relational
24030 operation arguments are constant, attempt to simplify those.
24032 PR middle-end/59261
24033 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24034 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24036 2014-02-04 Richard Biener <rguenther@suse.de>
24038 PR tree-optimization/60012
24039 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24040 TBAA disambiguation to all DDRs.
24042 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24045 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24046 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24048 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24051 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24053 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24055 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24056 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24058 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24061 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24062 to figure out targets of polymorphic calls with known decl.
24063 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24064 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24065 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24066 (get_polymorphic_call_info): ... here.
24067 (get_polymorphic_call_info_from_invariant): New function.
24069 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24071 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24072 lookup via vtable pointer; check for type consistency
24073 and turn inconsitent facts into UNREACHABLE.
24074 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24075 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24076 type inconsistent querries; return UNREACHABLE instead.
24078 2014-02-03 Richard Henderson <rth@twiddle.net>
24081 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24082 already processed this node.
24083 (normalize_one_pred_1): Pass along mark_set.
24084 (normalize_one_pred): Create and destroy a pointer_set_t.
24085 (normalize_one_pred_chain): Likewise.
24087 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24089 PR gcov-profile/58602
24090 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24092 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24095 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24096 -fno-devirtualize; try to devirtualize by the knowledge of
24097 virtual table pointer given by aggregate propagation.
24098 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24099 (ipa_print_node_jump_functions): Dump also offset that
24100 is relevant for polymorphic calls.
24101 (determine_known_aggregate_parts): Add arg_type parameter; use it
24102 instead of determining the type from pointer type.
24103 (ipa_compute_jump_functions_for_edge): Update call of
24104 determine_known_aggregate_parts.
24105 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24106 (gimple_get_virt_method_for_binfo): ... here; simplify using
24107 vtable_pointer_value_to_vtable.
24108 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24109 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24110 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24111 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24113 (vtable_pointer_value_to_binfo): ... here.
24114 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24116 2014-02-03 Teresa Johnson <tejohnson@google.com>
24118 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24119 redef of outer loop index variable.
24121 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24125 * doc/extend.texi (Function Attributes): Typo.
24127 2014-02-03 Cong Hou <congh@google.com>
24129 PR tree-optimization/60000
24130 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24131 if the vectorized statement is a store. A store statement can only
24132 appear at the end of pattern statements.
24134 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24136 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24137 (ix86_option_override_internal): Default long double to 64-bit for
24138 32-bit Bionic and to 128-bit for 64-bit Bionic.
24140 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24141 TARGET_LONG_DOUBLE_128 is true.
24142 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24144 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24145 (mlong-double-64): Negate -mlong-double-128.
24146 (mlong-double-128): New option.
24148 * config/i386/i386-c.c (ix86_target_macros): Define
24149 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24151 * doc/invoke.texi: Document -mlong-double-128.
24153 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24155 PR rtl-optimization/60024
24156 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24158 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24160 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24162 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24164 PR rtl-optimization/57662
24165 * sel-sched.c (code_motion_path_driver): Do not mark already not
24166 existing blocks in the visiting bitmap.
24168 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24170 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24171 on the insn being emitted.
24173 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24174 Will Deacon <will.deacon@arm.com>
24176 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24178 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24180 * config/arm/arm-tables.opt: Regenerate.
24182 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24184 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24185 for vector types other than V16QImode.
24186 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24187 define_expand, and call altivec_expand_vec_perm_le when producing
24188 code with little endian element order.
24189 (*altivec_vperm_<mode>_internal): New insn having previous
24190 behavior of altivec_vperm_<mode>.
24191 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24192 altivec_expand_vec_perm_le when producing code with little endian
24194 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24195 behavior of altivec_vperm_<mode>_uns.
24197 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24199 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24200 (altivec_vsumsws): Add handling for -maltivec=be with a little
24202 (altivec_vsumsws_direct): New.
24203 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24204 gen_altivec_vsumsws.
24206 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24208 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24209 vtable_pointer_value_to_binfo): New functions.
24210 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24211 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24213 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24215 * config/nios2/nios2.md (load_got_register): Initialize GOT
24216 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24217 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24219 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24221 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24222 preserverd by passthrough, do not propagate the type.
24224 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24226 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24227 (mips_atomic_assign_expand_fenv): New function.
24228 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24230 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24232 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24233 (__builtin_mips_set_fcsr): Likewise.
24234 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24235 MIPS_USI_FTYPE_VOID.
24236 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24237 (mips16_expand_set_fcsr): Likewise.
24238 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24239 (mips16_set_fcsr_stub): Likewise.
24240 (mips16_get_fcsr_one_only_stub): New class.
24241 (mips16_set_fcsr_one_only_stub): Likewise.
24242 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24243 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24244 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24245 (hard_float): New availability predicate.
24246 (mips_builtins): Add get_fcsr and set_fcsr.
24247 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24248 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24249 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24250 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24251 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24254 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24256 * config/mips/mips.c (mips_one_only_stub): New class.
24257 (mips_need_mips16_rdhwr_p): Replace with...
24258 (mips16_rdhwr_stub): ...this new variable.
24259 (mips16_stub_call_address): New function.
24260 (mips16_rdhwr_one_only_stub): New class.
24261 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24262 (mips_output_mips16_rdhwr): Delete.
24263 (mips_finish_stub): New function.
24264 (mips_code_end): Use it to handle rdhwr stubs.
24266 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24269 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24270 when calculating size of integer atomic types.
24272 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24274 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24276 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24278 PR tree-optimization/60003
24279 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24280 * profile.c (branch_prob): Use gimple_call_builtin_p
24281 to check for BUILT_IN_SETJMP_RECEIVER.
24282 * tree-inline.c (copy_bb): Call notice_special_calls.
24284 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24287 * lra-constraints.c (process_alt_operands): Update reload_sum only
24290 2014-01-31 Richard Henderson <rth@redhat.com>
24292 PR middle-end/60004
24293 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24294 until after else_eh is processed.
24296 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24298 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24299 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24300 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24301 in smmintrin.h, remove them.
24302 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24303 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24304 * config/i386/i386.md (ROUND_SAE): Fix value.
24305 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24306 (const48_operand): New.
24307 * config/i386/subst.md (round), (round_expand): Use
24308 const_4_or_8_to_11_operand.
24309 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24311 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24313 * config/i386/constraints.md (Yk): Swap meaning with k.
24314 * config/i386/i386.md (movhi_internal): Change Yk to k.
24315 (movqi_internal): Ditto.
24316 (*k<logic><mode>): Ditto.
24319 (kandn<mode>): Ditto.
24320 (*<code>hi_1): Ditto.
24321 (*<code>qi_1): Ditto.
24322 (kxnor<mode>): Ditto.
24323 (kortestzhi): Ditto.
24324 (kortestchi): Ditto.
24326 (*one_cmplhi2_1): Ditto.
24327 (*one_cmplqi2_1): Ditto.
24328 * config/i386/sse.md (): Change k to Yk.
24329 (avx512f_load<mode>_mask): Ditto.
24330 (avx512f_blendm<mode>): Ditto.
24331 (avx512f_store<mode>_mask): Ditto.
24332 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24333 (avx512f_storedqu<mode>_mask): Ditto.
24334 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24336 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24337 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24338 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24339 (avx512f_maskcmp<mode>3): Ditto.
24340 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24341 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24342 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24343 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24344 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24345 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24346 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24347 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24348 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24349 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24350 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24351 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24352 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24353 (vec_extract_lo_<mode>_maskm): Ditto.
24354 (vec_extract_hi_<mode>_maskm): Ditto.
24355 (avx512f_vternlog<mode>_mask): Ditto.
24356 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24357 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24358 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24359 (avx512f_<code>v8div16qi2_mask): Ditto.
24360 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24361 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24362 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24363 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24364 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24365 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24366 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24367 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24368 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24369 (avx512cd_maskb_vec_dupv8di): Ditto.
24370 (avx512cd_maskw_vec_dupv16si): Ditto.
24371 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24372 (avx512f_vpermi2var<mode>3_mask): Ditto.
24373 (avx512f_vpermi2var<mode>3_mask): Ditto.
24374 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24375 (*avx512f_gathersi<mode>): Ditto.
24376 (*avx512f_gathersi<mode>_2): Ditto.
24377 (*avx512f_gatherdi<mode>): Ditto.
24378 (*avx512f_gatherdi<mode>_2): Ditto.
24379 (*avx512f_scattersi<mode>): Ditto.
24380 (*avx512f_scatterdi<mode>): Ditto.
24381 (avx512f_compress<mode>_mask): Ditto.
24382 (avx512f_compressstore<mode>_mask): Ditto.
24383 (avx512f_expand<mode>_mask): Ditto.
24384 * config/i386/subst.md (mask): Change k to Yk.
24385 (mask_scalar_merge): Ditto.
24388 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24390 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24392 2014-01-31 Richard Biener <rguenther@suse.de>
24394 PR middle-end/59990
24395 * builtins.c (fold_builtin_memory_op): Make sure to not
24396 use a floating-point mode or a boolean or enumeral type for
24397 the copy operation.
24399 2014-01-30 DJ Delorie <dj@redhat.com>
24401 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24402 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24403 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24404 whenever main() has an epilogue.
24406 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24408 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24409 unused variable "field".
24410 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24411 (vsx_mergeh_<mode>): Likewise.
24412 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24413 (altivec_vmrghh): Likewise.
24414 (altivec_vmrghw): Likewise.
24415 (altivec_vmrglb): Likewise.
24416 (altivec_vmrglh): Likewise.
24417 (altivec_vmrglw): Likewise.
24418 (altivec_vspltb): Add missing uses.
24419 (altivec_vsplth): Likewise.
24420 (altivec_vspltw): Likewise.
24421 (altivec_vspltsf): Likewise.
24423 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24426 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24427 frame related instructions.
24429 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24431 PR rtl-optimization/59959
24432 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24433 any reload of register whose subreg is invalid.
24435 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24437 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24438 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24439 Add missing return type - void.
24441 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24443 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24444 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24445 remove element index adjustment for endian (now handled in vsx.md
24447 (altivec_expand_vec_perm_const): Use
24448 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24449 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24450 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24451 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24452 define_expand and a new define_insn *altivec_vspltb_internal;
24453 adjust for -maltivec=be on a little endian target.
24454 (altivec_vspltb_direct): New.
24455 (altivec_vsplth): Divide into a define_expand and a new
24456 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24457 little endian target.
24458 (altivec_vsplth_direct): New.
24459 (altivec_vspltw): Divide into a define_expand and a new
24460 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24461 little endian target.
24462 (altivec_vspltw_direct): New.
24463 (altivec_vspltsf): Divide into a define_expand and a new
24464 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24465 a little endian target.
24467 2014-01-30 Richard Biener <rguenther@suse.de>
24469 PR tree-optimization/59993
24470 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24471 can propagate form the earlier stmt and avoid the transform
24472 when the intermediate result is needed.
24474 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24476 * README.Portability: Fix typo.
24478 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24480 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24481 comparison_operator with ordered_comparison_operator.
24483 2014-01-30 Nick Clifton <nickc@redhat.com>
24485 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24486 Rename to mn10300_store_multiple_regs.
24487 * config/mn10300/mn10300.c: Likewise.
24488 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24489 store_multiple_regs.
24490 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24491 Call mn10300_store_multiple_regs.
24493 2014-01-30 Nick Clifton <nickc@redhat.com>
24494 DJ Delorie <dj@redhat.com>
24496 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24497 %fp 2 to keep registers after it properly word-aligned.
24498 (rl78_alloc_physical_registers_umul): Handle the case where both
24499 input operands are the same.
24501 2014-01-30 Richard Biener <rguenther@suse.de>
24503 PR tree-optimization/59903
24504 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24507 2014-01-30 Jason Merrill <jason@redhat.com>
24510 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24513 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24515 2014-01-30 Richard Biener <rguenther@suse.de>
24517 PR tree-optimization/59951
24518 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24520 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24523 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24524 SFmode to DFmode case.
24526 2014-01-29 DJ Delorie <dj@redhat.com>
24528 * config/msp430/msp430.opt (-minrt): New.
24529 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24531 (ENDFILE_SPEC): Likewise.
24533 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24535 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24536 (estimate_function_body_sizes): Use it.
24538 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24541 * dwarf2out.c (is_cxx_auto): New.
24542 (is_base_type): Use it.
24543 (gen_type_die_with_usage): Likewise.
24545 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24547 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24548 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24549 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24550 -maltivec=be with LE targets.
24551 (vsx_mergeh_<mode>): Likewise.
24552 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24553 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24554 (altivec_vmrghb): Replace with define_expand and new
24555 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24556 (altivec_vmrghb_direct): New define_insn.
24557 (altivec_vmrghh): Replace with define_expand and new
24558 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24559 (altivec_vmrghh_direct): New define_insn.
24560 (altivec_vmrghw): Replace with define_expand and new
24561 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24562 (altivec_vmrghw_direct): New define_insn.
24563 (*altivec_vmrghsf): Adjust for endianness.
24564 (altivec_vmrglb): Replace with define_expand and new
24565 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24566 (altivec_vmrglb_direct): New define_insn.
24567 (altivec_vmrglh): Replace with define_expand and new
24568 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24569 (altivec_vmrglh_direct): New define_insn.
24570 (altivec_vmrglw): Replace with define_expand and new
24571 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24572 (altivec_vmrglw_direct): New define_insn.
24573 (*altivec_vmrglsf): Adjust for endianness.
24574 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24575 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24576 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24577 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24578 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24579 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24580 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24581 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24583 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24585 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24586 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24589 2014-01-29 Richard Biener <rguenther@suse.de>
24591 PR tree-optimization/58742
24592 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24593 associate_pointerplus_align.
24594 (associate_pointerplus_diff): New function.
24595 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24596 and associate_pointerplus_diff.
24598 2014-01-29 Richard Biener <rguenther@suse.de>
24600 * lto-streamer.h (LTO_major_version): Bump to 3.
24601 (LTO_minor_version): Reset to 0.
24603 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24605 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24606 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24607 (arm_file_start): Generate correct asm header for armv7ve.
24608 * config/arm/bpabi.h: Add multilib support for armv7ve.
24609 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24610 and cortex-a15 to armv7ve.
24611 * config/arm/t-aprofile: Add multilib support for armv7ve.
24612 * doc/invoke.texi: Document -march=armv7ve.
24614 2014-01-29 Richard Biener <rguenther@suse.de>
24616 PR tree-optimization/58742
24617 * tree-ssa-forwprop.c (associate_plusminus): Return true
24618 if we changed sth, defer EH cleanup to ...
24619 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24620 (simplify_mult): New function.
24622 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24624 PR middle-end/59917
24625 PR tree-optimization/59920
24626 * tree.c (build_common_builtin_nodes): Remove
24627 __builtin_setjmp_dispatcher initialization.
24628 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24629 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24630 instead of gsi_after_labels + manually skipping debug stmts.
24631 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24632 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24633 * tree-inline.c (copy_edges_for_bb): Remove
24634 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24635 argument. Ignore computed_goto_p stmts. Don't call
24636 make_abnormal_goto_edges. If a call might need abnormal edges
24637 for non-local gotos, see if it already has an edge to
24638 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24639 with true argument, don't do anything then, otherwise add
24640 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24641 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24643 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24644 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24645 (lower_stmt): Don't set data->calls_builtin_setjmp.
24646 (lower_builtin_setjmp): Adjust comment.
24647 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24648 * tree-cfg.c (found_computed_goto): Remove.
24649 (factor_computed_gotos): Remove.
24650 (make_goto_expr_edges): Return bool, true for computed gotos.
24651 Don't call make_abnormal_goto_edges.
24652 (build_gimple_cfg): Don't set found_computed_goto, don't call
24653 factor_computed_gotos.
24654 (computed_goto_p): No longer static.
24655 (make_blocks): Don't set found_computed_goto.
24656 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24657 (make_edges): If make_goto_expr_edges returns true, push bb
24658 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24659 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24660 vector. Record mapping between bbs and OpenMP regions if there
24661 are any, adjust make_gimple_omp_edges caller. Call
24662 handle_abnormal_edges.
24663 (make_abnormal_goto_edges): Remove.
24664 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24665 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24666 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24667 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24668 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24669 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24670 filling *region also set *region_idx to (*region)->entry->index.
24673 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24674 For REGs set ORIGINAL_REGNO.
24676 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24678 * doc/md.texi: Mention that a target shouldn't implement
24679 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24682 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24684 PR tree-optimization/59594
24685 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24686 a copy of the datarefs vector rather than the vector itself.
24688 2014-01-28 Jason Merrill <jason@redhat.com>
24691 * dwarf2out.c (auto_die): New static.
24692 (gen_type_die_with_usage): Handle C++1y 'auto'.
24693 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24696 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24699 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24700 (SPEC_X32): Likewise.
24701 (SPEC_64): Likewise.
24702 * config/i386/i386.c (ix86_option_override_internal): Turn off
24703 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24705 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24706 * config/i386/i386.h (TARGET_16BIT): New macro.
24707 (TARGET_16BIT_P): Likewise.
24708 * config/i386/i386.opt: Add m16.
24709 * doc/invoke.texi: Document -m16.
24711 2014-01-28 Jakub Jelinek <jakub@redhat.com>
24713 PR preprocessor/59935
24714 * input.c (location_get_source_line): Bail out on when line number
24715 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24717 2014-01-28 Richard Biener <rguenther@suse.de>
24719 PR tree-optimization/58742
24720 * tree-ssa-forwprop.c (associate_plusminus): Handle
24721 pointer subtraction of the form (T)(P + A) - (T)P.
24723 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24725 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24728 2014-01-28 Richard Biener <rguenther@suse.de>
24731 2014-01-28 Richard Biener <rguenther@suse.de>
24733 PR rtl-optimization/45364
24734 PR rtl-optimization/59890
24735 * var-tracking.c (local_get_addr_clear_given_value): Handle
24736 already cleared slot.
24737 (val_reset): Handle not allocated local_get_addr_cache.
24738 (vt_find_locations): Use post-order on the inverted CFG.
24740 2014-01-28 Richard Biener <rguenther@suse.de>
24742 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
24744 2014-01-28 Richard Biener <rguenther@suse.de>
24746 PR rtl-optimization/45364
24747 PR rtl-optimization/59890
24748 * var-tracking.c (local_get_addr_clear_given_value): Handle
24749 already cleared slot.
24750 (val_reset): Handle not allocated local_get_addr_cache.
24751 (vt_find_locations): Use post-order on the inverted CFG.
24753 2014-01-28 Alan Modra <amodra@gmail.com>
24755 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
24756 * configure.ac <recursive call for build != host>: Define
24757 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
24758 and LD_FOR_BUILD too.
24759 * configure: Regenerate.
24761 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
24763 * config/i386/i386.c (get_builtin_code_for_version): Separate
24764 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
24765 Broadwell from Haswell.
24767 2014-01-27 Steve Ellcey <sellcey@mips.com>
24769 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24770 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
24771 * config/mips/mips.c (mips_option_override): Change setting
24773 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
24774 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
24775 Change from Mask to Var.
24777 2014-01-27 Jeff Law <law@redhat.com>
24779 * ipa-inline.c (inline_small_functions): Fix typo.
24781 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
24783 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
24784 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
24785 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
24786 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
24787 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
24788 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
24789 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
24790 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
24791 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
24792 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
24793 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
24794 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
24795 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
24796 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
24797 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
24798 (_mm512_storeu_epi64): Ditto.
24799 (_mm512_cmpge_epi32_mask): Ditto.
24800 (_mm512_cmpge_epu32_mask): Ditto.
24801 (_mm512_cmpge_epi64_mask): Ditto.
24802 (_mm512_cmpge_epu64_mask): Ditto.
24803 (_mm512_cmple_epi32_mask): Ditto.
24804 (_mm512_cmple_epu32_mask): Ditto.
24805 (_mm512_cmple_epi64_mask): Ditto.
24806 (_mm512_cmple_epu64_mask): Ditto.
24807 (_mm512_cmplt_epi32_mask): Ditto.
24808 (_mm512_cmplt_epu32_mask): Ditto.
24809 (_mm512_cmplt_epi64_mask): Ditto.
24810 (_mm512_cmplt_epu64_mask): Ditto.
24811 (_mm512_cmpneq_epi32_mask): Ditto.
24812 (_mm512_cmpneq_epu32_mask): Ditto.
24813 (_mm512_cmpneq_epi64_mask): Ditto.
24814 (_mm512_cmpneq_epu64_mask): Ditto.
24815 (_mm512_expand_pd): Ditto.
24816 (_mm512_expand_ps): Ditto.
24817 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
24818 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
24819 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
24820 * config/i386/i386.c (ix86_builtins): Add
24821 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
24822 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
24823 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
24824 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
24825 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
24826 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
24827 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
24828 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
24829 IX86_BUILTIN_PMOVUSQW512_MEM.
24830 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
24831 __builtin_ia32_pmovsqd512mem_mask,
24832 __builtin_ia32_pmovqd512mem_mask,
24833 __builtin_ia32_pmovusqw512mem_mask,
24834 __builtin_ia32_pmovsqw512mem_mask,
24835 __builtin_ia32_pmovqw512mem_mask,
24836 __builtin_ia32_pmovusdw512mem_mask,
24837 __builtin_ia32_pmovsdw512mem_mask,
24838 __builtin_ia32_pmovdw512mem_mask,
24839 __builtin_ia32_pmovqb512mem_mask,
24840 __builtin_ia32_pmovusqb512mem_mask,
24841 __builtin_ia32_pmovsqb512mem_mask,
24842 __builtin_ia32_pmovusdb512mem_mask,
24843 __builtin_ia32_pmovsdb512mem_mask,
24844 __builtin_ia32_pmovdb512mem_mask.
24845 (bdesc_args): Add __builtin_ia32_expanddf512,
24846 __builtin_ia32_expandsf512.
24847 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
24848 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
24849 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
24850 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
24851 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
24852 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
24853 (avx512f_<code>v8div16qi2_mask_store): This.
24854 (avx512f_expand<mode>): New.
24856 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
24858 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
24860 (_mm512_mask_prefetch_i64gather_pd): Ditto.
24861 (_mm512_prefetch_i32scatter_pd): Ditto.
24862 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
24863 (_mm512_prefetch_i64scatter_pd): Ditto.
24864 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
24865 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
24866 (_mm512_mask_prefetch_i64gather_ps): Ditto.
24867 (_mm512_prefetch_i32scatter_ps): Ditto.
24868 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
24869 (_mm512_prefetch_i64scatter_ps): Ditto.
24870 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
24871 * config/i386/i386-builtin-types.def: Define
24872 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
24873 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
24874 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
24875 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
24876 IX86_BUILTIN_SCATTERPFQPD.
24877 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
24878 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
24879 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
24880 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
24881 __builtin_ia32_scatterpfqps.
24882 (ix86_expand_builtin): Expand new built-ins.
24883 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
24884 fix memory access data type.
24885 (*avx512pf_gatherpf<mode>_mask): Ditto.
24886 (*avx512pf_gatherpf<mode>): Ditto.
24887 (avx512pf_scatterpf<mode>): Ditto.
24888 (*avx512pf_scatterpf<mode>_mask): Ditto.
24889 (*avx512pf_scatterpf<mode>): Ditto.
24890 (GATHER_SCATTER_SF_MEM_MODE): New.
24891 (avx512pf_gatherpf<mode>df): Ditto.
24892 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24893 (*avx512pf_scatterpf<mode>df): Ditto.
24895 2014-01-27 Jakub Jelinek <jakub@redhat.com>
24898 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
24899 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
24902 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24904 * common/config/arm/arm-common.c
24905 (arm_rewrite_mcpu): Handle multiple names.
24907 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24909 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24911 * gimple-builder.h (create_gimple_tmp): Delete.
24913 2014-01-27 Christian Bruel <christian.bruel@st.com>
24915 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
24918 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
24920 * config/pa/pa.md (call): Generate indirect long calls to non-local
24921 functions when outputing 32-bit code.
24922 (call_value): Likewise except for special call to buggy powf function.
24924 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
24925 portable runtime and PIC indirect calls.
24926 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
24927 and PIC call sequences. Use ldo instead of blr to set return register
24928 in PIC call sequence.
24930 2014-01-25 Walter Lee <walt@tilera.com>
24932 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
24933 avoid clobbering a live register.
24935 2014-01-25 Walter Lee <walt@tilera.com>
24937 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
24938 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
24939 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
24940 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
24942 2014-01-25 Walter Lee <walt@tilera.com>
24944 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
24945 arguments on even registers.
24946 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
24948 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
24949 (BIGGEST_ALIGNMENT): Ditto.
24950 (BIGGEST_FIELD_ALIGNMENT): Ditto.
24952 2014-01-25 Walter Lee <walt@tilera.com>
24954 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
24955 insns before bundling.
24956 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
24958 2014-01-25 Walter Lee <walt@tilera.com>
24960 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
24961 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
24962 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
24964 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24966 * config/mips/constraints.md (kl): Delete.
24967 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
24968 define expands, using...
24969 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
24970 instructions for MIPS16.
24971 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
24972 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
24974 2014-01-25 Walter Lee <walt@tilera.com>
24976 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
24980 2014-01-25 Walter Lee <walt@tilera.com>
24982 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
24983 (TARGET_EXPAND_TO_RTL_HOOK): Define.
24985 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24987 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
24990 2014-01-25 Jakub Jelinek <jakub@redhat.com>
24992 * print-rtl.c (in_call_function_usage): New var.
24993 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
24994 EXPR_LIST mode as mode and not as reg note name.
24996 PR middle-end/59561
24997 * cfgloopmanip.c (copy_loop_info): If
24998 loop->warned_aggressive_loop_optimizations, make sure
24999 the flag is set in target loop too.
25001 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25003 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25005 * builtins.def: Likewise.
25006 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25007 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25008 * ira.c (ira_setup_eliminable_regset): Likewise.
25009 * omp-low.c (gate_expand_omp): Likewise.
25010 (execute_lower_omp): Likewise.
25011 (diagnose_sb_0): Likewise.
25012 (gate_diagnose_omp_blocks): Likewise.
25013 (simd_clone_clauses_extract): Likewise.
25016 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25018 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25019 correction for little endian...
25020 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25023 2014-01-24 Jeff Law <law@redhat.com>
25025 PR tree-optimization/59919
25026 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25027 for non-returning calls.
25029 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25031 * common/config/aarch64/aarch64-common.c
25032 (aarch64_rewrite_mcpu): Handle multiple names.
25033 * config/aarch64/aarch64.h
25034 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25036 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25038 * input.c (add_file_to_cache_tab): Handle the case where fopen
25041 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25044 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25045 from push operand if code of push isn't PRE_DEC.
25047 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25050 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25051 -mquad-memory-atomic. Update -mquad-memory documentation to say
25052 it is only used for non-atomic loads/stores.
25054 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25055 -mquad-memory or -mquad-memory-atomic switches.
25057 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25058 -mquad-memory-atomic to ISA 2.07 support.
25060 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25061 to separate support of normal quad word memory operations (ldq, stq)
25062 from the atomic quad word memory operations.
25064 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25065 support to separate non-atomic quad word operations from atomic
25066 quad word operations. Disable non-atomic quad word operations in
25067 little endian mode so that we don't have to swap words after the
25068 load and before the store.
25069 (quad_load_store_p): Add comment about atomic quad word support.
25070 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25071 options printed with -mdebug=reg.
25073 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25074 -mquad-memory-atomic as the test for whether we have quad word
25075 atomic instructions.
25076 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25077 or -mp8-vector are used, allow byte/half-word atomic operations.
25079 * config/rs6000/sync.md (load_lockedti): Insure that the address
25080 is a proper indexed or indirect address for the lqarx instruction.
25081 On little endian systems, swap the hi/lo registers after the lqarx
25083 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25084 insure the address is valid for the lqarx instruction.
25085 (store_conditionalti): Insure that the address is a proper indexed
25086 or indirect address for the stqcrx. instruction. On little endian
25087 systems, swap the hi/lo registers before doing the stqcrx.
25089 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25090 insure the address is valid for the stqcrx. instruction.
25092 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25093 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25094 type of quad memory support is available.
25096 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25098 PR regression/59915
25099 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25100 there is a danger of looping.
25102 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25104 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25105 force flag_ira_loop_pressure if set via command line.
25107 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25109 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25110 (ashr_simd): New builtin handling DI mode.
25111 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25112 (aarch64_sshr_simddi): New match pattern.
25113 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25114 (vshrd_n_s64): Likewise.
25115 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25117 2014-01-23 Nick Clifton <nickc@redhat.com>
25119 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25120 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25121 favour of mcu specific scripts.
25122 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25125 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25126 Alex Velenko <Alex.Velenko@arm.com>
25128 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25129 (vaddv_s16): Likewise.
25130 (vaddv_s32): Likewise.
25131 (vaddv_u8): Likewise.
25132 (vaddv_u16): Likewise.
25133 (vaddv_u32): Likewise.
25134 (vaddvq_s8): Likewise.
25135 (vaddvq_s16): Likewise.
25136 (vaddvq_s32): Likewise.
25137 (vaddvq_s64): Likewise.
25138 (vaddvq_u8): Likewise.
25139 (vaddvq_u16): Likewise.
25140 (vaddvq_u32): Likewise.
25141 (vaddvq_u64): Likewise.
25142 (vaddv_f32): Likewise.
25143 (vaddvq_f32): Likewise.
25144 (vaddvq_f64): Likewise.
25145 (vmaxv_f32): Likewise.
25146 (vmaxv_s8): Likewise.
25147 (vmaxv_s16): Likewise.
25148 (vmaxv_s32): Likewise.
25149 (vmaxv_u8): Likewise.
25150 (vmaxv_u16): Likewise.
25151 (vmaxv_u32): Likewise.
25152 (vmaxvq_f32): Likewise.
25153 (vmaxvq_f64): Likewise.
25154 (vmaxvq_s8): Likewise.
25155 (vmaxvq_s16): Likewise.
25156 (vmaxvq_s32): Likewise.
25157 (vmaxvq_u8): Likewise.
25158 (vmaxvq_u16): Likewise.
25159 (vmaxvq_u32): Likewise.
25160 (vmaxnmv_f32): Likewise.
25161 (vmaxnmvq_f32): Likewise.
25162 (vmaxnmvq_f64): Likewise.
25163 (vminv_f32): Likewise.
25164 (vminv_s8): Likewise.
25165 (vminv_s16): Likewise.
25166 (vminv_s32): Likewise.
25167 (vminv_u8): Likewise.
25168 (vminv_u16): Likewise.
25169 (vminv_u32): Likewise.
25170 (vminvq_f32): Likewise.
25171 (vminvq_f64): Likewise.
25172 (vminvq_s8): Likewise.
25173 (vminvq_s16): Likewise.
25174 (vminvq_s32): Likewise.
25175 (vminvq_u8): Likewise.
25176 (vminvq_u16): Likewise.
25177 (vminvq_u32): Likewise.
25178 (vminnmv_f32): Likewise.
25179 (vminnmvq_f32): Likewise.
25180 (vminnmvq_f64): Likewise.
25182 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25184 * config/aarch64/aarch64-simd.md
25185 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25186 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25187 (*aarch64_mul3_elt<mode>): Likewise.
25188 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25189 (*aarch64_mul3_elt_to_64v2df): Likewise.
25190 (*aarch64_mla_elt<mode>): Likewise.
25191 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25192 (*aarch64_mls_elt<mode>): Likewise.
25193 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25194 (*aarch64_fma4_elt<mode>): Likewise.
25195 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25196 (*aarch64_fma4_elt_to_64v2df): Likewise.
25197 (*aarch64_fnma4_elt<mode>): Likewise.
25198 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25199 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25200 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25201 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25202 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25203 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25204 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25205 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25206 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25208 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25210 * config/aarch64/aarch64-simd.md
25211 (aarch64_be_checked_get_lane<mode>): New define_expand.
25212 * config/aarch64/aarch64-simd-builtins.def
25213 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25214 New builtin definition.
25215 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25216 Use new safe be builtin.
25218 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25220 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25222 (aarch64_be_st1<mode>): Likewise.
25223 (aarch_ld1<VALL:mode>): Define_expand modified.
25224 (aarch_st1<VALL:mode>): Likewise.
25225 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25226 (UNSPEC_ST1): Likewise.
25228 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25230 * config/microblaze/microblaze.md: Add trap insn and attribute
25232 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25234 PR preprocessor/58580
25235 * input.h (location_get_source_line): Take an additional line_size
25237 (void diagnostics_file_cache_fini): Declare new function.
25238 * input.c (struct fcache): New type.
25239 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25240 New static constants.
25241 (diagnostic_file_cache_init, total_lines_num)
25242 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25243 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25244 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25245 (get_next_line, read_next_line, goto_next_line, read_line_num):
25246 New static function definitions.
25247 (diagnostic_file_cache_fini): New function.
25248 (location_get_source_line): Take an additional output line_len
25249 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25251 * diagnostic.c (diagnostic_finish): Call
25252 diagnostic_file_cache_fini.
25253 (adjust_line): Take an additional input parameter for the length
25254 of the line, rather than calculating it with strlen.
25255 (diagnostic_show_locus): Adjust the use of
25256 location_get_source_line and adjust_line with respect to their new
25257 signature. While displaying a line now, do not stop at the first
25258 null byte. Rather, display the zero byte as a space and keep
25259 going until we reach the size of the line.
25260 * Makefile.in: Add vec.o to OBJS-libcommon
25262 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25263 Ilya Tocar <ilya.tocar@intel.com>
25265 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25266 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25267 (__builtin_ia32_kmov16): Ditto.
25268 * config/i386/i386.md (UNSPEC_KMOV): New.
25271 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25273 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25274 (_mm512_storeu_si512): Ditto.
25276 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25279 * rtl.h (get_referenced_operands): Declare.
25280 * recog.c (get_referenced_operands): New function.
25281 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25282 operands have been referenced when recording LO_SUM references.
25284 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25286 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25288 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25290 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25291 Enable for generic and recent AMD targets.
25293 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25295 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25296 ARG_SIZE note when adjustment was eliminated.
25298 2014-01-22 Jeff Law <law@redhat.com>
25300 PR tree-optimization/59597
25301 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25302 in file. Accept new argument REGISTERING and use it to modify
25303 dump output appropriately.
25304 (register_jump_thread): Corresponding changes.
25305 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25306 thread paths involving joiner blocks. Add code to dump cancelled
25307 jump threading paths.
25309 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25311 PR rtl-optimization/59477
25312 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25313 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25315 2014-01-22 Tom Tromey <tromey@redhat.com>
25317 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25319 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25321 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25323 PR rtl-optimization/59896
25324 * lra-constraints.c (process_alt_operands): Check unused note for
25325 matched operands of insn with no output reloads.
25327 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25329 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25330 (mips_move_from_gpr_cost): Likewise.
25332 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25334 PR rtl-optimization/59858
25335 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25336 ira_class_hard_regs_num.
25337 (process_alt_operands): Increase reject for dying matched operand.
25339 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25342 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25343 smaller than size, perform several stores or loads and stores
25344 at dst + count - size to store or copy all of size bytes, rather
25345 than just last modesize bytes.
25347 2014-01-20 DJ Delorie <dj@redhat.com>
25349 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25350 that CLOBBERs are REGs before propogating their values.
25352 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25354 PR middle-end/59789
25355 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25356 (cgraph_inline_failed_type): New function.
25357 * cgraph.h (DEFCIFCODE): Add type.
25358 (cgraph_inline_failed_type_t): New enum.
25359 (cgraph_inline_failed_type): New prototype.
25360 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25361 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25362 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25363 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25364 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25365 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25366 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25367 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25368 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25369 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25370 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25371 OPTIMIZATION_MISMATCH.
25372 * tree-inline.c (expand_call_inline): Emit errors during
25373 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25375 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25378 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25379 mode attribute in insn output.
25381 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25383 * output.h (output_constant): Delete.
25384 * varasm.c (output_constant): Make private.
25386 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25388 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25390 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25392 PR middle-end/59860
25393 * tree.h (fold_builtin_strcat): New prototype.
25394 * builtins.c (fold_builtin_strcat): No longer static. Add len
25395 argument, if non-NULL, don't call c_strlen. Optimize
25396 directly into __builtin_memcpy instead of __builtin_strcpy.
25397 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25398 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25400 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25402 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25403 for SImode_address_operand operands, having only a REG argument.
25405 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25407 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25408 loader name using mbig-endian.
25409 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25411 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25413 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25414 (-mtune): Likewise.
25417 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25419 * config/aarch64/aarch64-protos.h
25420 (aarch64_cannot_change_mode_class_ptr): Declare.
25421 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25422 aarch64_cannot_change_mode_class_ptr): New.
25423 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25424 backend hook aarch64_cannot_change_mode_class.
25426 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25428 * common/config/aarch64/aarch64-common.c
25429 (aarch64_handle_option): Don't handle any option order logic here.
25430 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25431 selected_cpu, warn on architecture version mismatch.
25432 (aarch64_override_options): Fix parsing order for option strings.
25434 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25435 Iain Sandoe <iain@codesourcery.com>
25438 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25439 warning. Amend comment to reflect current functionality.
25441 2014-01-20 Richard Biener <rguenther@suse.de>
25443 PR middle-end/59860
25444 * builtins.c (fold_builtin_strcat): Remove case better handled
25445 by tree-ssa-strlen.c.
25447 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25449 * config/aarch64/aarch64.opt
25450 (mcpu, march, mtune): Make case-insensitive.
25452 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25455 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25456 if operands[1] is a REG or ZERO_EXTEND of a REG.
25458 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25460 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25462 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25464 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25465 long non-pic millicode calls.
25467 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25469 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25471 2014-01-19 Kito Cheng <kito@0xlab.org>
25473 * builtins.c (expand_movstr): Check movstr expand done or fail.
25475 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25476 H.J. Lu <hongjiu.lu@intel.com>
25479 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25480 to DImode for zero-extended addresses.
25482 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25484 PR rtl-optimization/57763
25485 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25486 on the new indirect jump_insn and increment LABEL_NUSES (label).
25488 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25492 * config.gcc (x86_archs): New variable.
25493 (x86_64_archs): Likewise.
25494 (x86_cpus): Likewise.
25495 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25496 --with-arch/--with-cpu= options.
25497 Support --with-arch=/--with-cpu={nehalem,westmere,
25498 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25500 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25502 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25503 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25505 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25507 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25509 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25512 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25513 clear cpp_get_options (parse_in)->warn_unused_macros for
25514 ix86_target_macros_internal with cpp_define.
25516 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25518 * jump.c (delete_related_insns): Keep (use (insn))s.
25519 * reorg.c (redundant_insn): Check for barriers too.
25521 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25523 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25525 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25527 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25528 call to $$dyncall when TARGET_LONG_CALLS is true.
25530 2014-01-17 Jeff Law <law@redhat.com>
25532 * ree.c (combine_set_extension): Temporarily disable test for
25533 changing number of hard registers.
25535 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25537 PR middle-end/58125
25538 * ipa-inline-analysis.c (inline_free_summary):
25539 Do not free summary of aliases.
25541 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25543 PR middle-end/59706
25544 * gimplify.c (gimplify_expr): Use create_tmp_var
25545 instead of create_tmp_var_raw. If cond doesn't have
25546 integral type, don't add the IFN_ANNOTATE builtin at all.
25548 2014-01-17 Martin Jambor <mjambor@suse.cz>
25551 * ipa-cp.c (prev_edge_clone): New variable.
25552 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25553 Also resize prev_edge_clone vector.
25554 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25555 (ipcp_edge_removal_hook): New function.
25556 (ipcp_driver): Register ipcp_edge_removal_hook.
25558 2014-01-17 Andrew Pinski <apinski@cavium.com>
25559 Steve Ellcey <sellcey@mips.com>
25562 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25565 2014-01-17 Jeff Law <law@redhat.com>
25567 PR middle-end/57904
25568 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25569 so that pass_ccp runs first.
25571 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25573 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25574 (ix86_adjust_cost): Use !TARGET_XXX.
25575 (do_reorder_for_imul): Likewise.
25576 (swap_top_of_ready_list): Likewise.
25577 (ix86_sched_reorder): Likewise.
25579 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25581 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25582 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25583 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25584 (intel_memset): New. Duplicate slm_memset.
25585 (intel_cost): New. Duplicate slm_cost.
25586 (m_INTEL): New macro.
25587 (processor_target_table): Add "intel".
25588 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25589 with PROCESSOR_INTEL for "intel".
25590 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25591 PROCESSOR_SILVERMONT.
25592 (ix86_issue_rate): Likewise.
25593 (ix86_adjust_cost): Likewise.
25594 (ia32_multipass_dfa_lookahead): Likewise.
25595 (swap_top_of_ready_list): Likewise.
25596 (ix86_sched_reorder): Likewise.
25597 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25598 instead of TARGET_OPT_AGU.
25599 * config/i386/i386.h (TARGET_INTEL): New.
25600 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25601 (processor_type): Add PROCESSOR_INTEL.
25602 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25603 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25605 2014-01-17 Marek Polacek <polacek@redhat.com>
25608 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25611 2014-01-17 Richard Biener <rguenther@suse.de>
25613 PR tree-optimization/46590
25614 * opts.c (default_options_table): Add entries for
25615 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25616 all enabled at -O1 but not for -Og.
25617 * common.opt (fbranch-count-reg): Remove Init(1).
25618 (fmove-loop-invariants): Likewise.
25619 (ftree-pta): Likewise.
25621 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25623 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25624 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25625 decls to at least the GCC 4.8 used alignments.
25628 * tree-nested.c (convert_nonlocal_reference_stmt,
25629 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25630 of GIMPLE_BIND stmts, adjust associated decls.
25632 2014-01-17 Richard Biener <rguenther@suse.de>
25634 PR tree-optimization/46590
25635 * vec.h (vec<>::bseach): New member function implementing
25636 binary search according to C89 bsearch.
25637 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25638 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25639 bitmap pointer again. Make accesses_in_loop a flat array.
25640 (mem_ref_obstack): New global.
25641 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25642 (mark_ref_stored): Likewise.
25643 (ref_indep_loop_p_2): Likewise.
25644 (set_ref_stored_in_loop): New helper function.
25645 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25646 (memref_free): Adjust.
25647 (record_mem_ref_loc): Simplify.
25648 (gather_mem_refs_stmt): Adjust.
25649 (sort_locs_in_loop_postorder_cmp): New function.
25650 (analyze_memory_references): Sort accesses_in_loop after
25651 loop postorder number.
25652 (find_ref_loc_in_loop_cmp): New function.
25653 (for_all_locs_in_loop): Find relevant cluster of locs in
25654 accesses_in_loop and iterate without recursion.
25655 (execute_sm): Avoid uninit warning.
25656 (struct ref_always_accessed): Simplify.
25657 (ref_always_accessed::operator ()): Likewise.
25658 (ref_always_accessed_p): Likewise.
25659 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25660 loop postorder numbers here.
25661 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25664 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25667 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25668 on decls for which assemble_alias has been called.
25670 2014-01-17 Nick Clifton <nickc@redhat.com>
25672 * config/msp430/msp430.opt: (mcpu): New option.
25673 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25674 (msp430_option_override): Parse target_cpu. If the MCU name
25675 matches a generic string, clear target_mcu.
25676 (msp430_attr): Allow numeric interrupt values up to 63.
25677 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25678 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25680 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25682 * config/msp430/msp430.md (popm): Use %J rather than %I.
25683 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25684 (addhi_cy_i): Use immediate_operand for operand 2.
25685 * doc/invoke.texi: Document -mcpu option.
25687 2014-01-17 Richard Biener <rguenther@suse.de>
25689 PR rtl-optimization/38518
25690 * df.h (df_analyze_loop): Declare.
25691 * df-core.c: Include cfgloop.h.
25692 (df_analyze_1): Split out main part of df_analyze.
25693 (df_analyze): Adjust.
25694 (loop_inverted_post_order_compute): New function.
25695 (loop_post_order_compute): Likewise.
25696 (df_analyze_loop): New function avoiding whole-function
25697 postorder computes.
25698 * loop-invariant.c (find_defs): Use df_analyze_loop.
25699 (find_invariants): Adjust.
25700 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25702 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25704 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25705 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25707 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25709 * ipa-ref.c (ipa_remove_stmt_references): Fix references
25710 traversal when removing references.
25712 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
25715 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25717 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
25719 PR middle-end/56791
25720 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25721 pushing a reload for an autoinc when we had previously reloaded an
25722 inner part of the address.
25724 2014-01-16 Jakub Jelinek <jakub@redhat.com>
25726 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25728 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25729 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25730 when not giving up or versioning for alias only because of
25732 (vect_analyze_data_ref_dependences): Set to true.
25733 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
25735 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
25736 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
25739 PR middle-end/58344
25740 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
25743 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
25744 operand 0 predicate for gathers, use a new pseudo as subtarget.
25746 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25748 PR middle-end/59609
25749 * lra-constraints.c (process_alt_operands): Add printing debug info.
25750 Check absence of input/output reloads for matched operands too.
25752 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25754 PR rtl-optimization/59835
25755 * ira.c (ira_init_register_move_cost): Increase cost for
25758 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
25760 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
25762 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
25765 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
25766 non-register objects. Use gen_(high/low)part more consistently.
25769 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
25772 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
25773 endian support, remove tests for WORDS_BIG_ENDIAN.
25774 (p8_mfvsrd_3_<mode>): Likewise.
25775 (reload_gpr_from_vsx<mode>): Likewise.
25776 (reload_gpr_from_vsxsf): Likewise.
25777 (p8_mfvsrd_4_disf): Likewise.
25779 2014-01-16 Richard Biener <rguenther@suse.de>
25781 PR rtl-optimization/46590
25782 * lcm.c (compute_antinout_edge): Use postorder iteration.
25783 (compute_laterin): Use inverted postorder iteration.
25785 2014-01-16 Nick Clifton <nickc@redhat.com>
25787 PR middle-end/28865
25788 * varasm.c (output_constant): Return the number of bytes actually
25790 (output_constructor_array_range): Update the field size with the
25791 number of bytes emitted by output_constant.
25792 (output_constructor_regular_field): Likewise. Also do not
25793 complain if the total number of bytes emitted is now greater
25794 than the expected fieldpos.
25795 * output.h (output_constant): Update prototype and descriptive comment.
25797 2014-01-16 Marek Polacek <polacek@redhat.com>
25799 PR middle-end/59827
25800 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
25801 it is error_mark_node.
25803 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
25805 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
25806 VALID_AVX256_REG_OR_OI_MODE.
25808 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
25810 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
25811 current procedure should be profiled.
25813 2014-01-15 Andrew Pinski <apinski@cavium.com>
25815 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
25816 of moving from/to the STACK_REG register class.
25818 2014-01-15 Richard Henderson <rth@redhat.com>
25821 * reginfo.c (global_regs_decl): Globalize.
25822 * rtl.h (global_regs_decl): Declare.
25823 * ira.c (do_reload): Diagnose frame_pointer_needed and it
25824 reserved via global_regs.
25826 2014-01-15 Teresa Johnson <tejohnson@google.com>
25828 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
25830 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25832 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
25833 and vmulosh rather than call gen_vec_widen_smult_*.
25834 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
25835 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
25836 (vec_widen_smult_even_v16qi): Likewise.
25837 (vec_widen_umult_even_v8hi): Likewise.
25838 (vec_widen_smult_even_v8hi): Likewise.
25839 (vec_widen_umult_odd_v16qi): Likewise.
25840 (vec_widen_smult_odd_v16qi): Likewise.
25841 (vec_widen_umult_odd_v8hi): Likewise.
25842 (vec_widen_smult_odd_v8hi): Likewise.
25843 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
25844 vmuloub rather than call gen_vec_widen_umult_*.
25845 (vec_widen_umult_lo_v16qi): Likewise.
25846 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
25847 vmulosb rather than call gen_vec_widen_smult_*.
25848 (vec_widen_smult_lo_v16qi): Likewise.
25849 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
25850 rather than call gen_vec_widen_umult_*.
25851 (vec_widen_umult_lo_v8hi): Likewise.
25852 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
25853 rather than call gen_vec_widen_smult_*.
25854 (vec_widen_smult_lo_v8hi): Likewise.
25856 2014-01-15 Jeff Law <law@redhat.com>
25858 PR tree-optimization/59747
25859 * ree.c (find_and_remove_re): Properly handle case where a second
25860 eliminated extension requires widening a copy created for elimination
25861 of a prior extension.
25862 (combine_set_extension): Ensure that the number of hard regs needed
25863 for a destination register does not change when we widen it.
25865 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
25867 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
25868 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
25869 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
25870 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
25871 (avr-*-rtems*): Likewise.
25872 (bfin*-rtems*): Likewise.
25873 (moxie-*-rtems*): Likewise.
25874 (h8300-*-rtems*): Likewise.
25875 (i[34567]86-*-rtems*): Likewise.
25876 (lm32-*-rtems*): Likewise.
25877 (m32r-*-rtems*): Likewise.
25878 (m68k-*-rtems*): Likewise.
25879 (microblaze*-*-rtems*): Likewise.
25880 (mips*-*-rtems*): Likewise.
25881 (powerpc-*-rtems*): Likewise.
25882 (sh-*-rtems*): Likewise.
25883 (sparc-*-rtems*): Likewise.
25884 (sparc64-*-rtems*): Likewise.
25885 (v850-*-rtems*): Likewise.
25886 (m32c-*-rtems*): Likewise.
25888 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
25890 PR rtl-optimization/59511
25891 * ira.c (ira_init_register_move_cost): Use memory costs for some
25892 cases of register move cost calculations.
25893 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
25894 instead of BB frequency.
25895 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
25896 * lra-assigns.c (find_hard_regno_for): Ditto.
25898 2014-01-15 Richard Biener <rguenther@suse.de>
25900 PR tree-optimization/59822
25901 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
25902 (vectorizable_load): Use it to hoist defs of uses of invariant
25903 loads out of the loop.
25905 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
25906 Kugan Vivekanandarajah <kuganv@linaro.org>
25909 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
25912 2014-01-15 Richard Biener <rguenther@suse.de>
25914 PR rtl-optimization/59802
25915 * lcm.c (compute_available): Use inverted postorder to seed
25916 the initial worklist.
25918 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25921 * config/s390/s390.c (s390_preferred_reload_class): Don't return
25922 ADDR_REGS for invalid symrefs in non-PIC code.
25924 2014-01-15 Jakub Jelinek <jakub@redhat.com>
25927 * builtins.c (determine_block_size): Initialize *probable_max_size
25928 even if len_rtx is CONST_INT.
25930 2014-01-14 Andrew Pinski <apinski@cavium.com>
25932 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
25933 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
25934 (cortexa53_tunings): Likewise.
25935 (aarch64_sched_issue_rate): New function.
25936 (TARGET_SCHED_ISSUE_RATE): Define.
25938 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25940 * ira-costs.c (find_costs_and_classes): Add missed
25941 ira_init_register_move_cost_if_necessary.
25943 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25946 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
25948 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
25951 * config/i386/i386.c (type_natural_mode): Add a bool parameter
25952 to indicate if type is used for function return value. Warn ABI
25953 change if the vector mode isn't available for function return value.
25954 (ix86_function_arg_advance): Pass false to type_natural_mode.
25955 (ix86_function_arg): Likewise.
25956 (ix86_gimplify_va_arg): Likewise.
25957 (function_arg_32): Don't warn ABI change.
25958 (ix86_function_value): Pass true to type_natural_mode.
25959 (ix86_return_in_memory): Likewise.
25960 (ix86_struct_value_rtx): Removed.
25961 (TARGET_STRUCT_VALUE_RTX): Likewise.
25963 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25965 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
25966 converting a conditional jump into a conditional return.
25968 2014-01-14 Richard Biener <rguenther@suse.de>
25970 PR tree-optimization/58921
25971 PR tree-optimization/59006
25972 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
25973 hoisting invariant stmts.
25974 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
25975 invariant loads on the preheader edge if possible.
25977 2014-01-14 Joey Ye <joey.ye@arm.com>
25979 * doc/plugin.texi (Building GCC plugins): Update to C++.
25981 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
25983 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
25984 (_mm_rcp28_round_ss): Ditto.
25985 (_mm_rsqrt28_round_sd): Ditto.
25986 (_mm_rsqrt28_round_ss): Ditto.
25987 (_mm_rcp28_sd): Ditto.
25988 (_mm_rcp28_ss): Ditto.
25989 (_mm_rsqrt28_sd): Ditto.
25990 (_mm_rsqrt28_ss): Ditto.
25991 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
25992 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
25993 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
25994 (IX86_BUILTIN_RCP28SD): Ditto.
25995 (IX86_BUILTIN_RCP28SS): Ditto.
25996 (IX86_BUILTIN_RSQRT28SD): Ditto.
25997 (IX86_BUILTIN_RSQRT28SS): Ditto.
25998 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
25999 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26000 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26001 (ix86_expand_special_args_builtin): Expand new FTYPE.
26002 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26003 (srcp14<mode>): Make insn unary.
26004 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26005 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26006 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26007 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26008 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26009 Fix rounding: make it SAE only.
26010 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26012 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26014 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26015 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26016 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26017 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26018 (round_saeonly_mask_scalar_operand4): Ditto.
26019 (round_saeonly_mask_scalar_op3): Ditto.
26020 (round_saeonly_mask_scalar_op4): Ditto.
26022 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26024 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26025 Implement -maltivec=be for vec_insert and vec_extract.
26027 2014-01-10 DJ Delorie <dj@redhat.com>
26029 * config/msp430/msp430.md (call_internal): Don't allow memory
26030 references with SP as the base register.
26031 (call_value_internal): Likewise.
26032 * config/msp430/constraints.md (Yc): New. For memory references
26033 that don't use SP as a base register.
26035 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26036 "an integer without a # prefix"
26037 * config/msp430/msp430.md (epilogue_helper): Use it.
26039 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26042 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26043 AVX512F gather builtins.
26044 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26045 on gather decls with INTEGER_TYPE masktype.
26046 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26047 directly into the builtin rather than hoisting it before loop.
26049 PR tree-optimization/59387
26050 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26051 (scev_const_prop): If folded_casts and type has undefined overflow,
26052 use force_gimple_operand instead of force_gimple_operand_gsi and
26053 for each added stmt if it is assign with
26054 arith_code_with_undefined_signed_overflow, call
26055 rewrite_to_defined_overflow.
26056 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26057 gimple-fold.h instead.
26058 (arith_code_with_undefined_signed_overflow,
26059 rewrite_to_defined_overflow): Moved to ...
26060 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26061 rewrite_to_defined_overflow): ... here. No longer static.
26062 Include gimplify-me.h.
26063 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26064 rewrite_to_defined_overflow): New prototypes.
26066 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26068 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26070 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26072 * builtins.c (get_object_alignment_2): Minor tweak.
26073 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26075 2014-01-13 Christian Bruel <christian.bruel@st.com>
26077 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26078 optimized non constant lengths.
26080 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26083 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26084 load as __atomic_load_N if possible.
26086 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26088 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26090 (rs6000_expand_builtin): Adjust call.
26092 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26095 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26096 * config/rs6000/rs6000.c: Include target-globals.h.
26097 (rs6000_set_current_function): Instead of doing target_reinit
26098 unconditionally, use save_target_globals_default_opts and
26099 restore_target_globals.
26101 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26103 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26104 (rs6000_expand_builtin): Handle mffs and mtfsf.
26105 (rs6000_init_builtins): Define mffs and mtfsf.
26106 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26107 (rs6000_mffs): New pattern.
26108 (rs6000_mtfsf): New pattern.
26110 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26112 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26113 Start narrowing with START. Apply candidate-use pair
26114 and check overall cost in narrowing.
26115 (iv_ca_prune): Pass new argument.
26117 2014-01-10 Jeff Law <law@redhat.com>
26119 PR middle-end/59743
26120 * ree.c (combine_reaching_defs): Ensure the defining statement
26121 occurs before the extension when optimizing extensions with
26122 different source and destination hard registers.
26124 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26127 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26128 vtables into the type inheritance graph.
26130 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26132 PR rtl-optimization/59754
26133 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26134 modes in the REGNO != REGNO case.
26136 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26138 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26140 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26142 PR tree-optimization/59745
26143 * tree-predcom.c (tree_predictive_commoning_loop): Call
26144 free_affine_expand_cache if giving up because components is NULL.
26146 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26147 GC in payload of target_globals struct instead of allocating them on
26148 the heap and the larger structs separately using GC.
26149 * target-globals.h (struct target_globals): Make regs, hard_regs,
26150 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26151 of GTY((skip)) and change type to void *.
26152 (reset_target_globals): Cast loads from those fields to corresponding
26155 2014-01-10 Steve Ellcey <sellcey@mips.com>
26158 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26159 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26160 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26162 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26165 * aarch64-modes.def (CC_Zmode): New flags mode.
26166 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26167 represents an equality.
26168 (aarch64_get_condition_code): Handle CC_Zmode.
26169 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26171 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26173 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26174 extraction in good case.
26176 2014-01-10 Richard Biener <rguenther@suse.de>
26178 PR tree-optimization/59374
26179 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26180 checking after SLP discovery. Mark stmts not participating
26181 in any SLP instance properly.
26183 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26185 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26186 when handling a SET rtx.
26188 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26190 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26191 (cortex-a57): Likewise.
26192 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26194 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26196 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26197 non-iwmmxt builtins.
26199 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26203 * ipa-devirt.c record_target_from_binfo): Take as argument
26204 stack of binfos and lookup matching one for virtual inheritance.
26205 (possible_polymorphic_call_targets_1): Update.
26207 2014-01-10 Huacai Chen <chenhc@lemote.com>
26209 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26210 kernel strings for Loongson-2E/2F/3A.
26212 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26214 PR middle-end/59670
26215 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26216 is_gimple_call before calling gimple_call_internal_p.
26218 2014-01-09 Steve Ellcey <sellcey@mips.com>
26220 * Makefile.in (TREE_FLOW_H): Remove.
26221 (TREE_SSA_H): Add file names from tree-flow.h.
26222 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26223 * tree.h: Remove tree-flow.h reference.
26224 * hash-table.h: Remove tree-flow.h reference.
26225 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26226 reference with tree-ssa-loop.h.
26228 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26230 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26231 default element-order behavior for -maltivec.
26232 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26233 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26234 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26235 when targeting big endian, at least for now.
26236 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26238 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26240 PR middle-end/47735
26241 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26242 var satisfies use_register_for_decl, just take into account type
26243 alignment, rather than decl alignment.
26245 PR tree-optimization/59622
26246 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26247 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26248 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26249 Don't devirtualize for inplace at all. For targets.length () == 1,
26250 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26252 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26254 * config/i386/i386.md (cpu): Remove the unused btver1.
26256 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26258 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26260 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26263 * tree-core.h (struct target_globals): New forward declaration.
26264 (struct tree_target_option): Add globals field.
26265 * tree.h (TREE_TARGET_GLOBALS): Define.
26266 (prepare_target_option_nodes_for_pch): New prototype.
26267 * target-globals.h (struct target_globals): Define even if
26268 !SWITCHABLE_TARGET.
26269 * tree.c (prepare_target_option_node_for_pch,
26270 prepare_target_option_nodes_for_pch): New functions.
26271 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26272 * config/i386/i386.c: Include target-globals.h.
26273 (ix86_set_current_function): Instead of doing target_reinit
26274 unconditionally, use save_target_globals_default_opts and
26275 restore_target_globals.
26277 2014-01-09 Richard Biener <rguenther@suse.de>
26279 PR tree-optimization/59715
26280 * tree-cfg.h (split_critical_edges): Declare.
26281 * tree-cfg.c (split_critical_edges): Export.
26282 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26284 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26286 * cfgexpand.c (expand_stack_vars): Optionally disable
26287 asan stack protection.
26288 (expand_used_vars): Likewise.
26289 (partition_stack_vars): Likewise.
26290 * asan.c (asan_emit_stack_protection): Optionally disable
26291 after return stack usage.
26292 (instrument_derefs): Optionally disable memory access instrumentation.
26293 (instrument_builtin_call): Likewise.
26294 (instrument_strlen_call): Likewise.
26295 (asan_protect_global): Optionally disable global variables protection.
26296 * doc/invoke.texi: Added doc for new options.
26297 * params.def: Added new options.
26298 * params.h: Likewise.
26300 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26302 PR rtl-optimization/59724
26303 * ifcvt.c (cond_exec_process_if_block): Don't call
26304 flow_find_head_matching_sequence with 0 longest_match.
26305 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26306 non-active insns if !stop_after.
26307 (try_head_merge_bb): Revert 2014-01-07 changes.
26309 2014-01-08 Jeff Law <law@redhat.com>
26311 * ree.c (get_sub_rtx): New function, extracted from...
26312 (merge_def_and_ext): Here.
26313 (combine_reaching_defs): Use get_sub_rtx.
26315 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26317 * cgraph.h (varpool_variable_node): Do not choke on null node.
26319 2014-01-08 Catherine Moore <clm@codesourcery.com>
26321 * config/mips/mips.md (simple_return): Attempt to use JRC
26323 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26325 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26327 PR rtl-optimization/59137
26328 * reorg.c (steal_delay_list_from_target): Call update_block for
26330 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26332 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26334 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26335 two duplicate entries.
26337 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26340 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26342 * config/mips/mips.c (mips_truncated_op_cost): New function.
26343 (mips_rtx_costs): Adjust test for BADDU.
26344 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26346 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26348 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26349 (*baddu_si): ...this new pattern.
26351 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26354 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26356 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26358 PR middle-end/57748
26359 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26361 (expand_expr, expand_normal): Adjust.
26362 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26363 inner_reference_p. Use inner_reference_p to expand inner references.
26364 (store_expr): Adjust.
26365 * cfgexpand.c (expand_call_stmt): Adjust.
26367 2014-01-08 Rong Xu <xur@google.com>
26369 * gcov-io.c (gcov_var): Move from gcov-io.h.
26370 (gcov_position): Ditto.
26371 (gcov_is_error): Ditto.
26372 (gcov_rewrite): Ditto.
26373 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26374 only part to libgcc/libgcov.h.
26376 2014-01-08 Marek Polacek <polacek@redhat.com>
26378 PR middle-end/59669
26379 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26381 2014-01-08 Marek Polacek <polacek@redhat.com>
26384 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26386 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26388 PR rtl-optimization/59649
26389 * stor-layout.c (get_mode_bounds): For BImode return
26390 0 and STORE_FLAG_VALUE.
26392 2014-01-08 Richard Biener <rguenther@suse.de>
26394 PR middle-end/59630
26395 * gimple.h (is_gimple_builtin_call): Remove.
26396 (gimple_builtin_call_types_compatible_p): New.
26397 (gimple_call_builtin_p): New overload.
26398 * gimple.c (is_gimple_builtin_call): Remove.
26399 (validate_call): Rename to ...
26400 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26401 check return types.
26402 (validate_type): New static function.
26403 (gimple_call_builtin_p): New overload and adjust.
26404 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26405 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26406 (gimple_fold_stmt_to_constant_1): Likewise.
26407 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26409 2014-01-08 Richard Biener <rguenther@suse.de>
26411 PR middle-end/59471
26412 * gimplify.c (gimplify_expr): Gimplify register-register type
26413 VIEW_CONVERT_EXPRs to separate stmts.
26415 2014-01-07 Jeff Law <law@redhat.com>
26417 PR middle-end/53623
26418 * ree.c (combine_set_extension): Handle case where source
26419 and destination registers in an extension insn are different.
26420 (combine_reaching_defs): Allow source and destination registers
26421 in extension to be different under limited circumstances.
26422 (add_removable_extension): Remove restriction that the
26423 source and destination registers in the extension are the same.
26424 (find_and_remove_re): Emit a copy from the extension's
26425 destination to its source after the defining insn if
26426 the source and destination registers are different.
26428 PR middle-end/59285
26429 * ifcvt.c (merge_if_block): If we are merging a block with more than
26430 one successor with a block with no successors, remove any BARRIER
26431 after the second block.
26433 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26435 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26437 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26440 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26441 for 14-bit register offsets when INT14_OK_STRICT is false.
26443 2014-01-07 Roland Stigge <stigge@antcom.de>
26444 Michael Meissner <meissner@linux.vnet.ibm.com>
26447 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26448 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26450 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26452 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26455 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26457 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26458 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26459 rtx is const0_rtx or not.
26461 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26464 * target-globals.c (save_target_globals): Remove this_fn_optab
26466 * toplev.c: Include optabs.h.
26467 (target_reinit): Temporarily restore the global options if another
26468 set of options are in force.
26470 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26472 PR rtl-optimization/58668
26473 * cfgcleanup.c (flow_find_cross_jump): Don't count
26474 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26475 to determine what is counted.
26476 (flow_find_head_matching_sequence): Use active_insn_p to determine
26478 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26480 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26481 determine what is counted.
26483 PR tree-optimization/59643
26484 * tree-predcom.c (split_data_refs_to_components): If one dr is
26485 read and one write, determine_offset fails and the write isn't
26486 in the bad component, just put the read into the bad component.
26488 2014-01-07 Mike Stump <mikestump@comcast.net>
26489 Jakub Jelinek <jakub@redhat.com>
26492 * tree-core.h (struct tree_optimization_option): Change optabs
26493 type from unsigned char * to void *.
26494 * optabs.c (init_tree_optimization_optabs): Adjust
26495 TREE_OPTIMIZATION_OPTABS initialization.
26497 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26500 * config/i386/i386.h (struct machine_function): Add
26501 no_drap_save_restore field.
26502 * config/i386/i386.c (ix86_save_reg): Use
26503 !cfun->machine->no_drap_save_restore instead of
26504 crtl->stack_realign_needed.
26505 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26506 this function clears frame_pointer_needed. Set
26507 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26508 and DRAP reg is needed.
26510 2014-01-06 Marek Polacek <polacek@redhat.com>
26513 * doc/implement-c.texi: Mention that other integer types are
26514 permitted as bit-field types in strictly conforming mode.
26516 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26518 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26519 is newly allocated.
26521 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26523 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26525 2014-01-06 Martin Jambor <mjambor@suse.cz>
26528 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26530 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26532 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26536 * var-tracking.c (add_stores): Preserve the value of the source even if
26537 we don't record the store.
26539 2014-01-06 Terry Guo <terry.guo@arm.com>
26541 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26543 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26546 * config/darwin.c (darwin_function_section): Adjust return values to
26547 correspond to optimisation changes made in r206070.
26549 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26551 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26552 from prefetch_block tune setting.
26553 (nocona_cost): Correct size of prefetch block to 64.
26555 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26557 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26558 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26559 used to save the static chain register in the computation of the offset
26560 from which the FP registers need to be restored.
26562 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26564 PR tree-optimization/59519
26565 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26566 ICE if get_current_def (current_new_name) is already non-NULL, as long
26567 as it is a phi result of some other phi in *new_exit_bb that has
26570 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26571 or vmovdqu* for misaligned_operand.
26572 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26573 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26574 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26575 aligned_mem for AVX512F masked aligned load and store builtins and for
26576 non-temporal moves.
26578 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26580 PR tree-optimization/59651
26581 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26582 Address range for negative step should be added by TYPE_SIZE_UNIT.
26584 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26586 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26587 overlapping registers also for registers other than the stack pointer.
26589 2014-01-03 Marek Polacek <polacek@redhat.com>
26592 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26595 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26598 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26601 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26602 (push splitter): Use <P:MODE_SIZE> instead of
26603 GET_MODE_SIZE (<P:MODE>mode).
26604 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26605 (mov -1, reg peephole2): Likewise.
26606 * config/i386/sse.md (*mov<mode>_internal,
26607 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26608 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26609 *<code><mode>3, *andnot<mode>3<mask_name>,
26610 <mask_codefor><code><mode>3<mask_name>): Likewise.
26611 * config/i386/subst.md (mask_mode512bit_condition,
26612 sd_mask_mode512bit_condition): Likewise.
26614 2014-01-02 Xinliang David Li <davidxl@google.com>
26616 PR tree-optimization/59303
26617 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26618 (dump_predicates): Better output format.
26619 (pred_equal_p): New function.
26620 (is_neq_relop_p): Ditto.
26621 (is_neq_zero_form_p): Ditto.
26622 (pred_expr_equal_p): Ditto.
26623 (pred_neg_p): Ditto.
26624 (simplify_pred): Ditto.
26625 (simplify_preds_2): Ditto.
26626 (simplify_preds_3): Ditto.
26627 (simplify_preds_4): Ditto.
26628 (simplify_preds): Ditto.
26629 (push_pred): Ditto.
26630 (push_to_worklist): Ditto.
26631 (get_pred_info_from_cmp): Ditto.
26632 (is_degenerated_phi): Ditto.
26633 (normalize_one_pred_1): Ditto.
26634 (normalize_one_pred): Ditto.
26635 (normalize_one_pred_chain): Ditto.
26636 (normalize_preds): Ditto.
26637 (normalize_cond_1): Remove function.
26638 (normalize_cond): Ditto.
26639 (is_gcond_subset_of): Ditto.
26640 (is_subset_of_any): Ditto.
26641 (is_or_set_subset_of): Ditto.
26642 (is_and_set_subset_of): Ditto.
26643 (is_norm_cond_subset_of): Ditto.
26644 (pred_chain_length_cmp): Ditto.
26645 (convert_control_dep_chain_into_preds): Type change.
26646 (find_predicates): Ditto.
26647 (find_def_preds): Ditto.
26648 (destroy_predicates_vecs): Ditto.
26649 (find_matching_predicates_in_rest_chains): Ditto.
26650 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26651 (is_pred_expr_subset): Ditto.
26652 (is_pred_chain_subset_of): Ditto.
26653 (is_included_in): Ditto.
26654 (is_superset_of): Ditto.
26656 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26658 Update copyright years.
26660 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26662 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26663 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26664 config/arc/arc.md, config/arc/arc.opt,
26665 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26666 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26667 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26668 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26669 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26670 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26671 vtable-verify.c, vtable-verify.h: Use the standard form for the
26674 2014-01-02 Tobias Burnus <burnus@net-b.de>
26676 * gcc.c (process_command): Update copyright notice dates.
26677 * gcov-dump.c: Ditto.
26679 * doc/cpp.texi: Bump @copying's copyright year.
26680 * doc/cppinternals.texi: Ditto.
26681 * doc/gcc.texi: Ditto.
26682 * doc/gccint.texi: Ditto.
26683 * doc/gcov.texi: Ditto.
26684 * doc/install.texi: Ditto.
26685 * doc/invoke.texi: Ditto.
26687 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26689 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26691 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26693 * config/i386/sse.md (*mov<mode>_internal): Guard
26694 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26696 PR rtl-optimization/59647
26697 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26698 new_rtx into UNSIGNED_FLOAT rtxes.
26700 Copyright (C) 2014 Free Software Foundation, Inc.
26702 Copying and distribution of this file, with or without modification,
26703 are permitted in any medium without royalty provided the copyright
26704 notice and this notice are preserved.