1 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3 * coretypes.h (class rtx_insn_list): Add forward declaration.
4 * rtl.h (class rtx_insn_list): New subclass of rtx_def
5 (is_a_helper <rtx_insn_list *>::test): New.
6 (rtx_insn_list::next): New.
7 (rtx_insn_list::insn): New.
8 (gen_rtx_INSN_LIST): Add prototype.
9 * emit-rtl.c (gen_rtx_INSN_LIST): New.
10 * gengenrtl.c (special_rtx): Add INSN_LIST.
12 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
15 "prev" from rtx to rtx_insn *.
17 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
20 functions. Require merely an rtx for now, not an rtx_insn *.
21 (BLOCK_FOR_INSN): Likewise.
22 (INSN_LOCATION): Likewise.
23 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
25 2014-08-27 David Malcolm <dmalcolm@redhat.com>
27 * rtl.h (PATTERN): Convert this macro into a pair of inline
28 functions, for now, requiring const_rtx and rtx.
30 2014-08-27 David Malcolm <dmalcolm@redhat.com>
32 * target.def (unwind_emit): Strengthen param "insn" from rtx to
34 (final_postscan_insn): Likewise.
35 (adjust_cost): Likewise.
36 (adjust_priority): Likewise.
37 (variable_issue): Likewise.
38 (macro_fusion_pair_p): Likewise.
39 (dfa_post_cycle_insn): Likewise.
40 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
41 (first_cycle_multipass_issue): Likewise.
42 (dfa_new_cycle): Likewise.
43 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
44 (speculate_insn): Likewise for param "insn".
45 (gen_spec_check): Likewise for params "insn" and "label".
46 (get_insn_spec_ds): Likewise for param "insn".
47 (get_insn_checked_ds): Likewise.
48 (dispatch_do): Likewise.
50 (cannot_copy_insn_p): Likewise.
51 (invalid_within_doloop): Likewise.
52 (legitimate_combined_insn): Likewise.
56 * doc/tm.texi: Automatically updated to reflect changes to
59 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
61 (schedule_block): Likewise.
62 (sched_init): Likewise.
63 (sched_speculate_insn): Strengthen param "insn" from rtx to
65 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
67 * hooks.c (hook_bool_rtx_true): Rename to...
68 hook_bool_rtx_insn_true): ...this, and strengthen first param from
70 (hook_constcharptr_const_rtx_null): Rename to...
71 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
72 first param from const_rtx to const rtx_insn *.
73 (hook_bool_rtx_int_false): Rename to...
74 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
75 param from rtx to rtx_insn *.
76 (hook_void_rtx_int): Rename to...
77 (hook_void_rtx_insn_int): ...this, and strengthen first param from
80 * hooks.h (hook_bool_rtx_true): Rename to...
81 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
83 (hook_bool_rtx_int_false): Rename to...
84 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
85 param from rtx to rtx_insn *.
86 (hook_void_rtx_int): Rename to...
87 (hook_void_rtx_insn_int): ...this, and strengthen first param from
89 (hook_constcharptr_const_rtx_null): Rename to...
90 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
91 first param from const_rtx to const rtx_insn *.
93 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
94 and local "prev" from rtx to rtx_insn *.
96 * sched-int.h (sched_speculate_insn): Strengthen first param from
99 * sel-sched.c (create_speculation_check): Likewise for local "label".
100 * targhooks.c (default_invalid_within_doloop): Strengthen param
101 "insn" from const_rtx to const rtx_insn *.
102 * targhooks.h (default_invalid_within_doloop): Strengthen param
103 from const_rtx to const rtx_insn *.
105 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
106 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
108 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
110 (arc_invalid_within_doloop): Likewise, with const.
112 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
113 (arm_cannot_copy_insn_p): Likewise for param "insn".
114 (arm_unwind_emit): Likewise.
116 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
119 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
120 (c6x_variable_issue): Likewise. Removed now-redundant checked
122 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
124 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
125 Likewise for param "insn".
126 (epiphany_mode_after): Likewise.
127 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
128 params "insn", "dep_insn".
129 (epiphany_mode_needed): Likewise for param "insn".
130 (epiphany_mode_after): Likewise.
132 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
133 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
134 (ix86_avx_u128_mode_needed): Likewise.
135 (ix86_i387_mode_needed): Likewise.
136 (ix86_mode_needed): Likewise.
137 (ix86_avx_u128_mode_after): Likewise.
138 (ix86_mode_after): Likewise.
139 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
140 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
141 (ix86_adjust_priority): Likewise for param "insn".
142 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
143 (do_dispatch): Likewise.
144 (has_dispatch): Likewise.
145 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
147 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
148 reflect renaming of default hook implementation from
149 hook_constcharptr_const_rtx_null to
150 hook_constcharptr_const_rtx_insn_null.
151 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
153 (ia64_variable_issue): Likewise for param "insn".
154 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
155 (ia64_dfa_new_cycle): Likewise.
156 (ia64_get_insn_spec_ds): Likewise.
157 (ia64_get_insn_checked_ds): Likewise.
158 (ia64_speculate_insn): Likewise.
159 (ia64_gen_spec_check): Likewise for params "insn", "label".
160 (ia64_asm_unwind_emit): Likewise for param "insn".
162 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
164 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
166 (m68k_sched_variable_issue): Likewise for param "insn".
168 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
171 * config/microblaze/microblaze.c (microblaze_adjust_cost):
172 Likewise for params "insn", "dep".
174 * config/mips/mips.c (mips_adjust_cost): Likewise.
175 (mips_variable_issue): Likewise for param "insn".
176 (mips_final_postscan_insn): Likewise.
178 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
179 for params "insn", "dep".
181 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
183 (pa_adjust_priority): Likewise for param "insn".
185 * config/picochip/picochip.c (picochip_sched_adjust_cost):
186 Likewise for params "insn", "dep_insn".
188 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
190 (rs6000_variable_issue): Likewise.
191 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
192 (rs6000_debug_adjust_cost): Likewise.
193 (rs6000_adjust_priority): Likewise for param "insn".
194 (rs6000_use_sched_lookahead_guard): Likewise.
195 (get_next_active_insn): Likewise for return type and both params.
196 (redefine_groups): Likewise for params "prev_head_insn", "tail"
197 and locals "insn", "next_insn".
198 (pad_groups): Likewise.
200 * config/s390/s390.c (s390_adjust_priority): Likewise for param
202 (s390_cannot_copy_insn_p): Likewise.
203 (s390_sched_variable_issue): Likewise for third param, eliminating
205 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
206 default hook implementation from hook_constcharptr_const_rtx_null
207 to hook_constcharptr_const_rtx_insn_null.
209 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
210 from rtx to rtx_insn *.
211 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
212 (sh_variable_issue): Likewise for param "insn".
213 (sh_dfa_new_cycle): Likewise.
214 (sh_mode_needed): Likewise.
215 (sh_mode_after): Likewise.
217 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
218 params "insn", "dep_insn".
219 (hypersparc_adjust_cost): Likewise.
220 (sparc_adjust_cost): Likewise.
222 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
223 param, eliminated checked cast.
224 (spu_sched_adjust_cost): Likewise for first and third params.
226 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
227 params "insn" and "dep_insn" from rtx to rtx_insn *.
229 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
231 2014-08-27 David Malcolm <dmalcolm@redhat.com>
233 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
234 (set_is_load_p): ...this, updating to work on a SET pattern rather
236 (is_store_insn): Rename to...
237 (set_is_store_p): ...this, updating to work on a SET pattern
239 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
240 top of function to where it is needed. Rewrite the bogus
241 condition that checks for "insn" and "dep" being PARALLEL to
242 instead use single_set, introducing locals "insn_set" and
243 "dep_set". Given that we only ever returned "cost" for a non-pair
244 of SETs, bail out early if we don't have a pair of SET.
245 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
246 use the new locals "insn_set" and "dep_set", and update calls to
247 is_load_insn and is_store_insn to be calls to set_is_load_p and
250 2014-08-27 Guozhi Wei <carrot@google.com>
253 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
254 amount before using it.
256 2014-08-27 Richard Biener <rguenther@suse.de>
258 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
259 get_maxval_strlen inside a more useful API.
260 (gimple_fold_builtin_with_strlen): Remove and fold into ...
261 (gimple_fold_builtin): ... caller.
262 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
263 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
264 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
265 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
266 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
267 gimple_fold_builtin_sprintf): Adjust to compute maxval
270 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
273 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
275 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
276 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
277 Anna Tikhonova <anna.tikhonova@intel.com>
278 Ilya Tocar <ilya.tocar@intel.com>
279 Andrey Turetskiy <andrey.turetskiy@intel.com>
280 Ilya Verbin <ilya.verbin@intel.com>
281 Kirill Yukhin <kirill.yukhin@intel.com>
282 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
285 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
286 Use `concat_tg_mode' attribute to determine asm register size.
288 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
289 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
290 Anna Tikhonova <anna.tikhonova@intel.com>
291 Ilya Tocar <ilya.tocar@intel.com>
292 Andrey Turetskiy <andrey.turetskiy@intel.com>
293 Ilya Verbin <ilya.verbin@intel.com>
294 Kirill Yukhin <kirill.yukhin@intel.com>
295 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
298 (define_mode_iterator VI48_AVX512VL): New.
299 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
300 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
301 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
302 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
303 with VI1): Change mode iterator.
304 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
305 with VI_ULOADSTORE_BW_AVX512VL): New.
306 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
307 with VI_ULOADSTORE_F_AVX512VL): Ditto.
308 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
309 with VI1): Change mode iterator.
310 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
311 with VI_ULOADSTORE_BW_AVX512VL): New.
312 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
313 with VI_ULOADSTORE_F_AVX512VL): Ditto.
314 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
315 with VI1): Change mode iterator.
316 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
317 with VI_ULOADSTORE_BW_AVX512VL): New.
318 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
319 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
320 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
321 (define_insn "<avx512>_storedqu<mode>_mask" with
323 (define_insn "<avx512>_storedqu<mode>_mask" with
324 VI12_AVX512VL): Ditto.
326 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
327 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
328 Anna Tikhonova <anna.tikhonova@intel.com>
329 Ilya Tocar <ilya.tocar@intel.com>
330 Andrey Turetskiy <andrey.turetskiy@intel.com>
331 Ilya Verbin <ilya.verbin@intel.com>
332 Kirill Yukhin <kirill.yukhin@intel.com>
333 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
336 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
337 (define_mode_iterator VI48_AVX512BW): New.
338 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
339 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
340 with VI48_AVX2_48_AVX512F): New.
341 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
342 with VI2_AVX512VL): Ditto.
344 2014-08-27 Richard Biener <rguenther@suse.de>
347 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
348 (fold_builtin_3): Do not fold strcat_chk here.
349 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
351 (gimple_fold_builtin): Fold strcat_chk here.
353 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
355 * dwarf2out.h (dwarf2out_decl): Remove prototype.
356 * dwarf2out.c (dwarf2out_decl): Make static.
358 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
360 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
362 2014-08-26 David Malcolm <dmalcolm@redhat.com>
364 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
365 from rtx to rtx_insn *.
366 (cselib_lookup_from_insn): Likewise for final param.
367 (cselib_subst_to_values_from_insn): Likewise.
368 (cselib_add_permanent_equiv): Likewise.
370 * cselib.c (cselib_current_insn): Likewise for this variable.
371 (cselib_subst_to_values_from_insn): Likewise for param "insn".
372 (cselib_lookup_from_insn): Likewise.
373 (cselib_add_permanent_equiv): Likewise for param "insn" and local
374 "save_cselib_current_insn".
375 (cselib_process_insn): Replace use of NULL_RTX with NULL.
377 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
378 from rtx to rtx_insn *.
380 2014-08-26 David Malcolm <dmalcolm@redhat.com>
382 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
385 2014-08-26 David Malcolm <dmalcolm@redhat.com>
387 * df.h (df_dump_insn_problem_function): Strengthen first param of
388 this callback from const_rtx to const rtx_insn *.
389 (struct df_insn_info): Strengthen field "insn" from rtx to
391 (DF_REF_INSN): Eliminate this function, reinstating the older
393 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
394 (df_reg_defined): Likewise.
395 (df_find_use): Likewise.
396 (df_reg_used): Likewise.
397 (df_dump_insn_top): Strengthen param 1 from const_rtx to
399 (df_dump_insn_bottom): Likewise.
400 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
401 (df_insn_debug_regno): Likewise.
402 (debug_df_insn): Likewise.
403 (df_rd_simulate_one_insn): Likewise for param 2.
404 (df_word_lr_simulate_defs): Likewise for param 1.
405 (df_word_lr_simulate_uses): Likewise.
406 (df_md_simulate_one_insn): Likewise for param 2.
407 (df_simulate_find_noclobber_defs): Likewise for param 1.
408 (df_simulate_find_defs): Likewise.
409 (df_simulate_defs): Likewise.
410 (df_simulate_uses): Likewise.
411 (df_simulate_one_insn_backwards): Likewise for param 2.
412 (df_simulate_one_insn_forwards): Likewise.
413 (df_uses_create): Likewise for param 2.
414 (df_insn_create_insn_record): Likewise for param 1.
415 (df_insn_delete): Likewise.
416 (df_insn_rescan): Likewise.
417 (df_insn_rescan_debug_internal): Likewise.
418 (df_insn_change_bb): Likewise.
419 (df_notes_rescan): Likewise.
420 * rtl.h (remove_death): Likewise for param 2.
421 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
423 * sched-int.h (reemit_notes): Strengthen param from rtx to
425 * valtrack.h (propagate_for_debug): Likewise for param 1.
427 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
428 local "tmp_rtx" from const_rtx to const rtx_insn *.
429 * combine.c (remove_death): Strengthen param "insn" from rtx to
431 (move_deaths): Likewise for local "where_dead".
432 * cse.c (delete_trivially_dead_insns): Introduce local
433 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
434 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
436 (df_reg_defined): Likewise.
437 (df_find_use): Likewise.
438 (df_reg_used): Likewise.
439 (df_dump_insn_problem_data): Strengthen param "insn" from
440 const_rtx to const rtx_insn *.
441 (df_dump_insn_top): Likewise.
442 (df_dump_insn_bottom): Likewise.
443 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
444 (df_insn_debug_regno): Likewise.
445 (debug_df_insn): Likewise.
446 (DF_REF_INSN): Delete.
447 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
448 from rtx to rtx_insn *.
449 (df_chain_insn_top_dump): Strengthen param "insn" from
450 const_rtx to const rtx_insn *.
451 (df_chain_insn_bottom_dump): Likewise.
452 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
454 (df_word_lr_simulate_uses): Likewise.
455 (df_print_note): Likewise.
456 (df_remove_dead_and_unused_notes): Likewise.
457 (df_set_unused_notes_for_mw): Likewise.
458 (df_set_dead_notes_for_mw): Likewise.
459 (df_create_unused_note): Likewise.
460 (df_simulate_find_defs): Likewise.
461 (df_simulate_find_uses): Likewise.
462 (df_simulate_find_noclobber_defs): Likewise.
463 (df_simulate_defs): Likewise.
464 (df_simulate_uses): Likewise.
465 (df_simulate_one_insn_backwards): Likewise.
466 (df_simulate_one_insn_forwards): Likewise.
467 (df_md_simulate_one_insn): Likewise.
468 * df-scan.c (df_uses_create): Likewise.
469 (df_insn_create_insn_record): Likewise.
470 (df_insn_delete): Likewise.
471 (df_insn_rescan): Likewise.
472 (df_insn_rescan_debug_internal): Likewise.
473 (df_insn_change_bb): Likewise.
474 (df_notes_rescan): Likewise.
475 (df_refs_add_to_chains): Likewise.
476 (df_insn_refs_verify): Likewise.
477 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
478 when invoking df_insn_delete.
479 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
480 (set_unique_reg_note): Add checked cast.
481 * final.c (cleanup_subreg_operands): Likewise.
482 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
483 "insn" from rtx to rtx_insn *.
484 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
485 "last" from rtx to rtx_insn *.
486 * ira-emit.c (change_regs_in_insn): New function.
487 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
488 Invoke change_regs_in_insn rather than change_regs.
489 * ira.c (update_equiv_regs): Strengthen locals "insn",
490 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
491 for_each_rtx_in_insn rather than for_each_rtx.
492 * recog.c (confirm_change_group): Add checked casts.
493 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
495 (peep2_fill_buffer): Add checked cast.
496 * rtlanal.c (remove_note): Likewise.
497 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
498 locals "next" "end" from rtx to rtx_insn *.
500 2014-08-26 David Malcolm <dmalcolm@redhat.com>
502 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
504 (struct reg_use_data): Likewise for field "insn".
505 (insn_cost): Likewise for param.
506 (real_insn_for_shadow): Likewise for return type and param.
507 (increase_insn_priority): Likewise for param 1.
508 (debug_dependencies): Likewise for both params.
510 * haifa-sched.c (insn_delay): Likewise for param "insn".
511 (real_insn_for_shadow): Likewise for return type and param "insn".
512 (update_insn_after_change): Likewise for param "insn".
513 (recompute_todo_spec): Likewise for param "next" and locals "pro",
515 (insn_cost): Likewise for param "insn".
516 (increase_insn_priority): Likewise.
517 (calculate_reg_deaths): Likewise.
518 (setup_insn_reg_pressure_info): Likewise.
519 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
520 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
521 (model_recompute): Likewise.
522 (must_restore_pattern_p): Likewise for param "next".
523 (model_excess_cost): Likewise for param "insn".
524 (queue_remove): Likewise.
525 (adjust_priority): Likewise for param "prev".
526 (update_register_pressure): Likewise for param "insn".
527 (setup_insn_max_reg_pressure): Likewise for local "insn".
528 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
529 (model_add_to_schedule): Likewise.
530 (model_reset_queue_indices): Likewise for local "insn".
531 (unschedule_insns_until): Strengthen local "recompute_vec" from
532 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
533 "con" from rtx to rtx_insn *.
534 (restore_last_backtrack_point): Likewise for both locals "x". Add
536 (estimate_insn_tick): Likewise for param "insn".
537 (commit_schedule): Likewise for params "prev_head", "tail" and
539 (verify_shadows): Likewise for locals "i1", "i2".
540 (dump_insn_stream): Likewise for params "head", "tail" and locals
542 (schedule_block): Likewise for locals "insn", "x". Add a checked
544 (fix_inter_tick): Likewise for params "head", "tail".
545 (create_check_block_twin): Likewise for local "jump".
546 (haifa_change_pattern): Likewise for param "insn".
547 (haifa_speculate_insn): Likewise.
548 (dump_new_block_header): Likewise for params "head", "tail".
549 (fix_jump_move): Likewise for param "jump".
550 (move_block_after_check): Likewise.
551 (sched_init_insn_luid): Likewise for param "insn".
552 (sched_init_luids): Likewise for local "insn".
553 (insn_luid): Likewise for param "insn".
554 (init_h_i_d): Likewise.
555 (haifa_init_h_i_d): Likewise for local "insn".
556 (haifa_init_insn): Likewise for param "insn".
557 * sched-deps.c (add_dependence): Likewise for local "real_pro",
559 (create_insn_reg_use): Likewise for param "insn".
560 (setup_insn_reg_uses): Likewise. Add a checked cast.
561 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
562 "tail" from rtx to rtx_insn *.
563 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
566 2014-08-26 David Malcolm <dmalcolm@redhat.com>
568 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
569 from rtx to rtx_insn *.
570 (model_add_to_schedule): Likewise for locals "start", "end",
573 2014-08-26 David Malcolm <dmalcolm@redhat.com>
575 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
577 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
578 "to" and locals "insn", "next", "copy". Remove now-redundant
581 2014-08-26 David Malcolm <dmalcolm@redhat.com>
583 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
584 rtx_insn * and param 4 from rtx * to rtx_insn **.
585 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
586 param 2 from rtx * to rtx_insn **.
588 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
589 rtx_insn * and final param from rtx * to rtx_insn **.
591 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
592 from rtx to rtx_insn *.
593 (try_head_merge_bb): Likewise for both locals named "move_upto".
594 * df-problems.c (can_move_insns_across): Likewise for params
595 "from", "to", "across_from", "across_to" and locals "insn",
596 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
598 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
599 from rtx to rtx_insn *.
600 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
601 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
602 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
604 (noce_try_abs): Likewise.
605 (noce_get_condition): Likewise for param "jump". Strengthen param
606 "earliest" from rtx * to rtx_insn **.
607 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
609 (find_cond_trap): Likewise.
610 (dead_or_predicable): Likewise for local "earliest".
611 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
613 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
614 and local "prev". Strengthen param "earliest" from rtx * to
616 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
617 Strengthen param "earliest" from rtx * to rtx_insn **.
619 2014-08-26 David Malcolm <dmalcolm@redhat.com>
621 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
622 "to" and local "insn" from rtx to rtx_insn *.
624 2014-08-26 David Malcolm <dmalcolm@redhat.com>
626 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
627 from rtx to rtx_insn *.
628 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
629 (code_motion_path_driver): Likewise for local "last_insn".
630 (simplify_changed_insns): Likewise for local "insn".
632 2014-08-26 David Malcolm <dmalcolm@redhat.com>
634 * rtl.h (push_to_sequence): Strengthen param from rtx to
636 (push_to_sequence2): Likewise for both params.
637 (delete_insns_since): Likewise for param.
638 (reorder_insns_nobb): Likewise for all three params.
639 (set_new_first_and_last_insn): Likewise for both params.
641 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
642 rtx_insn *. Remove now-redundant cast.
643 (set_last_insn): Likewise.
645 * builtins.c (expand_builtin_return): Strengthen local
646 "call_fusage" from rtx to rtx_insn *.
647 * cfgrtl.c (create_basic_block_structure): Likewise for local
649 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
650 "first", "last" and local "insn".
651 (delete_insns_since): Likewise for param "from".
652 (reorder_insns_nobb): Likewise for params "from", "to", "after"
654 (push_to_sequence): Likewise for param "first" and local "last".
655 (push_to_sequence2): Likewise for params "first" and "last".
656 * lra.c (emit_add3_insn): Likewise for local "last".
657 (lra_emit_add): Likewise.
658 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
660 (process_address_1): Likewise for locals "insn", last".
661 * modulo-sched.c (ps_first_note): Likewise for return type.
662 * optabs.c (expand_binop_directly): Likewise for param "last".
664 2014-08-26 David Malcolm <dmalcolm@redhat.com>
666 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
668 * emit-rtl.c (get_last_insn_anywhere): Likewise.
670 2014-08-26 David Malcolm <dmalcolm@redhat.com>
672 * function.h (struct sequence_stack): Strengthen fields "first"
673 and "last" from rtx to rtx_insn *.
674 (struct emit_status): Likewise for fields "x_first_insn" and
677 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
678 (set_first_insn): Add checked cast.
679 (get_last_insn): Remove now-redundant checked cast.
680 (set_last_insn): Add checked cast.
682 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
683 "saved_first" and "saved_last" from rtx to rtx_insn *.
685 2014-08-26 David Malcolm <dmalcolm@redhat.com>
687 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
688 (unlink_insn_chain): Strengthen both params from rtx to
691 * cfgrtl.c (cfg_layout_function_header): Likewise for this
693 (unlink_insn_chain): Likewise for params "first" and "last".
694 Remove now-redundant checked cast.
695 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
696 (fixup_reorder_chain): Strengthen local "insn" from rtx to
698 * emit-rtl.c (link_insn_into_chain): Likewise for all three
700 (add_insn): Likewise for param "insn" and local "prev".
701 (add_insn_after_nobb): Likewise for both params and local "next".
702 (add_insn_before_nobb): Likewise for both params and local "prev".
703 (add_insn_after): Rename param "after" to "uncast_after",
704 introducing local "after" with another checked cast.
705 (add_insn_before): Rename params "insn" and "before", giving them
706 "uncast_" prefixes, adding the old names back using checked casts.
707 (emit_note_after): Likewise for param "after".
708 (emit_note_before): Likewise for param "before".
709 (emit_label): Add a checked cast.
711 2014-08-26 David Malcolm <dmalcolm@redhat.com>
713 * cselib.h (cselib_record_sets_hook): Strengthen initial param
714 "insn" from rtx to rtx_insn *.
716 * cselib.c (cselib_record_sets_hook): Likewise.
718 * var-tracking.c (add_with_sets): Likewise, renaming back from
719 "uncast_insn" to "insn" and eliminating the checked cast from rtx
722 2014-08-26 David Malcolm <dmalcolm@redhat.com>
724 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
725 and "header_" from rtx to rtx_insn *.
726 (struct basic_block_d): Likewise for field "head_" within "x"
727 field of union basic_block_il_dependent.
728 (BB_HEAD): Drop function...
729 (SET_BB_HEAD): ...and this function in favor of...
730 (BB_HEAD): ...reinstate macro.
731 (BB_END): Drop function...
732 (SET_BB_END): ...and this function in favor of...
733 (BB_END): ...reinstate macro.
734 (BB_HEADER): Drop function...
735 (SET_BB_HEADER): ...and this function in favor of...
736 (BB_HEADER): ...reinstate macro.
738 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
739 (fix_crossing_unconditional_branches): Likewise.
740 * caller-save.c (save_call_clobbered_regs): Likewise.
741 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
742 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
743 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
744 (merge_blocks_move_successor_nojumps): Likewise.
745 (outgoing_edges_match): Update use of for_each_rtx to
746 for_each_rtx_in_insn.
747 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
748 (expand_gimple_cond): Likewise.
749 (expand_gimple_tailcall): Likewise.
750 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
752 (construct_exit_block): Drop use of SET_BB_END.
753 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
755 (delete_insn): Rename param "insn" to "uncast_insn", introducing
756 a new local "insn" with a checked cast to rtx_insn *. Drop use of
757 SET_BB_HEAD and SET_BB_END.
758 (create_basic_block_structure): Drop use of SET_BB_HEAD and
760 (rtl_delete_block): Drop use of SET_BB_HEAD.
761 (rtl_split_block): Drop use of SET_BB_END.
762 (emit_nop_for_unique_locus_between): Likewise.
763 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
764 (block_label): Drop use of SET_BB_HEAD.
765 (fixup_abnormal_edges): Drop use of SET_BB_END.
766 (record_effective_endpoints): Drop use of SET_BB_HEADER.
767 (relink_block_chain): Likewise.
768 (fixup_reorder_chain): Drop use of SET_BB_END.
769 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
770 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
771 rtx_insn **. Drop use of SET_BB_HEADER.
772 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
774 (BB_HEAD): Delete this function.
775 (SET_BB_HEAD): Likewise.
777 (SET_BB_END): Likewise.
778 (BB_HEADER): Likewise.
779 (SET_BB_HEADER): Likewise.
780 * emit-rtl.c (add_insn_after): Rename param "insn" to
781 "uncast_insn", adding a new local "insn" and a checked cast to
782 rtx_insn *. Drop use of SET_BB_END.
783 (remove_insn): Strengthen locals "next" and "prev" from rtx to
784 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
785 (reorder_insns): Drop use of SET_BB_END.
786 (emit_insn_after_1): Strengthen param "first" and locals "last",
787 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
788 (emit_pattern_after_noloc): Add checked cast.
789 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
790 (restore_other_notes): Likewise.
791 (move_insn): Likewise.
792 (sched_extend_bb): Likewise.
793 (fix_jump_move): Likewise.
794 * ifcvt.c (noce_process_if_block): Likewise.
795 (dead_or_predicable): Likewise.
796 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
797 * reg-stack.c (change_stack): Drop use of SET_BB_END.
798 * sel-sched-ir.c (sel_move_insn): Likewise.
799 * sel-sched.c (move_nop_to_previous_block): Likewise.
801 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
803 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
805 2014-08-26 David Malcolm <dmalcolm@redhat.com>
807 * basic-block.h (create_basic_block_structure): Strengthen params
808 1 "head" and 2 "end" from rtx to rtx_insn *.
809 * cfgrtl.c (create_basic_block_structure): Likewise.
810 (rtl_create_basic_block): Update casts from void * to rtx to
811 rtx_insn *, so that we can pass them as rtx_insn * to
812 create_basic_block_structure.
813 * sel-sched-ir.c (sel_create_basic_block): Likewise.
815 2014-08-26 David Malcolm <dmalcolm@redhat.com>
817 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
819 (check_for_inc_dec): Strengthen param "insn" from rtx to
822 * cselib.h (cselib_process_insn): Likewise.
824 * cselib.c (cselib_record_sets): Likewise.
825 (cselib_process_insn): Likewise.
827 * dse.c (struct insn_info): Likewise for field "insn".
828 (check_for_inc_dec_1): Likewise for local "insn".
829 (check_for_inc_dec): Likewise for param "insn".
830 (scan_insn): Likewise.
831 (dse_step1): Likewise for local "insn".
833 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
834 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
836 2014-08-26 David Malcolm <dmalcolm@redhat.com>
838 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
839 from rtx to rtx_insn *.
840 (DEP_PRO): Delete this function and...
841 (SET_DEP_PRO): ...this function in favor of...
842 (DEP_PRO): ...reinstate this macro.
843 (DEP_CON): Delete this function and...
844 (SET_DEP_CON): ...this function in favor of...
845 (DEP_CON): ...reinstate this old macro.
846 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
847 (init_dep): Likewise.
848 (set_priorities): Likewise for both params.
849 (sd_copy_back_deps): Likewise for params 1 and 2.
851 * haifa-sched.c (priority): Likewise for param "insn" and local
853 (set_priorities): Likewise for params "head" and "tail" and local
855 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
857 (add_to_speculative_block): Add a checked cast.
858 (create_check_block_twin): Drop use of SET_DEP_CON.
859 (add_jump_dependencies): Strengthen params "insn" and "jump" from
862 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
863 Drop use of SET_DEP_PRO
864 (init_dep): Strengthen params "pro" and "con" from rtx to
866 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
870 (SET_DEP_PRO): Delete.
871 (SET_DEP_CON): Delete.
873 2014-08-26 David Malcolm <dmalcolm@redhat.com>
875 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
876 from rtx to rtx_insn *.
877 (VINSN_INSN_RTX): Eliminate rvalue function and...
878 (SET_VINSN_INSN): ...lvalue function in favor of...
879 (VINSN_INSN_RTX): reinstate this old macro.
881 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
882 in favor of VINSN_INSN_RTX.
883 (VINSN_INSN_RTX): Delete this function.
884 (SET_VINSN_INSN_RTX): Likewise.
886 2014-08-26 David Malcolm <dmalcolm@redhat.com>
888 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
889 (BND_TO): Delete this function and...
890 (SET_BND_TO): ...this functions in favor of...
891 (BND_TO): ...reinstating this macro.
892 (struct _fence): Strengthen field "executing_insns" from
893 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
894 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
895 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
896 and param "insn" from rtx to insn_t.
897 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
900 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
902 (rtx_vec_t): Likewise.
903 (struct sched_deps_info_def): Strengthen param of "start_insn"
904 callback from rtx to rtx_insn *. Likewise for param "insn2" of
905 "note_mem_dep" callback and first param of "note_dep" callback.
907 * haifa-sched.c (add_to_speculative_block): Strengthen param
908 "insn" from rtx to rtx_insn *.
909 (clear_priorities): Likewise.
910 (calc_priorities): Likewise for local "insn".
912 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
913 Remove redundant checked cast.
914 (haifa_note_mem_dep): Likewise for param "pending_insn".
915 (haifa_note_dep): Likewise for param "elem".
916 (note_mem_dep): Likewise for param "e".
917 (sched_analyze_1): Add checked casts.
918 (sched_analyze_2): Likewise.
920 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
921 from rtx to rtx_insn *.
922 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
923 from vec<rtx> * to vec<rtx_insn *> *.
925 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
927 (flist_add): Strengthen param "executing_insns" from
928 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
929 (advance_deps_context): Remove now-redundant checked cast.
930 (init_fences): Replace uses of NULL_RTX with NULL.
931 (merge_fences): Strengthen params "last_scheduled_insn" and
932 "sched_next" from rtx to rtx_insn * and "executing_insns" from
933 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
934 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
935 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
936 an instruction, rather than doing double-duty as a pattern.
937 (return_nop_to_pool): Update for change of insn_t.
938 (deps_init_id): Remove now-redundant checked cast.
939 (struct sched_scan_info_def): Strengthen param of "init_insn"
940 callback from rtx to insn_t.
941 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
942 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
944 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
945 "end" from rtx to rtx_insn *.
946 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
947 (rtx insn_rtx, bool force_unique_p)
948 (BND_TO): Delete function.
949 (SET_BND_TO): Delete function.
951 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
953 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
954 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
956 (undo_transformations): Likewise for param "insn".
957 (update_liveness_on_insn): Likewise.
958 (compute_live_below_insn): Likewise for param "insn" and local
960 (update_data_sets): Likewise for param "insn".
961 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
962 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
963 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
965 (move_cond_jump): Likewise for param "insn".
966 (move_cond_jump): Drop use of SET_BND_TO.
967 (compute_av_set_on_boundaries): Likewise.
968 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
969 (update_and_record_unavailable_insns): Strengthen local "bb_end"
970 from rtx to rtx_insn *.
971 (maybe_emit_renaming_copy): Likewise for param "insn".
972 (maybe_emit_speculative_check): Likewise.
973 (handle_emitting_transformations): Likewise.
974 (remove_insn_from_stream): Likewise.
975 (code_motion_process_successors): Strengthen local "succ" from rtx
978 2014-08-26 David Malcolm <dmalcolm@redhat.com>
980 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
981 ilist_t, not _xlist_t;
982 (ILIST_INSN): Define in terms of new union field "insn".
983 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
985 (struct _list_node): Add new field "insn" to the union, of type
987 (ilist_add): Replace macro with an inline function, requiring an
989 (ilist_remove): Define this macro directly in terms of
990 _list_remove, rather than indirectly via _xlist_remove.
991 (ilist_clear): Likewise, in terms of _list_clear rather than
993 (ilist_is_in_p): Replace macro with an inline function, requiring
995 (_list_iter_cond_insn): New function.
996 (ilist_iter_remove): Define this macro directly in terms of
997 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
998 (ilist_iterator): Define directly in terms of _list_iterator
999 rather than indirectly through _xlist_iterator.
1000 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1001 than in terms of _FOR_EACH_X.
1002 (FOR_EACH_INSN_1): Likewise.
1004 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1008 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1009 DECL_HARD_REGISTER and return for invalid register specifications.
1010 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1011 DECL_HARD_REGISTER, call expand_one_error_var.
1012 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1013 CC_REGNUM with non-MODE_CC modes.
1014 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1016 2014-08-26 Marek Polacek <polacek@redhat.com>
1019 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1021 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1023 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1024 qi cost; add di cost.
1025 (cortexa57_addrcost_table): Likewise.
1027 2014-08-26 Marek Polacek <polacek@redhat.com>
1030 * expr.c (is_aligning_offset): Remove logical not.
1032 2014-08-26 Marek Polacek <polacek@redhat.com>
1035 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1036 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1038 2014-08-26 Richard Biener <rguenther@suse.de>
1040 PR tree-optimization/62175
1041 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1042 expand possibly trapping operations.
1044 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1046 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1047 "insn" from rtx to rtx_insn *.
1048 (permute_load): Likewise for param "insn".
1049 (permute_store): Likewise.
1050 (handle_special_swappables): Likewise for local "insn".
1051 (replace_swap_with_copy): Likewise for locals "insn" and
1053 (rs6000_analyze_swaps): Likewise for local "insn".
1055 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1057 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1060 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1062 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1063 "note_list" from rtx to rtx_insn *.
1064 (BB_NOTE_LIST): Replace this function and...
1065 (SET_BB_NOTE_LIST): ...this function with...
1066 (BB_NOTE_LIST): ...the former macro implementation.
1068 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1069 local "from_start" from rtx to rtx_insn *. Strengthen param
1070 "to_endp" from rtx * to rtx_insn **.
1072 * haifa-sched.c (concat_note_lists): Likewise.
1073 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1075 (sel_restore_notes): Likewise.
1076 (move_bb_info): Likewise.
1077 (BB_NOTE_LIST): Delete this function.
1078 (SET_BB_NOTE_LIST): Delete this function.
1079 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1080 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1082 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1084 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1085 from rtx * to rtx_insn **.
1086 (reorder2): Likewise.
1087 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1088 from rtx to rtx_insn *.
1090 * doc/tm.texi: Update mechanically for above change to target.def.
1092 * sched-int.h (note_list): Strengthen this variable from rtx to
1094 (remove_notes): Likewise for both params.
1095 (restore_other_notes): Likewise for return type and first param.
1096 (struct ready_list): Strengthen field "vec" from rtx * to
1098 (struct dep_replacement): Strenghten field "insn" from rtx to
1100 (struct deps_desc): Likewise for fields "last_debug_insn",
1102 (struct haifa_sched_info): Likewise for callback field
1103 "can_schedule_ready_p"'s param, for first param of "new_ready"
1104 callback field, for both params of "rank" callback field, for
1105 first field of "print_insn" callback field (with a const), for
1106 both params of "contributes_to_priority" callback, for param
1107 of "insn_finishes_block_p" callback, for fields "prev_head",
1108 "next_tail", "head", "tail", for first param of "add_remove_insn"
1109 callback, for first param of "begin_schedule_ready" callback, for
1110 both params of "begin_move_insn" callback, and for second param
1111 of "advance_target_bb" callback.
1112 (add_dependence): Likewise for params 1 and 2.
1113 (sched_analyze): Likewise for params 2 and 3.
1114 (deps_analyze_insn): Likewise for param 2.
1115 (ready_element): Likewise for return type.
1116 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1117 (try_ready): Strenghten param from rtx to rtx_insn *.
1118 (sched_emit_insn): Likewise for return type.
1119 (record_delay_slot_pair): Likewise for params 1 and 2.
1120 (add_delay_dependencies): Likewise for param.
1121 (contributes_to_priority): Likewise for both params.
1122 (find_modifiable_mems): Likewise.
1124 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1125 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1126 "first_older_only_insn" from rtx to rtx_insn *.
1127 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1130 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1131 "last_scheduled_iter0" from rtx to rtx_insn *.
1132 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1133 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1134 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1135 "insn" from rtx to rtx_insn *.
1136 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1138 (c6x_sched_reorder2): Strengthen param "ready" and locals
1139 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1140 "insn" from rtx to rtx_insn *.
1141 (c6x_variable_issue): Add a checked cast when assigning from insn
1142 to ss.last_scheduled_iter0.
1143 (split_delayed_branch): Strengthen param "insn" and local "i1"
1144 from rtx to rtx_insn *.
1145 (split_delayed_nonbranch): Likewise.
1146 (undo_split_delayed_nonbranch): Likewise for local "insn".
1147 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1148 "entry_after", "end_packet", "head_insn", "tail_insn",
1149 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1150 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1151 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1152 but add a checked cast on loop->start_label. Consolidate calls to
1153 avoid assigning result of gen_spkernel to "insn", now an
1156 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1157 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1159 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1160 rtx_insn **. Strengthen locals "top", "next" from rtx to
1162 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1163 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1164 (add_parameter_dependencies): Strengthen params "call", "head" and
1165 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1166 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1167 (add_dependee_for_func_arg): Likewise for param "arg" and local
1169 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1170 "tail" and locals "insn", "first_arg".
1172 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1173 for params "head", "tail" and locals "insn", "next", "next_tail".
1174 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1175 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1176 "insn", "lowest", "highest" from rtx to rtx_insn *.
1177 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1179 (ia64_sched_reorder2): Likewise.
1181 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1182 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1183 from rtx * to rtx_insn **.
1184 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1186 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1188 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1189 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1192 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1193 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1195 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1196 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1197 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1199 (vr4130_reorder): Likewise.
1200 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1202 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1204 (mips_sched_reorder): Likewise.
1205 (mips_sched_reorder2): Likewise.
1207 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1209 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1210 Strengthen local "tmp" from rtx to rtx_insn *.
1211 (rs6000_sched_reorder2): Likewise.
1213 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1214 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1215 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1216 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1218 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1219 "tmp2" from rtx to rtx_insn *.
1220 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1221 Strengthen local "insn" from rtx to rtx_insn *.
1222 (ready_reorder): Strengthen param "ready" from rtx * to
1223 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1224 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1225 (sh_reorder2): Likewise.
1227 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1228 local "insn" from rtx to rtx_insn *.
1230 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1232 (scheduled_insns): Strengthen this variable from vec<rtx> to
1234 (set_modulo_params): Likewise for locals "i1", "i2".
1235 (record_delay_slot_pair): Likewise for params "i1", "i2".
1236 (add_delay_dependencies): Likewise for param "insn".
1237 (cond_clobbered_p): Likewise.
1238 (recompute_todo_spec): Likewise for local "prev".
1239 (last_scheduled_insn): Likewise for this variable.
1240 (nonscheduled_insns_begin): Likewise.
1241 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1243 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1245 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1246 Strengthen local "insn" from rtx to rtx_insn *.
1247 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1248 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1249 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1250 (ready_remove_first): Likewise for return type and local "t".
1251 (ready_element): Likewise for return type.
1252 (ready_remove): Likewise for return type and local "t".
1253 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1254 (check_clobbered_conditions): Strengthen local "x" from rtx to
1255 rtx_insn *, adding a checked cast.
1256 (schedule_insn): Likewise for param "insn".
1257 (remove_notes): Likewise for params "head", "tail" and locals
1258 "next_tail", "insn", "next".
1259 (struct haifa_saved_data): Likewise for fields
1260 "last_scheduled_insn", "nonscheduled_insns_begin".
1261 (save_backtrack_point): Update for change to field "vec" of
1263 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1265 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1266 from rtx to rtx_insn *
1267 (resolve_dependencies): Strengthen param "insn" from rtx to
1269 (restore_other_notes): Likewise for return type, for param "head"
1270 and local "note_head".
1271 (undo_all_replacements): Likewise for local "insn".
1272 (first_nonscheduled_insn): Likewise for return type and local "insn".
1273 (queue_to_ready): Likewise for local "insn", adding checked casts.
1274 (early_queue_to_ready): Likewise for local "insn".
1275 (debug_ready_list_1): Strengthen local "p" from rtx * to
1277 (move_insn): Strengthen param "insn" and local "note" from rtx to
1279 (insn_finishes_cycle_p): Likewise for param "insn".
1280 (max_issue): Likewise for local "insn".
1281 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1283 (commit_schedule): Strengthen param "prev_head" and local "insn"
1284 from rtx to rtx_insn *
1285 (prune_ready_list): Likewise for local "insn".
1286 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1287 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1288 (set_priorities): Likewise for local "prev_head".
1289 (try_ready): Likewise for param "next".
1290 (fix_tick_ready): Likewise.
1291 (change_queue_index): Likewise.
1292 (sched_extend_ready_list): Update for change to field "vec" of
1294 (generate_recovery_code): Strengthen param "insn" from rtx to
1296 (begin_speculative_block): Likewise.
1297 (create_check_block_twin): Likewise for param "insn" and locals
1298 "label", "check", "twin". Introduce local "check_pat" to avoid
1299 "check" being used as a plain rtx before being used as an insn.
1300 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1301 extracting elements from ready_list.
1302 (sched_remove_insn): Strengthen param "insn" from rtx to
1304 (sched_emit_insn): Likewise for return type.
1305 (ready_remove_first_dispatch): Likewise for return type and local
1308 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1310 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1313 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1314 from rtx to rtx_insn *.
1315 (add_dependence_list): Likewise for param "insn". Add a checked
1317 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1318 to rtx_insn *. Strengthen param "list_p" from rtx * to
1320 (chain_to_prev_insn): Strengthen param "insn" and locals
1321 "prec_nonnote", "i" from rtx to rtx_insn *.
1322 (flush_pending_lists): Likewise for param "insn".
1323 (cur_insn): Likewise for this variable.
1324 (haifa_start_insn): Add a checked cast.
1325 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1326 (sched_analyze_reg): Likewise for param "insn".
1327 (sched_analyze_1): Likewise.
1328 (sched_analyze_2): Likewise. Add checked casts.
1329 (sched_analyze_insn): Likewise. Also for local "prev".
1330 (deps_analyze_insn): Likewise for param "insn".
1331 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1332 (add_dependence_1): Likewise for params "insn", "elem".
1333 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1334 (parse_add_or_inc): Likewise for param "insn".
1335 (find_inc): Likewise for local "inc_cand".
1336 (find_modifiable_mems): Likewise for params "head", "tail" and
1337 locals "insn", "next_tail".
1339 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1340 (begin_schedule_ready): Likewise for param "insn".
1341 (begin_move_insn): Likewise for params "insn" and "last".
1342 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1344 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1345 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1346 (ebb_add_remove_insn): Likewise for param "insn".
1347 (advance_target_bb): Likewise.
1349 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1351 (check_live): Likewise for param "insn".
1352 (init_ready_list): Likewise for local "insn".
1353 (can_schedule_ready_p): Likewise for param "insn".
1354 (begin_schedule_ready): Likewise.
1355 (new_ready): Likewise for param "next".
1356 (rgn_print_insn): Likewise for param "insn".
1357 (rgn_rank): Likewise for params "insn1", "insn2".
1358 (contributes_to_priority): Likewise for params "next", "insn".
1359 (rgn_insn_finishes_block_p): Likewise for param "insn".
1360 (add_branch_dependences): Likewise for params "head", "tail" and
1361 locals "insn", "last".
1362 (rgn_add_remove_insn): Likewise for param "insn".
1363 (advance_target_bb): Likewise.
1365 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1366 const_rtx to const rtx_insn *.
1368 * sel-sched-dump.h (sel_print_insn): Likewise.
1370 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1371 (deps_init_id): Likewise.
1373 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1374 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1377 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1379 * output.h (final_start_function): Strengthen param 1 from rtx to
1382 * final.c (final_start_function): Likewise, renaming back from
1383 "uncast_first" to "first", and dropping the checked cast from rtx
1386 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1388 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1389 * final.c (final): Likewise. Rename param back from
1390 "uncast_first" to "first" and eliminate the checked cast from rtx
1393 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1395 * output.h (shorten_branches): Strengthen param from rtx to
1398 * final.c (shorten_branches): Likewise, renaming param back from
1399 "uncast_first" to "first", and dropping the checked cast from rtx
1402 * genattr.c (gen_attr): Likewise when writing out the prototype of
1405 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1407 * sched-int.h (struct haifa_sched_info): Strengthen fields
1408 "prev_head" and "next_tail" from rtx to rtx_insn *.
1410 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1412 * rtl.h (rtx_jump_table_data::get_labels): New method.
1413 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1414 with use of the new rtx_jump_table_data::get_labels method.
1415 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1416 to rtx_jump_table_data *. Simplify by using get_labels method.
1417 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1418 a dyn_cast, introducing local "table", using it to replace
1419 label-lookup logic with a get_labels method call.
1420 (patch_jump_insn): Simplify using get_labels method.
1421 * dwarf2cfi.c (create_trace_edges): Likewise.
1422 * rtlanal.c (label_is_jump_target_p): Likewise.
1424 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1426 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1429 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1430 (unshare_all_rtl_again): Likewise, also for local "p".
1432 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1434 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1436 * cfgrtl.c (delete_insn_and_edges): Likewise.
1438 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1440 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1441 from rtx to rtx_insn *.
1443 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1445 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1447 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1448 locals "returnjump", "epilogue_end", "insn", "next".
1450 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1451 "returnjump" from rtx * to rtx_insn **.
1452 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1454 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1456 * basic-block.h (struct edge_def). Strengthen "r" within
1457 union edge_def_insns from rtx to rtx_insn *.
1459 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1460 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1462 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1463 from rtx to rtx_insn *.
1464 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1466 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1467 (reg_used_on_edge): Likewise.
1468 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1469 (gt_pch_nx): New overload for rtx_insn *&.
1470 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1471 from rtx to rtx_insn *.
1473 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1475 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1476 from rtx to rtx_insn *.
1477 (BB_FOOTER): Replace function with access macro.
1478 (SET_BB_FOOTER): Delete.
1480 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1482 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1483 (emit_barrier_after_bb): Likewise.
1484 (record_effective_endpoints): Likewise.
1485 (relink_block_chain): Likewise.
1486 (fixup_fallthru_exit_predecessor): Likewise.
1487 (cfg_layout_duplicate_bb): Likewise.
1488 (cfg_layout_split_block): Likewise.
1489 (cfg_layout_delete_block): Likewise.
1490 (cfg_layout_merge_blocks): Likewise.
1491 (BB_FOOTER): Delete function.
1492 (SET_BB_FOOTER): Delete function.
1493 * combine.c (update_cfg_for_uncondjump): Replace uses of
1494 SET_BB_FOOTER with BB_FOOTER.
1496 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1498 * except.h (struct eh_landing_pad_d): Strengthen field
1499 "landing_pad" from rtx to rtx_code_label *.
1501 * except.c (sjlj_emit_dispatch_table): Likewise for param
1503 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1505 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1507 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1508 first param from rtx to rtx_insn *.
1509 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1510 field "set_frame_ptr_insn".
1511 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1512 "csend" from rtx to rtx_code_label *.
1513 (xtensa_expand_atomic): Likewise for local "csloop".
1514 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1516 (xtensa_call_tls_desc): Likewise for return type and locals
1517 "call_insn", "insns".
1518 (xtensa_legitimize_tls_address): Likewise for local "insns".
1519 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1521 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1523 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1524 first param from rtx to rtx_insn *.
1525 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1528 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1530 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1531 Strengthen param 1 from rtx to rtx_insn *.
1532 (tilepro_output_cbranch): Likewise.
1533 (tilepro_adjust_insn_length): Likewise.
1534 (tilepro_final_prescan_insn): Likewise for sole param.
1536 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1537 Likewise for local "last".
1538 (cbranch_predicted_p): Likewise for param "insn".
1539 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1540 (tilepro_output_cbranch_with_opcode): Likewise.
1541 (tilepro_output_cbranch): Likewise.
1542 (frame_emit_load): Likewise for return type and locals "seq",
1544 (emit_sp_adjust): Likewise for return type and local "insn".
1545 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1547 (tilepro_adjust_insn_length): Likewise for param "insn".
1548 (next_insn_to_bundle): Likewise for return type and params
1550 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1551 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1553 (match_addli_pcrel): Likewise for param "insn".
1554 (replace_addli_pcrel): Likewise.
1555 (match_auli_pcrel): Likewise.
1556 (replace_auli_pcrel): Likewise.
1557 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1559 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1560 "queue", "next_queue", "prev".
1561 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1562 (tilepro_final_prescan_insn): Likewise for param "insn".
1564 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1566 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1567 Strengthen param 1 from rtx to rtx_insn *.
1568 (tilegx_output_cbranch): Likewise.
1569 (tilegx_adjust_insn_length): Likewise.
1570 (tilegx_final_prescan_insn): Likewise for sole param.
1572 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1574 (cbranch_predicted_p): Likewise for param "insn".
1575 (tilegx_output_simple_cbranch_with_opcode): Likewise.
1576 (tilegx_output_cbranch_with_opcode): Likewise.
1577 (tilegx_output_cbranch): Likewise.
1578 (frame_emit_load): Likewise for return type.
1579 (set_frame_related_p): Likewise for locals "seq", "insn".
1580 (emit_sp_adjust): Likewise for return type, and for local "insn".
1581 Introduce local "pat" for use in place of "insn" where the latter
1582 isn't an instruction.
1583 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
1584 from rtx to rtx_insn *.
1585 (tilegx_adjust_insn_length): Likewise for param "insn".
1586 (next_insn_to_bundle): Likewise for return type and params "r" and
1588 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
1590 (replace_insns): Likewise for params "old_insn", "new_insns".
1591 (replace_mov_pcrel_step1): Likewise for param "insn" and local
1593 (replace_mov_pcrel_step2): Likewise.
1594 (replace_mov_pcrel_step3): Likewise.
1595 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
1597 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1598 "queue", "next_queue", "prev".
1599 (tilegx_output_mi_thunk): Likewise for local "insn".
1600 (tilegx_final_prescan_insn): Likewise for param "insn".
1602 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1604 * config/spu/spu.c (frame_emit_store): Strengthen return type from
1606 (frame_emit_load): Likewise.
1607 (frame_emit_add_imm): Likewise, also for local "insn".
1608 (spu_expand_prologue): Likewise for local "insn".
1609 (struct spu_bb_info): Likewise for field "prop_jump".
1610 (emit_nop_for_insn): Likewise for param "insn" and local
1612 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
1614 (spu_emit_branch_hint): Likewise for params "before", "branch" and
1615 locals "hint", "insn".
1616 (get_branch_target): Likewise for param "branch".
1617 (insn_clobbers_hbr): Likewise for param "insn".
1618 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
1619 locals "insn", "before_4", "before_16".
1620 (insert_hbrp): Likewise for local "insn".
1621 (spu_machine_dependent_reorg): Likewise for locals "branch",
1622 "insn", "next", "bbend".
1623 (uses_ls_unit): Likewise for param "insn".
1624 (get_pipe): Likewise.
1625 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
1626 introducing a checked cast.
1627 (spu_sched_adjust_cost): Likewise for params "insn" and
1629 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
1630 (spu_sms_res_mii): Likewise.
1632 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1634 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
1635 from rtx to rtx_insn *.
1636 (output_cbranch): Likewise for param 6.
1637 (output_return): Likewise for param 1.
1638 (output_sibcall): Likewise.
1639 (output_v8plus_shift): Likewise.
1640 (output_v8plus_mult): Likewise.
1641 (output_v9branch): Likewise for param 7.
1642 (output_cbcond): Likewise for param 3.
1644 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
1646 (sparc_legitimize_pic_address): Likewise.
1647 (sparc_emit_call_insn): Likewise.
1648 (emit_save_or_restore_regs): Likewise.
1649 (emit_window_save): Likewise for return type and local "insn".
1650 (sparc_expand_prologue): Likewise for local "insn".
1651 (sparc_flat_expand_prologue): Likewise.
1652 (output_return): Likewise for param "insn".
1653 (output_sibcall): Likewise for param "insn" and local "delay".
1654 (output_ubranch): Likewise for param "insn".
1655 (output_cbranch): Likewise.
1656 (output_cbcond): Likewise.
1657 (output_v9branch): Likewise.
1658 (output_v8plus_shift): Likewise.
1659 (sparc_output_mi_thunk): Likewise for local "insn".
1660 (get_some_local_dynamic_name): Likewise.
1661 (output_v8plus_mult): Likewise for param "insn".
1663 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1665 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
1666 from rtx to rtx_insn *.
1667 (output_branchy_insn): Likewise for param 3.
1668 (output_far_jump): Likewise for param 1.
1669 (final_prescan_insn): Likewise.
1670 (sh_insn_length_adjustment): Likewise for sole param.
1672 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
1673 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
1675 (sh_emit_compare_and_set): Likewise for local "lab".
1676 (output_far_jump): Strengthen param "insn" and local "prev" from
1678 (output_branchy_insn): Likewise for param "insn" and local
1680 (output_ieee_ccmpeq): Likewise for param "insn".
1681 (struct label_ref_list_d): Strengthen field "label" from rtx to
1683 (pool_node): Likewise.
1684 (pool_window_label): Likewise for this global.
1685 (add_constant): Likewise for return type and locals "lab", "new_rtx".
1686 (dump_table): Strengthen params "start", "barrier" and local
1687 "scan" from rtx to rtx_insn *.
1688 (broken_move): Likewise for param "insn".
1689 (untangle_mova): Likewise for params "first_mova" and "new_mova".
1690 Strengthen param "first_mova" from rtx * to rtx_insn **.
1691 (mova_p): Likewise for param "insn".
1692 (fixup_mova): Likewise for param "mova".
1693 (find_barrier): Likewise for return type, params "mova" and
1694 "from", and locals "barrier_before_mova", "found_barrier",
1695 "good_barrier", "orig", "last_symoff", "next". Strengthen local
1696 "label" from rtx to rtx_code_label *.
1697 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
1699 (sh_reorg): Likewise for locals "link", "scan", "barrier".
1700 (split_branches): Likewise for param "first" and local "insn".
1701 (final_prescan_insn): Likewise for param "insn".
1702 (sequence_insn_p): Likewise for locals "prev", "next".
1703 (sh_insn_length_adjustment): Likewise for param "insn".
1704 (sh_can_redirect_branch): Likewise for local "insn".
1705 (find_r0_life_regions): Likewise for locals "end", "insn".
1706 (sh_output_mi_thunk): Likewise for local "insns".
1708 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1710 * config/score/score.c (score_output_mi_thunk): Strengthen local
1711 "insn" from rtx to rtx_insn *.
1712 (score_prologue): Likewise.
1714 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1716 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
1717 1 from rtx to rtx_insn *.
1718 (s390_emit_jump): Likewise for return type.
1719 (s390_emit_call): Likewise.
1720 (s390_load_got): Likewise.
1722 * config/s390/s390.c (last_scheduled_insn): Likewise for this
1724 (s390_match_ccmode): Likewise for param "insn".
1725 (s390_emit_jump): Likewise for return type.
1726 (s390_split_branches): Likewise for local "label".
1727 (struct constant): Strengthen field "label" from rtx to
1729 (struct constant_pool): Likewise for field "label". Strengthen
1730 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
1732 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
1734 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
1735 (s390_end_pool): Likewise.
1736 (s390_dump_pool): Likewise for local "insn".
1737 (s390_mainpool_start): Likewise.
1738 (s390_chunkify_start): Likewise.
1739 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
1740 with insns. Strengthen locals "label", "jump", "barrier", "next",
1741 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
1742 (s390_chunkify_finish): Strengthen local "insn" from rtx to
1744 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
1745 "jump", "label", "next_insn".
1746 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
1747 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
1749 (s390_load_got): Likewise for return type and local "insns".
1750 (s390_save_gprs_to_fprs): Likewise for local "insn".
1751 (s390_restore_gprs_from_fprs): Likewise.
1752 (pass_s390_early_mach::execute): Likewise.
1753 (s390_emit_prologue): Likewise for local "insns".
1754 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
1756 (s390_emit_call): Strengthen return type and local "insn" from
1758 (s390_emit_tpf_eh_return): Likewise for local "insn".
1759 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
1760 "next_insn", introducing locals "s_pat", "rpat" to allow this.
1761 (s390_fix_long_loop_prediction): Likewise for param "insn" and
1763 (s390_non_addr_reg_read_p): Likewise for param "insn".
1764 (find_cond_jump): Likewise for return type and param "insn".
1765 (s390_swap_cmp): Likewise for param "insn".
1766 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
1767 "prev_insn", "next_insn".
1768 (s390_reorg): Likewise for locals "insn", "target".
1769 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
1770 (s390_sched_variable_issue): For now, rename param "insn" to
1771 "uncast_insn", introducing a checked cast.
1772 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
1774 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
1775 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
1777 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1779 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
1780 param from rtx to rtx_insn *.
1781 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
1783 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1785 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
1786 4 from rtx to rtx_insn *.
1787 (rs6000_final_prescan_insn): Likewise for first param.
1788 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
1790 (rs6000_get_some_local_dynamic_name): Likewise.
1791 (output_cbranch): Likewise for param "insn".
1792 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
1793 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
1794 (rs6000_emit_allocate_stack): Likewise for local "insn".
1795 (load_cr_save): Likewise.
1796 (restore_saved_cr): Likewise.
1797 (restore_saved_lr): Likewise.
1798 (emit_cfa_restores): Likewise.
1799 (rs6000_output_function_epilogue): Likewise for locals "insn" and
1800 "deleted_debug_label".
1801 (rs6000_output_mi_thunk): Likewise for local "insn".
1802 (rs6000_final_prescan_insn): Likewise for param "insn".
1804 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1806 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
1807 Strengthen param "insn" from rtx to rtx_insn *.
1808 * config/picochip/picochip.c (picochip_current_prescan_insn):
1809 Likewise for this variable.
1810 (picochip_final_prescan_insn): Likewise for param "insn".
1812 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1814 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
1815 from rtx to rtx_insn *.
1816 (pa_output_indirect_call): Likewise.
1817 (pa_adjust_insn_length): Likewise.
1818 (pa_attr_length_millicode_call): Likewise.
1819 (pa_attr_length_call): Likewise.
1820 (pa_attr_length_indirect_call): Likewise.
1822 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
1824 (pa_attr_length_millicode_call): Likewise.
1825 (pa_attr_length_call): Likewise.
1826 (pa_output_call): Likewise.
1827 (pa_attr_length_indirect_call): Likewise.
1828 (pa_output_indirect_call): Likewise.
1830 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1832 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
1833 Strengthen first param from rtx to rtx_insn *.
1834 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
1837 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1839 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
1840 type from rtx to rtx_insn *.
1841 (mips_expand_call): Likewise.
1842 (mips_adjust_insn_length): Likewise for first param.
1843 (mips_output_conditional_branch): Likewise.
1844 (mips_output_order_conditional_branch): Likewise.
1845 (mips_final_prescan_insn): Likewise.
1847 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
1848 rtx_insn * for the SEQUENCE case.
1849 (SEQ_END): Likewise.
1850 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
1851 (mips_emit_call_insn): Likewise, also for local "insn".
1852 (mips16_gp_pseudo_reg): Likewise for local "scan".
1853 (mips16_build_call_stub): Likewise for return type and for local
1854 "insn". Introduce a new local "pattern" so that "insn" can indeed
1856 (mips_expand_call): Strengthen return type and local "insn" from
1858 (mips_block_move_loop): Strengthen local "label" from rtx to
1860 (mips_expand_synci_loop): Likewise for locals "label",
1862 (mips_set_frame_expr): Strengthen local "insn" from rtx to
1864 (mips16e_collect_argument_saves): Likewise for locals "insn",
1866 (mips_find_gp_ref): Likewise for param of callback for "pred"
1867 param, and for local "insn".
1868 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
1869 (mips_insn_has_flexible_gp_ref_p): Likewise.
1870 (mips_epilogue_emit_cfa_restores): Likewise for return type and
1872 (mips_epilogue_set_cfa): Likewise for local "insn".
1873 (mips_expand_epilogue): Likewise.
1874 (mips_adjust_insn_length): Likewise for param "insn".
1875 (mips_output_conditional_branch): Likewise.
1876 (mips_output_order_conditional_branch): Likewise.
1877 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
1878 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
1879 "falu2_turn_enabled_insn".
1880 (mips_builtin_branch_and_move): Strengthen locals "true_label",
1881 "done_label" from rtx to rtx_code_label *.
1882 (struct mips16_constant): Likewise for field "label".
1883 (mips16_add_constant): Likewise for return type.
1884 (mips16_emit_constants_1): Strengthen return type and param "insn"
1885 from rtx to rtx_insn *.
1886 (mips16_emit_constants): Likewise for param "insn".
1887 (mips16_insn_length): Likewise.
1888 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
1889 to rtx_code_label *.
1890 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
1891 from rtx to rtx_insn *.
1892 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
1893 "jump". Strengthen local "label" from rtx to rtx_code_label *.
1894 (r10k_simplify_address): Strengthen param "insn" and local
1895 "def_insn" from rtx to rtx_insn *.
1896 (r10k_safe_address_p): Strengthen param "insn" from rtx to
1898 (r10k_needs_protection_p_1): Update target type of cast of data
1899 from to rtx to rtx_insn *.
1900 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
1901 rtx * to rtx_insn **.
1902 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
1904 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
1905 (mips_call_expr_from_insn): Likewise for param "insn".
1906 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
1907 (mips_find_pic_call_symbol): Likewise for param "insn".
1908 (mips_annotate_pic_calls): Likewise for local "insn".
1909 (mips_sim_insn): Likewise for this variable.
1910 (struct mips_sim): Likewise for field "insn" within elements of
1912 (mips_sim_wait_reg): Likewise for param "insn".
1913 (mips_sim_wait_regs): Likewise.
1914 (mips_sim_wait_units): Likewise.
1915 (mips_sim_wait_insn): Likewise.
1916 (mips_sim_issue_insn): Likewise.
1917 (mips_sim_finish_insn): Likewise.
1918 (mips_seq_time): Likewise for param "seq" and local "insn".
1919 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
1920 locals "first", "second".
1921 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
1922 "last", "last2", "next".
1923 (mips_avoid_hazard): Likewise for params "after", "insn".
1924 (mips_reorg_process_insns): Likewise for locals "insn",
1925 "last_insn", "subinsn", "next_insn".
1926 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
1927 (mips16_split_long_branches): Likewise for locals "insn" "jump",
1929 (mips_output_mi_thunk): Likewise for local "insn".
1930 (mips_final_prescan_insn): Likewise for param "insn".
1932 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1934 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
1935 Strengthen return type and local "insns" from rtx to rtx_insn *.
1936 (microblaze_legitimize_tls_address): Likewise for local "insns".
1937 (microblaze_block_move_loop): Strengthen local "label" from rtx
1938 to rtx_code_label *.
1939 (microblaze_expand_prologue): Strengthen two locals named "insn"
1940 from rtx to rtx_insn *.
1941 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
1942 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
1943 "insn". Strengthen locals "div_label", "div_end_label" from rtx
1944 to rtx_code_label *.
1946 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1948 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
1949 param from rtx to rtx_insn *.
1950 (mep_reuse_lo): Likewise for third param.
1951 (mep_use_post_modify_p): Likewise for first param.
1952 (mep_core_address_length): Likewise.
1953 (mep_cop_address_length): Likewise.
1954 (mep_final_prescan_insn): Likewise.
1955 (mep_store_data_bypass_p): Likewise for both params.
1956 (mep_mul_hilo_bypass_p): Likewise.
1957 (mep_ipipe_ldc_p): Likewise for param.
1959 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
1960 (mep_rewrite_mult): Likewise.
1961 (mep_rewrite_mulsi3): Likewise.
1962 (mep_rewrite_maddsi3): Likewise.
1963 (mep_reuse_lo_p_1): Likewise.
1964 (mep_reuse_lo_p): Likewise.
1965 (mep_frame_expr): Likewise.
1966 (mep_make_parallel): Likewise for both params.
1967 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
1969 (mep_use_post_modify_p): Likewise for param "insn".
1970 (mep_core_address_length): Likewise.
1971 (mep_cop_address_length): Likewise.
1972 (mep_reg_set_in_function): Likewise for local "insn".
1973 (mep_asm_without_operands_p): Likewise.
1974 (F): Likewise for return type and param "x".
1975 (add_constant): Likewise for local "insn".
1976 (maybe_dead_move): Likewise for return type and local "insn".
1977 (mep_expand_prologue): Likewise for local "insn".
1978 (mep_final_prescan_insn): Likewise for param "insn".
1979 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
1980 "next", "follow", "x".
1981 (mep_insert_repeat_label_last): Likewise for return type, param
1982 "last_insn", and locals "next", "prev". Strengthen param "label"
1983 from rtx to rtx_code_label *.
1984 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
1986 (struct mep_doloop_end): Likewise for fields "insn" and
1988 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
1989 Strengthen local "repeat_label" from rtx to rtx_code_label *.
1990 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
1992 (mep_invert_branch): Likewise for params "insn" and "after".
1993 (mep_reorg_erepeat): Likewise for param "insns" and locals
1994 "insn", "prev", "new_last", "barrier", "user". Strengthen local
1995 "l" from rtx to rtx_code_label *.
1996 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
1997 from rtx to rtx_insn *.
1998 (mep_reorg_addcombine): Likewise for param "insns" and locals
2000 (add_sp_insn_p): Likewise for param "insn".
2001 (mep_reorg_noframe): Likewise for param "insns" and locals
2002 "start_frame_insn", "end_frame_insn", "next".
2003 (mep_reorg): Likewise for local "insns".
2004 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2006 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2007 (mep_mul_hilo_bypass_p): Likewise.
2008 (mep_ipipe_ldc_p): Likewise for param "insn".
2009 (mep_make_bundle): Likewise for return type, param "cop" and local
2010 "insn", splitting out the latter into a new local "seq" for when it
2011 is a SEQUENCE rather than an insn.
2012 (core_insn_p): Likewise for param "insn".
2013 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2014 "last", "first", "note", "prev", "core_insn".
2016 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2018 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2020 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2021 (m68k_final_prescan_insn): Likewise for first param.
2023 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2024 (m68k_set_frame_related): Likewise for param "insn".
2025 (output_btst): Likewise for param "insn".
2026 (m68k_final_prescan_insn): Likewise.
2027 (m68k_move_to_reg): Likewise for local "insn".
2028 (m68k_call_tls_get_addr): Likewise for local "insns".
2029 (m68k_call_m68k_read_tp): Likewise.
2030 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2031 (m68k_output_mi_thunk): Likewise for local "insn".
2033 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2035 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2036 first param from rtx to rtx_insn *.
2037 (iq2000_adjust_insn_length): Likewise.
2038 (iq2000_output_conditional_branch): Likewise.
2039 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2040 "insn" and local "nop_insn".
2041 (iq2000_annotate_frame_insn): Likewise for param "insn".
2042 (iq2000_expand_prologue): Likewise for both locals "insn".
2043 (iq2000_adjust_insn_length): Likewise for param "insn".
2044 (iq2000_output_conditional_branch): Likewise.
2046 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2048 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2049 "insns" from rtx to rtx_insn *.
2050 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2051 (struct spill_fill_data): Likewise for field "init_after" and for
2052 elements of array field "prev_insn".
2053 (spill_restore_mem): Likewise for locals "insn", "first".
2054 (do_spill): Likewise for local "insn".
2055 (do_restore): Likewise.
2056 (ia64_expand_prologue): Likewise.
2057 (ia64_expand_epilogue): Likewise.
2058 (emit_insn_group_barriers): Likewise for locals "insn",
2060 (emit_all_insn_group_barriers): Likewise for locals "insn",
2062 (dfa_stop_insn): Likewise for this global.
2063 (dfa_pre_cycle_insn): Likewise.
2064 (ia64_nop): Likewise.
2065 (final_emit_insn_group_barriers): Likewise for locals "insn",
2067 (emit_predicate_relation_info): Likewise for locals "head", "n",
2069 (ia64_reorg): Likewise for local "insn".
2070 (ia64_output_mi_thunk): Likewise.
2071 (expand_vec_perm_interleave_2): Likewise for local "seq".
2073 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2075 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2076 param 1 "insn" from rtx to rtx_insn *.
2077 (ix86_use_lea_for_mov): Likewise.
2078 (ix86_avoid_lea_for_addr): Likewise.
2079 (ix86_split_lea_for_addr): Likewise.
2080 (ix86_lea_for_add_ok): Likewise.
2081 (ix86_output_call_insn): Likewise.
2083 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2084 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2085 (ix86_output_function_epilogue): Likewise for locals "insn",
2086 "deleted_debug_label".
2087 (legitimize_tls_address): Likewise for local "insn".
2088 (get_some_local_dynamic_name): Likewise.
2089 (increase_distance): Likewise for params "prev", "next".
2090 (distance_non_agu_define_in_bb): Likewise for params "insn",
2091 "start" and locals "prev", "next".
2092 (distance_non_agu_define): Likewise for param "insn".
2093 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2094 locals "next", "prev".
2095 (distance_agu_use): Likewise for param "insn".
2096 (ix86_lea_outperforms): Likewise.
2097 (ix86_ok_to_clobber_flags): Likewise.
2098 (ix86_avoid_lea_for_add): Likewise.
2099 (ix86_use_lea_for_mov): Likewise.
2100 (ix86_avoid_lea_for_addr): Likewise.
2101 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2102 (ix86_split_lea_for_addr): Likewise for param "insn".
2103 (ix86_lea_for_add_ok): Likewise for param "insn".
2104 (ix86_expand_carry_flag_compare): Likewise for local
2106 (ix86_expand_int_movcc): Likewise.
2107 (ix86_output_call_insn): Likewise for param "insn".
2108 (ix86_output_call_insn): Likewise for local "i".
2109 (x86_output_mi_thunk): Introduce local "insn", using it in place
2110 of "tmp" when dealing with insns.
2111 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2113 (ix86_pad_returns): Likewise for locals "ret", "prev".
2114 (ix86_count_insn_bb): Likewise for local "insn".
2115 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2116 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2117 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2118 (expand_vec_perm_interleave2): Likewise for local "seq".
2119 (expand_vec_perm_vperm2f128_vblend): Likewise.
2120 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2121 call to for_each_rtx with for_each_rtx_in_insn.
2123 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2125 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2126 "label" from rtx to rtx_code_label *.
2127 (ix86_expand_prologue): Likewise.
2128 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2130 (ix86_split_idivmod): Likewise for locals "end_label" and
2132 (ix86_expand_branch): Likewise for local "label2".
2133 (ix86_expand_aligntest): Likewise for return type and local "label".
2134 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2136 (expand_movmem_epilogue): Likewise for the various locals named
2138 (expand_setmem_epilogue): Likewise.
2139 (expand_small_movmem_or_setmem): Likewise for local "label".
2140 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2141 Strengthen param "done_label" from rtx * to rtx_code_label **.
2142 Strengthen locals "loop_label" and "label" from rtx to
2144 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2145 Likewise for locals "loop_label", "label".
2146 (ix86_expand_set_or_movmem): Likewise for locals "label",
2147 "jump_around_label", "hot_label".
2148 (ix86_expand_strlensi_unroll_1): Likewise for locals
2149 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2151 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2152 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2153 "label2", "jump_label".
2154 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2156 (ix86_expand_lfloorceil): Likewise for local "label".
2157 (ix86_expand_rint): Likewise.
2158 (ix86_expand_floorceildf_32): Likewise.
2159 (ix86_expand_floorceil): Likewise.
2160 (ix86_expand_rounddf_32): Likewise.
2161 (ix86_expand_trunc): Likewise.
2162 (ix86_expand_truncdf_32): Likewise.
2163 (ix86_expand_round): Likewise.
2165 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2167 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2168 first param from rtx to rtx_insn *.
2169 (h8300_insn_length_from_table): Likewise.
2170 * config/h8300/h8300.c (F): Likewise for return type and param
2172 (Fpa): Add a checked cast to rtx_insn *.
2173 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2175 (final_prescan_insn): Likewise for param "insn".
2176 (h8300_binary_length): Likewise.
2177 (h8300_insn_length_from_table): Likewise.
2179 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2181 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2182 Strengthen first param "insn" from rtx to rtx_insn *.
2184 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2186 (frame_insn): Likewise for return type. Introduce local "insn"
2187 for use in place of local "x" for use as an rtx_insn *.
2188 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2189 (epiphany_expand_prologue): Likewise for local "insn".
2190 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2191 * config/epiphany/resolve-sw-modes.c
2192 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2195 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2197 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2198 param from rtx to rtx_insn *.
2199 (c6x_final_prescan_insn): Likewise for first param.
2201 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2202 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2203 (c6x_expand_compare): Strengthen local "insns" from rtx to
2205 (c6x_get_unit_specifier): Likewise for param "insn".
2206 (c6x_print_unit_specifier_field): Likewise.
2207 (c6x_final_prescan_insn): Likewise.
2208 (emit_add_sp_const): Likewise for local "insn".
2209 (c6x_expand_prologue): Likewise.
2211 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2213 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2214 param 1 from rtx to rtx_insn *.
2215 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2216 the various locals named "insn".
2217 (expand_epilogue_reg_restore): Likewise.
2218 (frame_related_constant_load): Likewise.
2219 (add_to_reg): Likewise.
2220 (emit_link_insn): Likewise.
2221 (do_link): Likewise.
2222 (expand_interrupt_handler_prologue): Likewise.
2223 (branch_dest): Likewise for param "branch".
2224 (asm_conditional_branch): Likewise for param "insn".
2225 (gen_one_bundle): Likewise for elements of param "slot" and local
2227 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2228 elements of local "slot".
2229 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2230 "queue", "next_queue", "prev".
2231 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2232 (add_sched_insns_for_speculation): Likewise for local "insn".
2234 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2236 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2237 from rtx to rtx_insn *.
2238 (output_movhi): Likewise.
2239 (output_movsisf): Likewise.
2240 (avr_out_tstsi): Likewise.
2241 (avr_out_tsthi): Likewise.
2242 (avr_out_tstpsi): Likewise.
2243 (avr_out_compare): Likewise.
2244 (avr_out_compare64): Likewise.
2245 (avr_out_movpsi): Likewise.
2246 (ashlqi3_out): Likewise.
2247 (ashlhi3_out): Likewise.
2248 (ashlsi3_out): Likewise.
2249 (ashrqi3_out): Likewise.
2250 (ashrhi3_out): Likewise.
2251 (ashrsi3_out): Likewise.
2252 (lshrqi3_out): Likewise.
2253 (lshrhi3_out): Likewise.
2254 (lshrsi3_out): Likewise.
2255 (avr_out_ashlpsi3): Likewise.
2256 (avr_out_ashrpsi3): Likewise.
2257 (avr_out_lshrpsi3): Likewise.
2258 (avr_out_fract): Likewise.
2259 (avr_out_sbxx_branch): Likewise.
2260 (avr_out_round): Likewise.
2261 (avr_out_xload): Likewise.
2262 (avr_out_movmem): Likewise.
2263 (adjust_insn_length): Likewise.
2264 (avr_out_lpm): Likewise.
2265 (reg_unused_after): Likewise.
2266 (_reg_unused_after): Likewise.
2267 (avr_jump_mode): Likewise for second param.
2268 (jump_over_one_insn): Likewise for first param.
2269 (avr_final_prescan_insn): Likewise.
2270 (out_shift_with_cnt): Likewise for second param.
2272 * config/avr/avr.c (get_sequence_length): Likewise for param
2273 "insns" and local "insn".
2274 (emit_push_byte): Likewise for local "insn".
2275 (emit_push_sfr): Likewise.
2276 (avr_prologue_setup_frame): Likewise for locals "insn",
2277 "fp_plus_insns", "sp_plus_insns".
2278 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2280 (avr_jump_mode): Likewise for param "insn".
2281 (avr_final_prescan_insn): Likewise.
2282 (avr_find_unused_d_reg): Likewise.
2283 (avr_out_lpm_no_lpmx): Likewise.
2284 (avr_out_lpm): Likewise.
2285 (avr_out_xload): Likewise.
2286 (output_movqi): Likewise.
2287 (output_movhi): Likewise.
2288 (out_movqi_r_mr): Likewise.
2289 (out_movhi_r_mr): Likewise.
2290 (out_movsi_r_mr): Likewise.
2291 (out_movsi_mr_r): Likewise.
2292 (output_movsisf): Likewise.
2293 (avr_out_load_psi): Likewise.
2294 (avr_out_store_psi): Likewise.
2295 (avr_out_movpsi): Likewise.
2296 (out_movqi_mr_r): Likewise.
2297 (avr_out_movhi_mr_r_xmega): Likewise.
2298 (out_movhi_mr_r): Likewise.
2299 (compare_condition): Likewise for param "insn" and local "next".
2300 (compare_sign_p): Likewise for param "insn".
2301 (compare_diff_p): Likewise.
2302 (compare_eq_p): Likewise.
2303 (avr_out_compare): Likewise.
2304 (avr_out_compare64): Likewise.
2305 (avr_out_tsthi): Likewise.
2306 (avr_out_tstpsi): Likewise.
2307 (avr_out_tstsi): Likewise.
2308 (out_shift_with_cnt): Likewise.
2309 (ashlqi3_out): Likewise.
2310 (ashlhi3_out): Likewise.
2311 (avr_out_ashlpsi3): Likewise.
2312 (ashlsi3_out): Likewise.
2313 (ashrqi3_out): Likewise.
2314 (ashrhi3_out): Likewise.
2315 (avr_out_ashrpsi3): Likewise.
2316 (ashrsi3_out): Likewise.
2317 (lshrqi3_out): Likewise.
2318 (lshrhi3_out): Likewise.
2319 (avr_out_lshrpsi3): Likewise.
2320 (lshrsi3_out): Likewise.
2321 (avr_out_fract): Likewise.
2322 (avr_out_round): Likewise.
2323 (avr_adjust_insn_length): Likewise.
2324 (reg_unused_after): Likewise.
2325 (_reg_unused_after): Likewise.
2326 (avr_compare_pattern): Likewise.
2327 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2328 and locals "branch1", "branch2", "insn2", "jump".
2329 (avr_reorg): Likewise for local "insn".
2330 (avr_2word_insn_p): Likewise for param "insn".
2331 (jump_over_one_insn_p): Likewise.
2332 (avr_out_sbxx_branch): Likewise.
2333 (avr_out_movmem): Likewise.
2335 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2337 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2338 param from rtx to rtx_insn *.
2339 (thumb1_final_prescan_insn): Likewise.
2340 (thumb2_final_prescan_insn): Likewise.
2342 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2344 (struct minipool_node): Likewise for field "insn".
2345 (dump_minipool): Likewise for param "scan".
2346 (create_fix_barrier): Likewise for local "from". Strengthen local
2347 "label" from rtx to rtx_code_label *.
2348 (push_minipool_barrier): Strengthen param "insn" from rtx to
2350 (push_minipool_fix): Likewise.
2351 (note_invalid_constants): Likewise.
2352 (thumb2_reorg): Likewise for local "insn".
2353 (arm_reorg): Likewise.
2354 (thumb2_final_prescan_insn): Likewise for param
2355 "insn" and local "first_insn".
2356 (arm_final_prescan_insn): Likewise for param "insn" and locals
2357 "start_insn", "this_insn".
2358 (arm_debugger_arg_offset): Likewise for param "insn".
2359 (thumb1_emit_multi_reg_push): Likewise for return type and local
2361 (thumb1_final_prescan_insn): Likewise for param "insn".
2362 (thumb_far_jump_used_p): Likewise for local "insn".
2363 (thumb1_expand_prologue): Likewise.
2364 (arm_expand_epilogue_apcs_frame): Likewise.
2365 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2366 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2367 from rtx to rtx_code_label *.
2368 (arm_split_atomic_op): Likewise for local "label".
2369 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2371 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2373 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2374 first param from rtx to rtx_insn *.
2375 (arc_verify_short): Likewise.
2376 (arc_short_long): Likewise.
2377 (arc_need_delay): Likewise.
2379 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2381 (arc_ccfsm_advance): Likewise for param "insn" and locals
2382 "start_insn", "this_insn".
2383 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2384 (arc_ccfsm_post_advance): Likewise for param "insn".
2385 (arc_next_active_insn): Likewise for return type and param "insn".
2386 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2387 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2388 (output_short_suffix): Likewise for local "insn".
2389 (arc_final_prescan_insn): Likewise for param "insn". Remove
2390 now-redundant checked cast.
2391 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2392 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2393 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2394 for use where lc_set became an insn.
2395 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2397 (arc_get_insn_variants): Likewise for local "prev".
2398 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2400 (arc_predicate_delay_insns): Likewise for local "insn".
2401 (arc_pad_return): Likewise for local "prev". For now, add a
2402 checked cast when extracting the insn from "final_sequence".
2403 (arc_short_long): Likewise for param "insn".
2404 (arc_need_delay): Likewise for param "insn" and local "next".
2405 (arc_label_align): Likewise for locals "prev", "next".
2407 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2409 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2410 "insn" from rtx to rtx_insn *.
2411 (alpha_gp_save_rtx): Likewise for local "seq".
2412 (alpha_instantiate_decls): Likewise for local "top".
2413 (get_some_local_dynamic_name): Likewise for local "insn".
2414 (alpha_does_function_need_gp): Likewise.
2415 (set_frame_related_p): Likewise for return type and for locals
2417 (emit_frame_store_1): Likewise for local "insn".
2418 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2419 (alpha_end_function): Likewise for local "insn".
2420 (alpha_output_mi_thunk_osf): Likewise.
2421 (alphaev4_insn_pipe): Likewise for param "insn".
2422 (alphaev5_insn_pipe): Likewise.
2423 (alphaev4_next_group): Likewise for return type and param 1
2425 (alphaev5_next_group): Likewise.
2426 (alpha_align_insns_1): Likewise for return type and param 1 of
2427 callback param "next_group", and for locals "i", "next", "prev",
2428 "where", "where2", "insn".
2430 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2432 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2433 rather than modifying the stmt.
2435 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2437 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2438 cgraph_state conversion.
2440 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2442 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2443 Strengthen local "insns" from rtx to rtx_insn *.
2444 (aarch64_set_frame_expr): Likewise for local "insn".
2445 (aarch64_save_or_restore_fprs): Likewise.
2446 (aarch64_save_or_restore_callee_save_registers): Likewise.
2447 (aarch64_expand_prologue): Likewise.
2448 (aarch64_expand_epilogue): Likewise.
2449 (aarch64_output_mi_thunk): Likewise.
2450 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2451 "label2" from rtx to rtx_code_label *.
2452 (aarch64_split_atomic_op): Likewise for local "label".
2454 2014-08-25 Martin Liska <mliska@suse.cz>
2456 * cgraph.h (symtab_node):
2457 (bool needed_p (void)): created from decide_is_symbol_needed
2458 (bool referred_to_p (void)): created from referred_to_p
2459 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2460 * cgraph.h (cgraph_node):
2461 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2462 (void expand (void)): created from expand_function
2463 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2464 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2465 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2466 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2467 * cgraph.h (varpool_node):
2468 (static void add (tree decl): created from varpool_add_new_variable
2469 * cgraph.h (cgraph_edge):
2471 (void remove_caller (void)): created from cgraph_edge_remove_caller
2472 (void remove_callee (void)): created from cgraph_edge_remove_callee
2473 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2474 created from cgraph_set_call_stmt
2475 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2476 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2477 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2478 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2479 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2480 created from cgraph_speculative_call_info
2481 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2482 int freq_scale, bool update_original)): created from cgraph_clone_edge
2483 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2484 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2485 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2486 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2487 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2488 (static void rebuild_references (void)): created from cgraph_rebuild_references
2489 * cgraph.h (symbol_table):
2490 (create_reference): renamed from add_reference
2491 (maybe_create_reference): renamed from maybe_add_reference
2492 (void register_symbol (symtab_node *node)): new function
2493 (void clear_asm_symbols (void)): new function
2494 (void unregister (symtab_node *node)): new function
2495 (void release_symbol (cgraph_node *node, int uid)): new function
2496 (cgraph_node * allocate_cgraph_symbol (void)): new function
2497 (void initialize (void)): created from cgraph_init
2498 (symtab_node *first_symbol (void)):new function
2499 (asm_node *first_asm_symbol (void)):new function
2500 (symtab_node *first_defined_symbol (void)):new function
2501 (varpool_node *first_variable (void)):new function
2502 (varpool_node *next_variable (varpool_node *node)):new function
2503 (varpool_node *first_static_initializer (void)):new function
2504 (varpool_node *next_static_initializer (varpool_node *node)):new function
2505 (varpool_node *first_defined_variable (void)):new function
2506 (varpool_node *next_defined_variable (varpool_node *node)):new function
2507 (cgraph_node *first_defined_function (void)):new function
2508 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2509 (cgraph_node *first_function (void)):new function
2510 (cgraph_node *next_function (cgraph_node *node)):new function
2511 (cgraph_node *first_function_with_gimple_body (void)):new function
2512 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2513 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2514 created from symtab_remove_unreachable_nodes
2515 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2516 (void process_new_functions (void)): created from cgraph_process_new_functions
2517 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2518 (bool output_variables (void)): created from varpool_node::output_variables
2519 (void output_asm_statements (void)): created from output_asm_statements
2520 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2521 (void compile (void)): created from compile
2522 (void output_weakrefs (void)): created from output_weakrefs
2523 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2524 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2525 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2526 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2527 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2528 created from cgraph_next_function_with_gimple_body
2529 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2530 created from cgraph_remove_edge_removal_hook
2531 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2532 created from cgraph_add_node_removal_hook
2533 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2534 created from cgraph_remove_node_removal_hook
2535 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2536 created from varpool_add_node_removal_hook
2537 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2538 created from varpool_remove_node_removal_hook
2539 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2540 created from cgraph_add_function_insertion_hook
2541 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2542 created from cgraph_remove_function_insertion_hook
2543 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2544 created from varpool_add_variable_insertion_hook
2545 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2546 created from varpool_remove_variable_insertion_hook
2547 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2548 created from cgraph_add_edge_duplication_hook
2549 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2550 created from cgraph_remove_edge_duplication_hook
2551 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2552 created from cgraph_add_node_duplication_hook
2553 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2554 created from cgraph_remove_node_duplication_hook
2555 (void call_edge_removal_hooks (cgraph_edge *e)):
2556 created from cgraph_call_edge_removal_hooks
2557 (void call_cgraph_insertion_hooks (cgraph_node *node)):
2558 created from call_function_insertion_hooks
2559 (void call_cgraph_removal_hooks (cgraph_node *node)):
2560 created from cgraph_call_node_removal_hooks
2561 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2562 created from cgraph_node::call_duplication_hooks
2563 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2564 created from cgraph_call_edge_duplication_hooks
2565 (void call_varpool_removal_hooks (varpool_node *node)):
2566 created from varpool_call_node_removal_hooks
2567 (void call_varpool_insertion_hooks (varpool_node *node)):
2568 created from varpool_call_variable_insertion_hooks
2569 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2570 created from insert_to_assembler_name_hash
2571 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2572 created from unlink_from_assembler_name_hash
2573 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2574 created from symtab_prevail_in_asm_name_hash
2575 (void symtab_initialize_asm_name_hash (void)):
2576 created from symtab_initialize_asm_name_hash
2577 (void change_decl_assembler_name (tree decl, tree name)):
2578 created from change_decl_assembler_name
2579 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
2580 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
2581 created from decl_assembler_name_hash
2582 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
2583 created from decl_assembler_name_equal
2584 (static hashval_t hash_node_by_assembler_name (const void *p)):
2585 created from hash_node_by_assembler_name
2586 (static int eq_assembler_name (const void *p1, const void *p2)):
2587 created from eq_assembler_name
2589 2014-08-25 Marek Polacek <polacek@redhat.com>
2591 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
2593 2014-08-25 Petr Murzin <petr.murzin@intel.com>
2595 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
2596 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
2597 SWI1248_AVX512BW mode iterator.
2599 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
2602 * config/sh/predicates.md (general_extend_operand): Disable
2603 TRUNCATE before reload completes.
2605 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
2607 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
2609 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
2612 * config/sh/sh.opt (musermode): Allow negative form.
2613 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
2614 targets that don't support it.
2615 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
2616 Document -mno-usermode option.
2618 2014-08-24 Kito Cheng <kito@0xlab.org>
2620 * system.h (CALLER_SAVE_PROFITABLE): Poison.
2621 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
2622 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
2623 * doc/tm.texi: Regenerate.
2625 2014-08-24 Kito Cheng <kito@0xlab.org>
2627 * ira.c: Fix typo in comment.
2629 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2631 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
2632 Deprecate c++1y. Change language to reflect greater confidence in C++14.
2634 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
2637 * config/pa/pa.c (pa_output_function_epilogue): Don't set
2638 last_address when the current function is a thunk.
2639 (pa_asm_output_mi_thunk): When we don't have named sections or they
2640 are not being used, check that thunk can reach the stub table with a
2643 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2645 * web.c (union_match_dups): Strengthen param "insn" from rtx to
2647 (pass_web::execute): Likewise for local "insn".
2649 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2651 * var-tracking.c (struct micro_operation_def): Strengthen field
2652 "insn" from rtx to rtx_insn *.
2653 (struct emit_note_data_def): Likewise.
2654 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
2655 (vt_stack_adjustments): Likewise for local "insn".
2656 (adjust_insn): Likewise for param "insn".
2657 (val_store): Likewise.
2658 (val_resolve): Likewise.
2659 (struct count_use_info): Likewise for field "insn".
2660 (log_op_type): Likewise for param "insn".
2661 (reverse_op): Likewise.
2662 (prepare_call_arguments): Likewise.
2663 (add_with_sets): The initial param takes an insn, but we can't
2664 yet strengthen it from rtx to rtx_insn * since it's used as a
2665 cselib_record_sets_hook callback. For now rename initial param
2666 from "insn" to "uncast_insn", and introduce a local "insn" of
2667 the stronger rtx_insn * type, with a checked cast.
2668 (compute_bb_dataflow): Strengthen local "insn" from rtx to
2670 (emit_note_insn_var_location): Likewise.
2671 (emit_notes_for_changes): Likewise.
2672 (emit_notes_for_differences): Likewise.
2673 (next_non_note_insn_var_location): Likewise for return type and
2675 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
2676 (vt_initialize): Likewise for local "insn".
2677 (delete_debug_insns): Likewise for locals "insn" and "next".
2679 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2681 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
2683 (mark_constant_pool): Likewise for local "insn".
2685 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2687 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
2689 (dead_debug_promote_uses): Likewise.
2690 (dead_debug_insert_temp): Likewise.
2692 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2694 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
2695 from const_rtx to const rtx_insn *.
2696 (store_killed_after): Likewise. Strengthen locals "last", "act"
2697 from rtx to rtx_insn *.
2698 (store_killed_before): Strengthen param "insn" from const_rtx to
2699 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
2700 (find_moveable_store): Strengthen param "insn" from rtx to
2702 (compute_store_table): Likewise for local "insn".
2703 (insert_insn_start_basic_block): Likewise for param "insn" and
2704 locals "prev", "before", "insn".
2705 (insert_store): For now, add a checked cast to rtx_insn * on the
2706 result of gen_move_insn.
2707 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
2709 (replace_store_insn): Likewise. For now, add a checked cast to
2710 rtx_insn * on the result of gen_move_insn.
2712 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2714 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
2716 (expand_sjlj_dispatch_table): Likewise.
2718 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2720 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
2721 "insn" from rtx to rtx_insn *.
2723 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2725 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
2726 "insn" from rtx to rtx_insn *.
2727 (dup_block_and_redirect): Likewise for param 3 "before".
2729 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
2730 from rtx to rtx_insn *.
2731 (move_insn_for_shrink_wrap): Likewise.
2732 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
2733 (dup_block_and_redirect): Likewise for param "before" and local
2735 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
2737 (convert_to_simple_return): Likewise for local "start".
2739 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
2740 Strengthen local "insn" from rtx to rtx_insn *, for use when
2741 invoking requires_stack_frame_p.
2743 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2745 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
2747 (speculate_expr): Likewise for locals "orig_insn_rtx",
2749 (eq_transformed_insns): Likewise for locals "i1", "i2".
2750 (check_for_new_jump): Likewise for return type and local "end".
2751 (find_new_jump): Likewise for return type and local "jump".
2752 (sel_split_edge): Likewise for local "jump".
2753 (sel_create_recovery_block): Likewise.
2754 (sel_redirect_edge_and_branch_force): Likewise.
2755 (sel_redirect_edge_and_branch): Likewise.
2757 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2759 * sel-sched.c (substitute_reg_in_expr): Strengthen local
2760 "new_insn" from rtx to rtx_insn *.
2761 (create_insn_rtx_with_rhs): Likewise for return type and for local
2763 (create_insn_rtx_with_lhs): Likewise.
2764 (create_speculation_check): Likewise for local "insn_rtx".
2765 (implicit_clobber_conflict_p): Likewise for local "insn".
2766 (get_expr_cost): Likewise.
2767 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
2768 (move_cond_jump): Likewise for locals "next", "prev", "link",
2769 "head", "from", "to".
2771 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2773 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
2774 "next" from rtx to rtx_insn *.
2775 (find_conditional_protection): Likewise for local "next".
2776 (is_conditionally_protected): Likewise for local "insn1".
2777 (is_pfree): Likewise for locals "insn1", "insn2".
2779 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2781 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
2782 from rtx to rtx_insn *.
2784 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
2785 locals "insn1", "insn2" from rtx to rtx_insn *.
2786 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
2787 locals "insn", "prev", "last_jump", "next_tail".
2788 (schedule_ebb): Likewise for params "head", "tail".
2789 (schedule_ebbs): Likewise for locals "tail", "head".
2791 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
2792 to rtx_insn on "last_insn" in one of the invocations of
2795 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2797 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
2798 "elem", "insn" from rtx to rtx_insn *.
2799 (change_spec_dep_to_hard): Likewise.
2800 (get_back_and_forw_lists): Likewise for local "con".
2801 (sd_add_dep): Likewise for locals "elem", "insn".
2802 (sd_resolve_dep): Likewise for locals "pro", "con".
2803 (sd_unresolve_dep): Likewise.
2804 (sd_delete_dep): Likewise.
2805 (chain_to_prev_insn): Likewise for local "pro".
2806 (find_inc): Likewise for locals "pro", "con".
2808 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2810 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
2812 (reg_set_between_p): Strengthen local "insn" from const_rtx to
2814 (modified_between_p): Strengthen local "insn" from rtx to
2816 (remove_reg_equal_equiv_notes_for_regno): Likewise.
2817 (keep_with_call_p): Strengthen local "i2" from const_rtx to
2820 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2822 * resource.c (next_insn_no_annul): Strengthen local "next" from
2824 (mark_referenced_resources): Likewise for local "insn".
2826 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2828 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
2830 (find_reloads): Likewise for param 1.
2831 (subst_reloads): Likewise for sole param.
2832 (find_equiv_reg): Likwise for param 2.
2833 (regno_clobbered_p): Likwise for param 2.
2834 (reload): Likewise for param 1.
2836 * caller-save.c (save_call_clobbered_regs): Strengthen local
2837 "insn" from rtx to rtx_insn *.
2838 (insert_one_insn): Likewise for local "insn".
2840 * reload.c (this_insn): Likewise for this global.
2841 (find_reloads): Likewise for param "insn".
2842 (find_reloads_toplev): Likewise.
2843 (find_reloads_address): Likewise.
2844 (subst_reg_equivs): Likewise.
2845 (update_auto_inc_notes): Likewise.
2846 (find_reloads_address_1): Likewise.
2847 (find_reloads_subreg_address): Likewise.
2848 (subst_reloads): Likewise.
2849 (find_equiv_reg): Likewise, also for local "p".
2850 (regno_clobbered_p): Likewise for param "insn".
2852 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
2854 (spill_reg_store): Likewise for the elements of this array.
2855 (remove_init_insns): Likewise for local "equiv_insn".
2856 (will_delete_init_insn_p): Likewise for param "insn".
2857 (reload): Likewise for param ""first" and local "insn".
2858 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
2860 (calculate_elim_costs_all_insns): Likewise.
2861 (delete_caller_save_insns): Likewise.
2862 (spill_failure): Likewise for param "insn".
2863 (delete_dead_insn): Likewise.
2864 (set_label_offsets): Likewise.
2865 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
2867 (elimination_costs_in_insn): Likewise for param "insn".
2868 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
2869 when referring to an insn.
2870 (set_initial_label_offsets): Likewise.
2871 (set_offsets_for_label): Strengthen param "insn" from rtx to
2873 (init_eliminable_invariants): Likewise for param "first" and local
2875 (fixup_eh_region_note): Likewise for param "insn".
2876 (reload_as_needed): Likewise for locals "prev", "insn",
2877 "old_next", "old_prev", "next".
2878 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
2880 (reload_inheritance_insn): Strengthen elements of this array from
2882 (failed_reload): Likewise for param "insn".
2883 (choose_reload_regs): Likewise for local "insn". Replace use of
2884 NULL_RTX with NULL when referring to an insn.
2885 (input_reload_insns): Strengthen elements of this array from rtx
2887 (other_input_address_reload_insns): Likewise for this global.
2888 (other_input_reload_insns): Likewise for this global.
2889 (input_address_reload_insns): Likwise for the elements of this
2891 (inpaddr_address_reload_insns): Likwise for the elements of this
2893 (output_reload_insns): Likewise for the elements of this array.
2894 (output_address_reload_insns): Likewise for the elements of this
2896 (outaddr_address_reload_insns): Likewise for the elements of this
2898 (operand_reload_insns): Likewise for this global.
2899 (other_operand_reload_insns): Likewise for this global.
2900 (other_output_reload_insns): Likewise for the elements of this
2902 (new_spill_reg_store): Likewise for the elements of this
2904 (emit_input_reload_insns): Likewise for locals "insn", "temp".
2905 Strengthen local "where" from rtx * to rtx_insn **.
2906 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
2907 from rtx to rtx_insn *.
2908 (do_input_reload): Likewise for local "insn".
2909 (do_output_reload): Likewise for local "insn".
2910 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
2911 (emit_insn_if_valid_for_reload): Likewise for return type and local
2912 "last". Add checked cast to rtx_insn when returning "insn" since
2913 this has been through emit_insn.
2914 (gen_reload): Strengthen return type and locals "last", "insn", "set"
2915 from rtx to rtx_insn *. Add checked cast to rtx_insn when
2916 returning "insn" since it's been through
2917 emit_insn_if_valid_for_reload at this point.
2918 (delete_output_reload): Strengthen param "insn" and locals
2919 "output_reload_insn", "i2" from rtx to rtx_insn *.
2920 (delete_address_reloads): Likewise for params "dead_insn",
2921 "current_insn" and locals "prev", "next".
2922 (delete_address_reloads_1): Likewise for params "dead_insn",
2923 "current_insn" and locals "prev", "i2".
2924 (inc_for_reload): Likewise for locals "last", "add_insn".
2925 (add_auto_inc_notes): Strengthen param "insn" from rtx to
2928 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
2929 param of this duplicate of the prototype from reload.h
2931 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2933 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
2935 (regstat_bb_compute_calls_crossed): Likewise.
2937 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2939 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
2941 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
2943 (regrename_analyze): Strengthen local "insn" from rtx to
2945 (scan_rtx_reg): Likewise for param "insn".
2946 (scan_rtx_address): Likewise.
2947 (scan_rtx): Likewise.
2948 (restore_operands): Likewise.
2949 (record_out_operands): Likewise.
2950 (build_def_use): Likewise for local "insn". Replace use of
2951 NULL_RTX with NULL when dealing with an insn.
2953 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2955 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
2956 * reginfo.c (reg_scan): Likewise, also for local "insn".
2957 (reg_scan_mark_refs): Likewise for param "insn".
2958 (init_subregs_of_mode): Likewise for local "insn".
2960 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2962 * regcprop.c (struct queued_debug_insn_change): Strengthen field
2963 "insn" from rtx to rtx_insn *.
2964 (replace_oldest_value_reg): Likewise for param "insn".
2965 (replace_oldest_value_addr): Likewise.
2966 (replace_oldest_value_mem): Likewise.
2967 (apply_debug_insn_changes): Likewise for local "last_insn".
2968 (copyprop_hardreg_forward_1): Likewise for local "insn".
2970 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2972 * reg-stack.c (next_flags_user): Strengthen return type and param
2973 "insn" from rtx to rtx_insn *.
2974 (straighten_stack): Likewise for param "insn".
2975 (check_asm_stack_operands): Likewise.
2976 (remove_regno_note): Likewise.
2977 (emit_pop_insn): Likewise for return type, param "insn", local
2979 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
2980 "limit" from rtx to rtx_insn *.
2981 (swap_to_top): Likewise for param "insn".
2982 (move_for_stack_reg): Likewise.
2983 (move_nan_for_stack_reg): Likewise.
2984 (swap_rtx_condition): Likewise.
2985 (compare_for_stack_reg): Likewise.
2986 (subst_all_stack_regs_in_debug_insn): Likewise.
2987 (subst_stack_regs_pat): Likewise, and local "insn2".
2988 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
2990 (subst_stack_regs): Likewise.
2991 (change_stack): Likewise.
2992 (convert_regs_1): Likewise for locals "insn", "next".
2994 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2996 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
2998 (combine_set_extension): Likewise for param "curr_insn".
2999 (transform_ifelse): Likewise for param "def_insn".
3000 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3001 from vec<rtx> * to vec<rtx_insn *> *.
3002 (is_cond_copy_insn): Likewise for param "insn".
3003 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3005 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3006 local "def_insn" from rtx to rtx_insn *.
3007 (get_sub_rtx): Likewise for param "def_insn".
3008 (merge_def_and_ext): Likewise.
3009 (combine_reaching_defs): Likewise.
3010 (add_removable_extension): Likewise for param "insn".
3011 (find_removable_extensions): Likewise for local "insn".
3012 (find_and_remove_re): Likewise for locals "curr_insn" and
3013 "def_insn". Strengthen locals "reinsn_del_list" and
3014 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3016 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3018 * recog.c (split_insn): Strengthen param "insn" and locals
3019 "first", "last" from rtx to rtx_insn *.
3020 (split_all_insns): Likewise for locals "insn", "next".
3021 (split_all_insns_noflow): Likewise.
3023 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3025 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3027 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3028 (debug_rtx_find): Likewise for param 1 "x".
3030 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3031 const_rtx to const rtx_insn *. Likewise for local "insn".
3032 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3033 (debug_rtx_find): Likewise for param 1 "x".
3034 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3035 from const_rtx to const rtx_insn * within the appropriate cases of
3036 the switch statement.
3038 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3039 Strengthen local "insns" from rtx to rtx_insn * since this is
3040 passed to a call to debug_rtx_list.
3042 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3044 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3047 * function.c (stack_protect_epilogue): Add checked cast to
3048 rtx_insn for now when invoking predict_insn_def.
3050 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3052 (predict_insn_def): Likewise.
3053 (rtl_predict_edge): Likewise for local "last_insn".
3054 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3056 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3058 (bb_estimate_probability_locally): Likewise for local "last_insn".
3059 (expensive_function_p): Likewise for local "insn".
3061 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3062 local "jmp", since this is used when invoking predict_insn_def.
3064 2014-08-22 Marek Polacek <polacek@redhat.com>
3067 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3069 2014-08-22 Marek Polacek <polacek@redhat.com>
3072 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3073 a comparison in parens.
3074 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3077 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3079 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3082 * cprop.c (fis_get_condition): Likewise.
3084 * postreload.c (reload_cse_regs): Likewise for param "first".
3085 (reload_cse_simplify): Likewise for param "insn".
3086 (reload_cse_regs_1): Likewise for local "insn".
3087 (reload_cse_simplify_set): Likewise for param "insn".
3088 (reload_cse_simplify_operands): Likewise.
3089 (struct reg_use): Likewise for field "insn".
3090 (reload_combine_purge_insn_uses): Likewise for param "insn".
3091 (fixup_debug_insns): Likewise for params "from", "to" and local
3093 (try_replace_in_use): Likewise for local "use_insn".
3094 (reload_combine_recognize_const_pattern): Likewise for param
3095 "insn" and locals "add_moved_after_insn", "use_insn".
3096 (reload_combine_recognize_pattern): Likewise for param "insn" and
3098 (reload_combine): Likewise for locals "insn", "prev".
3099 (reload_combine_note_use): Likewise for param "insn".
3100 (move2add_use_add2_insn): Likewise.
3101 (move2add_use_add3_insn): Likewise.
3102 (reload_cse_move2add): Likewise, also for local "next".
3103 (move2add_note_store): Likewise for local "insn".
3105 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3107 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3109 (struct unoccr): Likewise.
3110 (struct modifies_mem): Likewise.
3111 (alloc_mem): Likewise for local "insn".
3112 (insert_expr_in_table): Likewise for param "insn".
3113 (dump_expr_hash_table_entry): Likewise for local "insn".
3114 (oprs_unchanged_p): Likewise for param "insn".
3115 (load_killed_in_block_p): Likewise for local "setter".
3116 (record_last_reg_set_info): Likewise for param "insn".
3117 (record_last_reg_set_info_regno): Likewise.
3118 (record_last_mem_set_info): Likewise.
3119 (record_last_set_info): Likewise for local "last_set_insn".
3120 (record_opr_changes): Likewise for param "insn".
3121 (hash_scan_set): Likewise.
3122 (compute_hash_table): Likewise for local "insn".
3123 (get_avail_load_store_reg): Likewise for param "insn".
3124 (eliminate_partially_redundant_load): Likewise, also for locals
3125 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3127 (eliminate_partially_redundant_loads): Likewise for local "insn".
3129 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3131 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3133 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3134 (expand_twoval_unop): Likewise for locals entry_last", "last".
3135 (expand_twoval_binop): Likewise.
3136 (expand_twoval_binop_libfunc): Likewise for local "insns".
3137 (widen_leading): Likewise for local "last".
3138 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3139 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3140 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3141 (expand_parity): Likewise for locals "last" and "seq".
3142 (expand_ffs): Likewise for local "seq". Strengthen local
3143 "nonzero_label" from rtx to rtx_code_label *.
3144 (expand_absneg_bit): Strengthen local "insns" from rtx to
3146 (expand_unop_direct): Likewise for local "last".
3147 (expand_unop): Likewise for locals "last", "insns".
3148 (expand_abs_nojump): Likewise for local "last".
3149 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3150 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3152 (expand_copysign_absneg): Strengthen local "label" from rtx to
3154 (expand_copysign_bit): Strengthen local "insns" from rtx to
3156 (struct no_conflict_data): Likewise for fields "first", "insn".
3157 (emit_libcall_block_1): Likewise for param "insns" and locals
3158 "next", "last", "insn".
3159 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3160 on "insns" when invoking emit_libcall_block_1. Ultimately we
3161 want to strengthen insns itself.
3162 (prepare_cmp_insn): Strengthen local "last" from rtx to
3164 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3165 (prepare_float_lib_cmp): Likewise for local "insns".
3166 (emit_conditional_move): Likewise for local "last".
3167 (emit_conditional_add): Likewise.
3168 (have_sub2_insn): Likewise for local "seq".
3169 (expand_float): Likewise for local "insns". Strengthen locals
3170 "label", "neglabel" from rtx to rtx_code_label *.
3171 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3172 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3173 (expand_fixed_convert): Likewise for local "insns" (to
3175 (expand_sfix_optab): Likewise for local "last".
3176 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3177 to rtx_code_label *.
3178 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3179 from rtx to rtx_insn *.
3180 (expand_atomic_fetch_op): Likewise for local "insn".
3181 (maybe_legitimize_operand_same_code): Likewise for local "last".
3182 (maybe_legitimize_operands): Likewise.
3184 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3186 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3187 "insn" from rtx to rtx_insn *.
3188 (ps_rtl_insn): Likewise for return type.
3189 (doloop_register_get): Likewise for params "head", "tail" and
3190 locals "insn", "first_insn_not_to_check".
3191 (schedule_reg_move): Likewise for local "this_insn".
3192 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3193 of gen_move_insn for now.
3194 (reset_sched_times): Strengthen local "insn" from rtx to
3196 (permute_partial_schedule): Likewise.
3197 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3198 (dump_insn_location): Likewise for param "insn".
3199 (loop_canon_p): Likewise for local "insn".
3200 (sms_schedule): Likewise.
3201 (print_partial_schedule): Likewise.
3202 (ps_has_conflicts): Likewise.
3204 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3206 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3207 "tailp" from rtx * to rtx_insn **.
3209 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3210 from rtx to rtx_insn *.
3211 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3212 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3213 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3215 * modulo-sched.c (const_iteration_count): Strengthen return type
3216 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3217 use of NULL_RTX with NULL when working with insns.
3218 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3220 (sms_schedule): Likewise.
3221 * sched-rgn.c (init_ready_list): Likewise, also for locals
3222 "src_head" and "src_next_tail".
3223 (compute_block_dependences): Likewise.
3224 (free_block_dependencies): Likewise.
3225 (debug_rgn_dependencies): Likewise.
3226 (free_rgn_deps): Likewise.
3227 (compute_priorities): Likewise.
3228 (schedule_region): Likewise.
3229 * sel-sched.c (find_ebb_boundaries): Likewise.
3231 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3232 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3234 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3236 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3237 from rtx to rtx_insn *.
3238 (new_seginfo): Likewise for param "insn".
3239 (create_pre_exit): Likewise for locals "last_insn",
3240 "before_return_copy", "return_copy".
3241 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3244 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3246 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3247 from rtx to rtx_insn *.
3248 (lra_push_insn): Likewise for 1st param.
3249 (lra_push_insn_and_update_insn_regno_info): Likewise.
3250 (lra_pop_insn): Likewise for return type.
3251 (lra_invalidate_insn_data): Likewise for 1st param.
3252 (lra_set_insn_deleted): Likewise.
3253 (lra_delete_dead_insn): Likewise.
3254 (lra_process_new_insns): Likewise for first 3 params.
3255 (lra_set_insn_recog_data): Likewise for 1st param.
3256 (lra_update_insn_recog_data): Likewise.
3257 (lra_set_used_insn_alternative): Likewise.
3258 (lra_invalidate_insn_regno_info): Likewise.
3259 (lra_update_insn_regno_info): Likewise.
3260 (lra_former_scratch_operand_p): Likewise.
3261 (lra_eliminate_regs_1): Likewise.
3262 (lra_get_insn_recog_data): Likewise.
3264 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3267 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3269 (substitute_within_insn): New.
3270 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3271 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3272 Replace call to "substitute" with call to substitute_within_insn.
3274 * lra-constraints.c (curr_insn): Strengthen from rtx to
3276 (get_equiv_with_elimination): Likewise for param "insn".
3277 (match_reload): Strengthen params "before" and "after" from rtx *
3279 (emit_spill_move): Likewise for return type. Add a checked cast
3280 to rtx_insn * on result of gen_move_insn for now.
3281 (check_and_process_move): Likewise for local "before". Replace
3282 NULL_RTX with NULL when referring to insns.
3283 (process_addr_reg): Strengthen params "before" and "after" from
3284 rtx * to rtx_insn **.
3285 (insert_move_for_subreg): Likewise.
3286 (simplify_operand_subreg): Strengthen locals "before" and "after"
3287 from rtx to rtx_insn *.
3288 (process_address_1): Strengthen params "before" and "after" from
3289 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3291 (process_address): Strengthen params "before" and "after" from
3292 rtx * to rtx_insn **.
3293 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3294 (curr_insn_transform): Strengthen locals "before" and "after"
3295 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3297 (loc_equivalence_callback): Update cast of "data", changing
3298 resulting type from rtx to rtx_insn *.
3299 (substitute_pseudo_within_insn): New.
3300 (inherit_reload_reg): Strengthen param "insn" from rtx to
3301 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3302 NULL when referring to insns. Add a checked cast to rtx_insn *
3303 when using usage_insn to invoke lra_update_insn_regno_info.
3304 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3305 likewise for locals "restore", "save". Add checked casts to
3306 rtx_insn * when using usage_insn to invoke
3307 lra_update_insn_regno_info and lra_process_new_insns. Replace
3308 NULL_RTX with NULL when referring to insns.
3309 (split_if_necessary): Strengthen param "insn" from rtx to
3311 (update_ebb_live_info): Likewise for params "head", "tail" and local
3313 (get_last_insertion_point): Likewise for return type and local "insn".
3314 (get_live_on_other_edges): Likewise for local "last".
3315 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3316 "prev_insn", "next_insn", "restore".
3317 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3318 (undo_optional_reloads): Likewise for local "insn".
3320 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3322 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3324 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3326 (spill_pseudos): Likewise for local "insn".
3327 (init_elimination): Likewise.
3328 (process_insn_for_elimination): Likewise for param "insn".
3330 * lra-lives.c (curr_insn): Likewise.;
3332 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3333 (remove_pseudos): Likewise for param "insn".
3334 (spill_pseudos): Likewise for local "insn".
3335 (lra_final_code_change): Likewise for locals "insn", "curr".
3337 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3338 (lra_set_insn_deleted): Likewise.
3339 (lra_delete_dead_insn): Likewise, and for local "prev".
3340 (new_insn_reg): Likewise for param "insn".
3341 (lra_set_insn_recog_data): Likewise.
3342 (lra_update_insn_recog_data): Likewise.
3343 (lra_set_used_insn_alternative): Likewise.
3344 (get_insn_freq): Likewise.
3345 (invalidate_insn_data_regno_info): Likewise.
3346 (lra_invalidate_insn_regno_info): Likewise.
3347 (lra_update_insn_regno_info): Likewise.
3348 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3350 (lra_push_insn_1): Strengthen param "insn" from rtx to
3352 (lra_push_insn): Likewise.
3353 (lra_push_insn_and_update_insn_regno_info): Likewise.
3354 (lra_pop_insn): Likewise for return type and local "insn".
3355 (push_insns): Likewise for params "from", "to", and local "insn".
3356 (setup_sp_offset): Likewise for params "from", "last" and locals
3358 (lra_process_new_insns): Likewise for params "insn", "before",
3359 "after" and local "last".
3360 (struct sloc): Likewise for field "insn".
3361 (lra_former_scratch_operand_p): Likewise for param "insn".
3362 (remove_scratches): Likewise for locals "insn", "last".
3363 (check_rtl): Likewise for local "insn".
3364 (add_auto_inc_notes): Likewise for param "insn".
3365 (update_inc_notes): Likewise for local "insn".
3366 (lra): Replace NULL_RTX with NULL when referring to insn.
3368 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3370 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3372 (resolve_reg_notes): Likewise.
3373 (resolve_simple_move): Likewise for return type, param "insn", and
3374 locals "insns", "minsn".
3375 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3376 (resolve_use): Likewise.
3377 (resolve_debug): Likewise.
3378 (find_decomposable_shift_zext): Likewise.
3379 (resolve_shift_zext): Likewise for return type, param "insn", and
3380 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3381 (decompose_multiword_subregs): Likewise for local "insn",
3382 "orig_insn", "decomposed_shift", "end".
3384 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3386 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3387 param "insns" from rtx to rtx_insn *.
3389 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3391 (struct iv_to_split): Likewise.
3392 (loop_exit_at_end_p): Likewise for local "insn".
3393 (split_edge_and_insert): Likewise for param "insns".
3394 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3395 and locals "seq", "jump".
3396 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3397 "branch_code"; update invocations of compare_and_jump_seq to
3398 eliminate NULL_RTX in favor of NULL.
3399 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3401 (reset_debug_uses_in_loop): Likewise.
3402 (analyze_insn_to_expand_var): Likewise for param "insn".
3403 (analyze_iv_to_split_insn): Likewise.
3404 (analyze_insns_in_loop): Likewise for local "insn".
3405 (insert_base_initialization): Likewise for param
3406 "insn" and local "seq".
3407 (split_iv): Likewise for param "insn" and local "seq".
3408 (expand_var_during_unrolling): Likewise for param "insn".
3409 (insert_var_expansion_initialization): Likewise for local "seq".
3410 (combine_var_copies_in_loop_exit): Likewise.
3411 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3413 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3414 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3417 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3419 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3421 (iv_analyze_result): Likewise.
3422 (iv_analyze_expr): Likewise.
3425 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3426 local "def_insn" from rtx to rtx_insn *.
3427 (get_biv_step_1): Likewise for local "insn".
3428 (iv_analyze_expr): Likewise for param "insn".
3429 (iv_analyze_def): Likewise for local "insn".
3430 (iv_analyze_op): Likewise for param "insn".
3431 (iv_analyze): Likewise.
3432 (iv_analyze_result): Likewise.
3434 (suitable_set_for_replacement): Likewise.
3435 (simplify_using_initial_values): Likewise for local "insn".
3436 (iv_number_of_iterations): Likewise for param "insn".
3437 (check_simple_exit): Add checked cast to rtx_insn when invoking
3438 iv_number_of_iterations for now (until get_condition is
3441 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3442 "insn" from rtx to rtx_insn *.
3443 (analyze_insns_in_loop): Likewise for local "insn".
3445 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3447 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3449 (struct invariant): Likewise.
3450 (hash_invariant_expr_1): Likewise for param "insn".
3451 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3452 (find_exits): Likewise for local "insn".
3453 (create_new_invariant): Likewise for param "insn".
3454 (check_dependencies): Likewise.
3455 (find_invariant_insn): Likewise.
3456 (record_uses): Likewise.
3457 (find_invariants_insn): Likewise.
3458 (find_invariants_bb): Likewise for local "insn".
3459 (get_pressure_class_and_nregs): Likewise for param "insn".
3460 (calculate_loop_reg_pressure): Likewise for local "insn".
3462 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3464 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3466 (add_test): Likewise for locals "seq", "jump".
3467 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3469 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3471 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3473 (rebuild_jump_labels_chain): Likewise for param "chain".
3475 * cfgexpand.c (pass_expand::execute): Add checked cast to
3476 rtx_insn * when calling rebuild_jump_labels_chain in region where
3477 we know e->insns.r is non-NULL.
3479 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3481 (rebuild_jump_labels): Likewise.
3482 (rebuild_jump_labels_chain): Likewise for param "chain".
3483 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3484 (init_label_info): Likewise for param "f".
3485 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3486 "prev_nonjump_insn".
3487 (mark_all_labels): Likewise for param "f" and locals "insn",
3488 "prev_nonjump_insn".
3490 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3492 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3493 from rtx to rtx_insn *insn.
3494 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3495 (ira_add_allocno_copy): Likewise.
3496 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3498 (ira_create_copy): Likewise.
3499 (ira_add_allocno_copy): Likewise.
3500 (create_bb_allocnos): Likewise for local "insn".
3501 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3502 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3503 process_regs_for_copy for rtx_insn * param.
3504 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3505 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3506 process_regs_for_copy for rtx_insn * param.
3507 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3508 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3509 (record_operand_costs): Likewise.
3510 (scan_one_insn): Likewise for return type, and for param "insn".
3511 (process_bb_for_costs): Likewise for local "insn".
3512 (process_bb_node_for_hard_reg_moves): Likewise.
3513 * ira-emit.c (struct move): Likewise for field "insn".
3514 (create_move): Eliminate use of NULL_RTX when dealing with an
3516 (emit_move_list): Strengthen return type and locals "result",
3517 "insn" from rtx to rtx_insn *insn.
3518 (emit_moves): Likewise for locals "insns", "tmp".
3519 (ira_emit): Likewise for local "insn".
3520 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3522 (find_call_crossed_cheap_reg): Likewise.
3523 (process_bb_node_lives): Likewise for local "insn".
3524 * ira.c (decrease_live_ranges_number): Likewise.
3525 (compute_regs_asm_clobbered): Likewise.
3526 (build_insn_chain): Likewise.
3527 (find_moveable_pseudos): Likewise, also locals "def_insn",
3528 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3529 to rtx_insn **. Add a checked cast when assigning from
3530 "closest_use" into closest_uses array in a region where we know
3531 it's a non-NULL insn.
3532 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3534 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3535 "last_interesting_insn", "uin".
3536 (move_unallocated_pseudos): Likewise for locals "def_insn",
3537 "move_insn", "newinsn".
3539 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3541 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3542 Strengthen locals "done_label", "do_error" from rtx to
3544 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3545 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3547 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3548 "done_label", "do_error" to rtx_code_label * and local "last" to
3550 (ubsan_expand_si_overflow_mul_check): Likewise for locals
3551 "done_label", "do_error", "large_op0", "small_op0_large_op1",
3552 "one_small_one_large", "both_ops_large", "after_hipart_neg",
3553 "after_lopart_neg", "do_overflow", "hipart_different" to
3554 rtx_code_label * and local "last" to rtx_insn *.
3556 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3558 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3559 "insn" and "move_insn" from rtx to rtx_insn *.
3561 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3563 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3565 (cheap_bb_rtx_cost_p): Likewise.
3566 (first_active_insn): Likewise for return type and local "insn".
3567 (last_active_insn): Likewise for return type and locals "insn",
3569 (struct noce_if_info): Likewise for fields "jump", "insn_a",
3571 (end_ifcvt_sequence): Likewise for return type and locals "insn",
3573 (noce_try_move): Likewise for local "seq".
3574 (noce_try_store_flag): Likewise.
3575 (noce_try_store_flag_constants): Likewise.
3576 (noce_try_addcc): Likewise.
3577 (noce_try_store_flag_mask): Likewise.
3578 (noce_try_cmove): Likewise.
3579 (noce_try_minmax): Likewise.
3580 (noce_try_abs): Likewise.
3581 (noce_try_sign_mask): Likewise.
3582 (noce_try_bitop): Likewise.
3583 (noce_can_store_speculate_p): Likewise for local "insn".
3584 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
3586 (check_cond_move_block): Likewise for local "insn".
3587 (cond_move_convert_if_block): Likewise.
3588 (cond_move_process_if_block): Likewise for locals "seq",
3590 (noce_find_if_block): Likewise for local "jump".
3591 (merge_if_block): Likewise for local "last".
3592 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
3593 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
3594 (block_has_only_trap): Likewise for return type and local "trap".
3595 (find_if_case_1): Likewise for local "jump".
3596 (dead_or_predicable): Likewise for locals "head", "end", "jump",
3599 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3601 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
3602 "last_insn", "loop_end" from rtx to rtx_insn *.
3604 * hw-doloop.c (scan_loop): Likewise for local "insn".
3605 (discover_loop): Likewise for param "tail_insn".
3606 (discover_loops): Likewise for local "tail".
3608 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
3609 cast to rtx_insn * when assigning from an rtx local to a
3610 hwloop_info's "last_insn" field.
3612 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3614 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
3615 (add_delay_dependencies): Strengthen local "pro" from rtx to
3617 (recompute_todo_spec): Likewise.
3618 (dep_cost_1): Likewise for locals "insn", "used".
3619 (schedule_insn): Likewise for local "dbg".
3620 (schedule_insn): Likewise for locals "pro", "next".
3621 (unschedule_insns_until): Likewise for local "con".
3622 (restore_pattern): Likewise for local "next".
3623 (estimate_insn_tick): Likewise for local "pro".
3624 (resolve_dependencies): Likewise for local "next".
3625 (fix_inter_tick): Likewise.
3626 (fix_tick_ready): Likewise for local "pro".
3627 (add_to_speculative_block): Likewise for locals "check", "twin",
3629 (sched_extend_bb): Likewise for locals "end", "insn".
3630 (init_before_recovery): Likewise for local "x".
3631 (sched_create_recovery_block): Likewise for local "barrier".
3632 (create_check_block_twin): Likewise for local "pro".
3633 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
3635 (unlink_bb_notes): Update for change to type of bb_header.
3636 Strengthen locals "prev", "label", "note", "next" from rtx to
3638 (clear_priorities): Likewise for local "pro".
3640 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3642 * gcse.c (struct occr): Strengthen field "insn" from rtx to
3644 (test_insn): Likewise for this global.
3645 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
3647 (oprs_anticipatable_p): Likewise.
3648 (oprs_available_p): Likewise.
3649 (insert_expr_in_table): Strengthen param "insn" from rtx to
3651 (hash_scan_set): Likewise.
3652 (hash_scan_clobber): Likewise.
3653 (hash_scan_call): Likewise.
3654 (hash_scan_insn): Likewise.
3655 (compute_hash_table_work): Likewise for local "insn".
3656 (process_insert_insn): Likewise for return type and local "pat".
3657 (insert_insn_end_basic_block): Likewise for locals "new_insn",
3658 "pat", "pat_end", "maybe_cc0_setter".
3659 (pre_edge_insert): Likewise for local "insn".
3660 (pre_insert_copy_insn): Likewise for param "insn".
3661 (pre_insert_copies): Likewise for local "insn".
3662 (struct set_data): Likewise for field "insn".
3663 (single_set_gcse): Likewise for param "insn".
3664 (gcse_emit_move_after): Likewise.
3665 (pre_delete): Likewise for local "insn".
3666 (update_bb_reg_pressure): Likewise for param "from" and local
3668 (should_hoist_expr_to_dom): Likewise for param "from".
3669 (hoist_code): Likewise for local "insn".
3670 (get_pressure_class_and_nregs): Likewise for param "insn".
3671 (calculate_bb_reg_pressure): Likewise for local "insn".
3672 (compute_ld_motion_mems): Likewise.
3674 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3676 * genpeep.c (main): Rename param back from "uncast_ins1" to
3677 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
3680 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
3682 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3685 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
3686 documentation to state it is only for VSX operations.
3688 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
3689 constraint only active if VSX.
3691 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
3692 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
3695 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3697 * fwprop.c (single_def_use_dom_walker::before_dom_children):
3698 Strengthen local "insn" from rtx to rtx_insn *.
3699 (use_killed_between): Likewise for param "target_insn".
3700 (all_uses_available_at): Likewise for param "target_insn" and
3702 (update_df_init): Likewise for params "def_insn", "insn".
3703 (update_df): Likewise for param "insn".
3704 (try_fwprop_subst): Likewise for param "def_insn" and local
3706 (free_load_extend): Likewise for param "insn".
3707 (forward_propagate_subreg): Likewise for param "def_insn" and
3709 (forward_propagate_asm): Likewise for param "def_insn" and local
3711 (forward_propagate_and_simplify): Likewise for param "def_insn"
3712 and local "use_insn".
3713 (forward_propagate_into): Likewise for locals "def_insn" and
3716 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3718 * function.c (emit_initial_value_sets): Strengthen local "seq"
3719 from rtx to rtx_insn *.
3720 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
3722 (instantiate_virtual_regs): Likewise for local "insn".
3723 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
3724 (reorder_blocks_1): Likewise for param "insns" and local "insn".
3725 (expand_function_end): Likewise for locals "insn" and "seq".
3726 (epilogue_done): Likewise for local "insn".
3727 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
3729 (reposition_prologue_and_epilogue_notes): Likewise for locals
3730 "insn", "last", "note", "first".
3731 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
3732 (pass_match_asm_constraints::execute): Likewise for local "insn".
3734 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3736 * output.h (final_scan_insn): Strengthen return type from rtx to
3738 (final_forward_branch_p): Likewise for param.
3739 (current_output_insn): Likewise for this global.
3741 * final.c (rtx debug_insn): Likewise for this variable.
3742 (current_output_insn): Likewise.
3743 (get_attr_length_1): Rename param "insn" to "uncast_insn",
3744 adding "insn" back in as an rtx_insn * with a checked cast, so
3745 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
3747 (compute_alignments): Strengthen local "label" from rtx to
3749 (shorten_branches): Rename param from "first" to "uncast_first",
3750 introducing a new local rtx_insn * "first" using a checked cast to
3751 effectively strengthen "first" from rtx to rtx_insn * without
3752 affecting the type signature. Strengthen locals "insn", "seq",
3753 "next", "label" from rtx to rtx_insn *.
3754 (change_scope): Strengthen param "orig_insn" and local "insn" from
3756 (final_start_function): Rename param from "first" to "uncast_first",
3757 introducing a new local rtx_insn * "first" using a checked cast to
3758 effectively strengthen "first" from rtx to rtx_insn * without
3759 affecting the type signature. Strengthen local "insn" from rtx to
3761 (dump_basic_block_info): Strengthen param "insn" from rtx to
3763 (final): Rename param from "first" to "uncast_first",
3764 introducing a new local rtx_insn * "first" using a checked cast to
3765 effectively strengthen "first" from rtx to rtx_insn * without
3766 affecting the type signature. Strengthen locals "insn", "next"
3767 from rtx to rtx_insn *.
3768 (output_alternate_entry_point): Strengthen param "insn" from rtx to
3770 (call_from_call_insn): Strengthen param "insn" from rtx to
3772 (final_scan_insn): Rename param from "insn" to "uncast_insn",
3773 introducing a new local rtx_insn * "insn" using a checked cast to
3774 effectively strengthen "insn" from rtx to rtx_insn * without
3775 affecting the type signature. Strengthen return type and locals
3776 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
3777 now-redundant checked cast to rtx_insn * from both invocations of
3778 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
3779 introducing a local "call_insn" for use when invoking
3780 call_from_call_insn.
3781 (notice_source_line): Strengthen param "insn" from rtx to
3783 (leaf_function_p): Likewise for local "insn".
3784 (final_forward_branch_p): Likewise.
3785 (leaf_renumber_regs): Likewise for param "first".
3786 (rest_of_clean_state): Likewise for locals "insn" and "next".
3787 (self_recursive_call_p): Likewise for param "insn".
3788 (collect_fn_hard_reg_usage): Likewise for local "insn".
3789 (get_call_fndecl): Likewise for param "insn".
3790 (get_call_cgraph_rtl_info): Likewise.
3791 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
3792 introducing a new local rtx_insn * "insn" using a checked cast to
3793 effectively strengthen "insn" from rtx to rtx_insn * without
3794 affecting the type signature.
3796 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
3797 cast when assigning from param "insn" to current_output_insn.
3798 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
3799 so that we can assign it back to current_output_insn.
3801 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3803 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
3804 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
3805 atmxt540s and atmxt540sreva devices.
3806 * config/avr/avr-tables.opt: Regenerate.
3807 * config/avr/t-multilib: Regenerate.
3808 * doc/avr-mmcu.texi: Regenerate.
3810 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3812 * expr.c (convert_move): Strengthen local "insns" from rtx to
3814 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
3815 "top_label" from rtx to rtx_code_label *.
3816 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
3818 (emit_single_push_insn): Likewise for locals "prev", "last".
3819 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
3820 to rtx_code_label *.
3821 (store_constructor): Likewise for locals "loop_start", "loop_end".
3822 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
3824 (expand_expr_real_2): Likewise.
3825 (expand_expr_real_1): Strengthen local "label" from rtx to
3828 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3830 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
3831 from rtx to rtx_insn *.
3832 (store_bit_field_1): Likewise.
3833 (extract_bit_field_1): Likewise.
3834 (expand_mult_const): Likewise for local "insns".
3835 (expmed_mult_highpart): Strengthen local "label" from rtx to
3837 (expand_smod_pow2): Likewise.
3838 (expand_sdiv_pow2): Likewise.
3839 (expand_divmod): Strengthen locals "last", "insn" from rtx to
3840 rtx_insn *. Strengthen locals "label", "label1", "label2",
3841 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
3842 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
3843 (emit_store_flag): Likewise.
3844 (emit_store_flag_force): Strengthen local "label" from rtx to
3846 (do_cmp_and_jump): Likewise for param "label".
3848 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3850 * explow.c (force_reg): Strengthen local "insn" from rtx to
3852 (adjust_stack_1): Likewise.
3853 (allocate_dynamic_stack_space): Likewise. Strengthen locals
3854 "final_label", "available_label", "space_available" from rtx to
3856 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
3857 (anti_adjust_stack_and_probe): Likewise.
3859 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3861 * except.h (sjlj_emit_function_exit_after): Strengthen param
3862 "after" from rtx to rtx_insn *. This is only called with
3863 result of get_last_insn (in function.c) so type-change should be
3866 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
3867 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
3868 to rtx_insn *. These fields are only used from except.c so this
3869 type-change should be self-contained to this patch.
3871 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
3872 local "last" from rtx to rtx_insn *.
3873 (dw2_build_landing_pads): Likewise for local "seq".
3874 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
3875 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
3876 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
3878 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
3880 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
3881 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
3882 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
3883 referring to an insn. Strengthen local "dispatch_label" from
3884 rtx to rtx_code_label *.
3885 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
3887 (expand_eh_return): Strengthen local "around_label" from
3888 rtx to rtx_code_label *.
3889 (convert_to_eh_region_ranges): Strengthen locals "iter",
3890 "last_action_insn", "first_no_action_insn",
3891 "first_no_action_insn_before_switch",
3892 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
3894 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3896 * dwarf2out.c (last_var_location_insn): Strengthen this variable
3897 from rtx to rtx_insn *.
3898 (cached_next_real_insn): Likewise.
3899 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
3901 (dwarf2out_var_location): Strengthen locals "next_real",
3902 "next_note", "expected_next_loc_note", "last_start", "insn" from
3905 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3907 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
3908 from rtx to rtx_insn *.
3909 (create_pseudo_cfg): Likewise for local "insn".
3911 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3913 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
3914 from rtx to rtx_insn *.
3915 (df_bb_regno_last_def_find): Likewise.
3917 * df-problems.c (df_rd_bb_local_compute): Likewise.
3918 (df_lr_bb_local_compute): Likewise.
3919 (df_live_bb_local_compute): Likewise.
3920 (df_chain_remove_problem): Likewise.
3921 (df_chain_create_bb): Likewise.
3922 (df_word_lr_bb_local_compute): Likewise.
3923 (df_remove_dead_eq_notes): Likewise for param "insn".
3924 (df_note_bb_compute): Likewise for local "insn".
3925 (simulate_backwards_to_point): Likewise.
3926 (df_md_bb_local_compute): Likewise.
3928 * df-scan.c (df_scan_free_bb_info): Likewise.
3929 (df_scan_start_dump): Likewise.
3930 (df_scan_start_block): Likewise.
3931 (df_install_ref_incremental): Likewise for local "insn".
3932 (df_insn_rescan_all): Likewise.
3933 (df_reorganize_refs_by_reg_by_insn): Likewise.
3934 (df_reorganize_refs_by_insn_bb): Likewise.
3935 (df_recompute_luids): Likewise.
3936 (df_bb_refs_record): Likewise.
3937 (df_update_entry_exit_and_calls): Likewise.
3938 (df_bb_verify): Likewise.
3940 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3942 * ddg.h (struct ddg_node): Strengthen fields "insn" and
3943 "first_note" from rtx to rtx_insn *.
3944 (get_node_of_insn): Likewise for param 2 "insn".
3945 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
3947 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
3949 (mem_write_insn_p): Likewise.
3950 (mem_access_insn_p): Likewise.
3951 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
3952 (def_has_ccmode_p): Likewise for param "insn".
3953 (add_cross_iteration_register_deps): Likewise for locals
3954 "def_insn" and "use_insn".
3955 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
3956 (build_intra_loop_deps): Likewise for local "src_insn".
3957 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
3959 (get_node_of_insn): Likewise for param "insn".
3961 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3963 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
3964 (deletable_insn_p): Strengthen param "insn" from rtx to
3965 rtx_insn *. Add checked cast to rtx_call_insn when invoking
3966 find_call_stack_args, since this is guarded by CALL_P (insn).
3967 (marked_insn_p): Strengthen param "insn" from rtx to
3969 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
3970 invoking find_call_stack_args, since this is guarded by
3972 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
3973 rtx_insn *; we know this is an insn since this was called by
3975 (mark_nonreg_stores_2): Likewise.
3976 (mark_nonreg_stores): Strengthen param "insn" from rtx to
3978 (find_call_stack_args): Strengthen param "call_insn" from rtx to
3979 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
3981 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
3982 from rtx to rtx_insn *.
3983 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
3985 (delete_unmarked_insns): Likewise for locals "insn", "next".
3986 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
3987 (mark_reg_dependencies): Likewise for param "insn".
3988 (rest_of_handle_ud_dce): Likewise for local "insn".
3989 (word_dce_process_block): Likewise.
3990 (dce_process_block): Likewise.
3992 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3994 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
3995 from rtx to rtx_insn *.
3996 (struct change_cc_mode_args): Likewise for field "insn".
3997 (this_insn): Strengthen from rtx to rtx_insn *.
3998 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4000 (validate_canon_reg): Strengthen param "insn" from rtx to
4002 (canon_reg): Likewise.
4003 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4005 (record_jump_equiv): Strengthen param "insn" from rtx to
4007 (try_back_substitute_reg): Likewise, also for locals "prev",
4009 (find_sets_in_insn): Likewise for param "insn".
4010 (canonicalize_insn): Likewise.
4011 (cse_insn): Likewise. Add a checked cast.
4012 (invalidate_from_clobbers): Likewise for param "insn".
4013 (invalidate_from_sets_and_clobbers): Likewise.
4014 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4016 (cse_prescan_path): Strengthen local "insn" from rtx to
4018 (cse_extended_basic_block): Likewise for locals "insn" and
4020 (cse_main): Likewise for param "f".
4021 (check_for_label_ref): Likewise for local "insn".
4022 (set_live_p): Likewise for second param ("insn").
4023 (insn_live_p): Likewise for first param ("insn") and for local
4025 (cse_change_cc_mode_insn): Likewise for first param "insn".
4026 (cse_change_cc_mode_insns): Likewise for first and second params
4028 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4030 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4033 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4034 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4035 Anna Tikhonova <anna.tikhonova@intel.com>
4036 Ilya Tocar <ilya.tocar@intel.com>
4037 Andrey Turetskiy <andrey.turetskiy@intel.com>
4038 Ilya Verbin <ilya.verbin@intel.com>
4039 Kirill Yukhin <kirill.yukhin@intel.com>
4040 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4042 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4044 * config/i386/sse.md
4045 (define_mode_iterator VI248_AVX2): Delete.
4046 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4047 (define_mode_iterator VI48_AVX2): Ditto.
4048 (define_insn <shift_insn><mode>3): Delete.
4049 (define_insn "<shift_insn><mode>3<mask_name>" with
4050 VI2_AVX2_AVX512BW): New.
4051 (define_insn "<shift_insn><mode>3<mask_name>" with
4054 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4055 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4056 Anna Tikhonova <anna.tikhonova@intel.com>
4057 Ilya Tocar <ilya.tocar@intel.com>
4058 Andrey Turetskiy <andrey.turetskiy@intel.com>
4059 Ilya Verbin <ilya.verbin@intel.com>
4060 Kirill Yukhin <kirill.yukhin@intel.com>
4061 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4063 * config/i386/sse.md
4064 (define_mode_iterator VI4F_BRCST32x2): New.
4065 (define_mode_attr 64x2_mode): Ditto.
4066 (define_mode_attr 32x2mode): Ditto.
4067 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4068 with VI4F_BRCST32x2): Ditto.
4069 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4070 with V16FI mode iterator): Ditto.
4071 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4073 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4074 with VI8F_BRCST64x2): Ditto.
4076 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4077 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4078 Anna Tikhonova <anna.tikhonova@intel.com>
4079 Ilya Tocar <ilya.tocar@intel.com>
4080 Andrey Turetskiy <andrey.turetskiy@intel.com>
4081 Ilya Verbin <ilya.verbin@intel.com>
4082 Kirill Yukhin <kirill.yukhin@intel.com>
4083 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4085 * config/i386/sse.md
4086 (define_mode_iterator VI8_AVX512VL): New.
4087 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4089 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4091 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4092 (define_mode_iterator V48_AVX512VL): New.
4093 (define_mode_iterator V12_AVX512VL): Ditto.
4094 (define_insn <avx512>_load<mode>_mask): Split into two similar
4095 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4096 Refactor output template.
4097 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4099 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4101 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4103 (reg_available_p): Likewise for param "insn".
4104 (insert_set_in_table): Likewise.
4105 (hash_scan_set): Likewise.
4106 (hash_scan_insn): Likewise.
4107 (make_set_regs_unavailable): Likewise.
4108 (compute_hash_table_work): Likewise for local "insn".
4109 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4111 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4112 (try_replace_reg): Likewise.
4113 (find_avail_set): Likewise.
4114 (cprop_jump): Likewise for params "setcc", "jump".
4115 (constprop_register): Likewise for param "insn".
4116 (cprop_insn): Likewise.
4117 (do_local_cprop): Likewise.
4118 (local_cprop_pass): Likewise for local "insn".
4119 (bypass_block): Likewise for params "setcc" and "jump".
4120 (bypass_conditional_jumps): Likewise for locals "setcc" and
4122 (one_cprop_pass): Likewise for local "insn".
4124 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4126 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4127 from rtx to rtx_insn *.
4128 (struct comparison): Likewise, also for field "prev_clobber".
4129 (conforming_compare): Likewise for param "insn".
4130 (arithmetic_flags_clobber_p): Likewise.
4131 (find_flags_uses_in_insn): Likewise.
4132 (find_comparison_dom_walker::before_dom_children): Likewise for
4133 locals "insn", "next", "last_clobber".
4134 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4136 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4138 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4139 "insn" from rtx to rtx_insn *.
4140 (single_set_for_csa): Likewise for param "insn".
4141 (record_one_stack_ref): Likewise.
4142 (try_apply_stack_adjustment): Likewise.
4143 (struct record_stack_refs_data): Likewise for field "insn".
4144 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4145 (prev_active_insn_bb): Likewise for return type and param "insn".
4146 (next_active_insn_bb): Likewise.
4147 (force_move_args_size_note): Likewise for params "prev" and "last"
4148 and locals "test", "next_candidate", "prev_candidate".
4149 (combine_stack_adjustments_for_block): Strengthen locals
4150 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4153 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4155 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4156 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4157 (subst_insn): Likewise for this variable.
4158 (added_links_insn): Likewise.
4159 (struct insn_link): Likewise for field "insn".
4160 (alloc_insn_link): Likewise for param "insn".
4161 (struct undobuf): Likewise for field "other_insn".
4162 (find_single_use): Likewise for param "insn" and local "next".
4163 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4164 (delete_noop_moves): Likewise for locals "insn", "next".
4165 (create_log_links): Likewise for locals "insn", "use_insn".
4166 Strengthen local "next_use" from rtx * to rtx_insn **.
4167 (insn_a_feeds_b): Likewise for params "a", "b".
4168 (combine_instructions): Likewise for param "f" and locals "insn",
4169 "next", "prev", "first", "last_combined_insn", "link", "link1",
4170 "temp". Replace use of NULL_RTX with NULL when referring to
4172 (setup_incoming_promotions): Likewise for param "first"
4173 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4174 (can_combine_p): Likewise for params "insn", "i3", "pred",
4175 "pred2", "succ", "succ2" and for local "p".
4176 (combinable_i3pat): Likewise for param "i3".
4177 (cant_combine_insn_p): Likewise for param "insn".
4178 (likely_spilled_retval_p): Likewise.
4179 (adjust_for_new_dest): Likewise.
4180 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4181 (try_combine): Likewise for return type and for params "i3", "i2",
4182 "i1", "i0", "last_combined_insn", and for locals "insn",
4183 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4184 "i0_insn". Eliminate local "tem" in favor of new locals
4185 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4186 checked cast for now to rtx_insn * on the return type of
4187 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4189 (find_split_point): Strengthen param "insn" from rtx to
4191 (simplify_set): Likewise for local "other_insn".
4192 (recog_for_combine): Likewise for param "insn".
4193 (record_value_for_reg): Likewise.
4194 (record_dead_and_set_regs_1): Likewise for local
4196 (record_dead_and_set_regs): Likewise for param "insn".
4197 (record_promoted_value): Likewise.
4198 (check_promoted_subreg): Likewise.
4199 (get_last_value_validate): Likewise.
4200 (reg_dead_at_p): Likewise.
4201 (move_deaths): Likewise for param "to_insn".
4202 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4203 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4204 in favor of new locals "tem_note" and "tem_insn", the latter being
4206 (distribute_links): Strengthen locals "place", "insn" from rtx to
4209 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4211 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4213 (can_delete_label_p): Require a const rtx_code_label * rather than
4215 (delete_insn): Add checked cast to rtx_code_label * when we know
4216 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4218 (delete_insn_chain): Strengthen locals "prev" and "current" from
4219 rtx to rtx_insn *. Add a checked cast when assigning from
4220 "finish" (strengthening the params will come later). Add a
4221 checked cast to rtx_note * in region where we know
4223 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4225 (compute_bb_for_insn): Likewise.
4226 (free_bb_for_insn): Likewise for local "insn".
4227 (compute_bb_for_insn): Likewise.
4228 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4229 local "insn" from rtx to rtx_insn *
4230 (flow_active_insn_p): Require a const rtx_insn * rather than a
4232 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4234 (can_fallthru): Likewise for locals "insn" and "insn2".
4235 (bb_note): Likewise for local "note".
4236 (first_insn_after_basic_block_note): Likewise for local "note" and
4238 (rtl_split_block): Likewise for locals "insn" and "next".
4239 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4241 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4242 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4244 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4245 them), "kill_from", "barrier", "new_insn".
4246 (patch_jump_insn): Likewise for params "insn", "old_label".
4247 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4248 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4249 "old_label", "new_label".
4250 (rtl_tidy_fallthru_edge): Likewise for local "q".
4251 (rtl_split_edge): Likewise for locals "before", "last".
4252 (commit_one_edge_insertion): Likewise for locals "before",
4253 "after", "insns", "tmp", "last", adding a checked cast where
4254 currently necessary.
4255 (commit_edge_insertions): Likewise.
4256 (rtl_dump_bb): Likewise for locals "insn", "last".
4257 (print_rtl_with_bb): Likewise for local "x".
4258 (rtl_verify_bb_insns): Likewise for local "x".
4259 (rtl_verify_bb_pointers): Likewise for local "insn".
4260 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4262 (rtl_verify_fallthru): Likewise for local "insn".
4263 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4264 (purge_dead_edges): Likewise for local "insn".
4265 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4266 (skip_insns_after_block): Likewise for return type and for locals
4267 "insn", "last_insn", "next_head", "prev".
4268 (record_effective_endpoints): Likewise for locals "next_insn",
4270 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4271 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4272 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4273 (duplicate_insn_chain): For now, add checked cast from rtx to
4274 rtx_insn * when returning insn.
4275 (cfg_layout_duplicate_bb): Likewise for local "insn".
4276 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4278 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4279 (rtl_block_empty_p): Likewise.
4280 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4281 "split_point", "last".
4282 (rtl_block_ends_with_call_p): Likewise for local "insn".
4283 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4285 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4286 "split_at_insn" from rtx to rtx_insn *.
4287 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4288 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4289 to const rtx_insn *.
4290 (rtl_account_profile_record): Likewise.
4292 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4294 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4296 (average_num_loop_insns): Likewise.
4297 (init_set_costs): Likewise for local "seq".
4298 (seq_cost): Likewise for param "seq", from const_rtx to const
4301 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4303 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4306 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4308 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4309 "f1" and "f2" from rtx * to rtx_insn **.
4310 (flow_find_head_matching_sequence): Likewise.
4312 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4313 "cbranch_insn" from rtx to rtx_insn *.
4314 (thread_jump): Likewise for local "insn".
4315 (try_forward_edges): Likewise for local "last".
4316 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4317 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4319 (can_replace_by): Likewise for params "i1", "i2".
4320 (old_insns_match_p): Likewise.
4321 (merge_notes): Likewise.
4322 (walk_to_nondebug_insn): Likewise for param "i1".
4323 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4324 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4325 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4326 (flow_find_head_matching_sequence): Strengthen params "f1" and
4327 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4328 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4330 (outgoing_edges_match): Likewise for locals "last1", "last2".
4331 (try_crossjump_to_edge): Likewise for local "insn".
4332 Replace call to for_each_rtx with for_each_rtx_in_insn.
4334 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4335 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4336 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4337 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4338 (try_optimize_cfg): Strengthen local "last" from rtx to
4340 (delete_dead_jumptables): Likewise for locals "insn", "next",
4343 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4344 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4345 "rtx else_first_tail", to reflect the basic-block.h changes above.
4347 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4349 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4351 (purge_dead_tablejump_edges): Likewise.
4352 (find_bb_boundaries): Likewise for locals "insn", "end",
4353 "flow_transfer_insn".
4355 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4357 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4358 "ins" and "prev" from rtx to rtx_insn *.
4360 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4362 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4364 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4365 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4367 (load_register_parameters): Likewise for local "before_arg".
4368 (check_sibcall_argument_overlap): Likewise for param "insn".
4369 (expand_call): Likewise for locals "normal_call_insns",
4370 "tail_call_insns", "insns", "before_call", "after_args",
4371 "before_arg", "last", "prev". Strengthen one of the "last" from
4372 rtx to rtx_call_insn *.
4373 (fixup_tail_calls): Strengthen local "insn" from rtx to
4375 (emit_library_call_value_1): Likewise for locals "before_call" and
4378 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4380 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4381 and "last" from rtx to rtx_insn *.
4382 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4383 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4385 (expand_errno_check): Strengthen local "lab" from rtx to
4387 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4389 (expand_builtin_mathfn_2): Likewise.
4390 (expand_builtin_mathfn_ternary): Likewise.
4391 (expand_builtin_mathfn_3): Likewise.
4392 (expand_builtin_interclass_mathfn): Likewise for local "last".
4393 (expand_builtin_int_roundingfn): Likewise for local "insns".
4394 (expand_builtin_int_roundingfn_2): Likewise.
4395 (expand_builtin_strlen): Likewise for local "before_strlen".
4396 (expand_builtin_strncmp): Likewise for local "seq".
4397 (expand_builtin_signbit): Likewise for local "last".
4398 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4399 from rtx to rtx_code_label *.
4400 (expand_stack_restore): Strengthen local "prev" from rtx to
4403 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4405 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4407 (struct btr_def_s): Likewise.
4408 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4410 (add_btr_def): Likewise.
4411 (new_btr_user): Likewise.
4412 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4414 (link_btr_uses): Likewise.
4415 (move_btr_def): Likewise for locals "insp", "old_insn",
4416 "new_insn". Add checked cast to rtx_insn * for now on result of
4418 (can_move_up): Strengthen param "insn" from const_rtx to
4421 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4423 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4425 (get_uncond_jump_length): Likewise for locals "label", "jump".
4426 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4428 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4429 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4430 (find_jump_block): Likewise for local "insn".
4431 (fix_crossing_conditional_branches): Likewise for locals
4432 "old_jump", "new_jump".
4433 (fix_crossing_unconditional_branches): Likewise for locals
4434 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4435 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4437 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4439 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4441 (struct mem_insn): Likewise for field "insn".
4442 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4443 (reg_next_inc_use): Likewise.
4444 (reg_next_def): Likewise.
4445 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4446 from rtx to rtx_insn *.
4447 (move_insn_before): Likewise for param "next_insn" and local "insns".
4448 (attempt_change): Likewise for local "mov_insn".
4449 (try_merge): Likewise for param "last_insn".
4450 (get_next_ref): Likewise for return type and local "insn".
4451 Strengthen param "next_array" from rtx * to rtx_insn **.
4452 (parse_add_or_inc): Strengthen param "insn" from rtx to
4454 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4456 (merge_in_block): Likewise for locals "insn", "curr",
4458 (pass_inc_dec::execute): Update allocations of the arrays to
4459 reflect the stronger types.
4461 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4463 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4464 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4465 from rtx to rtx_code_label *.
4467 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4469 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4472 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4474 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4475 generated a warning and prevented bootstrapping the compiler.
4477 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4479 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4482 * jump.c (delete_related_insns): Likewise, also for locals "next"
4485 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4487 * genautomata.c (output_internal_insn_latency_func): When writing
4488 the function "internal_insn_latency" to insn-automata.c,
4489 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4490 allowing the optional guard function of (define_bypass) clauses to
4491 expect a pair of rtx_insn *, rather than a pair of rtx.
4492 (output_insn_latency_func): When writing the function
4493 "insn_latency", add an "uncast_" prefix to params "insn" and
4494 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4495 using checked casts from the params, thus enabling the above
4496 change to the generated "internal_insn_latency" function.
4498 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4500 PR tree-optimization/62091
4501 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4502 handle correctly arrays.
4503 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4505 (record_known_type): Walk into inner type.
4506 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4507 condition on no type changes.
4509 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4511 * genattrtab.c (write_attr_get): Within the generated get_attr_
4512 functions, rename param "insn" to "uncast_insn" and reintroduce
4513 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4514 is an rtx_insn * within insn-attrtab.c
4516 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4518 * output.h (peephole): Strengthen return type from rtx to
4520 * rtl.h (delete_for_peephole): Likewise for both params.
4521 * genpeep.c (main): In generated "peephole" function, strengthen
4522 return type and local "insn" from rtx to rtx_insn *. For now,
4523 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4524 rtx_insn *, with a checked cast.
4525 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4526 locals "insn", "next", "prev" from rtx to rtx_insn *.
4528 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4530 PR tree-optimization/62112
4531 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4532 * gimple-iterator.h (gsi_replace): Return bool.
4533 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4534 moved from ref_may_alias_global_p.
4535 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4537 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4538 (stmt_kills_ref_p_1): Rename...
4539 (stmt_kills_ref_p): ... to this.
4540 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4541 stmt_kills_ref_p): Declare.
4542 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4543 Move the self-assignment case...
4544 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4546 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4548 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4550 * emit-rtl.c (try_split): Likewise, also for locals "before" and
4551 "after". For now, don't strengthen param "trial", which requires
4552 adding checked casts when returning it.
4554 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4556 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4557 "label" from rtx to rtx_code_label *. Strengthen param 1 of
4558 "var_location" hook from rtx to rtx_insn *.
4559 (debug_nothing_rtx): Delete in favor of...
4560 (debug_nothing_rtx_code_label): New prototype.
4561 (debug_nothing_rtx_rtx): Delete unused prototype.
4562 (debug_nothing_rtx_insn): New prototype.
4564 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4565 invoking debug_hooks->var_location (in two places, one in a NOTE
4566 case of a switch statement, the other guarded by a CALL_P
4567 conditional. Add checked cast to rtx_code_label * when invoking
4568 debug_hooks->label (within CODE_LABEL case of switch statement).
4570 * dbxout.c (dbx_debug_hooks): Update "label" hook from
4571 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4572 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4573 (xcoff_debug_hooks): Likewise.
4574 * debug.c (do_nothing_debug_hooks): Likewise.
4575 (debug_nothing_rtx): Delete in favor of...
4576 (debug_nothing_rtx_insn): New function.
4577 (debug_nothing_rtx_rtx): Delete unused function.
4578 (debug_nothing_rtx_code_label): New function.
4579 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
4580 debug_nothing_rtx to debug_nothing_rtx_code_label.
4581 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
4583 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
4584 debug_nothing_rtx to debug_nothing_rtx_insn.
4585 (sdbout_label): Strengthen param "insn" from rtx to
4587 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
4588 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4589 "var_location" hook from debug_nothing_rtx to
4590 debug_nothing_rtx_insn.
4592 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4594 * recog.h (insn_output_fn): Update this function typedef to match
4595 the changes below to the generated output functions, strengthening
4596 the 2nd param from rtx to rtx_insn *.
4598 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
4599 insn when invoking an output function, to match the new signature
4600 of insn_output_fn with a stronger second param.
4602 * genconditions.c (write_header): In the generated code for
4603 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
4604 to match the other changes in this patch.
4606 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
4607 the generated "gen_" functions from rtx to rtx_insn * within their
4610 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
4611 the subfunctions within the generated "recog_", "split", "peephole2"
4612 function trees from rtx to rtx_insn *. For now, the top-level
4613 generated functions ("recog", "split", "peephole2") continue to
4614 take a plain rtx for "insn", to avoid introducing dependencies on
4615 other patches. Rename this 2nd param from "insn" to
4616 "uncast_insn", and reintroduce "insn" as a local variable of type
4617 rtx_insn *, initialized at the top of the generated function with
4618 a checked cast on "uncast_insn".
4619 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
4620 the generated "gen_" functions from rtx to rtx_insn * within their
4623 * genoutput.c (process_template): Strengthen the 2nd param within
4624 the generated "output_" functions "insn" from rtx to rtx_insn *.
4626 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4628 * tree-profile.c (tree_profiling): Skip external functions
4629 when doing coverage instrumentation.
4630 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
4632 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4634 * config/rs6000/altivec.h (vec_cpsgn): New #define.
4635 (vec_mergee): Likewise.
4636 (vec_mergeo): Likewise.
4637 (vec_cntlz): Likewise.
4638 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
4639 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
4640 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
4642 * doc/extend.texi: Document various forms of vec_cpsgn,
4643 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
4644 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
4645 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
4646 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
4647 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
4649 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4651 * config/rs6000/rs6000.c (context.h): New include.
4652 (tree-pass.h): Likewise.
4653 (make_pass_analyze_swaps): New decl.
4654 (rs6000_option_override): Register pass_analyze_swaps.
4655 (swap_web_entry): New subsclass of web_entry_base (df.h).
4656 (special_handling_values): New enum.
4657 (union_defs): New function.
4658 (union_uses): Likewise.
4659 (insn_is_load_p): Likewise.
4660 (insn_is_store_p): Likewise.
4661 (insn_is_swap_p): Likewise.
4662 (rtx_is_swappable_p): Likewise.
4663 (insn_is_swappable_p): Likewise.
4664 (chain_purpose): New enum.
4665 (chain_contains_only_swaps): New function.
4666 (mark_swaps_for_removal): Likewise.
4667 (swap_const_vector_halves): Likewise.
4668 (adjust_subreg_index): Likewise.
4669 (permute_load): Likewise.
4670 (permute_store): Likewise.
4671 (handle_special_swappables): Likewise.
4672 (replace_swap_with_copy): Likewise.
4673 (dump_swap_insn_table): Likewise.
4674 (rs6000_analyze_swaps): Likewise.
4675 (pass_data_analyze_swaps): New pass_data.
4676 (pass_analyze_swaps): New rtl_opt_pass.
4677 (make_pass_analyze_swaps): New function.
4678 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
4680 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4682 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
4683 type from rtx to rtx_insn *.
4684 (create_copy_of_insn_rtx): Likewise.
4685 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
4686 (create_copy_of_insn_rtx): Likewise, also for local "res".
4688 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4690 * rtl.h (find_first_parameter_load): Strengthen return type from
4692 * rtlanal.c (find_first_parameter_load): Strengthen return type
4693 from rtx to rtx_insn *. Add checked cast for now, to postpone
4694 strengthening the params.
4696 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4699 * diagnostic.c: Set default caret.
4700 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
4702 * diagnostic.h (struct diagnostic_context):
4704 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4706 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
4707 (sel_bb_head): Strengthen return type insn_t (currently just an
4709 (sel_bb_end): Likewise.
4711 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
4712 (sel_bb_head): Strengthen return type and local "head" from
4713 insn_t (currently just an rtx) to rtx_insn *.
4714 (sel_bb_end): Likewise for return type.
4715 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
4718 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4720 * basic-block.h (get_last_bb_insn): Strengthen return type from
4722 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
4725 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4728 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
4730 (diagnostic_report_diagnostic): ... from here.
4731 * toplev.c (general_init): Move code to c-family.
4733 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4735 * df.h (web_entry_base): Replace existing struct web_entry with a
4736 new class web_entry_base with only the predecessor member.
4737 (unionfind_root): Remove declaration and move to class member.
4738 (unionfind_union): Remove declaration and move to friend
4740 (union_defs): Remove declaration.
4741 * web.c (web_entry_base::unionfind_root): Modify to be member
4742 function and adjust accessors.
4743 (unionfind_union): Modify to be friend function and adjust
4745 (web_entry): New subclass of web_entry_base containing the reg
4747 (union_match_dups): Modify for struct -> class changes.
4748 (union_defs): Likewise.
4749 (entry_register): Likewise.
4750 (pass_web::execute): Likewise.
4752 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
4754 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
4755 builtin define __VEC_ELEMENT_REG_ORDER__.
4757 2014-08-20 Martin Jambor <mjambor@suse.cz>
4758 Wei Mi <wmi@google.com>
4762 * tree-ssa-operands.c (update_stmt_operands): Remove
4763 MODIFIED_NORETURN_CALLS.
4764 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
4765 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
4766 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
4767 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
4768 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
4769 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
4770 (gimple_call_set_ctrl_altering): New func.
4771 (gimple_call_ctrl_altering_p): Ditto.
4772 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
4773 (make_blocks): Use gimple_call_initialize_ctrl_altering.
4774 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
4775 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
4776 remove MODIFIED_NORETURN_CALLS.
4778 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4780 * coverage.c (coverage_compute_profile_id): Return non-0;
4781 also handle symbols with unique name.
4782 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
4784 2014-08-20 Steve Ellcey <sellcey@mips.com>
4787 * doc/sourcebuild.texi (non_strict_align): New.
4789 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4791 * cgraphunit.c (ipa_passes, compile): Reshedule
4792 symtab_remove_unreachable_nodes passes; update comments.
4793 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
4794 TODO_remove_functions before the pass; the functions ought to be
4796 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
4797 TODO_remove_functions.
4798 * passes.c (pass_data_early_local_passes): Do not schedule function
4800 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
4802 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4805 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
4806 before setting the option.
4807 * diagnostic.c (diagnostic_classify_diagnostic): Record
4808 command-line status.
4810 2014-08-20 Richard Biener <rguenther@suse.de>
4813 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
4814 to build uint{16,32,64}_type_node.
4816 2014-08-20 Terry Guo <terry.guo@arm.com>
4818 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
4819 with immediate_operand.
4821 2014-08-20 David Malcolm <dmalcolm@redhat.com>
4823 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
4824 "insn" from an as_a to a safe_as_a, for the case when "insn" is
4827 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4829 PR preprocessor/51303
4830 * incpath.c (remove_duplicates): Use cpp_warning.
4832 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4836 * doc/options.texi (CPP): Document it.
4837 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
4838 * optc-gen.awk: Handle CPP.
4839 * opth-gen.awk: Likewise.
4841 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4843 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
4845 (duplicate_insn_chain): Likewise.
4846 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
4847 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
4848 checked cast for now (until we can strengthen the params in the
4850 (duplicate_insn_chain): Likewise.
4852 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4854 * rtl.h (next_cc0_user): Strengthen return type from rtx to
4856 (prev_cc0_setter): Likewise.
4858 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
4859 rtx_insn *, adding checked casts for now as necessary.
4860 (prev_cc0_setter): Likewise.
4862 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4864 * expr.h (emit_move_insn): Strengthen return type from rtx to
4866 (emit_move_insn_1): Likewise.
4867 (emit_move_complex_push): Likewise.
4868 (emit_move_complex_parts): Likewise.
4870 * expr.c (emit_move_via_integer): Strengthen return type from rtx
4871 to rtx_insn *. Replace use of NULL_RTX with NULL when working
4873 (emit_move_complex_push): Strengthen return type from rtx to
4875 (emit_move_complex): Likewise, also for local "ret".
4876 (emit_move_ccmode): Likewise.
4877 (emit_move_multi_word): Likewise for return type and locals
4879 (emit_move_insn_1): Likewise for return type and locals "result",
4881 (emit_move_insn): Likewise for return type and local "last_insn".
4882 (compress_float_constant): Likewise.
4884 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4886 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
4887 from rtx to rtx_insn *.
4889 * rtl.h (emit_insn_before): Likewise.
4890 (emit_insn_before_noloc): Likewise.
4891 (emit_insn_before_setloc): Likewise.
4892 (emit_jump_insn_before): Likewise.
4893 (emit_jump_insn_before_noloc): Likewise.
4894 (emit_jump_insn_before_setloc): Likewise.
4895 (emit_call_insn_before): Likewise.
4896 (emit_call_insn_before_noloc): Likewise.
4897 (emit_call_insn_before_setloc): Likewise.
4898 (emit_debug_insn_before): Likewise.
4899 (emit_debug_insn_before_noloc): Likewise.
4900 (emit_debug_insn_before_setloc): Likewise.
4901 (emit_label_before): Likewise.
4902 (emit_insn_after): Likewise.
4903 (emit_insn_after_noloc): Likewise.
4904 (emit_insn_after_setloc): Likewise.
4905 (emit_jump_insn_after): Likewise.
4906 (emit_jump_insn_after_noloc): Likewise.
4907 (emit_jump_insn_after_setloc): Likewise.
4908 (emit_call_insn_after): Likewise.
4909 (emit_call_insn_after_noloc): Likewise.
4910 (emit_call_insn_after_setloc): Likewise.
4911 (emit_debug_insn_after): Likewise.
4912 (emit_debug_insn_after_noloc): Likewise.
4913 (emit_debug_insn_after_setloc): Likewise.
4914 (emit_label_after): Likewise.
4915 (emit_insn): Likewise.
4916 (emit_debug_insn): Likewise.
4917 (emit_jump_insn): Likewise.
4918 (emit_call_insn): Likewise.
4919 (emit_label): Likewise.
4920 (gen_clobber): Likewise.
4921 (emit_clobber): Likewise.
4922 (gen_use): Likewise.
4923 (emit_use): Likewise.
4926 (emit_barrier_before): Strengthen return type from rtx to
4928 (emit_barrier_after): Likewise.
4929 (emit_barrier): Likewise.
4931 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
4932 from rtx to rtx_insn *. Add checked casts for now when converting
4933 "last" from rtx to rtx_insn *.
4934 (emit_insn_before_noloc): Likewise for return type.
4935 (emit_jump_insn_before_noloc): Likewise.
4936 (emit_call_insn_before_noloc): Likewise.
4937 (emit_debug_insn_before_noloc): Likewise.
4938 (emit_barrier_before): Strengthen return type and local "insn"
4939 from rtx to rtx_barrier *.
4940 (emit_label_before): Strengthen return type from rtx to
4941 rtx_insn *. Add checked cast for now when returning param
4942 (emit_pattern_after_noloc): Strengthen return type from rtx to
4943 rtx_insn *. Add checked casts for now when converting "last" from
4945 (emit_insn_after_noloc): Strengthen return type from rtx to
4947 (emit_jump_insn_after_noloc): Likewise.
4948 (emit_call_insn_after_noloc): Likewise.
4949 (emit_debug_insn_after_noloc): Likewise.
4950 (emit_barrier_after): Strengthen return type from rtx to
4952 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
4953 Add checked cast for now when converting "label" from rtx to
4955 (emit_pattern_after_setloc): Strengthen return type from rtx to
4956 rtx_insn *. Add checked casts for now when converting "last" from
4958 (emit_pattern_after): Strengthen return type from rtx to
4960 (emit_insn_after_setloc): Likewise.
4961 (emit_insn_after): Likewise.
4962 (emit_jump_insn_after_setloc): Likewise.
4963 (emit_jump_insn_after): Likewise.
4964 (emit_call_insn_after_setloc): Likewise.
4965 (emit_call_insn_after): Likewise.
4966 (emit_debug_insn_after_setloc): Likewise.
4967 (emit_debug_insn_after): Likewise.
4968 (emit_pattern_before_setloc): Likewise. Add checked casts for now
4969 when converting "last" from rtx to rtx_insn *.
4970 (emit_pattern_before): Strengthen return type from rtx to
4972 (emit_insn_before_setloc): Likewise.
4973 (emit_insn_before): Likewise.
4974 (emit_jump_insn_before_setloc): Likewise.
4975 (emit_jump_insn_before): Likewise.
4976 (emit_call_insn_before_setloc): Likewise.
4977 (emit_call_insn_before): Likewise.
4978 (emit_debug_insn_before_setloc): Likewise.
4979 (emit_debug_insn_before): Likewise.
4980 (emit_insn): Strengthen return type and locals "last", "insn",
4981 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
4982 within cases where we know we have an insn.
4983 (emit_debug_insn): Likewise.
4984 (emit_jump_insn): Likewise.
4985 (emit_call_insn): Strengthen return type and local "insn" from rtx
4987 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
4988 a checked cast to rtx_insn * for now on "label".
4989 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
4990 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
4991 (emit_use): Likewise.
4992 (gen_use): Likewise, also for local "seq".
4993 (emit): Likewise for return type and local "insn".
4994 (rtx_insn): Likewise for return type and local "new_rtx".
4996 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
4997 from rtx to rtx_barrier *.
4999 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5000 changed return type from rtx to rtx_insn *, we must update
5001 "emit_fn" type, and this in turn means updating...
5002 (frame_insn): ...this. Strengthen return type from rtx to
5003 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5005 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5007 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5008 rtx to rtx_jump_table_data *. Also for local.
5009 * rtl.h (emit_jump_table_data): Likewise.
5011 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5013 * basic-block.h (create_basic_block_structure): Strengthen third
5014 param "bb_note" from rtx to rtx_note *.
5015 * rtl.h (emit_note_before): Strengthen return type from rtx to
5017 (emit_note_after): Likewise.
5018 (emit_note): Likewise.
5019 (emit_note_copy): Likewise. Also, strengthen param similarly.
5020 * function.h (struct rtl_data): Strengthen field
5021 "x_stack_check_probe_note" from rtx to rtx_note *.
5023 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5024 from rtx to rtx_note *.
5025 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5026 "bb_note" from rtx to rtx_note *.
5027 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5028 when calling emit_note_copy.
5029 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5031 (emit_note_after): Likewise.
5032 (emit_note_before): Likewise.
5033 (emit_note_copy): Likewise. Also, strengthen param similarly.
5034 (emit_note): Likewise.
5035 * except.c (emit_note_eh_region_end): Likewise for return type.
5036 Strengthen local "next" from rtx to rtx_insn *.
5037 (convert_to_eh_region_ranges): Strengthen local "note"
5038 from rtx to rtx_note *.
5039 * final.c (change_scope): Likewise.
5040 (reemit_insn_block_notes): Likewise, for both locals named "note".
5041 Also, strengthen local "insn" from rtx to rtx_insn *.
5042 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5044 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5045 strengthen local "seq" from rtx to rtx_insn *.
5046 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5048 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5050 (get_bb_note_from_pool): Strengthen return type from rtx to
5052 (sel_create_basic_block): Strengthen local "new_bb_note" from
5053 insn_t to rtx_note *.
5054 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5055 "note" from rtx to rtx_note *.
5056 (emit_notes_in_bb): Likewise.
5058 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5060 * function.h (struct rtl_data): Strengthen field
5061 "x_parm_birth_insn" from rtx to rtx_insn *.
5062 * function.c (struct assign_parm_data_all): Strengthen fields
5063 "first_conversion_insn" and "last_conversion_insn" from rtx to
5066 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5068 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5069 to rtx_insn *; also for local "var_end_seq".
5070 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5071 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5073 (expand_gimple_cond): Likewise for locals "last2" and "last".
5074 (mark_transaction_restart_calls): Likewise for local "insn".
5075 (expand_gimple_stmt): Likewise for return type and locals "last"
5077 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5078 (avoid_complex_debug_insns): Likewise for param "insn".
5079 (expand_debug_locations): Likewise for locals "insn", "last",
5080 "prev_insn" and "insn2".
5081 (expand_gimple_basic_block): Likewise for local "last".
5082 (construct_exit_block): Likewise for locals "head", "end",
5084 (pass_expand::execute): Likewise for locals "var_seq",
5085 "var_ret_seq", "next".
5087 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5089 * asan.h (asan_emit_stack_protection): Strengthen return type from
5091 * asan.c (asan_emit_stack_protection): Likewise. Add local
5092 "insns" to hold the return value.
5094 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5096 * basic-block.h (bb_note): Strengthen return type from rtx to
5098 * sched-int.h (bb_note): Likewise.
5099 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5101 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5103 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5106 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5107 "insn" from rtx to rtx_insn *.
5108 (make_debug_insn_raw): Strengthen return type from rtx to
5109 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5110 (make_jump_insn_raw): Strengthen return type from rtx to
5111 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5112 (make_call_insn_raw): Strengthen return type from rtx to
5113 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5114 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5115 callback from rtx to rtx_insn *; likewise for local "insn" and
5116 "next", adding a checked cast to rtx_insn in the relevant cases of
5117 the switch statement.
5118 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5119 callback from rtx to rtx_insn *.
5120 (emit_pattern_after_setloc): Likewise.
5121 (emit_pattern_after): Likewise.
5122 (emit_pattern_before_setloc): Likewise.
5123 (emit_pattern_before): Likewise.
5125 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5127 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5129 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5130 accepting an rtx_insn *.
5131 (last_call_insn): Strengthen return type from rtx to
5134 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5136 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5137 "insns" from rtx to rtx_insn *.
5138 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5139 locals "insn" and "prev".
5141 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5143 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5144 rtx_jump_table_data **.
5146 * cfgbuild.c (make_edges): Introduce local "table", using it in
5147 place of "tmp" for jump table data.
5148 (find_bb_boundaries): Strengthen local "table" from rtx to
5149 rtx_jump_table_data *.
5150 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5151 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5152 (try_crossjump_to_edge): Likewise.
5153 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5155 (patch_jump_insn): Introduce local "table", using it in place of
5156 "tmp" for jump table data.
5157 (force_nonfallthru_and_redirect): Introduce local "table", so that
5158 call to tablejump_p can receive an rtx_jump_table_data **. Update
5159 logic around the call to overwrite "note" appropriately if
5160 tablejump_p returns non-zero.
5161 (get_last_bb_insn): Introduce local "table", using it in place of
5162 "tmp" for jump table data.
5163 * dwarf2cfi.c (create_trace_edges): Likewise.
5165 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5166 from rtx to rtx_jump_table_data *.
5167 (create_fix_barrier): Strengthen local "tmp" from rtx to
5168 rtx_jump_table_data *.
5169 (arm_reorg): Likewise for local "table".
5171 * config/s390/s390.c (s390_chunkify_start): Likewise.
5173 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5175 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5176 rtx to rtx_jump_table_data *.
5178 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5179 rtx_jump_table_data **. Add a checked cast when writing through
5180 the pointer: we know there that local "table" is non-NULL and that
5181 JUMP_TABLE_DATA_P (table) holds.
5182 (label_is_jump_target_p): Introduce local "table", using it in
5183 place of "tmp" for jump table data.
5185 2014-08-19 Marek Polacek <polacek@redhat.com>
5188 * doc/invoke.texi: Document -Wbool-compare.
5190 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5192 * rtl.h (entry_of_function): Strengthen return type from rtx to
5194 * cfgrtl.c (entry_of_function): Likewise.
5196 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5198 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5199 rtx_insn *, adding a checked cast for now.
5200 (get_last_insn): Likewise.
5202 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5204 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5207 * emit-rtl.c (gen_label_rtx): Likewise.
5209 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5211 * rtl.h (previous_insn): Strengthen return type from rtx to
5213 (next_insn): Likewise.
5214 (prev_nonnote_insn): Likewise.
5215 (prev_nonnote_insn_bb): Likewise.
5216 (next_nonnote_insn): Likewise.
5217 (next_nonnote_insn_bb): Likewise.
5218 (prev_nondebug_insn): Likewise.
5219 (next_nondebug_insn): Likewise.
5220 (prev_nonnote_nondebug_insn): Likewise.
5221 (next_nonnote_nondebug_insn): Likewise.
5222 (prev_real_insn): Likewise.
5223 (next_real_insn): Likewise.
5224 (prev_active_insn): Likewise.
5225 (next_active_insn): Likewise.
5227 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5228 rtx_insn *, adding a checked cast.
5229 (previous_insn): Likewise.
5230 (next_nonnote_insn): Likewise.
5231 (next_nonnote_insn_bb): Likewise.
5232 (prev_nonnote_insn): Likewise.
5233 (prev_nonnote_insn_bb): Likewise.
5234 (next_nondebug_insn): Likewise.
5235 (prev_nondebug_insn): Likewise.
5236 (next_nonnote_nondebug_insn): Likewise.
5237 (prev_nonnote_nondebug_insn): Likewise.
5238 (next_real_insn): Likewise.
5239 (prev_real_insn): Likewise.
5240 (next_active_insn): Likewise.
5241 (prev_active_insn): Likewise.
5243 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5244 param "stepfunc" so that it returns an rtx_insn * rather than an
5245 rtx, to track the change to prev_nonnote_insn_bb, which is the
5246 only function this is called with.
5247 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5249 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5251 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5254 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5256 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5257 (class rtx_nonjump_insn): Likewise.
5258 (class rtx_jump_insn): Likewise.
5259 (class rtx_call_insn): Likewise.
5260 (class rtx_jump_table_data): Likewise.
5261 (class rtx_barrier): Likewise.
5262 (class rtx_code_label): Likewise.
5263 (class rtx_note): Likewise.
5265 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5266 adding the invariant DEBUG_INSN_P (X).
5267 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5268 the invariant NONJUMP_INSN_P (X).
5269 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5270 the invariant JUMP_P (X).
5271 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5272 the invariant CALL_P (X).
5273 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5274 invariant JUMP_TABLE_DATA_P (X).
5275 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5276 invariant BARRIER_P (X).
5277 (class rtx_code_label): New, a subclass of rtx_insn, adding
5278 the invariant LABEL_P (X).
5279 (class rtx_note): New, a subclass of rtx_insn, adding
5280 the invariant NOTE_P(X).
5281 (is_a_helper <rtx_debug_insn *>::test): New.
5282 (is_a_helper <rtx_nonjump_insn *>::test): New.
5283 (is_a_helper <rtx_jump_insn *>::test): New.
5284 (is_a_helper <rtx_call_insn *>::test): New.
5285 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5286 overloaded for both rtx and rtx_insn *.
5287 (is_a_helper <rtx_barrier *>::test): New.
5288 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5289 for both rtx and rtx_insn *.
5290 (is_a_helper <rtx_note *>::test): New.
5292 2014-08-19 Marek Polacek <polacek@redhat.com>
5294 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5295 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5296 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5297 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5299 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5301 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5302 rtx_insn *. To help with transition, for now, convert from an
5303 access macro into a pair of functions: BND_TO, returning an
5305 (SET_BND_TO): New function, for use where BND_TO is used as an
5308 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5310 (BND_TO): New function, adding a checked cast.
5311 (SET_BND_TO): New function.
5313 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5315 (compute_av_set_on_boundaries): Likewise.
5317 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5319 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5320 destination if it is used in source.
5321 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5322 (*popcount<mode>2_falsedep_1): Likewise.
5324 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5327 * configure.ac: Set install_gold_as_default to no first.
5328 * configure: Regenerated.
5330 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5332 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5333 "note_list" field will eventually be an rtx_insn *. To help with
5334 transition, for now, convert from an access macro into a pair of
5335 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5336 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5339 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5340 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5342 * sel-sched-ir.c (init_bb): Likewise.
5343 (sel_restore_notes): Likewise.
5344 (move_bb_info): Likewise.
5345 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5346 (SET_BB_NOTE_LIST): New function.
5348 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5350 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5351 field will eventually be an rtx_insn *. To help with transition,
5352 for now, convert from an access macro into a pair of functions:
5353 VINSN_INSN_RTX, returning an rtx_insn *, and...
5354 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5355 is used as an lvalue.
5357 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5358 SET_VINSN_INSN_RTX where it's used as an lvalue.
5359 (VINSN_INSN_RTX): New function.
5360 (SET_VINSN_INSN_RTX): New function.
5362 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5364 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5365 eventually be rtx_insn *, but to help with transition, for now,
5366 convert from an access macro into a pair of functions: DEP_PRO
5367 returning an rtx_insn * and...
5368 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5369 lvalue, returning an rtx&.
5370 (DEP_CON): Analogous changes to DEP_PRO above.
5371 (SET_DEP_CON): Likewise.
5373 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5374 an lvalue to SET_DEP_CON.
5375 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5376 (sd_copy_back_deps): Likewise for DEP_CON.
5377 (DEP_PRO): New function, adding a checked cast for now.
5378 (DEP_CON): Likewise.
5379 (SET_DEP_PRO): New function.
5380 (SET_DEP_CON): Likewise.
5382 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5384 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5385 (extra_options): Add i386/cygwin.opt.
5386 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5387 (CPP_SPEC): Accept -pthread.
5389 (GOMP_SELF_SPECS): Update comment.
5390 * config/i386/cygwin.opt: New file for -pthread flag.
5392 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5394 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5395 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5396 that we can return an rtx_insn *.
5398 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5400 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5401 when building executables, not DLLs. Add --large-address-aware
5402 under the same conditions.
5403 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5404 when building executables, not DLLs. Add --large-address-aware
5405 under the same conditions when using -m32.
5407 * config/i386/cygwin-stdint.h: Throughout, make type
5408 definitions dependent on target architecture, not host.
5410 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5412 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5413 the return type from rtx to rtx_insn *, which will enable various
5414 conversions in followup patches. For now this is is done by a
5416 (NEXT_INSN): Likewise.
5417 (SET_PREV_INSN): Convert to an inline function. This is intended
5418 for use as an lvalue, and so returns an rtx& to allow in-place
5420 (SET_NEXT_INSN): Likewise.
5422 2014-07-08 Mark Wielaard <mjw@redhat.com>
5425 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5427 2014-08-19 Marek Polacek <polacek@redhat.com>
5430 * cgraphunit.c (handle_alias_pairs): Fix condition.
5432 2014-08-19 Richard Biener <rguenther@suse.de>
5434 * gimple-fold.c (fold_gimple_assign): Properly build a
5435 null-pointer constant when devirtualizing addresses.
5437 2014-07-07 Mark Wielaard <mjw@redhat.com>
5439 * dwarf2out.c (decl_quals): New function.
5440 (modified_type_die): Take one cv_quals argument instead of two,
5441 one for const and one for volatile.
5442 (add_type_attribute): Likewise.
5443 (generic_parameter_die): Call add_type_attribute with one modifier
5445 (base_type_for_mode): Likewise.
5446 (add_bounds_info): Likewise.
5447 (add_subscript_info): Likewise.
5448 (gen_array_type_die): Likewise.
5449 (gen_descr_array_type_die): Likewise.
5450 (gen_entry_point_die): Likewise.
5451 (gen_enumeration_type_die): Likewise.
5452 (gen_formal_parameter_die): Likewise.
5453 (gen_subprogram_die): Likewise.
5454 (gen_variable_die): Likewise.
5455 (gen_const_die): Likewise.
5456 (gen_field_die): Likewise.
5457 (gen_pointer_type_die): Likewise.
5458 (gen_reference_type_die): Likewise.
5459 (gen_ptr_to_mbr_type_die): Likewise.
5460 (gen_inheritance_die): Likewise.
5461 (gen_subroutine_type_die): Likewise.
5462 (gen_typedef_die): Likewise.
5463 (force_type_die): Likewise.
5465 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5467 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5469 * configure: Regenerate.
5471 2014-08-19 Richard Biener <rguenther@suse.de>
5473 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5474 DECL_EXTERNALs in BLOCKs as non-references.
5475 * tree-streamer-out.c (streamer_write_chain): Likewise.
5477 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5478 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5479 Anna Tikhonova <anna.tikhonova@intel.com>
5480 Ilya Tocar <ilya.tocar@intel.com>
5481 Andrey Turetskiy <andrey.turetskiy@intel.com>
5482 Ilya Verbin <ilya.verbin@intel.com>
5483 Kirill Yukhin <kirill.yukhin@intel.com>
5484 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5486 * config/i386/sse.md
5487 (define_mode_iterator VI48_AVX512F): Delete.
5488 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5489 (define_mode_iterator VI2_AVX512VL): Ditto.
5490 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5493 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5495 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5496 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5497 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5498 with VI48_AVX512F_AVX512VL): New.
5499 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5500 with VI2_AVX512VL): Ditto.
5502 2014-08-19 Marek Polacek <polacek@redhat.com>
5504 * doc/invoke.texi: Document -Wc99-c11-compat.
5506 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5508 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5510 (SET_PREV_INSN): New macro, for use as an lvalue.
5511 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5513 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5514 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5515 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5516 (fixup_abnormal_edges): Likewise.
5517 (unlink_insn_chain): Likewise.
5518 (fixup_reorder_chain): Likewise.
5519 (cfg_layout_delete_block): Likewise.
5520 (cfg_layout_merge_blocks): Likewise.
5521 * combine.c (update_cfg_for_uncondjump): Likewise.
5522 * emit-rtl.c (link_insn_into_chain): Likewise.
5523 (remove_insn): Likewise.
5524 (delete_insns_since): Likewise.
5525 (reorder_insns_nobb): Likewise.
5526 (emit_insn_after_1): Likewise.
5527 * final.c (rest_of_clean_state): Likewise.
5528 (final_scan_insn): Likewise.
5529 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5530 * haifa-sched.c (concat_note_lists): Likewise.
5531 (remove_notes): Likewise.
5532 (restore_other_notes): Likewise.
5533 (move_insn): Likewise.
5534 (unlink_bb_notes): Likewise.
5535 (restore_bb_notes): Likewise.
5536 * jump.c (delete_for_peephole): Likewise.
5537 * optabs.c (emit_libcall_block_1): Likewise.
5538 * reorg.c (emit_delay_sequence): Likewise.
5539 (fill_simple_delay_slots): Likewise.
5540 * sel-sched-ir.c (sel_move_insn): Likewise.
5541 (sel_remove_insn): Likewise.
5542 (get_bb_note_from_pool): Likewise.
5543 * sel-sched.c (move_nop_to_previous_block): Likewise.
5545 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5546 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5547 (c6x_gen_bundles): Likewise.
5548 (hwloop_optimize): Likewise.
5549 * config/frv/frv.c (frv_function_prologue): Likewise.
5550 (frv_register_nop): Likewise.
5551 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5552 (ia64_reorg): Likewise.
5553 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5554 (mep_make_bundle): Likewise.
5555 (mep_bundle_insns): Likewise.
5556 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5557 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5558 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5560 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5562 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
5563 return type from rtx to rtx_insn *.
5565 (BB_HEADER): Likewise.
5566 (BB_FOOTER): Likewise.
5567 (SET_BB_HEAD): Convert to a function.
5568 (SET_BB_END): Likewise.
5569 (SET_BB_HEADER): Likewise.
5570 (SET_BB_FOOTER): Likewise.
5572 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5573 Strengthen the return type from rtx to rtx_insn *. For now, this
5574 is done by adding a checked cast, but this will eventually
5575 become a field lookup.
5577 (BB_HEADER): Likewise.
5578 (BB_FOOTER): Likewise.
5579 (SET_BB_HEAD): New function, from macro of same name. This is
5580 intended for use as an lvalue, and so returns an rtx& to allow
5581 in-place modification.
5582 (SET_BB_END): Likewise.
5583 (SET_BB_HEADER): Likewise.
5584 (SET_BB_FOOTER): Likewise.
5586 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5588 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
5590 (SET_BB_HEAD): New macro, for use as a lvalue.
5591 (BB_END, SET_BB_END): Likewise.
5592 (BB_HEADER, SET_BB_HEADER): Likewise.
5593 (BB_FOOTER, SET_BB_FOOTER): Likewise.
5595 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
5596 of BB_* macros into SET_BB_* macros.
5597 (fix_crossing_unconditional_branches): Likewise.
5598 * caller-save.c (save_call_clobbered_regs): Likewise.
5599 (insert_one_insn): Likewise.
5600 * cfgbuild.c (find_bb_boundaries): Likewise.
5601 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5602 (outgoing_edges_match): Likewise.
5603 (try_optimize_cfg): Likewise.
5604 * cfgexpand.c (expand_gimple_cond): Likewise.
5605 (expand_gimple_tailcall): Likewise.
5606 (expand_gimple_basic_block): Likewise.
5607 (construct_exit_block): Likewise.
5608 * cfgrtl.c (delete_insn): Likewise.
5609 (create_basic_block_structure): Likewise.
5610 (rtl_delete_block): Likewise.
5611 (rtl_split_block): Likewise.
5612 (emit_nop_for_unique_locus_between): Likewise.
5613 (rtl_merge_blocks): Likewise.
5614 (block_label): Likewise.
5615 (try_redirect_by_replacing_jump): Likewise.
5616 (emit_barrier_after_bb): Likewise.
5617 (fixup_abnormal_edges): Likewise.
5618 (record_effective_endpoints): Likewise.
5619 (relink_block_chain): Likewise.
5620 (fixup_reorder_chain): Likewise.
5621 (fixup_fallthru_exit_predecessor): Likewise.
5622 (cfg_layout_duplicate_bb): Likewise.
5623 (cfg_layout_split_block): Likewise.
5624 (cfg_layout_delete_block): Likewise.
5625 (cfg_layout_merge_blocks): Likewise.
5626 * combine.c (update_cfg_for_uncondjump): Likewise.
5627 * emit-rtl.c (add_insn_after): Likewise.
5628 (remove_insn): Likewise.
5629 (reorder_insns): Likewise.
5630 (emit_insn_after_1): Likewise.
5631 * haifa-sched.c (get_ebb_head_tail): Likewise.
5632 (restore_other_notes): Likewise.
5633 (move_insn): Likewise.
5634 (sched_extend_bb): Likewise.
5635 (fix_jump_move): Likewise.
5636 * ifcvt.c (noce_process_if_block): Likewise.
5637 (dead_or_predicable): Likewise.
5638 * ira.c (update_equiv_regs): Likewise.
5639 * reg-stack.c (change_stack): Likewise.
5640 * sel-sched-ir.c (sel_move_insn): Likewise.
5641 * sel-sched.c (move_nop_to_previous_block): Likewise.
5643 * config/c6x/c6x.c (hwloop_optimize): Likewise.
5644 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5646 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5648 * rtl.h (for_each_rtx_in_insn): New function.
5649 * rtlanal.c (for_each_rtx_in_insn): Likewise.
5651 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5653 * coretypes.h (class rtx_insn): Add forward declaration.
5655 * rtl.h: Include is-a.h.
5656 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
5657 workaround to ensure gengtype knows inheritance is occurring,
5658 whilst continuing to use the pre-existing special-casing for
5660 (class rtx_insn): New subclass of rtx_def, adding the
5661 invariant that we're dealing with something we can sanely use
5662 INSN_UID, NEXT_INSN, PREV_INSN on.
5663 (is_a_helper <rtx_insn *>::test): New.
5664 (is_a_helper <const rtx_insn *>::test): New.
5666 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5668 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
5670 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5672 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
5675 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5677 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
5678 to BUILT_IN_UNREACHABLE.
5680 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
5683 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
5685 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
5686 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
5687 (ffs<mode>2): Do not expand with tzcnt for
5688 TARGET_AVOID_FALSE_DEP_FOR_BMI.
5689 (ffssi2_no_cmove): Ditto.
5690 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
5691 (ctz<mode>2): New expander.
5692 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
5693 (*ctz<mode>2_falsedep): New insn.
5694 (*ctz<mode>2): Rename from ctz<mode>2.
5695 (clz<mode>2_lzcnt): New expander.
5696 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
5697 (*clz<mode>2_lzcnt_falsedep): New insn.
5698 (*clz<mode>2): Rename from ctz<mode>2.
5699 (popcount<mode>2): New expander.
5700 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
5701 (*popcount<mode>2_falsedep): New insn.
5702 (*popcount<mode>2): Rename from ctz<mode>2.
5703 (*popcount<mode>2_cmp): Remove.
5704 (*popcountsi2_cmp_zext): Ditto.
5706 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
5708 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
5709 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
5710 * config/microblaze/microblaze.h
5711 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
5713 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
5716 * configure.ac: Set install_gold_as_default to no for
5718 * configure: Regenerated.
5720 2014-08-18 Roman Gareev <gareevroman@gmail.com>
5722 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
5723 * config.in: Add undef of HAVE_isl.
5724 * configure: Regenerate.
5725 * configure.ac: Add definition of HAVE_isl.
5726 * graphite-blocking.c: Add checking of HAVE_isl.
5727 * graphite-dependences.c: Likewise.
5728 * graphite-interchange.c: Likewise.
5729 * graphite-isl-ast-to-gimple.c: Likewise.
5730 * graphite-optimize-isl.c: Likewise.
5731 * graphite-poly.c: Likewise.
5732 * graphite-scop-detection.c: Likewise.
5733 * graphite-sese-to-poly.c: Likewise.
5734 * graphite.c: Likewise.
5735 * toplev.c: Replace the checking of HAVE_cloog with the checking
5738 2014-08-18 Richard Biener <rguenther@suse.de>
5740 PR tree-optimization/62090
5741 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
5742 (fold_builtin_3): Do not fold snprintf.
5743 (fold_builtin_4): Likewise.
5744 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
5745 moved from builtins.c.
5746 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
5747 (gimple_fold_builtin): Do not fold sprintf here.
5749 2014-08-18 Richard Biener <rguenther@suse.de>
5751 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
5753 (maybe_canonicalize_mem_ref_addr): ... this function.
5754 (fold_stmt_1): Apply it here before all simplification.
5756 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
5759 * cgraph.h (cgraph_node::create_indirect_edge): Add
5760 compute_indirect_info param.
5761 * cgraph.c (cgraph_node::create_indirect_edge): Compute
5762 indirect_info only when it is required.
5763 * cgraphclones.c (cgraph_clone_edge): Do not recompute
5764 indirect_info fore cloned indirect edge.
5766 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5767 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5768 Anna Tikhonova <anna.tikhonova@intel.com>
5769 Ilya Tocar <ilya.tocar@intel.com>
5770 Andrey Turetskiy <andrey.turetskiy@intel.com>
5771 Ilya Verbin <ilya.verbin@intel.com>
5772 Kirill Yukhin <kirill.yukhin@intel.com>
5773 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5775 * config/i386/sse.md
5776 (define_mode_iterator VI8_AVX2_AVX512BW): New.
5777 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
5779 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5780 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5781 Anna Tikhonova <anna.tikhonova@intel.com>
5782 Ilya Tocar <ilya.tocar@intel.com>
5783 Andrey Turetskiy <andrey.turetskiy@intel.com>
5784 Ilya Verbin <ilya.verbin@intel.com>
5785 Kirill Yukhin <kirill.yukhin@intel.com>
5786 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5788 * config/i386/sse.md
5789 (define_mode_iterator VF1_AVX512VL): New.
5790 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
5791 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
5794 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5795 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5796 Anna Tikhonova <anna.tikhonova@intel.com>
5797 Ilya Tocar <ilya.tocar@intel.com>
5798 Andrey Turetskiy <andrey.turetskiy@intel.com>
5799 Ilya Verbin <ilya.verbin@intel.com>
5800 Kirill Yukhin <kirill.yukhin@intel.com>
5801 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5803 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
5804 * config/i386/i386.md
5805 (define_code_iterator any_float): New.
5806 (define_code_attr floatsuffix): New.
5807 * config/i386/sse.md
5808 (define_mode_iterator VF1_128_256VL): New.
5809 (define_mode_iterator VF2_512_256VL): New.
5810 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
5812 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
5813 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
5815 (define_mode_attr qq2pssuff): New.
5816 (define_mode_attr sselongvecmode): New.
5817 (define_mode_attr sselongvecmodelower): New.
5818 (define_mode_attr sseintvecmode3): New.
5819 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
5821 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
5822 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
5823 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
5824 (define_insn "ufloatv2siv2df2<mask_name>"): New.
5826 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5827 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5828 Anna Tikhonova <anna.tikhonova@intel.com>
5829 Ilya Tocar <ilya.tocar@intel.com>
5830 Andrey Turetskiy <andrey.turetskiy@intel.com>
5831 Ilya Verbin <ilya.verbin@intel.com>
5832 Kirill Yukhin <kirill.yukhin@intel.com>
5833 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5835 * config/i386/sse.md
5836 (define_mode_iterator VF2_AVX512VL): New.
5837 (define_mode_attr sseintvecmode2): New.
5838 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
5839 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
5840 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
5842 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
5844 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5846 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5849 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5850 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5851 Anna Tikhonova <anna.tikhonova@intel.com>
5852 Ilya Tocar <ilya.tocar@intel.com>
5853 Andrey Turetskiy <andrey.turetskiy@intel.com>
5854 Ilya Verbin <ilya.verbin@intel.com>
5855 Kirill Yukhin <kirill.yukhin@intel.com>
5856 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5858 * config/i386/i386.md
5859 (define_insn "*movoi_internal_avx"): Add evex version.
5860 (define_insn "*movti_internal"): Ditto.
5862 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5863 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5864 Anna Tikhonova <anna.tikhonova@intel.com>
5865 Ilya Tocar <ilya.tocar@intel.com>
5866 Andrey Turetskiy <andrey.turetskiy@intel.com>
5867 Ilya Verbin <ilya.verbin@intel.com>
5868 Kirill Yukhin <kirill.yukhin@intel.com>
5869 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5871 * config/i386/i386.md
5872 (define_attr "isa"): Add avx512dq, noavx512dq.
5873 (define_attr "enabled"): Ditto.
5874 * config/i386/sse.md
5875 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
5877 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5878 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5879 Anna Tikhonova <anna.tikhonova@intel.com>
5880 Ilya Tocar <ilya.tocar@intel.com>
5881 Andrey Turetskiy <andrey.turetskiy@intel.com>
5882 Ilya Verbin <ilya.verbin@intel.com>
5883 Kirill Yukhin <kirill.yukhin@intel.com>
5884 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5886 * config/i386/i386.c
5887 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
5888 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
5889 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
5890 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
5891 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
5892 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
5893 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
5894 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
5895 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
5896 * config/i386/sse.md
5897 (define_mode_iterator VMOVE): Allow V4TI mode.
5898 (define_mode_iterator V_AVX512VL): New.
5899 (define_mode_iterator V): New handling for AVX512VL.
5900 (define_insn "avx512f_load<mode>_mask"): Delete.
5901 (define_insn "<avx512>_load<mode>_mask"): New.
5902 (define_insn "avx512f_store<mode>_mask"): Delete.
5903 (define_insn "<avx512>_store<mode>_mask"): New.
5906 2014-08-18 Yury Gribov <y.gribov@samsung.com>
5909 * asan.c (instrument_derefs): Fix bitfield check.
5911 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5913 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
5914 * config/rs6000/htm.md (ttest): Remove clobber.
5915 * config/rs6000/predicates.md (any_mask_operand): New predicate.
5916 (and_operand): Reformat.
5917 (and_2rld_operand): New predicate.
5918 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
5920 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
5921 parameter. Handle AND directly.
5922 (rs6000_split_logical_di): Remove last parameter.
5923 (rs6000_split_logical): Remove last parameter. Remove obsolete
5925 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
5926 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
5927 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
5928 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
5929 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
5930 and 5 anonymous splitters): Delete.
5931 (and<mode>3): New expander.
5932 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
5933 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
5934 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
5935 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
5936 (floatdisf2_internal1): Remove clobbers.
5937 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
5938 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
5939 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
5940 (and<mode>3 for BOOL_128): Remove clobber.
5941 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
5942 rs6000_split_logical.
5943 (*bool<mode>3_internal for BOOL_128): Adjust call of
5944 rs6000_split_logical.
5945 (*boolc<mode>3_internal1 for BOOL_128,
5946 *boolc<mode>3_internal2 for BOOL_128,
5947 *boolcc<mode>3_internal1 for BOOL_128,
5948 *boolcc<mode>3_internal2 for BOOL_128,
5949 *eqv<mode>3_internal1 for BOOL_128,
5950 *eqv<mode>3_internal2 for BOOL_128,
5951 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
5952 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
5954 (*vec_reload_and_reg_<mptrsize>): Delete.
5956 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5958 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
5959 and split, *boolccsi3_internal3 and split): Delete.
5960 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
5961 *boolccdi3_internal3 and split): Delete.
5962 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
5963 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
5965 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5967 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
5968 and split, *boolcsi3_internal3 and split): Delete.
5969 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
5970 *boolcdi3_internal3 and split): Delete.
5971 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
5973 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5975 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
5976 <'u'>: Also support printing the low-order 16 bits.
5977 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
5978 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
5979 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
5980 *booldi3_internal3 and split): Delete.
5981 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
5982 *bool<mode>3_dot2): New.
5983 (two anonymous define_splits for non_logical_cint_operand): Merge.
5985 2014-08-17 Marek Polacek <polacek@redhat.com>
5986 Manuel López-Ibáñez <manu@gcc.gnu.org>
5989 * diagnostic.c (adjust_line): Add gcc_checking_assert.
5990 (diagnostic_show_locus): Don't print caret diagnostic
5991 if a column is larger than the line_width.
5993 2014-08-17 Roman Gareev <gareevroman@gmail.com>
5995 * common.opt: Make the ISL AST generator to be the main code generator
5998 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6000 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6002 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6005 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6007 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6008 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6009 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6011 * config/pa/pa.md (begin_brtab): Delete insn.
6012 (end_brtab): Likewise.
6014 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6016 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6018 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6020 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6021 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6022 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6023 (get_dynamic_type): Remove.
6024 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6025 (clear_speculation): Bring to ipa-deivrt.h
6026 (get_class_context): Rename to ...
6027 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6028 (contains_type_p): Update.
6029 (get_dynamic_type): Rename to ...
6030 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6031 (possible_polymorphic_call_targets): UPdate.
6032 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6033 * ipa-prop.c (ipa_analyze_call_uses): Update.
6035 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6037 * doc/invoke.texi (SH options): Document missing processor variant
6038 options. Remove references to Hitachi. Undocument deprecated mspace
6041 2014-08-15 Jason Merrill <jason@redhat.com>
6043 * tree.c (type_hash_canon): Uncomment assert.
6045 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6047 * input.h (in_system_header_at): Add comment.
6049 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6052 * diagnostic.c (build_message_string): Make it extern.
6053 * diagnostic.h (build_message_string): Make it extern.
6055 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6057 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6058 load/store from/to non-floating class pseudo.
6060 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6062 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6064 2014-08-15 Richard Biener <rguenther@suse.de>
6066 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6067 (get_constraint_for_ssa_var): Remove dead code.
6068 (get_constraint_for_1): Adjust.
6069 (find_what_var_points_to): Likewise.
6070 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6072 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6075 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6076 (_mm512_mask_cmpge_epu32_mask): Ditto.
6077 (_mm512_cmpge_epu32_mask): Ditto.
6078 (_mm512_mask_cmpge_epi64_mask): Ditto.
6079 (_mm512_cmpge_epi64_mask): Ditto.
6080 (_mm512_mask_cmpge_epu64_mask): Ditto.
6081 (_mm512_cmpge_epu64_mask): Ditto.
6082 (_mm512_mask_cmple_epi32_mask): Ditto.
6083 (_mm512_cmple_epi32_mask): Ditto.
6084 (_mm512_mask_cmple_epu32_mask): Ditto.
6085 (_mm512_cmple_epu32_mask): Ditto.
6086 (_mm512_mask_cmple_epi64_mask): Ditto.
6087 (_mm512_cmple_epi64_mask): Ditto.
6088 (_mm512_mask_cmple_epu64_mask): Ditto.
6089 (_mm512_cmple_epu64_mask): Ditto.
6090 (_mm512_mask_cmplt_epi32_mask): Ditto.
6091 (_mm512_cmplt_epi32_mask): Ditto.
6092 (_mm512_mask_cmplt_epu32_mask): Ditto.
6093 (_mm512_cmplt_epu32_mask): Ditto.
6094 (_mm512_mask_cmplt_epi64_mask): Ditto.
6095 (_mm512_cmplt_epi64_mask): Ditto.
6096 (_mm512_mask_cmplt_epu64_mask): Ditto.
6097 (_mm512_cmplt_epu64_mask): Ditto.
6098 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6099 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6100 (_mm512_cmpneq_epu32_mask): Ditto.
6101 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6102 (_mm512_cmpneq_epi64_mask): Ditto.
6103 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6104 (_mm512_cmpneq_epu64_mask): Ditto.
6105 (_mm512_castpd_ps): Ditto.
6106 (_mm512_castpd_si512): Ditto.
6107 (_mm512_castps_pd): Ditto.
6108 (_mm512_castps_si512): Ditto.
6109 (_mm512_castsi512_ps): Ditto.
6110 (_mm512_castsi512_pd): Ditto.
6111 (_mm512_castpd512_pd128): Ditto.
6112 (_mm512_castps512_ps128): Ditto.
6113 (_mm512_castsi512_si128): Ditto.
6114 (_mm512_castpd512_pd256): Ditto.
6115 (_mm512_castps512_ps256): Ditto.
6116 (_mm512_castsi512_si256): Ditto.
6117 (_mm512_castpd128_pd512): Ditto.
6118 (_mm512_castps128_ps512): Ditto.
6119 (_mm512_castsi128_si512): Ditto.
6120 (_mm512_castpd256_pd512): Ditto.
6121 (_mm512_castps256_ps512): Ditto.
6122 (_mm512_castsi256_si512): Ditto.
6123 (_mm512_cmpeq_epu32_mask): Ditto.
6124 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6125 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6126 (_mm512_cmpeq_epu64_mask): Ditto.
6127 (_mm512_cmpgt_epu32_mask): Ditto.
6128 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6129 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6130 (_mm512_cmpgt_epu64_mask): Ditto.
6131 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6132 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6133 * config/i386/i386.c (enum ix86_builtins): Add
6134 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6135 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6136 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6137 (bdesc_args): Add __builtin_ia32_si512_256si,
6138 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6139 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6140 __builtin_ia32_pd512_pd.
6141 (ix86_expand_args_builtin): Handle new FTYPEs.
6142 * config/i386/sse.md (castmode): Add 512-bit modes.
6143 (AVX512MODE2P): New.
6144 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6145 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6147 2014-08-15 Richard Biener <rguenther@suse.de>
6149 * fold-const.c (tree_swap_operands_p): Put all constants
6150 last, also strip sign-changing NOPs when considering further
6151 canonicalization. Canonicalize also when optimizing for size.
6153 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6155 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6156 one_match > zero_match case to just before simple_sequence.
6158 2014-08-15 Richard Biener <rguenther@suse.de>
6160 * data-streamer.h (streamer_string_index, string_for_index):
6162 * data-streamer-out.c (streamer_string_index): Make static.
6163 * data-streamer-in.c (string_for_index): Likewise.
6164 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6165 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6167 2014-08-15 Richard Biener <rguenther@suse.de>
6169 PR tree-optimization/62031
6170 * tree-data-ref.c (dr_analyze_indices): Do not set
6171 DR_UNCONSTRAINED_BASE.
6172 (dr_may_alias_p): All indirect accesses have to go the
6173 formerly DR_UNCONSTRAINED_BASE path.
6174 * tree-data-ref.h (struct indices): Remove
6175 unconstrained_base member.
6176 (DR_UNCONSTRAINED_BASE): Remove.
6178 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6181 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6182 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6183 in OMP_CLAUSE_MAP in some outer target region.
6185 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6187 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6188 name_expansion_cache.
6189 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6190 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6191 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6192 (difference_cannot_overflow_p): New parameter. Use affine
6193 expansion for equality check.
6194 (iv_elimination_compare_lt): Pass new argument.
6196 2014-08-14 DJ Delorie <dj@redhat.com>
6198 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6199 variables to the accumulator.
6201 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6202 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6203 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6206 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6207 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6208 (umulqihi3_virt): Likewise.
6209 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6210 (umulqihi3_real): Likewise.
6212 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6214 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6216 PR tree-optimization/62091
6217 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6218 function_entry_reached.
6219 (walk_aliased_vdefs): Clear it here.
6220 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6222 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6224 * ipa-utils.h (compare_virtual_tables): Declare.
6225 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6227 2014-08-14 Marek Polacek <polacek@redhat.com>
6230 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6231 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6233 2014-08-14 Tom de Vries <tom@codesourcery.com>
6235 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6237 2014-08-14 Tom de Vries <tom@codesourcery.com>
6239 PR rtl-optimization/62004
6240 PR rtl-optimization/62030
6241 * ifcvt.c (rtx_interchangeable_p): New function.
6242 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6243 * emit-rtl.h (mem_attrs_eq_p): Declare.
6245 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6247 * graphite-scop-detection.c:
6248 Add inclusion of cp-tree.h.
6249 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6250 in case they are pointers to object types
6252 2014-08-14 Richard Biener <rguenther@suse.de>
6254 * BASE-VER: Change to 5.0.0
6256 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6257 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6258 Anna Tikhonova <anna.tikhonova@intel.com>
6259 Ilya Tocar <ilya.tocar@intel.com>
6260 Andrey Turetskiy <andrey.turetskiy@intel.com>
6261 Ilya Verbin <ilya.verbin@intel.com>
6262 Kirill Yukhin <kirill.yukhin@intel.com>
6263 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6265 * config/i386/sse.md (define_mode_attr avx512): New.
6266 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6268 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6269 (define_mode_attr ssse3_avx2): Ditto.
6270 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6271 (define_mode_attr avx2_avx512bw): New.
6272 (define_mode_attr ssedoublemodelower): New.
6273 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6275 (define_mode_attr ssebytemode): Allow V8DI modes.
6276 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6277 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6278 (define_mode_attr ssePSmode2): New.
6279 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6281 (define_mode_attr dbpsadbwmode): New.
6282 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6283 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6284 (vi8_sse4_1_avx2_avx512): New.
6285 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6287 (define_mode_attr blendbits): Move before its immediate use.
6289 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6290 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6291 Anna Tikhonova <anna.tikhonova@intel.com>
6292 Ilya Tocar <ilya.tocar@intel.com>
6293 Andrey Turetskiy <andrey.turetskiy@intel.com>
6294 Ilya Verbin <ilya.verbin@intel.com>
6295 Kirill Yukhin <kirill.yukhin@intel.com>
6296 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6298 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6299 * config/i386/subst.md
6300 (define_mode_iterator SUBST_V): Update.
6301 (define_mode_iterator SUBST_A): Ditto.
6302 (define_subst_attr "mask_operand7"): New.
6303 (define_subst_attr "mask_operand10"): New.
6304 (define_subst_attr "mask_operand_arg34") : New.
6305 (define_subst_attr "mask_expand_op3"): New.
6306 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6307 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6308 (define_subst_attr "mask_avx512vl_condition"): New.
6309 (define_subst_attr "round_mask_operand4"): Ditto.
6310 (define_subst_attr "round_mask_scalar_op3"): Delete.
6311 (define_subst_attr "round_mask_op4"): New.
6312 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6314 (define_subst_attr "round_modev8sf_condition"): New.
6315 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6317 (define_subst_attr "round_saeonly_mask_operand4"): New.
6318 (define_subst_attr "round_saeonly_mask_op4"): New.
6319 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6320 V8DImode, V16SImode.
6321 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6322 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6323 (define_subst_attr "mask_expand4_args"): New.
6324 (define_subst "mask_expand4"): New.
6326 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6327 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6328 Anna Tikhonova <anna.tikhonova@intel.com>
6329 Ilya Tocar <ilya.tocar@intel.com>
6330 Andrey Turetskiy <andrey.turetskiy@intel.com>
6331 Ilya Verbin <ilya.verbin@intel.com>
6332 Kirill Yukhin <kirill.yukhin@intel.com>
6333 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6335 * config/i386/i386.md
6336 (define_attr "isa"): Add avx512bw,noavx512bw.
6337 (define_attr "enabled"): Ditto.
6338 (define_split): Add 32/64-bit mask logic.
6339 (define_insn "*k<logic>qi"): New.
6340 (define_insn "*k<logic>hi"): New.
6341 (define_insn "*anddi_1"): Add mask version.
6342 (define_insn "*andsi_1"): Ditto.
6343 (define_insn "*<code><mode>_1"): Ditto.
6344 (define_insn "*<code>hi_1"): Ditto.
6345 (define_insn "kxnor<mode>"): New.
6346 (define_insn "kunpcksi"): New.
6347 (define_insn "kunpckdi"): New.
6348 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6349 (define_insn "*one_cmplhi2_1"): Ditto.
6351 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6352 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6353 Anna Tikhonova <anna.tikhonova@intel.com>
6354 Ilya Tocar <ilya.tocar@intel.com>
6355 Andrey Turetskiy <andrey.turetskiy@intel.com>
6356 Ilya Verbin <ilya.verbin@intel.com>
6357 Kirill Yukhin <kirill.yukhin@intel.com>
6358 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6360 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6363 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6364 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6365 Anna Tikhonova <anna.tikhonova@intel.com>
6366 Ilya Tocar <ilya.tocar@intel.com>
6367 Andrey Turetskiy <andrey.turetskiy@intel.com>
6368 Ilya Verbin <ilya.verbin@intel.com>
6369 Kirill Yukhin <kirill.yukhin@intel.com>
6370 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6372 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6374 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6375 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6376 xmm/ymm16+ when availble.
6377 * config/i386/i386.h
6378 (HARD_REGNO_NREGS): Add mask regs.
6379 (VALID_AVX512F_REG_MODE): Ditto.
6380 (VALID_AVX512F_REG_MODE) : Define.
6381 (VALID_MASK_AVX512BW_MODE): Ditto.
6382 (reg_class) (MASK_REG_P(X)): Define.
6383 * config/i386/i386.md: Do not split long moves with mask register,
6384 use kmovb if avx512bw is availible.
6385 (movdi_internal): Handle mask registers.
6387 2014-08-14 Richard Biener <rguenther@suse.de>
6389 PR tree-optimization/62081
6390 * tree-ssa-loop.c (pass_fix_loops): New pass.
6391 (pass_tree_loop::gate): Do not fixup loops here.
6392 * tree-pass.h (make_pass_fix_loops): Declare.
6393 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6395 2014-08-14 Richard Biener <rguenther@suse.de>
6397 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6398 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6400 2014-08-14 Richard Biener <rguenther@suse.de>
6402 PR tree-optimization/62090
6403 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6404 (fold_builtin_2): Do not fold sprintf.
6405 (fold_builtin_3): Likewise.
6406 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6407 moved from builtins.c.
6408 (gimple_fold_builtin): Fold sprintf.
6410 2014-08-14 Richard Biener <rguenther@suse.de>
6412 PR rtl-optimization/62079
6413 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6416 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6418 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6419 current_function_decl.
6421 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6423 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6424 cgraph_function_node to cgraph_node::function_symbol
6427 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6429 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6430 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6432 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6434 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6437 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6439 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6442 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6445 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6446 any registers that are used in mem_insn.
6448 2014-08-12 Steve Ellcey <sellcey@mips.com>
6450 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6452 2014-08-12 Steve Ellcey <sellcey@mips.com>
6454 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6455 (MULTILIB_DIRNAMES): Ditto.
6456 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6457 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6458 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6459 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6460 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6461 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6463 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6466 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6467 of __ARM_SIZEOF_WCHAR_T.
6469 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6472 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6473 Remove unnecessary attributes.
6475 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6477 * internal-fn.c (init_internal_fns): Fix off-by-one.
6479 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6480 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6481 Anna Tikhonova <anna.tikhonova@intel.com>
6482 Ilya Tocar <ilya.tocar@intel.com>
6483 Andrey Turetskiy <andrey.turetskiy@intel.com>
6484 Ilya Verbin <ilya.verbin@intel.com>
6485 Kirill Yukhin <kirill.yukhin@intel.com>
6486 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6488 * config/i386/i386.c (standard_sse_constant_opcode): Use
6489 vpxord/vpternlog if avx512 is availible.
6491 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6494 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6495 bitfields, that is when size doesn't match the size of type or the
6496 size of the constructor.
6498 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6500 * config/rs6000/constraints.md (wh constraint): New constraint,
6501 for FP registers if direct move is available.
6502 (wi constraint): New constraint, for VSX/FP registers that can
6503 handle 64-bit integers.
6504 (wj constraint): New constraint for VSX/FP registers that can
6505 handle 64-bit integers for direct moves.
6506 (wk constraint): New constraint for VSX/FP registers that can
6507 handle 64-bit doubles for direct moves.
6508 (wy constraint): Make documentation match implementation.
6510 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6511 scalar_in_vmx_p field to simplify tests of whether SFmode or
6512 DFmode can go in the Altivec registers.
6513 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6514 (rs6000_setup_reg_addr_masks): Likewise.
6515 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6516 field, and wh/wi/wj/wk constraints.
6517 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6518 the wh/wi/wj/wk constraints.
6519 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6520 upper registers, prefer VSX registers unless the operation is a
6521 memory operation with REG+OFFSET addressing.
6523 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6524 DImode. Change SFmode to use ww constraint instead of d to allow
6525 SF registers in the upper registers.
6528 (VSr5): Fix thinko in comment.
6529 (VSa): New mode attribute that is an alternative to wa, that
6530 returns the VSX register class that a mode can go in, but may not
6531 be the preferred register class.
6532 (VS_64dm): New mode attribute for appropriate register classes for
6533 referencing 64-bit elements of vectors for direct moves and normal
6535 (VS_64reg): Likewise.
6536 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6537 register allocator to only registers the data type can handle.
6538 (vsx_le_perm_load_<mode>): Likewise.
6539 (vsx_le_perm_store_<mode>): Likewise.
6540 (vsx_xxpermdi2_le_<mode>): Likewise.
6541 (vsx_xxpermdi4_le_<mode>): Likewise.
6542 (vsx_lxvd2x2_le_<mode>): Likewise.
6543 (vsx_lxvd2x4_le_<mode>): Likewise.
6544 (vsx_stxvd2x2_le_<mode>): Likewise.
6545 (vsx_add<mode>3): Likewise.
6546 (vsx_sub<mode>3): Likewise.
6547 (vsx_mul<mode>3): Likewise.
6548 (vsx_div<mode>3): Likewise.
6549 (vsx_tdiv<mode>3_internal): Likewise.
6550 (vsx_fre<mode>2): Likewise.
6551 (vsx_neg<mode>2): Likewise.
6552 (vsx_abs<mode>2): Likewise.
6553 (vsx_nabs<mode>2): Likewise.
6554 (vsx_smax<mode>3): Likewise.
6555 (vsx_smin<mode>3): Likewise.
6556 (vsx_sqrt<mode>2): Likewise.
6557 (vsx_rsqrte<mode>2): Likewise.
6558 (vsx_tsqrt<mode>2_internal): Likewise.
6559 (vsx_fms<mode>4): Likewise.
6560 (vsx_nfma<mode>4): Likewise.
6561 (vsx_eq<mode>): Likewise.
6562 (vsx_gt<mode>): Likewise.
6563 (vsx_ge<mode>): Likewise.
6564 (vsx_eq<mode>_p): Likewise.
6565 (vsx_gt<mode>_p): Likewise.
6566 (vsx_ge<mode>_p): Likewise.
6567 (vsx_xxsel<mode>): Likewise.
6568 (vsx_xxsel<mode>_uns): Likewise.
6569 (vsx_copysign<mode>3): Likewise.
6570 (vsx_float<VSi><mode>2): Likewise.
6571 (vsx_floatuns<VSi><mode>2): Likewise.
6572 (vsx_fix_trunc<mode><VSi>2): Likewise.
6573 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6574 (vsx_x<VSv>r<VSs>i): Likewise.
6575 (vsx_x<VSv>r<VSs>ic): Likewise.
6576 (vsx_btrunc<mode>2): Likewise.
6577 (vsx_b2trunc<mode>2): Likewise.
6578 (vsx_floor<mode>2): Likewise.
6579 (vsx_ceil<mode>2): Likewise.
6580 (vsx_<VS_spdp_insn>): Likewise.
6581 (vsx_xscvspdp): Likewise.
6582 (vsx_xvcvspuxds): Likewise.
6583 (vsx_float_fix_<mode>2): Likewise.
6584 (vsx_set_<mode>): Likewise.
6585 (vsx_extract_<mode>_internal1): Likewise.
6586 (vsx_extract_<mode>_internal2): Likewise.
6587 (vsx_extract_<mode>_load): Likewise.
6588 (vsx_extract_<mode>_store): Likewise.
6589 (vsx_splat_<mode>): Likewise.
6590 (vsx_xxspltw_<mode>): Likewise.
6591 (vsx_xxspltw_<mode>_direct): Likewise.
6592 (vsx_xxmrghw_<mode>): Likewise.
6593 (vsx_xxmrglw_<mode>): Likewise.
6594 (vsx_xxsldwi_<mode>): Likewise.
6595 (vsx_xscvdpspn): Tighten constraints to only use register classes
6597 (vsx_xscvspdpn): Likewise.
6598 (vsx_xscvdpspn_scalar): Likewise.
6600 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
6601 wj, and wk constraints.
6602 (GPR_REG_CLASS_P): New helper macro for register classes targeting
6603 general purpose registers.
6605 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
6607 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
6608 DImode instead of wm. Use wk constraint for direct move of DFmode
6610 (extendsidi2_lfiwax): Likewise.
6613 (movdi_internal64): Likewise.
6615 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
6616 wk constraints. Make the wy constraint documentation match them
6619 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
6621 Replacement of isl_int by isl_val
6622 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
6623 (compute_bounds_for_param): use isl_val instead of isl_int
6624 (compute_bounds_for_loop): likewise
6625 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
6626 (build_linearized_memory_access): use isl_val instead of isl_int
6627 (pdr_stride_in_loop): likewise
6628 * graphite-optimize-isl.c:
6629 (getPrevectorMap): use isl_val instead of isl_int
6631 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
6632 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
6633 (extern the_isl_ctx): declare
6634 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
6635 (extract_affine_gmp): likewise
6637 (build_loop_iteration_domains): likewise
6638 (add_param_constraints): likewise
6640 2014-08-11 Richard Biener <rguenther@suse.de>
6642 PR tree-optimization/62075
6643 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
6644 handle uses in patterns.
6646 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6647 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6648 Anna Tikhonova <anna.tikhonova@intel.com>
6649 Ilya Tocar <ilya.tocar@intel.com>
6650 Andrey Turetskiy <andrey.turetskiy@intel.com>
6651 Ilya Verbin <ilya.verbin@intel.com>
6652 Kirill Yukhin <kirill.yukhin@intel.com>
6653 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6655 * common/config/i386/i386-common.c
6656 (OPTION_MASK_ISA_AVX512VL_SET): Define.
6657 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
6658 (ix86_handle_option): Handle OPT_mavx512vl.
6659 * config/i386/cpuid.h (bit_AVX512VL): Define.
6660 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
6661 set -mavx512vl accordingly.
6662 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6663 OPTION_MASK_ISA_AVX512VL.
6664 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
6665 (ix86_option_override_internal): Define PTA_AVX512VL, handle
6666 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
6667 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
6668 * config/i386/i386.h (TARGET_AVX512VL): Define.
6669 (TARGET_AVX512VL_P(x)): Ditto.
6670 * config/i386/i386.opt: Add mavx512vl.
6672 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
6674 PR tree-optimization/62073
6675 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
6678 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6679 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6680 Anna Tikhonova <anna.tikhonova@intel.com>
6681 Ilya Tocar <ilya.tocar@intel.com>
6682 Andrey Turetskiy <andrey.turetskiy@intel.com>
6683 Ilya Verbin <ilya.verbin@intel.com>
6684 Kirill Yukhin <kirill.yukhin@intel.com>
6685 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6687 * common/config/i386/i386-common.c
6688 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
6689 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
6690 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
6691 (ix86_handle_option): Handle OPT_mavx512bw.
6692 * config/i386/cpuid.h (bit_AVX512BW): Define.
6693 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
6694 set -mavx512bw accordingly.
6695 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6696 OPTION_MASK_ISA_AVX512BW.
6697 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
6698 (ix86_option_override_internal): Define PTA_AVX512BW, handle
6699 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
6700 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
6701 * config/i386/i386.h (TARGET_AVX512BW): Define.
6702 (TARGET_AVX512BW_P(x)): Ditto.
6703 * config/i386/i386.opt: Add mavx512bw.
6705 2014-08-11 Richard Biener <rguenther@suse.de>
6707 PR tree-optimization/62070
6708 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
6709 Remove SSA checking.
6711 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6713 * asan.c (asan_check_flags): New enum.
6714 (build_check_stmt_with_calls): Removed function.
6715 (build_check_stmt): Split inlining logic to
6716 asan_expand_check_ifn.
6717 (instrument_derefs): Rename parameter.
6718 (instrument_mem_region_access): Rename parameter.
6719 (instrument_strlen_call): Likewise.
6720 (asan_expand_check_ifn): New function.
6721 (asan_instrument): Remove old code.
6722 (pass_sanopt::execute): Change handling of
6723 asan-instrumentation-with-call-threshold.
6724 (asan_clear_shadow): Fix formatting.
6725 (asan_function_start): Likewise.
6726 (asan_emit_stack_protection): Likewise.
6727 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
6729 * internal-fn.c (expand_ASAN_CHECK): New function.
6730 * internal-fn.def (ASAN_CHECK): New internal function.
6731 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
6733 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
6734 * tree.c: Small comment fix.
6736 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6738 * gimple.c (gimple_call_fnspec): Support internal functions.
6739 (gimple_call_return_flags): Use const.
6740 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
6741 * internal-fn.def: Add fnspec information.
6742 * internal-fn.h (internal_fn_fnspec): New function.
6743 (init_internal_fns): Declare new function.
6744 * internal-fn.c (internal_fn_fnspec_array): New global variable.
6745 (init_internal_fns): New function.
6746 * tree-core.h: Update macro call.
6747 * tree.c (build_common_builtin_nodes): Initialize internal fns.
6749 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
6751 * lto-streamer.h (struct output_block::symbol): Change from
6752 struct symtab_node to plain symtab_node.
6753 (referenced_from_this_partition_p): Change first parameter
6754 from struct symtab_node to plain symtab_node.
6756 2014-08-10 Marek Polacek <polacek@redhat.com>
6759 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
6761 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
6763 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
6764 DECL correctly; do not give up on types in static storage.
6766 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
6768 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
6770 2014-08-09 Roman Gareev <gareevroman@gmail.com>
6772 * graphite-isl-ast-to-gimple.c:
6773 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
6775 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
6777 2014-08-08 Guozhi Wei <carrot@google.com>
6779 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
6781 2014-08-08 Cary Coutant <ccoutant@google.com>
6783 * dwarf2out.c (get_skeleton_type_unit): Remove.
6784 (output_skeleton_debug_sections): Remove skeleton type units.
6785 (output_comdat_type_unit): Likewise.
6786 (dwarf2out_finish): Likewise.
6788 2014-08-07 Yi Yang <ahyangyi@google.com>
6790 * predict.c (expr_expected_value_1): Remove the redundant assignment.
6792 2014-08-08 Richard Biener <rguenther@suse.de>
6794 * lto-streamer.h (struct lto_input_block): Make it a class
6796 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
6797 (struct lto_function_header, struct lto_simple_header,
6798 struct lto_simple_header_with_strings,
6799 struct lto_decl_header, struct lto_function_header): Make
6800 a simple inheritance hieararchy. Remove unused fields.
6801 (struct lto_asm_header): Remove.
6802 * lto-streamer-out.c (produce_asm): Adjust.
6803 (lto_output_toplevel_asms): Likewise.
6804 (produce_asm_for_decls): Likewise.
6805 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
6806 * data-streamer-in.c (string_for_index): Likewise.
6807 * ipa-inline-analysis.c (inline_read_section): Likewise.
6808 * ipa-prop.c (ipa_prop_read_section): Likewise.
6809 (read_replacements_section): Likewise.
6810 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
6811 * lto-section-in.c (lto_create_simple_input_block): Likewise.
6812 (lto_destroy_simple_input_block): Likewise.
6813 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
6814 (lto_input_toplevel_asms): Likewise.
6816 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
6817 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6818 Anna Tikhonova <anna.tikhonova@intel.com>
6819 Ilya Tocar <ilya.tocar@intel.com>
6820 Andrey Turetskiy <andrey.turetskiy@intel.com>
6821 Ilya Verbin <ilya.verbin@intel.com>
6822 Kirill Yukhin <kirill.yukhin@intel.com>
6823 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6825 * common/config/i386/i386-common.c
6826 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
6827 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
6828 (ix86_handle_option): Handle OPT_mavx512dq.
6829 * config/i386/cpuid.h (bit_AVX512DQ): Define.
6830 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
6831 set -mavx512dq accordingly.
6832 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6833 OPTION_MASK_ISA_AVX512DQ.
6834 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
6835 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
6836 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
6837 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
6838 * config/i386/i386.h (TARGET_AVX512DQ): Define.
6839 (TARGET_AVX512DQ_P(x)): Ditto.
6840 * config/i386/i386.opt: Add mavx512dq.
6842 2014-08-08 Richard Biener <rguenther@suse.de>
6844 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
6845 target_percent, target_percent_s): Export.
6846 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
6847 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
6848 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
6849 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
6850 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
6851 Move to gimple-fold.c.
6852 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
6854 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
6855 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
6856 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
6857 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
6858 (rewrite_call_expr_array): Remove.
6859 (fold_builtin_sprintf_chk): Likewise.
6860 (fold_builtin_snprintf_chk): Likewise.
6861 (fold_builtin_varargs): Remove handling of sprintf_chk,
6862 vsprintf_chk, snprintf_chk and vsnprintf_chk.
6863 (gimple_fold_builtin_sprintf_chk): Remove.
6864 (gimple_fold_builtin_snprintf_chk): Likewise.
6865 (gimple_fold_builtin_varargs): Likewise.
6866 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
6867 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
6868 * gimple.c (gimple_seq_add_seq_without_update): New function.
6869 * gimple.h (gimple_seq_add_seq_without_update): Declare.
6870 * gimple-fold.c: Include output.h.
6871 (gsi_replace_with_seq_vops): New function, split out from ...
6872 (gimplify_and_update_call_from_tree): ... here.
6873 (replace_call_with_value): New function.
6874 (replace_call_with_call_and_fold): Likewise.
6875 (var_decl_component_p): Moved from builtins.c.
6876 (gimple_fold_builtin_memory_op): Moved from builtins.c
6877 fold_builtin_memory_op and rewritten to GIMPLE.
6878 (gimple_fold_builtin_memset): Likewise.
6879 (gimple_fold_builtin_strcpy): Likewise.
6880 (gimple_fold_builtin_strncpy): Likewise.
6881 (gimple_fold_builtin_strcat): Likewise.
6882 (gimple_fold_builtin_fputs): Likewise.
6883 (gimple_fold_builtin_memory_chk): Likewise.
6884 (gimple_fold_builtin_stxcpy_chk): Likewise.
6885 (gimple_fold_builtin_stxncpy_chk): Likewise.
6886 (gimple_fold_builtin_snprintf_chk): Likewise.
6887 (gimple_fold_builtin_sprintf_chk): Likewise.
6888 (gimple_fold_builtin_strlen): New function.
6889 (gimple_fold_builtin_with_strlen): New function split out from
6890 gimple_fold_builtin.
6891 (gimple_fold_builtin): Change signature and handle
6892 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
6893 here. Call gimple_fold_builtin_with_strlen.
6894 (gimple_fold_call): Adjust.
6896 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
6898 * calls.c (precompute_arguments): Check
6899 promoted_for_signed_and_unsigned_p and set the promoted mode.
6900 (promoted_for_signed_and_unsigned_p): New function.
6901 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
6902 and set the promoted mode.
6903 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
6904 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
6905 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
6908 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
6910 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
6911 instead of SUBREG_PROMOTED_UNSIGNED_SET.
6912 (expand_call): Likewise.
6913 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
6914 to get promoted mode.
6915 * combine.c (record_promoted_value): Skip > 0 comparison with
6916 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
6917 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
6918 of SUBREG_PROMOTED_UNSIGNED_P.
6919 (convert_modes): Likewise.
6920 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
6921 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
6922 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
6923 SUBREG_PROMOTED_UNSIGNED_SET.
6924 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
6925 instead of SUBREG_PROMOTED_UNSIGNED_SET.
6926 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
6927 SUBREG_PROMOTED_SET.
6928 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
6929 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
6930 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
6931 of SUBREG_PROMOTED_UNSIGNED_P.
6932 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
6933 (SUBREG_PROMOTED_SET): New define.
6934 (SUBREG_PROMOTED_GET): Likewise.
6935 (SUBREG_PROMOTED_SIGN): Likewise.
6936 (SUBREG_PROMOTED_SIGNED_P): Likewise.
6937 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
6938 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
6939 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
6940 instead of SUBREG_PROMOTED_UNSIGNED_GET.
6941 (nonzero_bits1): Skip > 0 comparison with the results as
6942 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
6943 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
6944 of !SUBREG_PROMOTED_UNSIGNED_P.
6945 * simplify-rtx.c (simplify_unary_operation_1): Use new
6946 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
6947 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
6948 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
6949 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
6951 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
6953 * ipa-devirt.c: Include gimple-pretty-print.h
6954 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
6956 (decl_maybe_in_construction_p): Fix conditional on cdtor check
6957 (get_polymorphic_call_info): Fix return value
6958 (type_change_info): New sturcture based on ipa-prop
6960 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
6961 based on ipa-prop variant.
6962 (extr_type_from_vtbl_ptr_store): New function
6963 based on ipa-prop variant.
6964 (record_known_type): New function.
6965 (check_stmt_for_type_change): New function.
6966 (get_dynamic_type): New function.
6967 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
6968 * tree-ssa-pre.c: ipa-utils.h
6969 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
6970 machinery; sanity check with ipa-prop devirtualization.
6971 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
6974 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
6976 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
6977 * alias.c, cfgexpand.c, cgraphbuild.c,
6978 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
6979 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
6980 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
6981 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
6982 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
6983 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6984 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
6985 dse.c, except.c, gengtype.c, gimple-expr.c,
6986 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
6987 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
6988 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
6989 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
6990 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
6991 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
6993 * pointer-set.c: Remove file.
6994 * pointer-set.h: Remove file.
6996 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6998 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
6999 * config/arm/types.md (f_sels, f_seld): Delete.
7001 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7003 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7004 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7005 (aarch64_movdi_<mode>high): Likewise.
7006 (aarch64_mov<mode>high_di): Likewise.
7007 (aarch64_movdi_<mode>low): Likewise.
7008 (aarch64_mov<mode>low_di): Likewise.
7009 (aarch64_movtilow_tilow): Likewise.
7010 Add comment explaining usage of fp,simd attributes and of
7011 TARGET_FLOAT and TARGET_SIMD.
7013 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7014 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7016 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7017 Use MOVN when one of the half-words is 0xffff.
7019 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7021 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7023 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7025 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7026 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7027 (rfs_str): String corresponding to RFS_* constants.
7028 (rank_for_schedule_stats_t): New typedef.
7029 (rank_for_schedule_stats): New static variable.
7030 (rfs_result): New static function.
7031 (rank_for_schedule): Track statistics for deciding heuristics.
7032 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7034 (ready_sort): Use them for debug printouts.
7035 (schedule_block): Init statistics state. Print statistics on
7036 rank_for_schedule decisions.
7038 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7040 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7042 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7044 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7047 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7049 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7050 function to not conflict.
7051 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7052 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7053 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7054 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7055 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7058 2014-08-07 Marek Polacek <polacek@redhat.com>
7060 * fold-const.c (fold_binary_loc): Add folding of
7061 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7063 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7065 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7066 instead of type size.
7067 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7069 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7071 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7072 (*thumb1_movqi_insn): Likewise.
7073 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7075 2014-08-07 Tom de Vries <tom@codesourcery.com>
7077 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7078 (glibc_2_11_or_earlier): Remove effective-target keywords.
7080 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7082 * config/arm/arm.c (bdesc_2arg): Fix typo.
7083 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7085 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7087 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7089 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7092 * haifa-sched.c (advance_one_cycle): Fix dump.
7093 (schedule_block): Don't advance cycle if we are already at the
7094 beginning of the cycle.
7096 2014-08-06 Martin Jambor <mjambor@suse.cz>
7099 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7101 2014-08-06 Richard Biener <rguenther@suse.de>
7104 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7106 (lto_input_tree): Pop SCCs here.
7108 2014-08-06 Richard Biener <rguenther@suse.de>
7110 PR tree-optimization/61320
7111 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7112 handle misaligned loads.
7114 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7116 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7117 (aarch64_expand_vec_perm_const): Check for dup before zip.
7119 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7121 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7122 CONST_INT_P instead of GET_CODE and compare.
7123 (aarch64_select_cc_mode): Likewise.
7124 (aarch64_print_operand): Likewise.
7125 (aarch64_rtx_costs): Likewise.
7126 (aarch64_simd_valid_immediate): Likewise.
7127 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7128 (aarch64_simd_emit_pair_result_insn): Likewise.
7130 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7132 * gdbhooks.py (find_gcc_source_dir): New helper function.
7133 (class PassNames): New class, locating and parsing passes.def.
7134 (class BreakOnPass): New command "break-on-pass".
7136 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7138 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7141 2014-08-05 Richard Biener <rguenther@suse.de>
7143 PR rtl-optimization/61672
7144 * emit-rtl.h (mem_attrs_eq_p): Declare.
7145 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7146 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7147 * cfgcleanup.c (merge_memattrs): Likewise.
7150 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7152 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7153 rather than singleton vectors.
7154 (vqdmlsls_lane_s32): Likewise.
7156 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7158 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7159 Use VSDQ_HSI mode iterator.
7160 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7161 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7162 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7163 Use BUILTIN_VDQHS macro.
7164 (sqrdmulh_laneq): Likewise.
7165 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7166 (vqdmlals_laneq_s32): Likewise.
7167 (vqdmlslh_laneq_s16): Likewise.
7168 (vqdmlsls_laneq_s32): Likewise.
7169 (vqdmulhh_laneq_s16): Likewise.
7170 (vqdmulhs_laneq_s32): Likewise.
7171 (vqrdmulhh_laneq_s16): Likewise.
7172 (vqrdmulhs_laneq_s32): Likewise.
7174 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7176 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7177 (vmuld_laneq_f64): Likewise.
7178 (vmuls_laneq_f32): Likewise.
7179 (vmul_n_f64): Likewise.
7180 (vmuld_lane_f64): Reimplement in C.
7181 (vmuls_lane_f32): Likewise.
7183 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7185 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7187 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7189 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7191 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7192 (rbitsi2): Likewise.
7193 (*arm_rev): Set predicable and predicable_short_it attributes.
7195 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7197 * convert.c (convert_to_integer): Guard transformation to lrint by
7200 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7202 * config/aarch64/aarch64-builtins.c
7203 (aarch64_simd_builtin_type_mode): Delete.
7204 (v8qi_UP): Remap to V8QImode.
7205 (v4hi_UP): Remap to V4HImode.
7206 (v2si_UP): Remap to V2SImode.
7207 (v2sf_UP): Remap to V2SFmode.
7208 (v1df_UP): Remap to V1DFmode.
7209 (di_UP): Remap to DImode.
7210 (df_UP): Remap to DFmode.
7211 (v16qi_UP):V16QImode.
7212 (v8hi_UP): Remap to V8HImode.
7213 (v4si_UP): Remap to V4SImode.
7214 (v4sf_UP): Remap to V4SFmode.
7215 (v2di_UP): Remap to V2DImode.
7216 (v2df_UP): Remap to V2DFmode.
7217 (ti_UP): Remap to TImode.
7218 (ei_UP): Remap to EImode.
7219 (oi_UP): Remap to OImode.
7220 (ci_UP): Map to CImode.
7221 (xi_UP): Remap to XImode.
7222 (si_UP): Remap to SImode.
7223 (sf_UP): Remap to SFmode.
7224 (hi_UP): Remap to HImode.
7225 (qi_UP): Remap to QImode.
7226 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7227 (VAR1): Build builtin name.
7228 (aarch64_init_simd_builtins): Remove dead code.
7230 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7232 * graphite-isl-ast-to-gimple.c:
7233 (set_options): New function.
7234 (scop_to_isl_ast): Add calling of set_options.
7236 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7238 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7239 (analyze_iv_to_split_insn): Don't initialize them.
7240 (get_ivts_expr): Removed.
7241 (allocate_basic_variable, insert_base_initialization): Use
7242 SET_SRC instead of *get_ivts_expr.
7243 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7245 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7247 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7248 (translate_isl_ast_for_loop): Add checking of the
7249 flag_loop_parallelize_all.
7250 (ast_build_before_for): New function.
7251 (scop_to_isl_ast): Add checking of the
7252 flag_loop_parallelize_all.
7253 * graphite-dependences.c: Move the defenition of the
7254 scop_get_dependences from graphite-optimize-isl.c to this file.
7255 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7256 (carries_deps): Add checking of the x's value.
7257 * graphite-optimize-isl.c: Move the defenition of the
7258 scop_get_dependences to graphite-dependences.c.
7259 * graphite-poly.h: Add declarations of scop_get_dependences
7262 2014-08-04 Rohit <rohitarulraj@freescale.com>
7265 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7267 (alt_reg_names): Likewise.
7268 (rs6000_dwarf_register_span): For SPE high registers, replace
7269 dwarf register numbers with GCC hard register numbers.
7270 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7271 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7272 register number for the corresponding GCC hard register number.
7273 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7274 newly added GCC hard register numbers for SPE high registers.
7275 (DWARF_FRAME_REGISTERS): Likewise.
7276 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7277 (DWARF_FRAME_REGNUM): Likewise.
7278 (FIXED_REGISTERS): Likewise.
7279 (CALL_USED_REGISTERS): Likewise.
7280 (CALL_REALLY_USED_REGISTERS): Likewise.
7281 (REG_ALLOC_ORDER): Likewise.
7282 (enum reg_class): Likewise.
7283 (REG_CLASS_NAMES): Likewise.
7284 (REG_CLASS_CONTENTS): Likewise.
7285 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7287 2014-08-04 Richard Biener <rguenther@suse.de>
7289 * gimple-fold.h (gimple_fold_builtin): Remove.
7290 * gimple-fold.c (gimple_fold_builtin): Make static.
7291 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7292 fold_stmt, not gimple_fold_builtin.
7294 2014-08-04 Martin Liska <mliska@suse.cz>
7296 * cgraph.h (csi_end_p): Removed.
7297 (csi_next): Likewise.
7298 (csi_node): Likewise.
7299 (csi_start): Likewise.
7300 (cgraph_node_in_set_p): Likewise.
7301 (cgraph_node_set_size): Likewise.
7302 (vsi_end_p): Likewise.
7303 (vsi_next): Likewise.
7304 (vsi_node): Likewise.
7305 (vsi_start): Likewise.
7306 (varpool_node_set_size): Likewise.
7307 (cgraph_node_set_nonempty_p): Likewise.
7308 (varpool_node_set_nonempty_p): Likewise.
7309 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7311 * ipa-inline-transform.c: Likewise.
7312 * ipa-utils.c (cgraph_node_set_new): Removed.
7313 (cgraph_node_set_add): Likewise.
7314 (cgraph_node_set_remove): Likewise.
7315 (cgraph_node_set_find): Likewise.
7316 (dump_cgraph_node_set): Likewise.
7317 (debug_cgraph_node_set): Likewise.
7318 (free_cgraph_node_set): Likewise.
7319 (varpool_node_set_new): Likewise.
7320 (varpool_node_set_add): Likewise.
7321 (varpool_node_set_remove): Likewise.
7322 (varpool_node_set_find): Likewise.
7323 (dump_varpool_node_set): Likewise.
7324 (free_varpool_node_set): Likewise.
7325 (debug_varpool_node_set): Likewise.
7326 * tree-emutls.c (struct tls_var_data):
7327 (emutls_index): Removed.
7328 (emutls_decl): Likewise.
7329 (gen_emutls_addr): Function implementation uses newly added
7330 hash_map<varpool_node *, tls_var_data>.
7331 (clear_access_vars): Likewise.
7332 (create_emultls_var): Likewise.
7333 (ipa_lower_emutls): Likewise.
7334 (reset_access): New function.
7336 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7338 * config/i386/i386.c (ix86_option_override_internal): Add
7339 PTA_RDRND and PTA_MOVBE for bdver4.
7341 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7342 James Greenhalgh <james.greenhalgh@arm.com>
7344 * doc/md.texi (clrsb): Document.
7345 (clz): Change reference to x into operand 1.
7347 (popcount): Likewise.
7349 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7352 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7353 move to subtarget in serial version if result is ignored.
7355 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7356 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7358 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7359 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7360 (sched_analyze_insn): Update use of try_group_insn to
7361 sched_macro_fuse_insns.
7362 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7363 arguments that are not conditional jumps.
7365 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7367 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7368 family information. Handle BTVER2 cpu with cpuid family value.
7370 2014-08-04 Tom de Vries <tom@codesourcery.com>
7372 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7373 (glibc_2_11_or_earlier): Document effective-target keywords.
7375 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7377 * ipa-devirt.c (odr_type_warn_count): Add type.
7378 (possible_polymorphic_call_targets): Set it.
7379 (ipa_devirt): Use it.
7381 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7383 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7385 * ipa-devirt.c: Include hash-map.h
7386 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7387 (clear_speculation): Break out of ...
7388 (get_class_context): ... here; speed up handling obviously useless
7390 (odr_type_warn_count, decl_warn_count): New structures.
7391 (final_warning_record): New structure.
7392 (final_warning_records): New static variable.
7393 (possible_polymorphic_call_targets): Cleanup handling of
7394 speculative info; do not build speculation when user do not care;
7395 record info about warnings when asked for.
7396 (add_decl_warning): New function.
7397 (type_warning_cmp): New function.
7398 (decl_warning_cmp): New function.
7399 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7400 (gate): Enable pass when warnings are requested.
7401 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7404 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7406 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7408 (hash_map::remove): New method.
7409 (hash_map::traverse): New method.
7410 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7411 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7412 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7413 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7414 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7415 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7418 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7420 * hash-set.h: new File.
7421 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7422 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7423 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7424 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7425 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7426 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7427 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7428 varpool.c: Use hash_set instead of pointer_set.
7430 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7432 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7434 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7436 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7437 for frame access when strict_p is false.
7439 2014-08-01 Renlin Li <renlin.li@arm.com>
7440 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7442 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7443 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7444 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7446 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7448 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7449 aarch64_mem_pair_offset.
7451 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7453 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7455 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7456 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7458 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7460 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7462 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7465 * cgraphunit.c (analyze_functions): Use get_create rather than get
7466 for decls which are clones of abstract functions.
7468 2014-08-01 Martin Liska <mliska@suse.cz>
7470 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7471 * ipa-prop.h (count_formal_params): Global function created from static.
7472 * ipa-prop.c (count_formal_params): Likewise.
7473 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7474 profiles for semantically equivalent functions.
7475 * passes.c (do_per_function): If we load body of a function
7476 during WPA, this condition should behave same.
7477 * varpool.c (ctor_for_folding): More tolerant assert for variable
7478 aliases created during WPA.
7480 2014-08-01 Martin Liska <mliska@suse.cz>
7482 * doc/invoke.texi (Options That Control Optimization): Documentation
7483 for -foptimize-strlen introduced. Optimization levels default options
7486 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7488 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7489 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7490 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7492 * stor-layout.h (min_align_of_type): New prototype.
7493 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7494 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7496 * ubsan.c: Include builtins.h.
7497 (ubsan_expand_bounds_ifn): Change return type to bool,
7499 (ubsan_expand_null_ifn): Change return type to bool, change
7500 argument to gimple_stmt_iterator *. Handle both null and alignment
7501 sanitization, take type from ckind argument's type rather than
7503 (instrument_member_call): Removed.
7504 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7505 Handle both null and alignment sanitization, don't say whole
7506 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7507 call instead of 2 argument.
7508 (instrument_null): Adjust instrument_mem_ref caller. Don't
7509 instrument calls here.
7510 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7512 * stor-layout.c (min_align_of_type): New function.
7513 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7514 Or it into SANITIZE_UNDEFINED.
7515 * doc/invoke.texi (-fsanitize=alignment): Document.
7517 2014-07-31 Andi Kleen <ak@linux.intel.com>
7519 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7521 2014-07-31 Andi Kleen <ak@linux.intel.com>
7523 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7525 (vn_reference_compute_hash): Dito.
7526 (vn_nary_op_compute_hash): Dito.
7527 (vn_phi_compute_hash): Dito.
7528 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7530 2014-07-31 Andi Kleen <ak@linux.intel.com>
7532 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7533 Rename to inchash:add_expr_commutative. Convert to inchash.
7534 (iterative_hash_hashable_expr): Rename to
7535 inchash:add_hashable_expr. Convert to inchash.
7536 (avail_expr_hash): Dito.
7538 2014-07-31 Andi Kleen <ak@linux.intel.com>
7540 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7543 2014-07-31 Andi Kleen <ak@linux.intel.com>
7545 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7547 2014-07-31 Andi Kleen <ak@linux.intel.com>
7549 * Makefile.in (OBJS): Add rtlhash.o
7550 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7551 (loc_checksum): Dito.
7552 (loc_checksum_ordered): Dito.
7553 (hash_loc_operands): Dito.
7555 (hash_loc_list): Dito.
7556 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7557 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7558 * rtlhash.c: New file.
7559 * rtlhash.h: New file.
7561 2014-07-31 Andi Kleen <ak@linux.intel.com>
7563 * inchash.h (inchash): Change inchash class to namespace.
7564 (class hash): ... Rename from inchash.
7565 (add_object): Move from macro to class template.
7566 * lto-streamer-out.c (hash_tree): Change inchash
7568 * tree.c (build_type_attribute_qual_variant): Dito.
7569 (type_hash_list): Dito.
7570 (attribute_hash_list): Dito.
7571 (iterative_hstate_expr): Rename to inchash::add_expr
7572 (build_range_type_1): Change inchash to inchash::hash
7573 and use hash::add_expr.
7574 (build_array_type_1): Dito.
7575 (build_function_type): Dito
7576 (build_method_type_directly): Dito.
7577 (build_offset_type): Dito.
7578 (build_complex_type): Dito.
7579 (make_vector_type): Dito.
7580 * tree.h (iterative_hash_expr): Dito.
7582 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
7584 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
7586 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7588 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
7589 correct alphabetical position.
7590 (vpaddd_f64): Rewrite using builtins.
7591 (vpaddd_s64): Move to correct alphabetical position.
7594 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
7597 * config/sh/sh.c (sh_legitimate_address_p,
7598 sh_legitimize_reload_address): Handle reg+reg address modes when
7599 ALLOW_INDEXED_ADDRESS is false.
7600 * config/sh/predicates.md (general_movsrc_operand,
7601 general_movdst_operand): Likewise.
7603 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7605 * config/aarch64/aarch64-builtins.c
7606 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
7609 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7611 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
7612 the generated mask based on BYTES_BIG_ENDIAN.
7613 (aarch64_simd_check_vect_par_cnst_half): New.
7614 * config/aarch64/aarch64-protos.h
7615 (aarch64_simd_check_vect_par_cnst_half): New.
7616 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
7617 the check out to aarch64_simd_check_vect_par_cnst_half.
7618 (vect_par_cnst_lo_half): Likewise.
7619 * config/aarch64/aarch64-simd.md
7620 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
7621 (move_hi_quad_<mode>): Always generate a low mask.
7623 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7625 * doc/invoke.texi (AVR Options): Add documentation about
7626 __AVR_DEVICE_NAME__ built-in macro.
7628 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
7631 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
7632 constraints are satisfied.
7633 (<shift>di3_neon): Likewise.
7635 2014-07-31 Richard Biener <rguenther@suse.de>
7637 PR tree-optimization/61964
7638 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
7639 by structural equality.
7641 2014-07-31 Yury Gribov <y.gribov@samsung.com>
7643 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
7644 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
7645 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
7647 * gcc.c (sanitize_spec_function): Support new option.
7648 (SANITIZER_SPEC): Remove now redundant check.
7649 * opts.c (common_handle_option): Support new option.
7650 (finish_options): Check for incompatibilities.
7651 * toplev.c (process_options): Split userspace-specific checks.
7653 2014-07-31 Richard Biener <rguenther@suse.de>
7655 * lto-streamer.h (struct output_block): Remove global.
7656 (struct data_in): Remove labels, num_named_labels and
7658 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
7659 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
7661 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
7664 * common.opt (-Wreturn-local-addr): Moved from c.opt.
7665 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
7666 (isolate_path): New argument to avoid inserting a trap.
7667 (find_implicit_erroneous_behaviour): Handle returning the address
7668 of a local variable.
7669 (find_explicit_erroneous_behaviour): Likewise.
7671 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
7674 * toplev.c (init_random_seed): Move piece of code never called to
7676 (set_random_seed): see above.
7678 2014-07-31 Tom de Vries <tom@codesourcery.com>
7680 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
7682 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7684 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
7685 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
7687 2014-07-31 Richard Biener <rguenther@suse.de>
7689 * data-streamer.h (streamer_write_data_stream): Declare here,
7691 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
7692 * lto-cgraph.c (lto_output_node): Adjust.
7693 (lto_output_varpool_node): Likewise.
7694 * data-streamer-out.c (streamer_string_index): Likewise.
7695 (streamer_write_data_stream, lto_append_block): Move from ...
7696 * lto-section-out.c (lto_output_data_stream,
7697 lto_append_block): ... here.
7699 2014-07-30 Mike Stump <mikestump@comcast.net>
7701 * configure.ac: Also check for popen.
7702 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
7703 * configure: Regenerate.
7704 * config.in: Regenerate.
7706 2014-07-30 Martin Jambor <mjambor@suse.cz>
7708 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
7709 parameter to gimple.
7711 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7713 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
7714 address as second parameter to __tpf_eh_return routine.
7716 2014-07-30 Jiong Wang <jiong.wang@arm.com>
7718 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
7721 2014-07-30 Tom Tromey <tromey@redhat.com>
7724 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
7725 * doc/extend.texi (Type Attributes): Document designated_init
7728 2014-07-30 Roman Gareev <gareevroman@gmail.com>
7730 * graphite-isl-ast-to-gimple.c:
7731 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
7732 (gcc_expression_from_isl_expression): Pass type to
7733 gcc_expression_from_isl_ast_expr_id.
7735 2014-07-30 Richard Biener <rguenther@suse.de>
7737 * lto-streamer.h (lto_write_data): New function.
7738 * langhooks.c (lhd_append_data): Do not free block.
7739 * lto-section-out.c (lto_write_data): New function writing
7740 raw data to the current section.
7741 (lto_write_stream): Adjust for langhook semantic change.
7742 (lto_destroy_simple_output_block): Write header directly.
7743 * lto-opts.c (lto_write_options): Write options directly.
7744 * lto-streamer-out.c (produce_asm): Write heaeder directly.
7745 (lto_output_toplevel_asms): Likewise.
7746 (copy_function_or_variable): Copy data directly.
7747 (write_global_references): Output index table directly.
7748 (lto_output_decl_state_refs): Likewise.
7749 (write_symbol): Write data directly.
7750 (produce_symtab): Adjust.
7751 (produce_asm_for_decls): Output header and refs directly.
7753 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7755 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
7756 to speculative_targets
7757 (get_class_context): Fix handling of contextes without outer type;
7758 avoid matching non-polymorphic types in LTO.
7759 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
7760 parameter to speculative_targetsp; handle speculation.
7761 (dump_possible_polymorphic_call_targets): Update dumping.
7763 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7765 * common.opt (Wodr): Enable by default.
7767 2014-07-29 Olivier Hainque <hainque@adacore.com>
7769 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
7771 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
7774 * gengtype.c (strtoken): New function.
7775 (create_user_defined_type): Replace strtok with strtoken.
7777 2014-07-29 Nathan Sidwell <nathan@acm.org>
7779 * gcov-io.c (gcov_var): Make hidden.
7780 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
7781 (gcov_do_dump): Declare.
7782 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
7784 2014-07-29 Martin Jambor <mjambor@suse.cz>
7786 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
7787 parameter to gimple.
7788 (sra_modify_assign): Likewise.
7790 2014-07-29 Richard Biener <rguenther@suse.de>
7793 * expr.c (expand_expr_real_2): Revert last change.
7795 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7797 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
7798 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
7799 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
7801 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
7802 (contains_type_p): Forward declare.
7803 (polymorphic_call_target_hasher::hash): Hash speculative info.
7804 (polymorphic_call_target_hasher::equal): Compare speculative info.
7805 (get_class_context): Handle speuclation.
7806 (contains_type_p): Update.
7807 (get_polymorphic_call_info_for_decl): Update.
7808 (walk_ssa_copies): Break out from ...
7809 (get_polymorphic_call_info): ... here; set speculative context
7811 * ipa-prop.c (ipa_write_indirect_edge_info,
7812 ipa_read_indirect_edge_info): Stream speculative context.
7813 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
7814 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
7815 SPECULATIVE_MAYBE_DERIVED_TYPE).
7816 (possible_polymorphic_call_targets overriders): Update.
7817 (dump_possible_polymorphic_call_targets overriders): Update.
7818 (dump_possible_polymorphic_call_target_p overriders): Update.
7820 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7822 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
7823 ipa-devirt path; fix thinko there.
7825 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
7827 * config/i386/i386.c (ix86_return_in_memory): Replace one
7828 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
7830 2014-07-28 Marek Polacek <polacek@redhat.com>
7832 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
7834 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
7836 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
7837 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
7838 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
7839 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7840 (USE_LD_AS_NEEDED): Likewise.
7841 (ASM_APP_ON): Likewise.
7842 (ASM_APP_OFF): Likewise.
7843 (TARGET_POSIX_IO): Likewise.
7844 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
7845 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7846 (USE_LD_AS_NEEDED): Likewise.
7847 (ASM_APP_ON): Likewise.
7848 (ASM_APP_OFF): Likewise.
7849 (TARGET_POSIX_IO): Likewise.
7851 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
7854 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
7855 operators other than the equality operators.
7857 2014-07-28 Richard Biener <rguenther@suse.de>
7860 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
7861 sure to register SImode ones, not only >= word_mode ones.
7862 * expr.c (expand_expr_real_2): When expanding -ftrapv
7863 binops do not use OPTAB_LIB_WIDEN.
7865 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
7868 * tree-outof-ssa.c (insert_partition_copy_on_edge)
7869 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
7870 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
7871 inserting them in the insn stream.
7873 2014-07-28 Marek Polacek <polacek@redhat.com>
7876 * common.opt (Wodr): Add Var.
7878 2014-07-28 Richard Biener <rguenther@suse.de>
7880 PR tree-optimization/61921
7881 * tree-ssa-structalias.c (create_variable_info_for_1): Check
7882 if there is a varpool node before dereferencing it.
7884 2014-07-28 Roman Gareev <gareevroman@gmail.com>
7886 * graphite-sese-to-poly.c:
7887 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
7888 id of the pbb), which contains pointer to the pbb1.
7890 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
7892 2014-07-28 Roman Gareev <gareevroman@gmail.com>
7894 * graphite-isl-ast-to-gimple.c:
7895 (graphite_create_new_guard): New function.
7896 (translate_isl_ast_node_if): New function.
7897 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
7899 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
7901 2014-07-27 Anthony Green <green@moxielogic.com>
7903 * config.gcc: Add moxie-*-moxiebox* configuration.
7904 * config/moxie/moxiebox.h: New file.
7906 2014-07-26 Andrew Pinski <apinski@cavium.com>
7908 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
7909 from the read only register.
7911 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
7913 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
7914 as the allocation class if it isn't likely to be spilled.
7916 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
7918 * rtl.h (tls_referenced_p): Declare.
7919 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
7920 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
7921 (mips_cannot_force_const_mem): Use tls_referenced_p.
7922 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
7923 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
7924 instead of pa_tls_referenced_p.
7925 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
7926 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
7927 (pa_legitimate_constant_p): Likewise.
7928 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
7929 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
7930 (rs6000_cannot_force_const_mem, rs6000_emit_move)
7931 (rs6000_address_for_altivec): Use tls_referenced_p instead of
7932 rs6000_tls_referenced_p.
7933 (rs6000_tls_symbol_ref_1): Delete.
7935 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
7938 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7939 Optimize inverse of a VEC_CONCAT.
7941 2014-07-25 Xinliang David Li <davidxl@google.com>
7943 * params.def: New parameter.
7944 * coverage.c (get_coverage_counts): Check new flag.
7945 (coverage_compute_profile_id): Check new flag.
7946 (coverage_begin_function): Check new flag.
7947 (coverage_end_function): Check new flag.
7948 * value-prof.c (coverage_node_map_initialized_p): New function.
7949 (init_node_map): Populate map with all functions.
7950 * doc/invoke.texi: Document new parameter.
7952 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
7953 Richard Biener <rguenther@suse.de>
7955 * lto-streamer-out.c (struct sccs): Turn to ...
7956 (class DFS): ... this one; refactor the DFS walk so it can
7957 be re-done on per-SCC basis.
7958 (DFS::DFS): New constructor.
7959 (DFS::~DFS): New destructor.
7960 (hash_tree): Add new MAP argument holding in-SCC hash values;
7961 remove POINTER_TYPE hashing hack.
7962 (scc_entry_compare): Rename to ...
7963 (DFS::scc_entry_compare): ... this one.
7964 (hash_scc): Rename to ...
7965 (DFS::hash_scc): ... this one; pass output_block instead
7966 of streamer_cache; work harder to get unique and stable SCC
7968 (DFS_write_tree): Rename to ...
7969 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
7970 (lto_output_tree): Update.
7972 2014-07-25 Andi Kleen <ak@linux.intel.com>
7974 * lto-streamer-out.c (hash_tree): Convert to inchash.
7976 2014-07-25 Andi Kleen <ak@linux.intel.com>
7978 * tree.c (build_type_attribute_qual_variant): Use inchash.
7979 (type_hash_list): Dito.
7980 (attribute_hash_list): Dito
7981 (iterative_hstate_expr): Dito.
7982 (iterative_hash_expr): Dito.
7983 (build_range_type_1): Dito.
7984 (build_array_type_1): Dito.
7985 (build_function_type): Dito.
7986 (build_method_type_directly): Dito.
7987 (build_offset_type): Dito.
7988 (build_complex_type): Dito.
7989 (make_vector_type): Dito.
7990 * tree.h (iterative_hash_expr): Add compat wrapper.
7991 (iterative_hstate_expr): Add.
7993 2014-07-25 Andi Kleen <ak@linux.intel.com>
7995 * Makefile.in (OBJS): Add inchash.o.
7996 (PLUGIN_HEADERS): Add inchash.h.
7997 * ipa-devirt.c: Include inchash.h.
7998 * lto-streamer-out.c: Dito.
7999 * tree-ssa-dom.c: Dito.
8000 * tree-ssa-pre.c: Dito.
8001 * tree-ssa-sccvn.c: Dito.
8002 * tree-ssa-tail-merge.c: Dito.
8004 * tree.c (iterative_hash_hashval_t): Move to ...
8005 (iterative_hash_host_wide_int): Move to ...
8006 * inchash.c: Here. New file.
8007 * tree.h (iterative_hash_hashval_t): Move to ...
8008 (iterative_hash_host_wide_int): Move to ...
8009 * inchash.h: Here. New file.
8011 2014-07-25 Richard Biener <rguenther@suse.de>
8015 * fold-const.c (native_encode_int): Add and handle offset
8016 parameter to do partial encodings of expr.
8017 (native_encode_fixed): Likewise.
8018 (native_encode_real): Likewise.
8019 (native_encode_complex): Likewise.
8020 (native_encode_vector): Likewise.
8021 (native_encode_string): Likewise.
8022 (native_encode_expr): Likewise.
8023 * fold-const.c (native_encode_expr): Add offset parameter
8025 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8026 (fold_ctor_reference): Handle all reads from tcc_constant
8029 2014-07-25 Richard Biener <rguenther@suse.de>
8031 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8034 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8036 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8038 2014-07-24 Kyle McMartin <kyle@redhat.com>
8040 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8042 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8044 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8046 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8048 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8049 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8050 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8052 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8054 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8055 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8056 aggregate types. Instead, *all* aggregate types, except for single-
8057 element or homogeneous float/vector aggregates, are quadword-aligned
8058 if required by their type alignment. Issue -Wpsabi note when a type
8059 is now treated differently than before.
8061 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8063 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8064 does not fit fully into floating-point registers, and there is still
8065 space in the register parameter area, use GPRs to pass those parts
8066 of the argument. Issue -Wpsabi note if any parameter is now treated
8067 differently than before.
8068 (rs6000_arg_partial_bytes): Update.
8070 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8072 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8074 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8076 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8077 * toplev.c (initialize_rtl): Don't use it. Move previously
8078 "language-dependent" calls to...
8079 (backend_init): ...here.
8080 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8081 Assert that RTL initialization hasn't happend yet.
8083 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8085 PR rtl-optimization/61629
8086 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8087 they have already been initialized.
8089 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8092 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8093 DECL_INCOMING_RTL and entry_parm.
8094 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8095 * calls.c (load_register_parameters): Likewise argument values.
8096 (emit_library_call_value_1, store_one_arg): Likewise argument
8098 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8100 * explow.c (validize_mem): Modify the argument in-place.
8102 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8104 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8105 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8107 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8109 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8110 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8112 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8114 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8115 (aarch64_save_callee_saves): New parameter "skip_wb".
8116 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8118 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8120 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8122 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8124 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8126 * graphite-isl-ast-to-gimple.c:
8127 (graphite_create_new_loop): Add calling of isl_id_free to properly
8128 decrement reference counts.
8130 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8132 2014-07-24 Martin Liska <mliska@suse.cz>
8133 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8135 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8136 (rs6000_code_end): Likewise.
8138 2014-07-24 Martin Liska <mliska@suse.cz>
8140 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8141 symtab_node funtion used.
8142 (rs6000_xcoff_declare_object_name): Likewise.
8144 2014-07-24 Martin Liska <mliska@suse.cz>
8146 * cgraphunit.c (compile): Correct function used.
8148 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8150 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8153 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8156 * varasm.c (bss_initializer_p): Handle offlined ctors.
8157 (align_variable, get_variable_align): Likewise.
8158 (make_decl_one_only): Likewise.
8159 (default_binds_local_p_1): Likewise.
8160 (decl_binds_to_current_def_p): Likewise.
8161 (get_variable_section): Get constructor if it is offlined.
8162 (assemble_variable_contents): Sanity check that the caller
8163 streamed in the ctor in LTO.
8165 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8167 * graphite-isl-ast-to-gimple.c:
8168 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8169 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8170 isl_ast_op_pdiv_r to the different case.
8172 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8174 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8177 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8178 when flag_errno_math is on.
8180 2014-07-24 Martin Liska <mliska@suse.cz>
8182 * cgraph.h (varpool_node):
8183 (availability get_availability (void)):
8184 created from cgraph_variable_initializer_availability
8185 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8186 created from: cgraph_variable_initializer_availability
8187 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8188 (void finalize_named_section_flags (void)):
8189 created from varpool_finalize_named_section_flags
8190 (bool assemble_decl (void)): created from varpool_assemble_decl
8191 (void analyze (void)): created from varpool_analyze_node
8192 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8193 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8194 (void remove_initializer (void)): created from varpool_remove_initializer
8195 (tree get_constructor (void)): created from varpool_get_constructor
8196 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8197 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8198 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8199 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8200 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8201 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8202 (static bool output_variables (void)): created from varpool_output_variables
8203 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8204 created from varpool_extra_name_alias
8205 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8206 (static void dump_varpool (FILE *f)): created from dump_varpool
8207 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8208 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8209 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8210 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8211 (void assemble_aliases (void)): created from assemble_aliases
8213 2014-07-24 Martin Liska <mliska@suse.cz>
8215 * cgraph.h (symtab_node):
8216 (void register_symbol (void)): created from symtab_register_node
8217 (void remove (void)): created from symtab_remove_node
8218 (void dump (FILE *f)): created from dump_symtab_node
8219 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8220 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8221 (struct ipa_ref *add_reference (symtab_node *referred_node,
8222 enum ipa_ref_use use_type)): created from add_reference
8223 (struct ipa_ref *add_reference (symtab_node *referred_node,
8224 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8225 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8226 gimple stmt)): created from maybe_add_reference
8227 (bool semantically_equivalent_p (symtab_node *target)): created from
8228 symtab_semantically_equivalent_p
8229 (void remove_from_same_comdat_group (void)): created from
8230 remove_from_same_comdat_group
8231 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8232 symtab_add_to_same_comdat_group
8233 (void dissolve_same_comdat_group_list (void)): created from
8234 symtab_dissolve_same_comdat_group_list
8235 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8236 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8237 created from symtab_alias_ultimate_target
8238 (inline symtab_node *next_defined_symbol (void)): created from
8239 symtab_next_defined_symbol
8240 (bool resolve_alias (symtab_node *target)): created from
8241 symtab_resolve_alias
8242 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8243 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8244 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8245 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8246 (void set_section (const char *section)): created from set_section_1
8247 (enum availability get_availability (void)): created from symtab_node_availability
8248 (void make_decl_local (void)): created from symtab_make_decl_local
8249 (bool real_symbol_p (void)): created from symtab_read_node
8250 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8251 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8252 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8253 symtab_in_same_comdat_p;
8254 (bool address_taken_from_non_vtable_p (void)): created from
8255 address_taken_from_non_vtable_p
8256 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8257 (static void dump_table (FILE *)): created from dump_symtab
8258 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8259 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8260 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8261 symtab_used_from_object_file_p
8262 (void dump_base (FILE *)): created from dump_symtab_base
8263 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8264 (void unregister (void)): created from symtab_unregister_node
8265 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8266 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8267 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8268 symtab_nonoverwritable_alias_1
8269 * cgraph.h (cgraph_node):
8270 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8271 created from cgraph_remove_node_and_inline_clones
8272 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8273 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8274 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8275 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8276 created from cgraph_function_node
8277 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8278 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8279 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8280 created from cgraph_create_clone
8281 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8282 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8283 created from cgraph_create_virtual_clone
8284 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8285 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8286 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8287 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8288 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8289 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8290 created from cgraph_function_version_info
8291 (struct cgraph_function_version_info *insert_new_function_version (void)):
8292 created from insert_new_cgraph_node_version
8293 (struct cgraph_function_version_info *function_version (void)): created from
8294 get_cgraph_node_version
8295 (void analyze (void)): created from analyze_function
8296 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8297 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8298 tree real_alias) cgraph_add_thunk
8299 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8300 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8301 created from cgraph_function_or_thunk_node
8302 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8303 created from expand_thunk
8304 (void reset (void)): created from cgraph_reset_node
8305 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8306 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8307 (void remove (void)): created from cgraph_remove_node
8308 (void dump (FILE *f)): created from dump_cgraph_node
8309 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8310 (bool get_body (void)): created from cgraph_get_body
8311 (void release_body (void)): created from cgraph_release_function_body
8312 (void unnest (void)): created from cgraph_unnest_node
8313 (void make_local (void)): created from cgraph_make_node_local
8314 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8315 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8316 gcov_type count, int freq)): created from cgraph_create_edge
8317 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8318 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8319 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8320 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8321 created from cgraph_create_edge_including_clones
8322 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8323 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8324 (void remove_callers (void)): created from cgraph_node_remove_callers
8325 (void remove_callees (void)): created from cgraph_node_remove_callees
8326 (enum availability get_availability (void)): created from cgraph_function_body_availability
8327 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8328 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8329 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8330 (void call_duplication_hooks (cgraph_node *node2)): created from
8331 cgraph_call_node_duplication_hooks
8332 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8333 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8334 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8335 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8336 (void call_function_insertion_hooks (void)):
8337 created from cgraph_call_function_insertion_hooks
8338 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8339 (bool local_p (void)): created from cgraph_local_node
8340 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8341 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8342 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8343 (inline bool only_called_directly_or_aliased_p (void)):
8344 created from cgraph_only_called_directly_or_aliased_p
8345 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8346 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8347 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8348 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8349 (bool can_remove_if_no_direct_calls_p (void)):
8350 created from cgraph_can_remove_if_no_direct_calls_p
8351 (inline bool has_gimple_body_p (void)):
8352 created from cgraph_function_with_gimple_body_p
8353 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8354 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8355 (static inline void debug_cgraph (void)): created from debug_cgraph
8356 (static void record_function_versions (tree decl1, tree decl2)):
8357 created from record_function_versions
8358 (static void delete_function_version (tree decl)):
8359 created from delete_function_version
8360 (static void add_new_function (tree fndecl, bool lowered)):
8361 created from cgraph_add_new_function
8362 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8363 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8364 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8365 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8366 (static cgraph_node *get_for_asmname (tree asmname)):
8367 created from cgraph_node_for_asm
8368 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8369 created from cgraph_same_body_alias
8370 (static bool used_from_object_file_p_worker (cgraph_node *node,
8371 void *): new function
8372 (static bool non_local_p (cgraph_node *node, void *)):
8373 created from cgraph_non_local_node_p_1
8374 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8375 created from verify_cgraph
8376 (static bool make_local (cgraph_node *node, void *)):
8377 created from cgraph_make_node_local
8378 (static cgraph_node *create_alias (tree alias, tree target)):
8379 created from cgraph_create_function_alias
8380 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8381 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8382 created from cgraph_create_edge_1
8383 * cgraph.h (varpool_node):
8384 (void remove (void)): created from varpool_remove_node
8385 (void dump (FILE *f)): created from dump_varpool_node
8387 2014-07-24 Richard Biener <rguenther@suse.de>
8390 * tree-ssa-structalias.c (create_variable_info_for_1):
8391 Use varpool_get_constructor.
8392 (create_variable_info_for): Likewise.
8394 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8396 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8397 subtract outgoing area size when restoring stack_pointer_rtx.
8399 2014-07-24 Nick Clifton <nickc@redhat.com>
8401 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8402 that operations are taking place in parallel.
8403 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8405 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8407 * omp-low.c (extract_omp_for_data): Add missing break statement.
8409 2014-07-24 Richard Biener <rguenther@suse.de>
8411 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8412 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8413 and adjust MOVE_RATIO query accordingly.
8414 (estimate_num_insns): Adjust callers.
8415 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8416 * ipa-cp.c (gather_context_independent_values,
8417 estimate_local_effects): Likewise.
8418 * ipa-split.c (consider_split): Likewise.
8420 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8422 * config/i386/driver-i386.c: Remove names of unused arguments and
8423 unnecessary unused attributes.
8424 * config/i386/host-mingw32.c: Likewise.
8425 * config/i386/i386.c: Likewise.
8426 * config/i386/winnt-stubs.c: Likewise.
8427 * config/i386/winnt.c: Likewise.
8429 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8431 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8432 (aarch64_gen_loadwb_pair): New helper function.
8433 (aarch64_expand_epilogue): Simplify code using new helper functions.
8434 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8436 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8438 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8439 (aarch64_gen_storewb_pair): New helper function.
8440 (aarch64_expand_prologue): Simplify code using new helper functions.
8441 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8443 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8445 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8446 Rename to aarch64_save_callee_saves, remove restore code.
8447 (aarch64_restore_callee_saves): New function.
8449 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8451 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8452 (aarch64_save_callee_saves): New function to handle reg save
8453 for both core and vectore regs.
8455 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8457 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8458 (aarch64_gen_store_pair): New helper function.
8459 (aarch64_save_or_restore_callee_save_registers)
8460 (aarch64_save_or_restore_fprs): Use new helper functions.
8462 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8464 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8465 (aarch64_save_or_restore_callee_save_registers)
8466 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8468 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8470 * config/aarch64/aarch64.c
8471 (aarch64_save_or_restore_callee_save_registers)
8472 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8474 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8476 * config/aarch64/aarch64.c
8477 (aarch64_save_or_restore_callee_save_registers)
8478 (aarch64_save_or_restore_fprs): Remove 'increment'.
8480 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8482 * config/aarch64/aarch64.c
8483 (aarch64_save_or_restore_callee_save_registers)
8484 (aarch64_save_or_restore_fprs): Use register offset in
8485 cfun->machine->frame.reg_offset.
8487 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8489 * config/aarch64/aarch64.c
8490 (aarch64_save_or_restore_callee_save_registers)
8491 (aarch64_save_or_restore_fprs): Remove base_rtx.
8493 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8495 * config/aarch64/aarch64.c
8496 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8497 to 'start_offset'. Remove local variable 'start_offset'.
8499 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8501 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8502 type to HOST_WIDE_INT.
8504 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8506 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8507 (aarch64_save_or_restore_fprs)
8508 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8510 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8512 * config/arm/t-rtems-eabi: Add
8513 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8514 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8515 mbig-endian/mthumb/march=armv7-r, and
8516 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8519 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8520 Chris Johns <chrisj@rtems.org>
8521 Joel Sherrill <joel.sherrill@oarcorp.com>
8523 * config.gcc: Add nios2-*-rtems*.
8524 * config/nios2/rtems.h: New file.
8525 * gcc/config/nios2/t-rtems: New file.
8527 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8530 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8531 constant numbers, not general constants.
8532 (rs6000_expand_vector_init): Ditto.
8534 2014-07-23 Nathan Sidwell <nathan@acm.org>
8536 * gcov-tool.c (gcov_list): Declare here.
8537 (set_gcov_list): Remove.
8538 (gcov_output_files): Set gcov_list directly.
8540 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8542 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8544 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8546 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8547 callee-saved registers are available for padding purpose
8548 and r3 is not mandatory, then prefer use those callee-saved
8551 2014-07-23 Richard Biener <rguenther@suse.de>
8553 * params.def (PARAM_MAX_COMBINE_INSNS): New.
8554 * combine.c: Include statistics.h and params.h.
8555 (combine_instructions): Guard three and four insn combines
8556 with max-combine-insns value. Record statistics for combines
8558 * doc/invoke.texi (max-combine-insns): Document new param.
8560 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8562 * graphite-isl-ast-to-gimple.c:
8563 (translate_isl_ast_node_block): New function.
8564 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8566 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8567 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8569 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8571 * graphite-isl-ast-to-gimple.c:
8572 (get_max_schedule_dimensions): New function.
8573 (extend_schedule): Likewise.
8574 (generate_isl_schedule): Add calling of extend_schedule and
8575 get_max_schedule_dimensions.
8577 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8579 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
8580 (case UNSPEC): Handle UNSPEC_RBIT.
8582 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8584 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
8585 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
8587 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8589 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
8591 2014-07-22 Roman Gareev <gareevroman@gmail.com>
8593 * graphite-isl-ast-to-gimple.c:
8594 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
8596 (build_iv_mapping): New function.
8597 (translate_isl_ast_node_user): Likewise.
8598 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
8600 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
8601 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
8602 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
8604 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8607 * config/arm/arm.md (setmem): New pattern.
8608 * config/arm/arm-protos.h (struct tune_params): New fields.
8609 (arm_gen_setmem): New prototype.
8610 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
8611 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8612 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8613 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
8614 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
8615 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
8616 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
8617 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8618 (arm_const_inline_cost): New function.
8619 (arm_block_set_max_insns): New function.
8620 (arm_block_set_non_vect_profit_p): New function.
8621 (arm_block_set_vect_profit_p): New function.
8622 (arm_block_set_unaligned_vect): New function.
8623 (arm_block_set_aligned_vect): New function.
8624 (arm_block_set_unaligned_non_vect): New function.
8625 (arm_block_set_aligned_non_vect): New function.
8626 (arm_block_set_vect, arm_gen_setmem): New functions.
8628 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8630 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
8632 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
8635 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
8636 out of #ifdef __OPTIMIZE__.
8638 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8640 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
8641 different trapping status if -fnon-call-exceptions is enabled.
8643 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8645 * expr.c (store_field): Handle VOIDmode for calls that return values
8646 in multiple locations.
8648 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8650 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
8651 (altivec_vsldoi_<mode>): Likewise.
8653 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8655 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
8656 to the number of characters in the line.
8658 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8660 * graphite-isl-ast-to-gimple.c: Add using of
8661 build_nonstandard_integer_type instead of int128_integer_type_node.
8663 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
8665 * toplev.c (output_stack_usage): Adjust the location of the warning.
8667 2014-07-19 Daniel Cederman <cederman@gaisler.com>
8669 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
8670 (*membar_storeload): Disable for LEON3.
8672 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8674 PR rtl-optimization/61461
8675 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
8677 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
8680 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
8681 Fix instruction constraint.
8682 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8684 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
8686 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
8688 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
8690 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
8691 GNU coding standards.
8692 (nds32_register_move_cost): Likewise.
8693 (nds32_memory_move_cost): Likewise.
8694 (nds32_address_cost): Likewise.
8696 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8698 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
8700 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
8702 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
8703 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
8704 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
8705 (HAVE_sync_compare_and_swapqi): Define.
8706 (HAVE_sync_compare_and_swaphi): Likewise.
8707 (HAVE_sync_compare_and_swapsi): Likewise.
8709 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
8711 * config/mips/p5600.md: Add missing cpu tests.
8713 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8715 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
8716 (vmla_f64): Likewise.
8717 (vfms_f64): Likewise.
8718 (vmls_f64): Likewise.
8720 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8722 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
8723 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
8725 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8727 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
8728 (vmlal_high_lane_s32): Likewise.
8729 (vmlal_high_lane_u16): Likewise.
8730 (vmlal_high_lane_u32): Likewise.
8731 (vmlsl_high_lane_s16): Likewise.
8732 (vmlsl_high_lane_s32): Likewise.
8733 (vmlsl_high_lane_u16): Likewise.
8734 (vmlsl_high_lane_u32): Likewise.
8736 2014-07-17 Terry Guo <terry.guo@arm.com>
8738 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
8739 (alus_reg): Renamed to alus_sreg.
8740 * config/arm/arm-fixed.md: Change type of non-dsp instructions
8741 from alu_reg to alu_sreg. Change type of dsp instructions from
8742 alu_reg to alu_dsp_reg.
8743 * config/arm/thumb1.md: Likewise.
8744 * config/arm/thumb2.md: Likewise.
8745 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
8746 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
8747 with alu_sreg and alus_sreg.
8748 * config/arm/arm1026ejs.md (alu_op): Likewise.
8749 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
8750 * config/arm/arm926ejs.md (9_alu_op): Likewise.
8751 * config/arm/fa526.md (526_alu_op): Likewise.
8752 * config/arm/fa606te.md (606te_alu_op): Likewise.
8753 * config/arm/fa626te.md (626te_alu_op): Likewise.
8754 * config/arm/fa726te.md (726te_alu_op): Likewise.
8755 * config/arm/fmp626.md (mp626_alu_op): Likewise.
8756 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
8757 alu_sreg, alu_dsp_reg and alus_sreg.
8758 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
8759 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8760 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8761 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
8762 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
8763 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8764 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8765 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8766 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
8767 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
8768 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
8769 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
8770 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
8771 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
8772 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
8773 alus_reg to alus_sreg.
8775 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
8777 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
8780 2014-07-17 Richard Biener <rguenther@suse.de>
8782 PR rtl-optimization/61801
8783 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
8784 don't set reg_pending_barrier if it appears in a debug-insn.
8786 2014-07-16 DJ Delorie <dj@redhat.com>
8788 * config/rx/rx.c (rx_option_override): Fix alignment values.
8789 (rx_align_for_label): Likewise.
8791 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
8794 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
8795 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8796 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
8798 (cris_print_index, cris_print_operand, cris_constant_index_p)
8799 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
8800 (cris_address_cost): Ditto last CONSTANT_P.
8801 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
8802 callers changed. Yield cris_offsettable_symbol for non-PIC
8803 constant symbolic expressions including labels. Yield cris_unspec
8805 (cris_expand_pic_call_address): New parameter MARKERP. Set its
8806 target to pic_offset_table_rtx for calls that will likely go
8807 through PLT, const0_rtx when they can't. All callers changed.
8808 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
8809 symbolic expressions to be PICified. Remove second, redundant,
8810 assert on can_create_pseudo_p returning non-zero. Use
8811 replace_equiv_address_nv, not replace_equiv_address, for final
8813 * config/cris/cris.md ("movsi"): Move variable t to pattern
8814 toplevel. Adjust assert for new cris_symbol_type member. Use
8815 CONSTANT_P instead of CONSTANT_ADDRESS_P.
8816 ("*movsi_internal") <case 9>: Make check for valid unspec operands
8818 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
8819 ("call", "call_value"): Use second incoming operand as a marker
8820 for pic-offset-table-register being used.
8821 ("*expanded_call_non_v32", "*expanded_call_v32")
8822 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
8823 second incoming operand to CALL, match cris_call_type_marker.
8824 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
8825 ("*expanded_call_side"): Ditto. Fix typo in comment.
8826 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
8828 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
8829 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
8830 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
8831 users changed. Add members cris_offsettable_symbol and cris_unspec.
8832 (cris_symbol_type): Rename from cris_pic_symbol_type.
8833 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
8835 * config/cris/cris-protos.h (cris_symbol_type_of,
8836 cris_expand_pic_call_address): Adjust prototypes.
8837 (cris_legitimate_constant_p): New prototype.
8839 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
8840 an existing tmake_file. Don't add t-slibgcc and t-linux.
8842 2014-07-17 Jason Merrill <jason@redhat.com>
8845 * symtab.c (symtab_remove_from_same_comdat_group): Also
8846 set_comdat_group to NULL_TREE.
8847 (verify_symtab): Fix diagnostic.
8849 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
8852 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
8854 2014-07-16 Dodji Seketeli <dodji@redhat.com>
8856 Support location tracking for built-in macro tokens
8857 * input.h (is_location_from_builtin_token): New function declaration.
8858 * input.c (is_location_from_builtin_token): New function definition.
8859 * toplev.c (general_init): Tell libcpp what the pre-defined
8860 spelling location for built-in tokens is.
8862 2014-07-16 Jakub Jelinek <jakub@redhat.com>
8864 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
8865 on the FUNCTION_DECL.
8867 2014-07-16 Richard Biener <rguenther@suse.de>
8870 * doc/extend.texi (always_inline): Clarify.
8872 2014-07-15 Eric Christopher <echristo@gmail.com>
8874 * doc/invoke.texi (Link Options): Document -z option.
8876 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
8878 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
8879 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8881 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
8883 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
8885 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
8887 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
8888 varpool_assemble_decl.
8889 * varpool.c (varpool_assemble_decl): Assert that node->definition is
8892 2014-07-15 Michael Matz <matz@suse.de>
8894 PR rtl-optimization/61772
8895 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
8897 2014-07-15 Richard Biener <rguenther@suse.de>
8899 * opts.c (default_options_table): Disable bit-ccp at -Og.
8901 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
8903 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
8905 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
8907 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
8908 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
8909 call langhook for unknown declaration.
8910 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
8911 * tree.h (DECL_ARGUMENTS): Update.
8912 * print-tree.c (print_node): Update.
8913 * tree-core.h (tree_decl_non_common): Remove arguments.
8914 (tree_function_decl): Add arguments.
8916 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
8918 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
8920 2014-07-14 Richard Biener <rguenther@suse.de>
8922 PR tree-optimization/61779
8923 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
8924 simplifying a condition.
8926 2014-07-14 Richard Biener <rguenther@suse.de>
8928 * builtins.c (c_strlen): Make only_value == 2 really only
8929 affect warning generation.
8931 2014-07-14 Richard Biener <rguenther@suse.de>
8933 PR tree-optimization/61757
8934 PR tree-optimization/61783
8935 PR tree-optimization/61787
8936 * tree-ssa-dom.c (record_equality): Revert canonicalization
8937 change and add comment.
8938 (propagate_rhs_into_lhs): Revert previous fix, removing
8939 loop depth restriction again.
8941 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8943 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
8944 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8945 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8946 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
8947 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8948 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8949 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8951 2014-07-14 Richard Biener <rguenther@suse.de>
8953 * cgraph.h (decl_in_symtab_p): Make inline.
8955 2014-07-14 Jakub Jelinek <jakub@redhat.com>
8958 * doc/invoke.texi (-Wmemset-transposed-args): Document.
8961 * config/i386/i386.c (classify_argument): Don't merge classes above
8964 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
8966 * cgraph.h (symtab_node): Add nonzero_address.
8967 (decl_in_symtab_p): Break out from ...
8968 (symtab_get_node): ... here.
8969 * fold-const.c: Include cgraph.h
8970 (tree_single_nonzero_warnv_p): Use symtab to determine
8971 if symbol is non-zero.
8972 * symtab.c (symtab_node::nonzero_address): New method.
8974 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8976 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
8977 forgotten in previous commit.
8979 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8981 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
8983 * ipa-devirt.c: Include stor-layout.h and intl.h
8984 (odr_subtypes_equivalent_p): New function.
8985 (warn_odr): New function.
8986 (warn_type_mismatch): New function.
8987 (odr_types_equivalent_p): New function.
8988 (add_type_duplicate): Use it.
8989 * common.opt (Wodr): New flag.
8990 * doc/invoke.texi (Wodr): Document new warning.
8992 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8994 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
8995 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
8996 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
8997 (varpool_get_constructor): Push CTORS_IN timevar.
8998 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9000 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9002 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9003 Remove VOID_FTYPE_PUSHORT.
9004 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9005 Change code to USHORT_FTYPE_VOID.
9006 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9007 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9008 (ix86_atomic_assign_expand_fenv): Update for
9009 __builtin_ia32_fnstsw changes.
9010 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9011 (fnstsw): Change operand 0 to nonimmediate operand.
9013 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9015 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9016 (varpool_get_constructor): New function.
9017 (varpool_ctor_useable_for_folding_p): Break out from ...
9018 (ctor_for_folding): ... here; use varpool_get_constructor.
9019 (varpool_assemble_decl): Likewise.
9020 * lto-streamer.h (struct output_block): Turn cgraph_node
9022 (lto_input_variable_constructor): Declare.
9023 * ipa-visibility.c (function_and_variable_visibility): Use
9024 varpool_get_constructor.
9025 * cgraph.h (varpool_get_constructor): Declare.
9026 (varpool_ctor_useable_for_folding_p): New function.
9027 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9028 parameter; return error_mark_node for non-trivial constructors.
9029 (lto_write_tree_1, DFS_write_tree): Update use of
9030 get_symbol_initial_value.
9031 (output_function): Update initialization of symbol.
9032 (output_constructor): New function.
9033 (copy_function): Rename to ..
9034 (copy_function_or_variable): ... this one; handle vars too.
9035 (lto_output): Output variable sections.
9036 * lto-streamer-in.c (input_constructor): New function.
9037 (lto_read_body): Rename from ...
9038 (lto_read_body_or_constructor): ... this one; handle vars too.
9039 (lto_input_variable_constructor): New function.
9040 * ipa-prop.c (ipa_prop_write_jump_functions,
9041 ipa_prop_write_all_agg_replacement): Update.
9042 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9043 (output_cgraph_opt_summary): Set symbol to NULL.
9045 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9047 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9048 non-polymorphic types.
9049 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9050 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9051 of types is not polymorphic.
9053 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9055 * lra-constraints.c (remove_inheritance_pseudos): Process
9056 destination pseudo too.
9058 2014-07-11 Rong Xu <xur@google.com>
9060 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9063 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9065 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9066 * config/avr/avr-devices.c (AVR_MCU): Same.
9067 (avr_mcu_types): add text start value to end of device list.
9068 * config/avr/avr-mcus.def: Add text section start for all devices.
9069 (ata5782): Add new avr5 device.
9071 * config/avr/avr-tables.opt: Regenerate.
9072 * config/avr/avr.h: Add declaration for text section start handler.
9073 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9075 (LINK_SPEC): Include text section start handler to linker spec.
9076 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9077 pass -Ttext option to linker if the text section start for the device
9079 * config/avr/t-multilib: Regenerate.
9080 * doc/avr-mmcu.texi: Regenerate.
9082 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9084 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9085 * config/rs6000/aix52.h (LINK_SPEC): Same.
9086 * config/rs6000/aix53.h (LINK_SPEC): Same.
9087 * config/rs6000/aix61.h (LINK_SPEC): Same.
9088 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9090 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9092 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9093 (graphite_verify): New function.
9094 (ivs_params_clear): New function.
9095 (gcc_expression_from_isl_ast_expr_id): New function.
9096 (gcc_expression_from_isl_expr_int): New function.
9097 (binary_op_to_tree): New function.
9098 (ternary_op_to_tree): New function.
9099 (unary_op_to_tree): New function.
9100 (nary_op_to_tree): New function.
9101 (gcc_expression_from_isl_expr_op): New function.
9102 (gcc_expression_from_isl_expression): New function.
9103 (graphite_create_new_loop): New function.
9104 (translate_isl_ast_for_loop): New function.
9105 (get_upper_bound): New function.
9106 (graphite_create_new_loop_guard): New function.
9107 (translate_isl_ast_node_for): New function.
9108 (translate_isl_ast): New function.
9109 (add_parameters_to_ivs_params): New function.
9110 (scop_to_isl_ast): New parameter ip.
9111 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9113 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9115 * config/xtensa/predicates.md (call expander): Update for
9116 DECL_SECTION_NAME being string.
9118 2014-07-11 Richard Biener <rguenther@suse.de>
9121 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9122 can be implemented with a single load followed by a single store.
9123 (c_strlen): Only warn when only_value is not 2.
9125 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9127 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9129 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9132 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9133 (*movhi_bytes): Likewise.
9134 (*arm_movqi_insn): Likewise.
9136 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9139 * config/alpha/alpha.c: Include tree-pass.h, context.h
9141 (pass_data_handle_trap_shadows): New pass.
9142 (pass_handle_trap_shadows::gate): New pass gate function.
9143 (make_pass_handle_trap_shadows): New function.
9144 (rest_of_handle_trap_shadows): Ditto.
9146 (alpha_align_insns_1): Rename from alpha_align_insns.
9147 (pass_data_align_insns): New pass.
9148 (pass_align_insns::gate): New pass gate function.
9149 (make_pass_aling_insns): New function.
9150 (rest_of_align_insns): Ditto.
9151 (alpha_align_insns): Ditto.
9153 (alpha_option_override): Declare handle_trap_shadows info
9154 and align_insns_info. Register handle_trap_shadows and align_insns
9156 (alpha_reorg): Do not call alpha_trap_shadows and
9157 alpha_align_insn from here.
9159 (alpha_pad_function_end): Do not skip BARRIERs.
9161 2014-07-10 Rong Xu <xur@google.com>
9163 Add gcov-tool: an offline gcda profile processing tool support.
9164 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9165 (gcov_is_error): Ditto.
9166 (gcov_read_string): Ditto.
9167 (gcov_read_sync): Ditto.
9168 * gcov-io.h: Move counter defines to gcov-counter.def.
9169 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9170 * coverage.c: Ditto.
9171 * gcov-tool.c: Offline gcda profile processing tool.
9172 (unlink_gcda_file): Remove one gcda file.
9173 (unlink_profile_dir): Remove gcda files from the profile path.
9174 (gcov_output_files): Output gcda files to an output dir.
9175 (profile_merge): Merge two profiles in directory.
9176 (print_merge_usage_message): Print merge usage.
9177 (merge_usage): Print merge usage and exit.
9178 (do_merge): Driver for profile merge sub-command.
9179 (profile_rewrite): Rewrite profile.
9180 (print_rewrite_usage_message): Print rewrite usage.
9181 (rewrite_usage): Print rewrite usage and exit.
9182 (do_rewrite): Driver for profile rewrite sub-command.
9183 (print_usage): Print gcov-info usage and exit.
9184 (print_version): Print gcov-info version.
9185 (process_args): Process arguments.
9186 (main): Main routine for gcov-tool.
9187 * Makefile.in: Build and install gcov-tool.
9188 * gcov-counter.def: New file split from gcov-io.h.
9189 * doc/gcc.texi: Include gcov-tool.texi.
9190 * doc/gcov-tool.texi: Document for gcov-tool.
9192 2014-07-10 Richard Biener <rguenther@suse.de>
9194 PR tree-optimization/61757
9195 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9196 (propagate_rhs_into_lhs): Revert part of last change.
9198 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9200 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9203 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9206 * function.c (allocate_struct_function): Revert r188667 change.
9208 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9210 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9212 * doc/install.texi: Remove links to defunct package providers for
9215 2014-07-09 Tom de Vries <tom@codesourcery.com>
9217 * final.c (get_call_fndecl): Declare.
9218 (self_recursive_call_p): New function.
9219 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9221 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9223 * ipa-devirt.c (record_node): Walk through aliases.
9225 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9227 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9229 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9232 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9234 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9236 * ipa-visibility.c (function_and_variable_visibility): Remove
9237 temporary hack disabling local aliases on AIX.
9239 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9241 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9242 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9244 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9246 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9247 * rs6000/rs6000.c: Inline output of .set instruction.
9248 (declare_alias_data): New struct.
9249 (rs6000_declare_alias): New function.
9250 (rs6000_xcoff_declare_function_name): Use it.
9251 (rs6000_xcoff_declare_object_name): New function.
9252 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9253 (ASM_OUTPUT_DEF): Turn to empty definition.
9255 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9258 * hash-table.h: use hash_table::value_type instead of
9259 Descriptor::value_type in the return types of several methods.
9261 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9263 * tree-pass.h (pass_data): Remove has_execute member.
9264 * passes.c (execute_one_pass): Don't check pass->has_execute.
9265 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9266 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9267 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9268 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9269 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9270 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9271 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9272 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9273 gimple-low.c, gimple-ssa-isolate-paths.c,
9274 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9275 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9276 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9277 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9278 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9279 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9280 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9281 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9282 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9283 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9284 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9285 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9286 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9287 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9288 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9289 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9290 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9291 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9292 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9293 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9294 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9295 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9296 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9297 web.c: Remove initializer for pass_data::has_execute.
9299 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9301 * graphite-htab.h: Use hash_map instead of hash_table.
9302 * graphite-clast-to-gimple.c: Adjust.
9303 * passes.c: Use hash_map instead of hash_table.
9305 * sese.h: Remove now unused code.
9307 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9310 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9313 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9315 PR rtl-optimization/61673
9316 * combine.c (simplify_comparison): Test just mode's sign bit
9317 in tmode rather than the sign bit and any bits above it.
9319 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9321 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9322 Add __isl_give to the declaration.
9323 (generate_isl_schedule): Likewise.
9324 (scop_to_isl_ast): Likewise.
9326 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9328 * config/arm/arm.c (cortexa5_extra_costs): New table.
9329 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9331 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9333 PR tree-optimization/61725
9334 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9335 range, use range_includes_zerop_p instead of integer_zerop on
9336 vr0->min, only use log2 of max if min is not negative.
9338 2014-07-08 Richard Biener <rguenther@suse.de>
9340 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9341 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9342 restriction on loop depth difference.
9343 (record_equality): Likewise.
9344 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9345 (loop_depth_of_name): Remove.
9346 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9347 restriction on loop depth difference.
9348 (init_copy_prop): Likewise.
9350 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9352 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9354 (walk_aliased_vdefs): Likewise.
9355 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9356 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9357 (detect_type_change_from_memory_writes): Check if entry was reached.
9359 2014-07-08 Richard Biener <rguenther@suse.de>
9361 PR tree-optimization/61681
9362 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9363 NONLOCAL inside ESCAPED.
9365 2014-07-08 Richard Biener <rguenther@suse.de>
9367 PR tree-optimization/61680
9368 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9369 Handle properly all read-write dependences with group accesses.
9371 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9373 PR tree-optimization/61576
9374 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9375 block containing reduction statement is predecessor of phi basi block.
9377 2014-07-08 Marek Polacek <polacek@redhat.com>
9380 * fold-const.c (round_up_loc): Change the parameter type.
9382 * fold-const.h (round_up_loc): Adjust declaration.
9383 * stor-layout.c (finalize_record_size): Check for too large types.
9385 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9387 * symtab.c: Include calls.h.
9388 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9390 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9392 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9393 little-endian code generation.
9394 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9395 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9396 (spe_evmergehilo): Rename to...
9397 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9398 (spe_evmergelo): Rename to...
9399 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9400 (spe_evmergelohi): Rename to...
9401 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9402 (spe_evmergehi, spe_evmergehilo): New expanders.
9403 (spe_evmergelo, spe_evmergelohi): Likewise.
9404 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9405 (*frob_tf_ti): Likewise.
9406 (*frob_<mode>_di_2): Likewise.
9407 (*frob_tf_di_8_2): Likewise.
9408 (*frob_di_<mode>): Likewise.
9409 (*frob_ti_tf): Likewise.
9410 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9411 (*frob_ti_<mode>_8_2): Likewise.
9412 (*frob_ti_tf_2): Likewise.
9413 (mov_si<mode>_e500_subreg0): Rename to...
9414 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9416 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9417 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9418 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9419 the big endianness only.
9420 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9421 (*mov_si<mode>_e500_subreg0_2): Rename to...
9422 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9423 big big endianness only.
9424 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9425 (*mov_si<mode>_e500_subreg4): Rename to...
9426 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9428 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9429 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9430 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9431 the big endianness only.
9432 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9434 (*mov_si<mode>_e500_subreg4_2): Rename to...
9435 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9437 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9438 (*mov_sitf_e500_subreg8): Rename to...
9439 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9441 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9442 (*mov_sitf_e500_subreg8_2): Rename to...
9443 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9445 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9446 (*mov_sitf_e500_subreg12): Rename to...
9447 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9449 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9450 (*mov_sitf_e500_subreg12_2): Rename to...
9451 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9453 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9455 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9457 * asan.c (instrument_strlen_call): Do not instrument first byte
9458 in strlen if already instrumented.
9460 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9462 * config/arm/arm.opt (mwords-little-endian): Delete.
9463 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9464 of TARGET_LITTLE_WORDS.
9465 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9466 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9468 * doc/invoke.texi: Remove references to -mwords-little-endian.
9470 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9472 * expmed.c (struct init_expmed_rtl): Change all fields but
9473 pow2 and cint from struct rtx_def to rtx.
9474 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9475 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9478 2014-07-06 Marek Polacek <polacek@redhat.com>
9481 * doc/invoke.texi: Document -Wsizeof-array-argument.
9483 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9485 * wide-int.h (wide_int_storage): Change declaration from struct
9488 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9490 * cgraph.c (cgraph_create_indirect_edge): Update call of
9491 get_polymorphic_call_info.
9492 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9493 (possible_polymorphic_call_targets): Add parameter call.
9494 (decl_maybe_in_construction_p): New predicate.
9495 (get_polymorphic_call_info): Add parameter call;
9496 use decl_maybe_in_construction_p.
9497 * gimple-fold.c (fold_gimple_assign): Update use of
9498 possible_polymorphic_call_targets.
9499 (gimple_fold_call): Likewise.
9500 * ipa-prop.c: Inlcude calls.h
9501 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9502 (param_type_may_change_p): New predicate.
9503 (detect_type_change_from_memory_writes): Break out from ...
9504 (detect_type_change): ... this one; use param_type_may_change_p.
9505 (detect_type_change_ssa): Use param_type_may_change_p.
9506 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9508 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9511 * config/arm/arm-protos.h (arm_legitimate_address_p,
9512 arm_is_constant_pool_ref): Add prototypes.
9513 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9514 (arm_is_constant_pool_ref) New function.
9515 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9516 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9517 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9518 operand. Remove pool_range and neg_pool_range attributes.
9519 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9520 pool_range and neg_pool_range attributes.
9521 * config/arm/constraints.md (Uh): New constraint.
9522 (Uq): Don't allow constant pool references.
9524 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9526 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9527 (move_lo_quad_internal_be_<mode>): Likewise.
9528 (move_lo_quad_<mode>): Convert to define_expand.
9529 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9530 (aarch64_simd_move_hi_quad_be_<mode>): New.
9531 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9532 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9533 (aarch64_combinez_be<mode>): New.
9534 (aarch64_combine<mode>): Convert to define_expand.
9535 (aarch64_combine_internal<mode>): New.
9536 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9538 2014-07-04 Tom de Vries <tom@codesourcery.com>
9540 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9541 combination of earlyclobber and read/write modifiers.
9543 2014-07-04 Tom de Vries <tom@codesourcery.com>
9545 * config/aarch64/aarch64-simd.md
9546 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9548 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9551 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9553 2014-07-04 Jakub Jelinek <jakub@redhat.com>
9556 * cgraphunit.c (expand_thunk): Call free_dominance_info.
9558 PR tree-optimization/61684
9559 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9560 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
9562 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9563 Kito Cheng <kito@0xlab.org>
9564 Monk Chiang <sh.chiang04@gmail.com>
9566 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
9567 (nds32_symbol_load_store_p): Move to ...
9568 (nds32_fp_as_gp_check_available): Move to ...
9569 * config/nds32/nds32-fp-as-gp.c: ... here.
9570 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9573 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9574 Kito Cheng <kito@0xlab.org>
9575 Monk Chiang <sh.chiang04@gmail.com>
9577 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
9578 (nds32_expand_store_multiple): Move to ...
9579 (nds32_expand_movmemqi): Move to ...
9580 * config/nds32/nds32-memory-manipulation.c: ... here.
9582 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9583 Kito Cheng <kito@0xlab.org>
9584 Monk Chiang <sh.chiang04@gmail.com>
9586 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
9587 (nds32_output_casesi_pc_relative): Move to ...
9588 (nds32_output_casesi): Move to ...
9589 (nds32_mem_format): Move to ...
9590 (nds32_output_16bit_store): Move to ...
9591 (nds32_output_16bit_load): Move to ...
9592 (nds32_output_32bit_store): Move to ...
9593 (nds32_output_32bit_load): Move to ...
9594 (nds32_output_32bit_load_s): Move to ...
9595 (nds32_output_stack_push): Move to ...
9596 (nds32_output_stack_pop): Move to ...
9597 * config/nds32/nds32-md-auxiliary.c: ... here.
9599 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9600 Ling-Hua Tseng <uranus@tinlans.org>
9602 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
9603 the purpose of this file.
9605 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9606 Kito Cheng <kito@0xlab.org>
9607 Monk Chiang <sh.chiang04@gmail.com>
9609 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
9610 (nds32_address_cost): Move implementation to ...
9611 * config/nds32/nds32-cost.c: ... here.
9612 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
9613 (nds32_address_cost_impl): Declare.
9615 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9616 Kito Cheng <kito@0xlab.org>
9617 Monk Chiang <sh.chiang04@gmail.com>
9619 * config/nds32/nds32.c
9620 (nds32_consecutive_registers_load_store_p): Move to ...
9621 (nds32_valid_multiple_load_store): Move to ...
9622 (nds32_valid_stack_push_pop): Move to ...
9623 (nds32_can_use_bclr_p): Move to ...
9624 (nds32_can_use_bset_p): Move to ...
9625 (nds32_can_use_btgl_p): Move to ...
9626 (nds32_can_use_bitci_p): Move to ...
9627 * config/nds32/nds32-predicates.c: ... here.
9629 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9630 Kito Cheng <kito@0xlab.org>
9631 Monk Chiang <sh.chiang04@gmail.com>
9633 * config/nds32/nds32.c
9634 (nds32_expand_builtin_null_ftype_reg): Move to ...
9635 (nds32_expand_builtin_reg_ftype_imm): Move to ...
9636 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
9637 (nds32_init_builtins): Move implementation to ...
9638 (nds32_expand_builtin): Move implementation to ...
9639 * config/nds32/nds32-intrinsic.c: ... here.
9640 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
9641 (nds32_expand_builtin_impl): Declare.
9643 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9644 Kito Cheng <kito@0xlab.org>
9645 Monk Chiang <sh.chiang04@gmail.com>
9647 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
9648 (nds32_emit_section_tail_template): Move to ...
9649 (nds32_emit_isr_jmptbl_section): Move to ...
9650 (nds32_emit_isr_vector_section): Move to ...
9651 (nds32_emit_isr_reset_conten): Move to ...
9652 (nds32_check_isr_attrs_conflict): Move to ...
9653 (nds32_construct_isr_vectors_information): Move to ...
9654 (nds32_asm_file_start): Move implementation to ...
9655 (nds32_asm_file_end): Move implementation to ...
9656 * config/nds32/nds32-isr.c: ... here.
9657 * config/nds32/nds32-protos.h
9658 (nds32_check_isr_attrs_conflict): Declare.
9659 (nds32_construct_isr_vectors_information): Declare.
9660 (nds32_asm_file_start_for_isr): Declare.
9661 (nds32_asm_file_end_for_isr): Declare.
9663 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9664 Kito Cheng <kito@0xlab.org>
9665 Monk Chiang <sh.chiang04@gmail.com>
9667 * config.gcc (nds32*): Add new modules to extra_objs.
9668 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
9669 (nds32be-*-*): Likewise.
9670 * config/nds32/nds32-cost.c: New file.
9671 * config/nds32/nds32-fp-as-gp.c: New file.
9672 * config/nds32/nds32-intrinsic.c: New file.
9673 * config/nds32/nds32-isr.c: New file.
9674 * config/nds32/nds32-md-auxiliary.c: New file.
9675 * config/nds32/nds32-memory-manipulation.c: New file.
9676 * config/nds32/nds32-pipelines-auxiliary.c: New file.
9677 * config/nds32/nds32-predicates.c: New file.
9678 * config/nds32/t-nds32: New file.
9680 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9682 PR tree-optimization/61682
9683 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
9684 using cases and when one of the operands is equal to 1.
9686 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
9688 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
9689 ashr<mode>3): Correct mode of operands[2].
9690 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
9691 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
9692 Correct mode of operands[2]. Fix split condition.
9694 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
9696 * arm.md (arch): Add armv6_or_vfpv3.
9697 (arch_enabled): Add test for the above.
9698 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
9700 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
9702 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9704 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
9705 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
9706 HWI 1 and negate the unsigned value.
9707 * expmed.c (expand_sdiv_pow2): For modes wider than word always
9708 use AND instead of shift.
9709 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
9711 2014-07-03 Marek Polacek <polacek@redhat.com>
9713 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
9714 (-fsanitize=float-divide-by-zero): Move to the table with
9715 -fsanitize=undefined suboptions.
9716 (-fsanitize=float-cast-overflow): Likewise.
9718 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
9720 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
9721 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
9724 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9726 * loop-invariant.c (struct invariant): Add a new member: eqno;
9727 (find_identical_invariants): Update eqno;
9728 (create_new_invariant): Init eqno;
9729 (get_inv_cost): Compute comp_cost with eqno;
9731 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9733 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
9734 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
9735 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
9736 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
9737 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
9739 2014-07-02 Christian Bruel <christian.bruel@st.com>
9743 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
9744 (make_preds_opaque): Delete.
9745 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
9746 (commit_mode_sets): New function.
9747 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
9748 Process all modes at once.
9749 * basic-block.h (pre_edge_lcm_avs): Declare.
9750 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
9751 Call clear_aux_for_edges. Fix comments.
9752 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
9753 (pre_edge_rev_lcm): Idem.
9754 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
9756 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
9757 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
9759 * config/i386/i386.c (x96_emit_mode_set): Idem.
9760 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
9761 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
9762 (fpscr_toggle) Disallow from delay slot.
9763 * target.def (emit_mode_set): Add prev_mode parameter.
9764 * doc/tm.texi: Regenerate.
9766 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9768 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
9771 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9773 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
9774 vtable_pointer_value_to_vtable): Constify.
9775 (contains_polymorphic_type_p): Declare.
9776 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
9777 vtable_pointer_value_to_vtable): Constify.
9778 (contains_polymorphic_type_p): New predicate.
9779 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
9781 (ipa_set_ancestor_jf): Likewise.
9782 (detect_type_change): Return false in easy cases.
9783 (compute_complex_assign_jump_func): Require type to contain
9785 (compute_known_type_jump_func): Likewise.
9787 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9789 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
9791 (type_in_anonymous_namespace_p): Constify argument.
9792 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
9793 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
9794 (main_odr_variant): New function.
9795 (hash_type_name): Make static; update assert; do not ICE on
9797 (types_same_for_odr): Bring here from tree.c; simplify and remove
9798 old structural comparing code that doesn't work for templates.
9799 (odr_hasher::equal): Update assert.
9800 (add_type_duplicate): Return true when bases should be computed;
9801 replace incomplete loader by complete; do not output duplicated
9802 warnings; do not ICE on non-records; set odr_violated flag.
9803 (get_odr_type): Be ready to replace incomplete type by complete
9804 one; work on ODR variants instead of main variants; reorder item
9805 in array so bases have still smaller indexes.
9806 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
9807 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
9809 2014-07-01 Cary Coutant <ccoutant@google.com>
9811 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
9813 (resolve_addr_in_expr): When replacing the rtx in a location list
9814 entry, get a new address table entry.
9815 (dwarf2out_finish): Call index_location_lists even if there are no
9816 addr_index_table entries yet.
9818 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9820 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
9821 change for not being obvious.
9823 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9825 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
9828 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9830 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
9831 (vcagt_f64): Likewise.
9832 (vcale_f64): Likewise.
9833 (vcaled_f64): Likewise.
9834 (vcales_f32): Likewise.
9835 (vcalt_f64): Likewise.
9836 (vcaltd_f64): Likewise.
9837 (vcalts_f32): Likewise.
9839 2014-07-01 Marek Polacek <polacek@redhat.com>
9841 * doc/invoke.texi: Document -Wint-conversion.
9843 2014-07-01 Marek Polacek <polacek@redhat.com>
9846 * doc/invoke.texi: Document -Wincompatible-pointer-types.
9848 2014-07-01 Martin Liska <mliska@suse.cz>
9850 IPA REF alias refactoring
9851 * cgraph.h (iterate_direct_aliases): New function.
9852 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
9853 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
9854 FOR_EACH_ALIAS added.
9855 (cgraph_for_node_and_aliases): Likewise.
9856 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
9857 * ipa-inline.c (reset_edge_caches): Likewise.
9858 (update_caller_keys): Likewise.
9859 * trans-mem.c (ipa_tm_execute): Likewise.
9860 *varpool.c (varpool_analyze_node): Likewise.
9861 (varpool_for_node_and_aliases): Likewise.
9862 * ipa-ref.h (first_alias): New function.
9863 (last_alias): Likewise.
9864 (has_aliases_p): Likewise.
9865 * ipa-ref.c (ipa_ref::remove_reference): Removal function
9866 is sensitive to IPA_REF_ALIASes.
9867 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
9868 are put at the beginning of the list.
9869 (symtab_node::iterate_direct_aliases): New function.
9871 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9874 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9876 (write_ts_type_common_tree_pointers): Do not stream fields not set
9877 for incomplete types; do not stream duplicated fields for variants;
9878 sanity check that variant and type match.
9879 (write_ts_type_non_common_tree_pointers): Likewise.
9880 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
9881 TYPE_SIZE whether type is complete.
9882 (lto_input_ts_type_common_tree_pointers): Do same changes as in
9883 write_ts_type_common_tree_pointers
9884 (lto_input_ts_type_non_common_tree_pointers): Likewise.
9886 2014-06-30 Joseph Myers <joseph@codesourcery.com>
9888 * var-tracking.c (add_stores): Return instead of asserting if old
9889 and new values for conditional store are the same.
9891 2014-06-30 Richard Henderson <rth@redhat.com>
9895 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
9896 the cfg if there were any changes.
9897 * passes.def: Revert move of peephole2 after reorder_blocks;
9898 move duplicate_computed_gotos before peephole2.
9900 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
9902 * except.c (emit_note_eh_region_end): New helper function.
9903 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
9904 emit EH_REGION_END note.
9905 * jump.c (cleanup_barriers): Do not split a call and its
9906 corresponding CALL_ARG_LOCATION note.
9908 2014-06-30 Jeff Law <law@redhat.com>
9910 PR tree-optimization/61607
9911 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
9912 deeper into the SSA_NAME_VALUE chain.
9914 2014-06-30 Marek Polacek <polacek@redhat.com>
9916 * convert.c (convert_to_integer): Don't instrument conversions if the
9917 function has no_sanitize_undefined attribute.
9918 * ubsan.c: Don't run the ubsan pass if the function has
9919 no_sanitize_undefined attribute.
9921 2014-06-30 Jakub Jelinek <jakub@redhat.com>
9923 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
9924 -fsanitize=undefined suboptions.
9926 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
9928 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
9929 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
9930 against bigendian and adjust indices.
9932 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
9934 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
9936 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
9939 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
9940 Add alternative; make early clobber. Adjust both split patterns
9941 to use operand 0 as the working register.
9943 2014-06-30 Jakub Jelinek <jakub@redhat.com>
9945 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
9946 as ira_object_id_map might be NULL, or 1.
9948 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9950 * loop-invariant.c (get_inv_cost): Handle register class.
9951 (gain_for_invariant): Check the register pressure of the inv
9952 and its overlapped register class, other than all.
9954 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
9956 * doc/invoke.texi (Optimize Options): Fix descriptions of
9957 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
9959 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
9961 * doc/extend.texi (Function Attributes): Update 'naked' attribute
9964 2014-06-29 Tobias Grosser <tobias@grosser.es>
9967 * graphite-isl-ast-to-gimple.c: Add missing guards.
9969 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9971 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
9972 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
9973 * flag-types.h: Add new enum fgraphite_generator.
9974 * graphite-isl-ast-to-gimple.c: New.
9975 * graphite-isl-ast-to-gimple.h: New.
9976 * graphite.c (graphite_transform_loops): Add choice of Graphite
9977 code generator, which depends on flag_graphite_code_gen.
9979 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9981 * graphite-dependences.c (subtract_commutative_associative_deps):
9982 Add NULL checking of the following variables: must_raw_no_source,
9983 may_raw_no_source, must_war_no_source, may_war_no_source,
9984 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
9985 must_war, may_war, must_waw, may_waw.
9987 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9989 * graphite-clast-to-gimple.c: gloog is renamed to
9990 graphite_regenerate_ast_cloog. gloog_error is renamed to
9991 graphite_regenerate_error.
9992 * graphite-clast-to-gimple.h: The definition of the struct
9993 bb_pbb_def is moved to graphite-htab.h.
9994 Add inclusion of the hash-table.h.
9995 * graphite-htab.h: The declaration of the function gloog is moved
9996 to graphite-clast-to-gimple.h and renamed to
9997 graphite_regenerate_ast_cloog.
9998 * graphite.c (graphite_transform_loops): gloog is renamed
9999 to graphite_regenerate_ast_cloog.
10001 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10003 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10005 (write_ts_type_common_tree_pointers): Do not stream fields not set
10006 for incomplete types; do not stream duplicated fields for variants;
10007 sanity check that variant and type match.
10008 (write_ts_type_non_common_tree_pointers): Likewise.
10009 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10010 TYPE_SIZE whether type is complete.
10011 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10012 write_ts_type_common_tree_pointers
10013 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10015 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10017 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10019 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10021 * tree-inline.c (remap_type_1): Do not duplicate fields
10022 that are shared in between type and its main variant.
10024 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10026 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10028 (ipa_set_ancestor_jf) Likewise.
10029 (check_stmt_for_type_change): Check that we work on main variant.
10030 (detect_type_change): Look into main variant.
10031 (compute_known_type_jump_func): Check that main variant has BINFO.
10033 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10035 * ipa-devirt.c (set_type_binfo): New function.
10036 (add_type_duplicate): Use it.
10037 (get_odr_type): Sanity check that binfos points to main variants.
10038 (get_class_context): Be sure the context's outer_type is main variant.
10039 (contains_type_p): Walk main variant.
10040 (get_polymorphic_call_info_for_decl): Set outer_type to be
10042 (get_polymorphic_call_info): Likewise.
10043 (possible_polymorphic_call_targets): Sanity check that we operate
10046 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10048 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10050 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10052 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10053 accidental change due to wide-int branch merge.
10055 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10057 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10058 compressed debug support.
10059 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10060 * configure: Regenerate.
10061 * config.in: Regenerate.
10062 * common.opt (compressed_debug_sections): New enum.
10063 (gz, gz=): New options.
10064 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10065 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10066 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10067 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10068 LINK_COMPRESS_DEBUG_SPEC.
10069 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10070 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10071 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10072 (Debugging Options): Document -gz[=type].
10074 2014-06-27 Martin Jambor <mjambor@suse.cz>
10077 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10078 args_to_skip, use those from node instead. Copy args_to_skip and
10079 combined_args_to_skip from node to the new thunk.
10080 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10081 (cgraph_create_virtual_clone): Moved computation of
10082 combined_args_to_skip...
10083 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10085 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10087 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10088 redundant diagnostic machinary.
10090 2014-06-27 Richard Biener <rguenther@suse.de>
10092 * tree-ssa-math-opts.c (bswap_replace): Fix
10093 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10095 2014-06-27 Martin Liska <mliska@suse.cz>
10097 * gimple.h (gimple_location_safe): New function introduced.
10098 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10099 of gimple_location_safe replaces gimple_location.
10100 (gimple_fold_call): Likewise.
10101 * ipa-devirt.c (ipa_devirt): Likewise.
10102 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10103 * ipa.c (walk_polymorphic_call_targets): Likewise.
10104 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10106 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10108 PR tree-optimization/57233
10109 PR tree-optimization/61299
10110 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10112 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10113 would be lowered to scalar shifts, check if corresponding
10114 shifts and vector BIT_IOR_EXPR are supported and don't lower
10115 or lower just to narrower vector type in that case.
10116 * expmed.c (expand_shift_1): Fix up handling of vector
10117 shifts and rotates.
10119 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10122 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10124 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10126 * doc/invoke.texi (-fsemantic-interposition): Document.
10127 * common.opt (fsemantic-interposition): New flag.
10128 * varasm.c (decl_replaceable_p): Use it.
10130 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10133 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10134 extraction other than index 3.
10136 2014-06-26 Teresa Johnson <tejohnson@google.com>
10138 * doc/invoke.texi: Fix typo.
10139 * dumpfile.c: Add support for documented -fdump-* options
10140 optimized/missed/note/optall.
10142 2014-06-26 Martin Jambor <mjambor@suse.cz>
10144 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10145 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10146 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10147 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10148 * opts.c (default_options_optimization): Set
10149 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10150 * doc/invoke.texi (allow-load-data-races)
10151 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10152 (allow-store-data-races): Document the new default.
10154 2014-06-26 Martin Jambor <mjambor@suse.cz>
10156 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10157 renamed to ipa_impossible_devirt_target. Fix typo.
10158 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10159 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10160 ipa_impossible_devirt_target.
10162 2014-06-26 Richard Biener <rguenther@suse.de>
10164 PR tree-optimization/61607
10165 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10166 explaining why we restrict copies on loop depth.
10167 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10169 (record_equivalences_from_phis): Instead add it here.
10171 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10173 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10174 (LTO_WRAPPER_OBJS): New variable.
10175 (lto-wrapper$(exeext)): Use it.
10176 * collect2.c: Include "collect-utils.h".
10177 (verbose, debug): Remove variables.
10178 (at_file_supplied): No longer static.
10179 (tool_name): New variable.
10180 (do_wait, fork_execute, maybe_unlink): Don't declare.
10181 (tool_cleanup): No longer static.
10182 (notice): Remove function.
10183 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10184 fork_execute calls.
10185 (collect_wait, do_wait, collect_execute): Remove functions.
10186 (maybe_unlink): No longer static.
10187 * collect2.h (verbose, debug): Don't declare.
10188 (at_file_supplied): Declare.
10189 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10191 (collect_execute): Replace with implementation from collect2, plus a
10192 new arg use_atfile. All callers changed.
10193 (collect_wait): Replace with implementation from collect2.
10194 (maybe_unlink_file): Remove function.
10195 (fork_execute): Replace with implementation from collect2, plus a
10196 new arg use_atfile. All callers changed.
10197 (do_wait): Add call to utils_cleanup to the error path.
10198 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10199 (tool_cleanup): Adjust declarations.
10200 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10201 * tlink.c: Include "collect-utils.h".
10202 (tlink_execute): New arg use_atfile. All callers changed.
10203 (tlink_init, tlink_execute): Remove declarations.
10205 * collect-utils.c (save_temps): New variable.
10206 (do_wait): Use it instead of debug. Use fatal_error.
10207 * collect-utils.h (save_temps): Declare.
10208 * collect2.c (verbose): Rename from vflag. All uses changed.
10209 (tool_cleanup): New function, copied from collect_atexit.
10210 (collect_atexit, handler): Just call it.
10211 * collect2.h (verbose): Declaration renamed from vflag.
10212 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10215 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10216 (lto-wrapper$(exeext)): Link with collect-utils.o.
10217 * collect-utils.c: New file.
10218 * collect-utils.h: New file.
10219 * lto-wrapper.c: Include "collect-utils.h".
10220 (args_name): Delete variable.
10221 (tool_name): New variable.
10222 (tool_cleanup): New function.
10223 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10224 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10225 (fork_execute): Remove functions.
10227 2014-06-26 Nick Clifton <nickc@redhat.com>
10229 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10231 * doc/extend.texi (Function Attributes): Fix typo in description
10232 of RX vector attribute.
10234 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10236 * config.gcc (supported_defaults): Error when passing either
10237 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10239 2014-06-26 Richard Biener <rguenther@suse.de>
10241 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10242 propagating volatile pointers.
10244 2014-06-26 Richard Biener <rguenther@suse.de>
10246 PR tree-optimization/61607
10247 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10248 loop if we redirected its latch edge.
10249 (thread_block_1): Do not cancel loops prematurely.
10251 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10253 * toplev.c (backend_init_target): Move init_emit_regs and
10255 (backend_init) ... here; skip ira_init_once and backend_init_target.
10256 (target_reinit) ... and here; clear
10257 this_target_rtl->lang_dependent_initialized.
10258 (lang_dependent_init_target): Clear
10259 this_target_rtl->lang_dependent_initialized;
10260 break out rtl initialization to ...
10261 (initialize_rtl): ... here; call also backend_init_target
10263 * toplev.h (initialize_rtl): New function.
10264 * function.c: Include toplev.h
10265 (init_function_start): Call initialize_rtl.
10266 * rtl.h (target_rtl): Add target_specific_initialized,
10267 lang_dependent_initialized.
10269 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10270 Jakub Jelinek <jakub@redhat.com>
10272 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10274 2014-06-25 Tom de Vries <tom@codesourcery.com>
10276 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10278 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10280 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10281 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10282 Issue a strict overflow warning if appropriate.
10284 2014-06-25 Martin Liska <mliska@suse.cz>
10286 IPA REF refactoring
10287 * Makefile.in: Removed header file (ipa-ref-inline.h).
10288 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10290 (cgraph_speculative_call_info): Likewise.
10291 (cgraph_for_node_thunks_and_aliases): Likewise.
10292 (cgraph_for_node_and_aliases): Likewise.
10293 (verify_cgraph_node): Likewise.
10294 * cgraph.h: Batch of IPA REF functions become member functions of
10295 symtab_node: add_reference, maybe_add_reference, clone_references,
10296 clone_referring, clone_reference, find_reference,
10297 remove_stmt_references, remove_all_references,
10298 remove_all_referring, dump_references, dump_referring,
10299 has_alias_p, iterate_reference, iterate_referring.
10300 * cgraphbuild.c (record_reference): New IPA REF function used.
10301 (record_type_list): Likewise.
10302 (record_eh_tables): Likewise.
10303 (mark_address): Likewise.
10304 (mark_load): Likewise.
10305 (mark_store): Likewise.
10306 (pass_build_cgraph_edges): Likewise.
10307 (rebuild_cgraph_edge): Likewise.
10308 (cgraph_rebuild_references): Likewise.
10309 (pass_remove_cgraph_callee_edges): Likewise.
10310 * cgraphclones.c (cgraph_clone_node): Likewise.
10311 (cgraph_create_virtual_clone): Likewise.
10312 (cgraph_materialize_clone): Likewise.
10313 (cgraph_materialize_all_clones): Likewise.
10314 * cgraphunit.c (cgraph_reset_node): Likewise.
10315 (cgraph_reset_node): Likewise.
10316 (analyze_function): Likewise.
10317 (assemble_thunks_and_aliases): Likewise.
10318 (expand_function): Likewise.
10319 * ipa-comdats.c (propagate_comdat_group): Likewise.
10320 (enqueue_references): Likewise.
10321 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10322 (create_specialized_node): Likewise.
10323 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10324 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10325 * ipa-inline.c (reset_edge_caches): Likewise.
10326 (update_caller_keys): Likewise.
10327 (execute): Likewise.
10328 * ipa-prop.c (remove_described_reference): Likewise.
10329 (propagate_controlled_uses): Likewise.
10330 (ipa_edge_duplication_hook): Likewise.
10331 (ipa_modify_call_arguments): Likewise.
10332 * ipa-pure-const.c (propagate_pure_const): Likewise.
10333 * ipa-ref-inline.h: Header file removed, functions moved
10334 to symtab_node class.
10335 * ipa-ref.c (remove_reference): New class member function.
10336 (cannot_lead_to_return): New class member function.
10337 (referring_ref_list): Likewise.
10338 (referred_ref_list): Likewise.
10339 Rest of functions moved to symtab_node class.
10340 * ipa-ref.h: New member functions remove_reference,
10341 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10343 ipa_ref_list class has new member functions: first_reference,
10344 first_referring, clear, nreferences.
10345 * ipa-reference.c (analyze_function): New IPA REF function used.
10346 (write_node_summary_p): Likewise.
10347 (ipa_reference_write_optimization_summary): Likewise.
10348 * ipa-split.c (split_function): Likewise.
10349 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10350 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10351 (function_and_variable_visibility): Likewise.
10352 * ipa.c (has_addr_references_p): Likewise.
10353 (process_references): Argument type changed.
10354 (symtab_remove_unreachable_nodes): New IPA REF function used.
10355 (process_references): Likewise.
10356 (set_writeonly_bit): Likewise.
10357 * lto-cgraph.c: Implementation of new symtab_node member functions
10358 that uses new IPA REF functions.
10359 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10361 * lto-streamer-out.c (output_symbol_p): Likewise.
10362 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10364 * symtab.c: Implementation of new IPA REF API.
10365 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10366 (ipa_tm_create_version): Likewise.
10367 (ipa_tm_execute): Likewise.
10368 * tree-emutls.c (gen_emutls_addr): Likewise.
10369 * tree-inline.c (copy_bb): Likewise.
10370 (delete_unreachable_blocks_update_callgraph): Likewise.
10371 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10372 (varpool_for_node_and_aliases): Likewise.
10374 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10376 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10378 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10381 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10382 tree_node * instead of tree_node *.
10384 (print_fold_checksum): Likewise.
10385 (fold_check_failed): Likewise.
10386 (debug_fold_checksum): Likewise.
10387 (fold_build1_stat_loc): Likewise.
10388 (fold_build2_stat_loc): Likewise.
10389 (fold_build3_stat_loc): Likewise.
10390 (fold_build_call_array_loc): Likewise.
10392 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10394 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10395 implementation with call to...
10396 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10398 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10401 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10403 PR tree-optimization/57742
10404 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10405 after replacing the statement.
10407 2014-06-25 Nick Clifton <nickc@redhat.com>
10409 * config/v850/v850.c (GHS_default_section_names): Change to const
10411 (GHS_current_section_names): Likewise.
10412 (v850_insert_attributes): Do not build strings, just assign the
10413 names directly. Change the type of 'chosen_section' to const
10415 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10416 directly to the array entry.
10417 * config/v850/v850.h (GHS_default_section_names): Change to const
10419 (GHS_current_section_names): Likewise.
10421 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10423 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10424 (LANG_HOOKS_DECLS): Add it.
10425 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10427 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10428 * langhooks.h (struct lang_hooks_for_decls): Add
10429 omp_clause_linear_ctor hook.
10430 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10431 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10432 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10433 combined simd loop use omp_clause_linear_ctor hook.
10435 2014-06-24 Cong Hou <congh@google.com>
10437 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10438 pattern recognition.
10439 (type_conversion_p): PROMOTION is true if it's a type promotion
10440 conversion, and false otherwise. Return true if the given expression
10441 is a type conversion one.
10442 * tree-vectorizer.h: Adjust the number of patterns.
10443 * tree.def: Add SAD_EXPR.
10444 * optabs.def: Add sad_optab.
10445 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10446 * expr.c (expand_expr_real_2): Likewise.
10447 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10448 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10449 * optabs.c (optab_for_tree_code): Likewise.
10450 * tree-cfg.c (estimate_operator_cost): Likewise.
10451 * tree-ssa-operands.c (get_expr_operands): Likewise.
10452 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10453 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10454 * doc/generic.texi: Add document for SAD_EXPR.
10455 * doc/md.texi: Add document for ssad and usad.
10457 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10459 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10460 qualification in cast.
10462 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10464 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10465 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10466 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10467 (tree_function_decl): ... here.
10468 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10469 streaming of vindex to ...
10470 (write_ts_function_decl_tree_pointers): ... here.
10471 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10472 Do not stream DECL_VINDEX.
10473 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10475 2014-06-24 Catherine Moore <clm@codesourcery.com>
10476 Sandra Loosemore <sandra@codesourcery.com>
10478 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10479 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10480 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10482 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10484 * doc/invoke.texi (Warning Options): Remove duplicated
10485 -Wmaybe-uninitialized.
10487 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10489 PR tree-optimization/57742
10490 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10491 (handle_builtin_malloc, handle_builtin_memset): New functions.
10492 (strlen_optimize_stmt): Call them.
10493 * passes.def: Move strlen after loop+dom but before vrp.
10495 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10498 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10499 model family 6 CPU with has_longmode never use a CPU without
10502 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10505 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10508 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10510 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10511 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10513 * hash-map.h: New file.
10514 * ipa-comdats.c: Use hash_map instead of pointer_map.
10516 * lto-section-out.c: Adjust.
10517 * lto-streamer.h: Replace pointer_map with hash_map.
10518 * symtab.c (verify_symtab): Likewise.
10519 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10520 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10521 * tree-streamer.h: Likewise.
10522 * tree-streamer.c: Adjust.
10523 * pointer-set.h: Remove pointer_map.
10525 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10527 * hash-table.h: Add a template arg to choose between storing values
10528 and storing pointers to values, and then provide partial
10529 specializations for both.
10530 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10531 should store, not the type values should point to.
10532 * tree-into-ssa.c (var_info_hasher): Likewise.
10533 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10534 * tree-complex.c: Adjust.
10535 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10536 table instead of int_tree_map *.
10537 * tree-parloops.c: Adjust.
10538 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10539 type is being stored.
10540 * tree-vectorizer.c: Adjust.
10542 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10544 * hash-table.h: Remove a layer of indirection from hash_table so that
10545 it contains the hash table's data instead of a pointer to the data.
10546 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10547 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10548 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10549 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10550 fold-const.c, gcse.c, ggc-common.c,
10551 gimple-ssa-strength-reduction.c, gimplify.c,
10552 graphite-clast-to-gimple.c, graphite-dependences.c,
10553 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10554 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10555 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10556 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10557 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10558 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10559 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10560 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10561 tree-ssa-live.c, tree-ssa-loop-im.c,
10562 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10563 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10564 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10565 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10566 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10567 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10568 vtable-verify.c, vtable-verify.h: Adjust.
10570 2014-06-24 Richard Biener <rguenther@suse.de>
10572 PR tree-optimization/61572
10573 * tree-ssa-sink.c (statement_sink_location): Do not sink
10574 loads from hard registers.
10576 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10578 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
10579 not mentioned in clauses use private clause if the iterator is
10580 declared in #pragma omp for simd, and when adding lastprivate
10581 instead, add it to the outer #pragma omp for too. Diagnose
10582 if the variable is private in outer context. For simd collapse > 1
10583 loops, replace all iterators with temporaries.
10584 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
10585 same even in collapse > 1 loops.
10587 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
10588 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
10590 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
10591 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
10593 (gimplify_adjust_omp_clauses): Likewise.
10594 * omp-low.c (lower_rec_simd_input_clauses,
10595 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
10596 safelen the same as safelen(1).
10597 * tree-nested.c (convert_nonlocal_omp_clauses,
10598 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
10599 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
10600 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
10601 Fixup handling of GIMPLE_OMP_TARGET.
10602 (convert_tramp_reference_stmt, convert_gimple_call): Handle
10605 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
10607 PR tree-optimization/61554
10608 * tree-ssa-propagate.c: Include "bitmap.h".
10609 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
10610 properly update constructor/destructor.
10611 (substitute_and_fold_dom_walker::before_dom_children):
10612 Remove call to gimple_purge_dead_eh_edges, add bb->index to
10613 need_eh_cleaup instead.
10614 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
10617 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10619 * varpool.c (dump_varpool_node): Dump used_by_single_function.
10620 * tree-pass.h (make_pass_ipa_single_use): New pass.
10621 * cgraph.h (used_by_single_function): New flag.
10622 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
10624 * passes.def (pass_ipa_single_use): Scedule.
10625 * ipa.c (BOTTOM): New macro.
10626 (meet): New function
10627 (propagate_single_user): New function.
10628 (ipa_single_use): New function.
10629 (pass_data_ipa_single_use): New pass.
10630 (pass_ipa_single_use): New pass.
10631 (pass_ipa_single_use::gate): New gate.
10632 (make_pass_ipa_single_use): New function.
10634 2014-06-23 Kai Tietz <ktietz@redhat.com>
10637 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
10638 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
10640 2014-06-23 Richard Biener <rguenther@suse.de>
10642 * tree-ssa-loop.c (gate_loop): New function.
10643 (pass_tree_loop::gate): Call it.
10644 (pass_data_tree_no_loop, pass_tree_no_loop,
10645 make_pass_tree_no_loop): New.
10646 * tree-vectorizer.c: Include tree-scalar-evolution.c
10647 (pass_slp_vectorize::execute): Initialize loops and SCEV if
10649 (pass_slp_vectorize::clone): New method.
10650 * timevar.def (TV_TREE_NOLOOP): New.
10651 * tree-pass.h (make_pass_tree_no_loop): Declare.
10652 * passes.def (pass_tree_no_loop): New pass group with
10655 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
10658 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
10659 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
10661 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10663 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
10664 "yes" where needed.
10666 2014-06-23 Alan Modra <amodra@gmail.com>
10669 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
10670 to zero on debug statements.
10672 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10675 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
10676 Ignore third operand if present by marking qualifier_internal.
10678 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
10680 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
10682 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
10683 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
10684 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
10685 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
10686 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
10687 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
10688 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
10689 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
10690 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
10691 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
10692 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
10693 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
10694 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
10695 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
10696 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
10697 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
10698 logic in GCC vector extensions
10700 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
10701 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
10702 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
10703 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
10704 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
10705 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
10706 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
10707 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
10708 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
10709 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
10711 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
10713 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
10716 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
10717 (vget_low_s64): Use __GET_LOW macro.
10718 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
10719 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
10720 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
10721 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
10722 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
10724 (vcombine_s64): Use GCC vector extensions; remove cast.
10725 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
10726 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
10727 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
10728 Fix type signature; remove cast.
10730 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10733 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
10735 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
10737 (BUILTIN_VD1): New.
10738 (BUILTIN_VD_RE): Remove.
10739 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
10740 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
10741 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
10742 variant but not df.
10743 (vreinterpretv1df*, vreinterpret*v1df): New.
10744 (vreinterpretdf*, vreinterpret*df): Remove.
10745 * config/aarch64/aarch64-simd.md (aarch64_create,
10746 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
10747 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
10749 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
10750 (vcreate_f64): Remove cast, use v1df builtin.
10751 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
10752 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
10753 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
10754 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
10755 vmov_n_f64, vst1_f64): Use gcc vector extensions.
10756 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
10757 add range check using __builtin_aarch64_im_lane_boundsi.
10758 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
10759 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
10760 type signature, use gcc vector extensions.
10761 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
10762 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
10763 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
10764 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
10765 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
10766 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
10767 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
10768 vreinterpret_u64_f64): Use v1df builtin not df.
10770 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10772 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
10775 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10777 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
10780 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10782 * loop-invariant.c (pre_check_invariant_p): New function.
10783 (find_invariant_insn): Call pre_check_invariant_p.
10785 2014-06-22 Richard Henderson <rth@redhat.com>
10788 * compare-elim.c (struct comparison): Add eh_note.
10789 (find_comparison_dom_walker::before_dom_children): Don't eliminate
10790 a redundant comparison in a different EH region. Purge EH edges if
10793 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10795 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
10796 (var_shift): Use it.
10797 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
10798 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10799 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10800 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10801 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10802 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
10803 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
10804 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
10805 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
10806 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
10807 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
10808 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
10809 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
10810 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
10811 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
10812 *rotldi3_internal15be): Use the new attribute. Merge register and
10813 integer alternatives.
10815 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10817 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
10818 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
10819 split, *ashrdi3_internal3 and split): Delete, merge into...
10820 (ashr<mode>3): New expander.
10821 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
10822 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
10824 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10826 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
10827 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
10828 *rotldi3_internal3 and split): Delete, merge into...
10829 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
10830 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
10831 Use "rotlw" extended mnemonic.
10833 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10835 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
10836 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
10837 and split, *ashldi3_internal3 and split): Delete, merge into...
10838 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
10839 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
10841 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10843 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
10844 (lshrsi3, two anonymous define_insns and define_splits,
10845 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
10846 *lshrdi3_internal3 and split): Delete, merge into...
10847 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
10848 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
10850 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10852 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
10853 Remove "O" alternative.
10855 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
10857 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
10858 (mips_move_from_gpr_cost): Likewise.
10859 (mips_register_move_cost): Update accordingly.
10860 (mips_secondary_reload_class): Remove name of in_p.
10862 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
10865 * config/i386/i386.md (x86_64_shrd, x86_shrd,
10866 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
10868 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10870 * config/nios2/nios2.c: Include "builtins.h".
10872 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10874 * cgraph.h (tls_model_names): New variable.
10875 * print-tree.c (print_node): Simplify.
10876 * varpool.c (tls_model_names): New variable.
10877 (dump_varpool_node): Output tls model.
10879 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10881 * ipa-visibility.c (function_and_variable_visibility): Disable
10882 temporarily local aliases for some targets.
10884 2014-06-20 Marek Polacek <polacek@redhat.com>
10886 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
10887 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
10888 into SANITIZE_UNDEFINED.
10889 * doc/invoke.texi: Describe -fsanitize=bounds.
10890 * gimplify.c (gimplify_call_expr): Add gimplification of internal
10891 functions created in the FEs.
10892 * internal-fn.c: Move "internal-fn.h" after "tree.h".
10893 (expand_UBSAN_BOUNDS): New function.
10894 * internal-fn.def (UBSAN_BOUNDS): New internal function.
10895 * internal-fn.h: Don't define internal functions here.
10896 * opts.c (common_handle_option): Add -fsanitize=bounds.
10897 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
10898 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
10899 * tree-core.h: Define internal functions here.
10900 (struct tree_base): Add ifn field.
10901 * tree-pretty-print.c: Include "internal-fn.h".
10902 (dump_generic_node): Handle functions without CALL_EXPR_FN.
10903 * tree.c (get_callee_fndecl): Likewise.
10904 (build_call_expr_internal_loc): New function.
10905 * tree.def (CALL_EXPR): Update description.
10906 * tree.h (CALL_EXPR_IFN): Define.
10907 (build_call_expr_internal_loc): Declare.
10908 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
10910 (ubsan_type_descriptor): Change bool parameter to enum
10911 ubsan_print_style. Adjust the code. Add handling of
10913 (ubsan_expand_bounds_ifn): New function.
10914 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
10915 (ubsan_build_overflow_builtin): Likewise.
10916 (instrument_bool_enum_load): Likewise.
10917 (ubsan_instrument_float_cast): Likewise.
10918 * ubsan.h (enum ubsan_print_style): New enum.
10919 (ubsan_expand_bounds_ifn): Declare.
10920 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
10922 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
10924 * config/rs6000/rs6000.md: Append `DONE' to preparation
10925 statements of `bswap' pattern splitters.
10927 2014-06-20 Tom de Vries <tom@codesourcery.com>
10929 * target.def (call_fusage_contains_non_callee_clobbers): Update
10931 * doc/tm.texi: Regenerate.
10933 2014-06-20 Yury Gribov <y.gribov@samsung.com>
10934 Max Ostapenko <m.ostapenko@partner.samsung.com>
10937 * asan.c (instrument_strlen_call): Fixed instrumentation of
10940 2014-06-20 Martin Jambor <mjambor@suse.cz>
10943 * ipa-prop.c (impossible_devirt_target): New function.
10944 (try_make_edge_direct_virtual_call): Use it, also instead of
10947 2014-06-20 Yury Gribov <y.gribov@samsung.com>
10948 Max Ostapenko <m.ostapenko@partner.samsung.com>
10951 * asan.c (build_check_stmt): Add condition.
10953 2014-06-20 Martin Jambor <mjambor@suse.cz>
10956 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
10959 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10961 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
10963 (VCONQ): Make comment more helpful.
10965 * config/aarch64/aarch64-simd.md
10966 (aarch64_sqdmulh_lane<mode>):
10967 Use VCOND for operands 2. Update lane checking and flipping logic.
10968 (aarch64_sqrdmulh_lane<mode>): Likewise.
10969 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
10970 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
10971 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
10972 attribute of operand 3 to VCOND.
10973 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
10974 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10975 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
10976 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
10977 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10978 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
10980 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
10981 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
10982 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
10983 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
10984 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
10985 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
10986 operand to VCOND. Update lane flipping and bounds checking logic.
10987 (aarch64_sqdmlal2_lane<mode>): Likewise.
10988 (aarch64_sqdmlsl_lane<mode>): Likewise.
10989 (aarch64_sqdmull_lane<mode>): Likewise.
10990 (aarch64_sqdmull2_lane<mode>): Likewise.
10991 (aarch64_sqdmlal_laneq<mode>):
10992 Replace VCON usage with VCONQ.
10993 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
10994 (aarch64_sqdmlal2_laneq<mode>): Emit
10995 aarch64_sqdmlal2_laneq<mode>_internal insn.
10996 Replace VCON with VCONQ.
10997 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
10998 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
10999 (aarch64_sqdmull_laneq<mode>): Emit
11000 aarch64_sqdmull_laneq<mode>_internal insn.
11001 Replace VCON with VCONQ.
11002 (aarch64_sqdmull2_laneq<mode>): Emit
11003 aarch64_sqdmull2_laneq<mode>_internal insn.
11004 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11005 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11006 of 3rd argument to int16x4_t.
11007 (vqdmlalh_lane_s16): Likewise.
11008 (vqdmlslh_lane_s16): Likewise.
11009 (vqdmull_high_lane_s16): Likewise.
11010 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11011 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11012 (vqdmlsl_lane_s16): Likewise.
11013 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11014 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11015 (vqdmlals_lane_s32): Likewise.
11016 (vqdmlsls_lane_s32): Likewise.
11017 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11018 (vqdmulls_lane_s32): Likewise.
11019 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11020 (vqdmlsl_lane_s32): Likewise.
11021 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11022 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11023 (vqrdmulhh_lane_s16): Likewise.
11024 (vqdmlsl_high_lane_s16): Likewise.
11025 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11026 (vqdmlsl_high_lane_s32): Likewise.
11027 (vqrdmulhs_lane_s32): Likewise.
11029 2014-06-20 Tom de Vries <tom@codesourcery.com>
11031 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11032 get_call_reg_set_usage.
11034 2014-06-20 Tom de Vries <tom@codesourcery.com>
11036 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11037 it contains all call_used_regs.
11039 2014-06-20 Tom de Vries <tom@codesourcery.com>
11041 * final.c (collect_fn_hard_reg_usage): Add and use variable
11042 function_used_regs.
11044 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11046 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11047 (set_init_priority, get_init_priority, set_fini_priority,
11048 get_fini_priority): New methods.
11049 * tree.c (init_priority_for_decl): Remove.
11050 (init_ttree): Do not initialize init priority.
11051 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11052 (decl_priority_info): Remove.
11053 (decl_init_priority_insert): Rewrite.
11054 (decl_fini_priority_insert): Rewrite.
11055 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11056 tree_priority_map_marked_p): Remove.
11057 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11058 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11059 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11060 not output priorities.
11061 (pack_ts_function_decl_value_fields): Likewise.
11062 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11063 not input priorities.
11064 (unpack_ts_function_decl_value_fields): Likewise.
11065 * symtab.c (symbol_priority_map): Declare.
11066 (init_priority_hash): Declare.
11067 (symtab_unregister_node): Unregister from priority hash, too.
11068 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11070 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11071 (symbol_priority_info): New function.
11072 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11074 * tree-core.h (tree_priority_map): Remove.
11076 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11078 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11079 0xff to uint64_t before shifting it up.
11081 2014-06-20 Julian Brown <julian@codesourcery.com>
11082 Chung-Lin Tang <cltang@codesourcery.com>
11084 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11085 TARGET_THUMB1_ONLY. Add comments.
11087 2014-06-19 Tom de Vries <tom@codesourcery.com>
11089 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11090 return type to void.
11091 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11093 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11095 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11096 as "move", from depends_on.
11098 2014-06-19 Terry Guo <terry.guo@arm.com>
11100 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11103 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11105 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11107 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11109 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11112 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11113 addresses here if reload in progress or completed.
11115 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11117 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11118 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11119 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11120 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11121 (mips_register_priority): New function that implements the target
11122 hook TARGET_REGISTER_PRIORITY.
11123 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11124 (mips_lra_p): Likewise for TARGET_LRA_P.
11125 (TARGET_REGISTER_PRIORITY): Define macro.
11126 (TARGET_SPILL_CLASS): Likewise.
11127 (TARGET_LRA_P): Likewise.
11128 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11130 (REG_CLASS_NAMES): Likewise.
11131 (REG_CLASS_CONTENTS): Likewise.
11132 (BASE_REG_CLASS): Use M16_SP_REGS.
11133 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11134 New set attribute to enable alternatives depending on the register
11136 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11137 (*lea64): Disable pattern for MIPS16.
11138 * config/mips/mips.opt (mlra): New option.
11140 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11142 * lra-constraints.c (base_to_reg): New function.
11143 (process_address): Use new function.
11145 2014-06-18 Tom de Vries <tom@codesourcery.com>
11147 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11148 * config/aarch64/aarch64.c
11149 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11150 (aarch64_emit_call_insn): New function.
11151 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11153 * config/aarch64/aarch64.md (define_expand "call_internal")
11154 (define_expand "call_value_internal", define_expand "sibcall_internal")
11155 (define_expand "sibcall_value_internal"): New.
11156 (define_expand "call", define_expand "call_value")
11157 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11158 expand variant and aarch64_emit_call_insn.
11160 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11161 Tom de Vries <tom@codesourcery.com>
11163 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11164 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11166 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11167 clobbers to CALL_INSN_FUNCTION_USAGE.
11168 (define_expand "sibcall_internal")
11169 (define_expand "sibcall_value_internal"): New.
11170 (define_expand "call", define_expand "call_value"): Add argument to
11171 arm_emit_call_insn.
11172 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11173 (define_expand "sibcall_value"): Use sibcall_value_internal and
11174 arm_emit_call_insn.
11176 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11178 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11180 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11182 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11185 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11187 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11188 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11189 annotations. Fix DWARF information.
11191 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11193 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11194 __udivmoddi4, and fixups for negative operands.
11196 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11198 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11200 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11202 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11205 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11207 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11210 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11212 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11213 describing register usage on function entry and exit.
11215 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11217 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11218 (__aeabi_ldivmod): Fix whitespace.
11220 2014-06-18 Andreas Schwab <schwab@suse.de>
11222 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11223 Remove blank line after @item.
11225 2014-06-18 Richard Henderson <rth@redhat.com>
11228 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11230 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11232 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11233 POST_MODIFY for neon loads and stores.
11234 (arm_print_operand): Output post-index register for neon loads and
11237 2014-06-18 Richard Biener <rguenther@suse.de>
11239 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11241 2014-06-18 Richard Biener <rguenther@suse.de>
11243 * tree-pass.h (make_pass_dce_loop): Remove.
11244 * passes.def: Replace pass_dce_loop with pass_dce.
11245 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11246 changed free niter estimates and reset the scev cache.
11247 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11248 make_pass_dce_loop): Remove.
11249 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11250 (fini_copy_prop): Return whether something changed. Always
11251 let substitute_and_fold perform DCE and free niter estimates
11252 and reset the scev cache if so.
11253 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11254 (pass_data_copy_prop): Do not unconditionally schedule
11255 cleanup-cfg or update-ssa.
11257 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11259 PR tree-optimization/61518
11260 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11261 reduction var is used in reduction stmt or phi-function only.
11263 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11265 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11267 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11269 PR tree-optimization/61517
11270 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11271 whose rhs's first tree is the source expression instead of the
11273 (find_bswap_or_nop): Likewise.
11274 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11275 gimple stmt whose rhs's first tree is the source. In the memory source
11276 case, move the stmt to be replaced close to one of the original load to
11277 avoid the problem of a store between the load and the stmt's original
11279 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11282 2014-06-18 Andreas Schwab <schwab@suse.de>
11284 PR rtl-optimization/54555
11285 * postreload.c (move2add_use_add2_insn): Substitute
11286 STRICT_LOW_PART only if it is cheaper.
11288 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11290 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11291 Do not use unspec as call operand. Use memory_operand instead of
11292 memory_nox32_operand and add "m" operand constraint. Disable
11293 pattern for TARGET_X32.
11294 (*sibcall_pop_memory): Ditto.
11295 (*sibcall_value_memory): Ditto.
11296 (*sibcall_value_pop_memory): Ditto.
11297 (sibcall peepholes): Merge SImode and DImode patterns using
11298 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11299 Disable pattern for TARGET_X32. Check if eliminated register is
11300 really dead after call insn. Generate call RTX without unspec operand.
11301 (sibcall_value peepholes): Ditto.
11302 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11303 instead of memory_nox32_operand. Check if eliminated register is
11304 really dead after call insn. Generate call RTX without unspec operand.
11305 (sibcall_value_pop peepholes): Ditto.
11306 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11308 2014-06-18 Terry Guo <terry.guo@arm.com>
11311 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11314 2014-06-18 Olivier Hainque <hainque@adacore.com>
11316 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11317 memorization of the end of block source location.
11318 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11319 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11320 end source location info we have on the block entry/exit code we
11323 2014-06-18 Richard Biener <rguenther@suse.de>
11325 * common.opt (fssa-phiopt): New option.
11326 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11328 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11329 * doc/invoke.texi (-fssa-phiopt): Document.
11331 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11333 * genattrtab.c (n_bypassed): New variable.
11334 (process_bypasses): Initialise n_bypassed.
11335 Count number of bypassed reservations.
11336 (make_automaton_attrs): Allocate space for bypassed reservations
11337 rather than number of bypasses.
11339 2014-06-18 Richard Biener <rguenther@suse.de>
11341 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11342 we propagated anything.
11343 (substitute_and_fold_dom_walker::before_dom_children): Something
11344 changed if we propagated into PHI arguments.
11345 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11348 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11350 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11352 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11353 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11354 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11355 Introduces alternative way of loads group permutaions.
11356 (vect_transform_grouped_load): Try alternative way of permutations.
11358 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11360 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11361 changed in ORT_TARGET region, don't jump to do_outer.
11362 (struct gimplify_adjust_omp_clauses_data): New type.
11363 (gimplify_adjust_omp_clauses_1): Adjust for data being
11364 a struct gimplify_adjust_omp_clauses_data pointer instead
11365 of tree *. Pass pre_p as a new argument to
11366 lang_hooks.decls.omp_finish_clause hook.
11367 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11368 splay_tree_foreach to pass both list_p and pre_p.
11369 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11370 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11371 gimplify_adjust_omp_clauses callers.
11372 * langhooks.c (lhd_omp_finish_clause): New function.
11373 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11374 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11375 * langhooks.h (struct lang_hooks_for_decls): Add a new
11376 gimple_seq * argument to omp_finish_clause hook.
11377 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11378 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11379 (scan_omp_parallel, lower_omp_for): When adding
11380 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11381 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11382 * tree-nested.c (convert_nonlocal_omp_clauses,
11383 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11384 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11386 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11388 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11389 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11391 2014-06-17 Xinliang David Li <davidxl@google.com>
11393 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11394 * passes.c (pass_init_dump_file): Do not set initialize
11395 flag to false unconditionally.
11397 2014-06-17 Richard Biener <rguenther@suse.de>
11399 * genopinit.c (main): Use vec<>::qsort method.
11400 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11402 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11404 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11406 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11407 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11408 (mips_move_to_gpr_cost): Remove ST_REGS case.
11409 (mips_move_from_gpr_cost): Likewise.
11410 (mips_register_move_cost): Likewise.
11411 (mips_secondary_reload_class): Likewise.
11413 2014-06-17 Richard Biener <rguenther@suse.de>
11415 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11416 (pass_all_optimizations): Move 3rd copy-prop pass from after
11417 fre to before ifcombine/phiopt.
11419 2014-06-17 Richard Biener <rguenther@suse.de>
11421 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11422 and allow all blocks to be forwarders.
11424 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11427 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11428 variable 'size'; calculate 'size' right in the front; use
11429 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11430 pcum->aapcs_stack_words.
11432 2014-06-17 Nick Clifton <nickc@redhat.com>
11434 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11435 (umulhi3, mulsidi3, umulsidi3): Likewise.
11437 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11439 PR middle-end/61508
11440 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11441 check for section name.
11443 2014-06-17 Richard Biener <rguenther@suse.de>
11445 * tree-ssa-propagate.c: Include domwalk.h.
11446 (substitute_and_fold): Outline main worker into a domwalker ...
11447 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11448 Schedule stmts we can fully propagate for removal. Remove
11450 (substitute_and_fold): Apply a dominator walk to perform
11451 substitution. Process stmts scheduled for removal here.
11453 2014-06-17 Richard Biener <rguenther@suse.de>
11455 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11456 of PHI node moving.
11458 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11460 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11461 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11462 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11463 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11464 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11466 (get_fpscr) : Likewise.
11468 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11470 PR rtl-optimization/61325
11471 * lra-constraints.c (valid_address_p): Add forward declaration.
11472 (simplify_operand_subreg): Check address validity before and after
11473 alter_reg of memory subreg.
11475 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11477 * config/i386/i386.c (decide_alg): Correctly handle
11478 maximum size of stringop algorithm.
11480 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11482 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11484 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11486 PR rtl-optimization/61522
11487 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11489 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11492 * symtab.c (symtab_node::reset_section): New method.
11493 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11495 * cgraph.h (reset_section): Declare.
11496 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11497 do not consider comdat locals.
11498 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11500 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11501 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11502 reset sections of symbols dragged out of the comdats.
11503 (function_and_variable_visibility): Reset sections of
11506 2014-06-16 Richard Biener <rguenther@suse.de>
11508 PR tree-optimization/61482
11509 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11510 [-INF(OVF), +INF(OVF)] range.
11512 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11514 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11515 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11516 handling 32-bit multiplication.
11518 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11520 PR middle-end/61430
11521 * lra-lives.c (process_bb_lives): Skip creating copy during
11522 insn scan when src/dest has constrained to same regno.
11524 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11526 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11527 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11529 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11531 * asan.c (check_func): New function.
11532 (maybe_create_ssa_name): Likewise.
11533 (build_check_stmt_with_calls): Likewise.
11534 (use_calls_p): Likewise.
11535 (report_error_func): Change interface.
11536 (build_check_stmt): Allow non-integer lengths; add support
11538 (asan_instrument): Likewise.
11539 (instrument_mem_region_access): Moved code to build_check_stmt.
11540 (instrument_derefs): Likewise.
11541 (instrument_strlen_call): Likewise.
11542 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11543 * doc/invoke.texi: Describe new parameter.
11544 * params.def: Define new parameter.
11545 * params.h: Likewise.
11546 * sanitizer.def: Describe new builtins.
11548 2014-06-16 Richard Biener <rguenther@suse.de>
11550 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11551 Make all defs available at the end.
11552 (eliminate): If we remove a PHI node schedule cfg-cleanup.
11554 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11557 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11559 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11562 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11563 initialization. Replace remaining use of uid.
11565 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11567 * c-family/c-common.c (handle_tls_model_attribute): Use
11568 set_decl_tls_model.
11569 * c-family/c-common.c (handle_tls_model_attribute): Use
11570 set_decl_tls_model.
11571 * cgraph.h (struct varpool_node): Add tls_model.
11572 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11573 * tree.h (DECL_TLS_MODEL): Update.
11574 (DECL_THREAD_LOCAL_P): Check that variable is static.
11575 (decl_tls_model): Declare.
11576 (set_decl_tls_model): Declare.
11577 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
11578 set symbol prorperties.
11579 (get_emutls_init_templ_addr): Cleanup.
11580 (new_emutls_decl): Update.
11581 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
11582 (lto_input_varpool_node): Likewise.
11583 * lto-streamer-out.c (hash_tree): Likewise.
11584 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11585 not stream DECL_TLS_MODEL.
11586 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
11587 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
11589 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11591 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
11593 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11595 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
11596 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
11598 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
11599 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
11600 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
11601 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
11602 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
11603 (df_get_artificial_defs, df_get_artificial_uses)
11604 (df_single_def, df_single_use): Update accordingly.
11605 (df_refs_chain_dump): Take the first element in a linked list as
11606 parameter, rather than a pointer to an array of pointers.
11607 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
11608 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
11609 (df_chain_create_bb_process_use): Likewise.
11610 (df_md_bb_local_compute_process_def): Likewise.
11611 * fwprop.c (process_defs, process_uses): Likewise.
11612 (register_active_defs, update_uses): Likewise.
11613 (forward_propagate_asm): Update for new df_ref linking.
11614 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
11615 (df_null_ref_rec, df_null_mw_rec): Likewise.
11616 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
11618 (df_scan_free_bb_info): Remove check for null artificial_defs.
11619 (df_install_ref_incremental): Adjust for new df_ref linking.
11620 Use a single-element insertion rather than a full sort.
11621 (df_ref_chain_delete_du_chain): Take the first element
11622 in a linked list as parameter, rather than a pointer to an array of
11624 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
11625 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
11626 (df_insn_info_delete): Remove check for null defs and call to
11627 df_scan_free_mws_vec.
11628 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
11629 null rather than df_null_*_rec.
11630 (df_insn_rescan_debug_internal): Likewise, and update null
11631 checks in the same way. Remove check for null defs.
11632 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
11633 Move a single element rather doing a full sort.
11634 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
11636 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
11637 Initialize df_ref and df_mw_hardreg lists to null rather than
11639 (df_ref_compare): Take df_refs as parameter, transferring the
11640 old interface to...
11641 (df_ref_ptr_compare): ...this new function.
11642 (df_sort_and_compress_refs): Update accordingly.
11643 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
11644 old interface to...
11645 (df_mw_ptr_compare): ...this new function.
11646 (df_sort_and_compress_mws): Update accordingly.
11647 (df_install_refs, df_install_mws): Return a linked list rather than
11648 an array of pointers.
11649 (df_refs_add_to_chains): Assert that old lists are empty rather
11651 (df_insn_refs_verify): Don't handle null defs speciailly.
11652 * web.c (union_match_dups): Update for new df_ref linking.
11654 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11656 * df.h (df_ref_create, df_ref_remove): Delete.
11657 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
11658 (df_ref_remove): Likewise.
11660 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11662 * df.h (df_single_def, df_single_use): New functions.
11663 * ira.c (find_moveable_pseudos): Use them.
11665 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11667 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
11668 * df-problems.c (df_note_bb_compute): Use it.
11669 * regstat.c (regstat_bb_compute_ri): Likewise.
11671 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11673 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
11674 * cse.c (cse_extended_basic_block): Use them.
11675 * dce.c (mark_artificial_use): Likewise.
11676 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
11677 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11678 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
11679 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
11680 (df_simulate_initialize_backwards): Likewise.
11681 (df_simulate_finalize_backwards): Likewise.
11682 (df_simulate_initialize_forwards): Likewise.
11683 (df_md_simulate_artificial_defs_at_top): Likewise.
11684 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11685 * regrename.c (init_rename_info): Likewise.
11686 * regstat.c (regstat_bb_compute_ri): Likewise.
11687 (regstat_bb_compute_calls_crossed): Likewise.
11689 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11691 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
11692 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
11693 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
11694 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
11695 * combine.c (create_log_links): Likewise.
11696 * compare-elim.c (find_flags_uses_in_insn): Likewise.
11697 (try_eliminate_compare): Likewise.
11698 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
11699 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
11700 (remove_reg_equal_equiv_notes_for_defs): Likewise.
11701 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
11702 (word_dce_process_block, dce_process_block): Likewise.
11703 * ddg.c (def_has_ccmode_p): Likewise.
11704 * df-core.c (df_bb_regno_first_def_find): Likewise.
11705 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
11706 * df-problems.c (df_rd_simulate_one_insn): Likewise.
11707 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11708 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
11709 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
11710 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
11711 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
11712 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
11713 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
11714 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
11715 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11716 * fwprop.c (local_ref_killed_between_p): Likewise.
11717 (all_uses_available_at, free_load_extend): Likewise.
11718 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
11719 * hw-doloop.c (scan_loop): Likewise.
11720 * ifcvt.c (dead_or_predicable): Likewise.
11721 * init-regs.c (initialize_uninitialized_regs): Likewise.
11722 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
11723 (process_bb_node_lives): Likewise.
11724 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
11725 (find_moveable_pseudos): Likewise.
11726 * loop-invariant.c (check_dependencies, record_uses): Likewise.
11727 * recog.c (peep2_find_free_register): Likewise.
11728 * ree.c (get_defs): Likewise.
11729 * regstat.c (regstat_bb_compute_ri): Likewise.
11730 (regstat_bb_compute_calls_crossed): Likewise.
11731 * sched-deps.c (find_inc, find_mem): Likewise.
11732 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
11733 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
11734 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11735 (prepare_shrink_wrap): Likewise.
11736 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
11737 * web.c (union_defs, pass_web::execute): Likewise.
11738 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
11739 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
11741 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
11743 * lra-assign.c (assign_by_spills): Add code to assign vector regs
11744 to inheritance pseudos.
11745 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
11747 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
11750 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
11751 (BU_MISC_2): Rename to ...
11752 (BU_LDBL128_2): ... this.
11753 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
11754 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
11755 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
11756 RS6000_BTM_LDBL128.
11757 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
11758 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
11759 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
11760 (unpacktf_1): Likewise.
11761 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
11762 (__builtin_longdouble_dw1): Likewise.
11763 * doc/sourcebuild.texi (longdouble128): Document.
11765 2014-06-13 Jeff Law <law@redhat.com>
11767 PR rtl-optimization/61094
11768 PR rtl-optimization/61446
11769 * ree.c (combine_reaching_defs): Get the mode for the copy from
11770 the extension insn rather than the defining insn.
11772 2014-06-13 Dehao Chen <dehao@google.com>
11774 * dwarf2out.c (add_linkage_name): Emit more linkage name.
11776 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
11778 * doc/install.texi (--enable-linker-plugin-configure-flags)
11779 (--enable-linker-plugin-flags): Document new flags.
11781 2014-06-13 Martin Jambor <mjambor@suse.cz>
11784 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
11785 cache_token if returning early.
11787 2014-06-13 Nick Clifton <nickc@redhat.com>
11789 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
11790 requested alignment is active.
11791 (LABEL_ALIGN): Likewise.
11792 (LOOP_ALIGN): Likewise.
11794 2014-06-13 Richard Biener <rguenther@suse.de>
11796 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11797 Rewrite to propagate the VN result into all uses where
11798 possible and to remove stmts becoming dead because of that.
11799 (eliminate): Generalize stmt removal handling, remove in
11800 reverse dominator order to support proper debug stmt
11801 generation. Update stmts before removing stmts.
11802 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
11804 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11806 PR tree-optimization/61375
11807 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
11808 symbolic number cannot be represented in an uint64_t.
11809 (find_bswap_or_nop_1): Likewise.
11811 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11813 * symtab.c (symtab_node::reset_section): New method.
11814 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11816 * cgraph.h (reset_section): Declare.
11817 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11818 do not consider comdat locals.
11819 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11821 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11822 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11823 reset sections of symbols dragged out of the comdats.
11824 (function_and_variable_visibility): Reset sections of
11827 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11829 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
11830 to use symtab and decl_binds_to_current_def_p
11831 * tree-vectorizer.c (increase_alignment): Increase alignment
11832 of alias target, too.
11834 2014-06-12 Jakub Jelinek <jakub@redhat.com>
11836 PR middle-end/61486
11837 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
11838 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
11839 if outer combined construct is distribute.
11840 (gimplify_omp_for): For OMP_DISTRIBUTE set
11841 gimplify_omp_ctxp->distribute.
11842 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
11843 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
11844 mapping into decl map.
11846 2014-06-12 Jason Merrill <jason@redhat.com>
11848 * common.opt (fabi-version): Change default to 0.
11850 2014-06-12 Jason Merrill <jason@redhat.com>
11852 * toplev.c (process_options): Reject -fabi-version=1.
11854 2014-06-12 Jeff Law <law@redhat.com>
11856 PR tree-optimization/61009
11857 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
11858 value when we stop processing a block due to problematic PHIs.
11860 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
11862 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
11863 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
11864 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
11865 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
11866 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
11867 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
11868 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
11869 are not in the spec.
11871 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
11874 * config/aarch64/aarch64-modes.def: Add V1DFmode.
11875 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
11878 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
11880 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
11882 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
11885 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
11886 loading from address spaces.
11888 2014-06-12 Martin Liska <mliska@suse.cz>
11891 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
11892 statement is reachable.
11894 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
11896 * symtab.c (section_hash): New hash.
11897 (symtab_unregister_node): Clear section before freeing.
11898 (hash_section_hash_entry): New haser.
11899 (eq_sections): New function.
11900 (symtab_node::set_section_for_node): New method.
11901 (set_section_1): Update.
11902 (symtab_node::set_section): Take string instead of tree as parameter.
11903 (symtab_resolve_alias): Update.
11904 * cgraph.h (section_hash_entry_d): New structure.
11905 (section_hash_entry): New typedef.
11906 (cgraph_node): Change comdat_group_ to x_comdat_group,
11907 change section_ to x_section and turn into section_hash_entry;
11908 update accestors; put set_section_for_node offline.
11909 * tree.c (decl_section_name): Turn into string.
11910 (set_decl_section_name): Change parameter to be string.
11911 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
11912 * sdbout.c (sdbout_one_type): Update.
11913 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
11914 * varasm.c (IN_NAMED_SECTION, get_named_section,
11915 resolve_unique_section, hot_function_section, get_named_text_section,
11916 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
11917 make_decl_rtl, default_unique_section): Update.
11918 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
11919 (c6x_elf_unique_section): Update.
11920 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
11921 * config/pa/pa.c (pa_function_section): Update.
11922 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
11923 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
11924 * config/arc/arc.c (arc_in_small_data_p): Update.
11925 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
11926 * config/mcore/mcore.c (mcore_unique_section): Update.
11927 * config/mips/mips.c (mips16_build_function_stub): Update.
11928 (mips16_build_call_stub): Update.
11929 (mips_function_rodata_section): Update.
11930 (mips_in_small_data_p): Update.
11931 * config/score/score.c (score_in_small_data_p): Update.
11932 * config/rx/rx.c (rx_in_small_data): Update.
11933 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
11934 (rs6000_xcoff_asm_named_section): Update.
11935 (rs6000_xcoff_unique_section): Update.
11936 * config/frv/frv.c (frv_string_begins_with): Update.
11937 (frv_in_small_data_p): Update.
11938 * config/v850/v850.c (v850_encode_data_area): Update.
11939 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
11940 (bfin_handle_l1_data_attribute): Update.
11941 (bfin_handle_l2_attribute): Update.
11942 * config/mep/mep.c (mep_unique_section): Update.
11943 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
11945 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
11946 (h8300_handle_tiny_data_attribute): Update.
11947 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
11948 (m32r_in_small_data_p): Update.
11949 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
11950 * config/i386/i386.c (ix86_in_large_data_p): Update.
11951 * config/i386/winnt.c (i386_pe_unique_section): Update.
11952 * config/darwin.c (darwin_function_section): Update.
11953 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
11954 * tree-emutls.c (get_emutls_init_templ_addr): Update.
11955 (new_emutls_decl): Update.
11956 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
11957 input_varpool_node): Update.
11958 (ead_string_cst): Turn to ...
11959 (read_string): ... this one.
11960 * dwarf2out.c (secname_for_decl): Update.
11961 * asan.c (asan_protect_global): Update.
11963 2014-06-11 DJ Delorie <dj@redhat.com>
11965 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
11967 * config/rx/rx.c (rx_option_override): Likewise.
11968 (rx_align_for_label): Likewise.
11970 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
11972 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
11974 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
11977 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11979 * common.md: New file.
11980 * doc/md.texi: Update description of generic, machine-independent
11982 * config/s390/constraints.md (e): Delete.
11983 * Makefile.in (md_file): Include common.md.
11984 * config/m32c/t-m32c (md_file): Likewise.
11985 * genpreds.c (general_mem): New array.
11986 (generic_constraint_letters): Remove constraints now defined by
11988 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
11989 Allow the first character to be '<' or '>' as well.
11990 * genoutput.c (general_mem): New array.
11991 (indep_constraints): Remove constraints now defined by common.md.
11992 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
11993 Remove special handling of 'm'.
11994 * ira-costs.c (record_reg_classes): Remove special handling of
11995 constraints now defined by common.md.
11996 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
11997 * ira-lives.c (single_reg_class): Likewise.
11998 (ira_implicitly_set_insn_hard_regs): Likewise.
11999 * lra-constraints.c (reg_class_from_constraints): Likewise.
12000 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12001 * postreload.c (reload_cse_simplify_operands): Likewise.
12002 * reload.c (push_secondary_reload, scratch_reload_class)
12003 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12004 * reload1.c (maybe_fix_stack_asms): Likewise.
12005 * targhooks.c (default_secondary_reload): Likewise.
12006 * stmt.c (parse_output_constraint): Likewise.
12007 * recog.c (preprocess_constraints): Likewise.
12008 (constrain_operands, peep2_find_free_register): Likewise.
12009 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12010 must be handled specially.
12012 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12014 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12015 * genpreds.c (have_const_dbl_constraints): Delete.
12016 (add_constraint): Don't set it.
12017 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12018 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12019 constraints using the lookup_constraint logic.
12020 * ira-lives.c (single_reg_class): Likewise.
12021 * ira.c (ira_setup_alts): Likewise.
12022 * lra-constraints.c (process_alt_operands): Likewise.
12023 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12024 * reload.c (find_reloads): Likewise.
12026 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12028 * genpreds.c (const_int_start, const_int_end): New variables.
12029 (choose_enum_order): Output CONST_INT constraints before memory
12031 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12033 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12034 * ira.c (ira_setup_alts): Likewise.
12035 * lra-constraints.c (process_alt_operands): Likewise.
12036 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12037 * reload.c (find_reloads): Likewise.
12039 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12041 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12042 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12043 * recog.c (preprocess_constraints): Update accordingly.
12045 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12047 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12048 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12049 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12050 * genpreds.c (print_type_tree): New function.
12051 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12052 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12053 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12054 Write out enum constraint_type and get_constraint_type.
12055 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12056 constraint_num rather than a constraint string.
12057 (satisfies_address_constraint_p): Likewise.
12058 (reg_class_from_constraints): Avoid old constraint macros.
12059 (process_alt_operands, process_address_1): Likewise.
12060 (curr_insn_transform): Likewise.
12061 * ira-costs.c (record_reg_classes): Likewise.
12062 (record_operand_costs): Likewise.
12063 * ira-lives.c (single_reg_class): Likewise.
12064 (ira_implicitly_set_insn_hard_regs): Likewise.
12065 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12066 * postreload.c (reload_cse_simplify_operands): Likewise.
12067 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12068 (constrain_operands, peep2_find_free_register): Likewise.
12069 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12070 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12071 * reload1.c (maybe_fix_stack_asms): Likewise.
12072 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12073 * targhooks.c (default_secondary_reload): Likewise.
12074 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12075 to EXTRA_CONSTRAINT_STR.
12076 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12078 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12080 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12081 (write_constraint_satisfied_p_array): ...this new function.
12082 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12084 (write_insn_preds_c): Update accordingly.
12086 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12088 * genpreds.c (write_lookup_constraint): Rename to...
12089 (write_lookup_constraint_1): ...this.
12090 (write_lookup_constraint_array): New function.
12091 (write_tm_preds_h): Define lookup_constraint as an inline function
12092 that uses write_lookup_constraint_array where possible.
12093 (write_insn_preds_c): Update for the changes above.
12095 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12097 * doc/md.texi (regclass_for_constraint): Rename to...
12098 (reg_class_for_constraint): ...this.
12099 * genpreds.c (num_constraints, enum_order, register_start)
12100 (register_end, satisfied_start, memory_start, memory_end)
12101 (address_start, address_end): New variables.
12102 (add_constraint): Count the number of constraints.
12103 (choose_enum_order): New function.
12104 (write_enum_constraint_num): Iterate over enum_order.
12105 (write_regclass_for_constraint): Rename to...
12106 (write_reg_class_for_constraint_1): ...this and update output
12108 (write_constraint_satisfied_p): Rename to...
12109 (write_constraint_satisfied_p_1): ...this and update output
12110 accordingly. Do nothing if all extra constraints are register
12112 (write_insn_extra_memory_constraint): Delete.
12113 (write_insn_extra_address_constraint): Delete.
12114 (write_range_function): New function.
12115 (write_tm_preds_h): Define constraint_satisfied_p and
12116 reg_class_for_constraint as inline functions that do a range check
12117 before calling the out-of-line function. Use write_range_function
12118 to implement insn_extra_{register,memory,address}_constraint,
12119 the first of which is new.
12120 (write_insn_preds_c): Update after above changes to write_* functions.
12121 (main): Call choose_enum_order.
12123 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12125 PR tree-optimization/61306
12126 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12127 expression instead of its size.
12128 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12129 false to prevent optimization when the result is unpredictable due to
12130 arithmetic right shift of signed type with highest byte is set.
12131 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12132 (init_symbolic_number): Likewise.
12133 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12134 when the result is unpredictable due to sign extension.
12136 2014-06-11 Terry Guo <terry.guo@arm.com>
12138 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12139 (*thumb1_addsi3): Ditto.
12140 (*thumb_subdi3): Ditto.
12141 (thumb1_subsi3_insn): Ditto.
12142 (*thumb_mulsi3): Ditto.
12143 (*thumb_mulsi3_v6): Ditto.
12144 (*thumb1_andsi3_insn): Ditto.
12145 (thumb1_bicsi3): Ditto.
12146 (*thumb1_iorsi3_insn): Ditto.
12147 (*thumb1_xorsi3_insn): Ditto.
12148 (*thumb1_ashlsi3): Ditto.
12149 (*thumb1_ashrsi3): Ditto.
12150 (*thumb1_lshrsi3): Ditto.
12151 (*thumb1_rotrsi3): Ditto.
12152 (*thumb1_negdi2): Ditto.
12153 (*thumb1_negsi2): Ditto.
12154 (*thumb1_abssi2): Ditto.
12155 (*thumb1_neg_abssi2): Ditto.
12156 (*thumb1_one_cmplsi2): Ditto.
12157 (*thumb1_zero_extendhisi2): Ditto.
12158 (*thumb1_zero_extendqisi2): Ditto.
12159 (*thumb1_zero_extendqisi2_v6): Ditto.
12160 (thumb1_extendhisi2): Ditto.
12161 (thumb1_extendqisi2): Ditto.
12162 (*thumb1_movdi_insn): Ditto.
12163 (*thumb1_movsi_insn): Ditto.
12164 (*thumb1_movhi_insn): Ditto.
12165 (thumb_movhi_clobber): Ditto.
12166 (*thumb1_movqi_insn): Ditto.
12167 (*thumb1_movhf): Ditto.
12168 (*thumb1_movsf_insn): Ditto.
12169 (*thumb_movdf_insn): Ditto.
12170 (movmem12b): Ditto.
12172 (cbranchqi4): Ditto.
12173 (cbranchsi4_insn): Ditto.
12174 (cbranchsi4_scratch): Ditto.
12175 (*negated_cbranchsi4): Ditto.
12176 (*tbit_cbranch): Ditto.
12177 (*tlobits_cbranch): Ditto.
12178 (*tstsi3_cbranch): Ditto.
12179 (*cbranchne_decr1): Ditto.
12180 (*addsi3_cbranch): Ditto.
12181 (*addsi3_cbranch_scratch): Ditto.
12182 (*thumb_cmpdi_zero): Ditto.
12183 (cstoresi_eq0_thumb1): Ditto.
12184 (cstoresi_ne0_thumb1): Ditto.
12185 (*cstoresi_eq0_thumb1_insn): Ditto.
12186 (*cstoresi_ne0_thumb1_insn): Ditto.
12187 (cstoresi_nltu_thumb1): Ditto.
12188 (cstoresi_ltu_thumb1): Ditto.
12189 (thumb1_addsi3_addgeu): Ditto.
12190 (*thumb_jump): Ditto.
12191 (*call_reg_thumb1_v5): Ditto.
12192 (*call_reg_thumb1): Ditto.
12193 (*call_value_reg_thumb1_v5): Ditto.
12194 (*call_value_reg_thumb1): Ditto.
12195 (*call_insn): Ditto.
12196 (*call_value_insn): Ditto.
12197 (thumb1_casesi_internal_pic): Ditto.
12198 (thumb1_casesi_dispatch): Ditto.
12199 (*thumb1_indirect_jump): Ditto.
12200 (prologue_thumb1_interwork): Ditto.
12201 (*epilogue_insns): Ditto.
12202 (consttable_1): Ditto.
12203 (consttable_2): Ditto.
12204 (tablejump): Ditto.
12205 (*thumb1_tablejump): Ditto.
12206 (thumb_eh_return): Ditto.
12207 (define_peephole2): Two of them are thumb1 only and got moved into
12208 new file thumb1.md.
12209 (define_split): Six of them are thumb1 only and got moved into new
12211 * config/arm/thumb1.md: New file comprised of above thumb1 only
12214 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12216 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12217 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12219 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12220 (aarch64_crc_builtin_datum): New struct.
12221 (aarch64_crc_builtin_data): New.
12222 (aarch64_init_crc32_builtins): New function.
12223 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12224 (aarch64_crc32_expand_builtin): New.
12225 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12226 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12227 __ARM_FEATURE_CRC32 when appropriate.
12228 (TARGET_CRC32): Define.
12229 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12230 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12231 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12232 (aarch64_<crc_variant>): New pattern.
12233 * config/aarch64/arm_acle.h: New file.
12234 * config/aarch64/iterators.md (CRC): New int iterator.
12235 (crc_variant, crc_mode): New int attributes.
12236 * doc/aarch64-acle-intrinsics.texi: New file.
12237 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12238 Include aarch64-acle-intrinsics.texi.
12240 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12242 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12243 check for stores group of length 3.
12244 (vect_permute_store_chain): New permutations for stores group of
12246 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12247 of vec_perm_shuffle for the new permutations.
12249 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12251 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12252 table rewriting temporarily on targets not supporting ONE_ONLY.
12254 2014-06-11 Richard Biener <rguenther@suse.de>
12256 PR middle-end/61437
12258 2014-06-04 Richard Biener <rguenther@suse.de>
12260 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12261 TREE_PUBLIC and DECL_EXTERNAL decls.
12263 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12265 * varasm.c (set_implicit_section): New function.
12266 (resolve_unique_section): Use it to set implicit section
12268 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12269 (default_function_section): Likewise.
12270 (decl_binds_to_current_def_p): Constify argument.
12271 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12272 * asan.c (asan_protect_global): Use
12273 symtab_get_node (decl)->implicit_section.
12274 * symtab.c (dump_symtab_base): Dump implicit sections.
12275 (verify_symtab_base): Verify sanity of sectoins and comdats.
12276 (symtab_resolve_alias): Alias share the section of its target.
12277 (set_section_1): New function.
12278 (symtab_node::set_section): Move here, recurse to aliases.
12279 (verify_symtab): Check for duplicated symtab lists.
12280 * tree-core.h (implicit_section_name_p): Remove.
12281 * tree-vect-data-refs.c: Include varasm.h.
12282 (vect_can_force_dr_alignment_p): Fix conditional on when
12283 decl bints to current definition; use
12284 symtab_get_node (decl)->implicit_section.
12285 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12286 * cgraph.h (struct symtab_node): Add implicit_section.
12287 (set_section): Rename to ...
12288 (set_section_for_node): ... this one.
12289 (set_section): Declare.
12290 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12291 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12292 input_overwrite_node, input_varpool_node): Stream implicit_section.
12293 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12294 removal; it will fail in LTO.
12296 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12298 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12299 Change second alternative type to f_mcr.
12300 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12301 and 12th alternatives' types to f_mcr and f_mrc.
12302 (*movdi_aarch64): Same for 12th and 13th alternatives.
12303 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12304 (aarch64_movtilow_tilow): Change type to fmov.
12306 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12308 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12309 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12311 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12313 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12315 (aarch64_sqrdmulh_lane<mode>): Likewise.
12316 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12317 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12318 (aarch64_sqdmulh_laneq<mode>): New expander.
12319 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12320 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12321 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12322 (aarch64_sqdmulh_lane<mode>): New expander.
12323 (aarch64_sqrdmulh_lane<mode>): Likewise.
12324 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12325 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12326 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12327 (aarch64_sqdmlal_laneq<mode>): Likewise.
12328 (aarch64_sqdmlsl_lane<mode>): Likewise.
12329 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12330 (aarch64_sqdmlal2_lane<mode>): Likewise.
12331 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12332 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12333 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12334 (aarch64_sqdmull_lane<mode>): Likewise.
12335 (aarch64_sqdmull_laneq<mode>): Likewise.
12336 (aarch64_sqdmull2_lane<mode>): Likewise.
12337 (aarch64_sqdmull2_laneq<mode>): Likewise.
12339 2014-06-10 Richard Biener <rguenther@suse.de>
12341 PR tree-optimization/61438
12342 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12343 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12344 insertion of IVs if running PRE.
12345 (eliminate): Adjust.
12346 (pass_pre::execute): Likewise.
12347 (pass_fre::execute): Likewise.
12349 2014-06-10 Richard Biener <rguenther@suse.de>
12351 PR middle-end/61456
12352 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12353 Do not use the main variant for the type comparison.
12354 (ncr_compar): Likewise.
12355 (nonoverlapping_component_refs_p): Likewise.
12357 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12359 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12360 REG_CFA_RESTORE mode.
12362 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12364 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12365 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12366 expand_vec_perm_pblendv.
12368 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12370 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12372 Simplify description of __crc32d and __crc32cd intrinsics.
12373 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12376 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12379 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12380 * config.in: Regenerate.
12381 * configure: Likewise.
12383 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12385 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12387 (intersect_static_var_sets): Remove.
12388 (propagate): Do not prune local statics.
12390 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12393 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12394 Set lastprivate_firstprivate even if omp_private_outer_ref
12395 langhook returns true.
12396 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12397 langhook, call unshare_expr on new_var and call
12398 build_outer_var_ref to get the last argument.
12400 2014-06-10 Marek Polacek <polacek@redhat.com>
12403 * doc/extend.texi: Add cindex for transparent_union.
12405 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12407 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12408 init_symbolic_number ().
12410 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12412 PR middle-end/61141
12413 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12414 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12415 (verify_rtl_sharing): Likewise.
12417 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12420 * tree.c (build_qualified_type): Use a canonical type for
12423 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12425 * config/arm/arm-modes.def: Remove XFmode.
12427 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12430 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12431 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12432 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12433 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12434 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12435 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12436 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12437 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12438 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12440 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12442 * tree-core.h (tree_decl_with_vis): Remove section_name.
12444 2014-06-09 Kito Cheng <kito@0xlab.org>
12446 * ira.c (ira): Don't call init_caller_save if LRA enabled
12447 since LRA use its own infrastructure to handle that.
12449 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12451 * symtab.c (dump_symtab_base): Update dumping.
12452 (symtab_make_decl_local): Clear only DECL_COMDAT.
12453 * tree-vect-data-refs.c (Check that variable is static before
12454 tampering with sections.
12455 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12456 (cgraph_create_virtual_clone): Likewise.
12457 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12458 (decl_section_name, set_decl_section_name): New accessors.
12459 (find_decls_types_r): Do not walk section name
12460 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12461 (decl_comdat_group, decl_comdat_group_id): Constify.
12462 (decl_section_name, set_decl_section_name): Update.
12463 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12464 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12465 (cgraph_make_node_local_1): Clear section and comdat group.
12466 * cgraph.h (set_comdat_group): Sanity check.
12467 (get_section, set_section): New.
12468 * ipa-comdats.c (ipa_comdats): Use get_section.
12469 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12470 * lto-streamer-out.c: Do not follow section names.
12471 * c-family/c-common.c (handle_section_attribute): Update.
12472 * lto-cgraph.c (lto_output_node): Output section.
12473 (lto_output_varpool_node): Likewise.
12474 (read_comdat_group): Rename to ...
12475 (read_identifier): ... this one.
12476 (read_string_cst): New function.
12477 (input_node, input_varpool_node): Input section names.
12478 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12479 (new_emutls_decl): Update.
12480 (secname_for_decl): Check section names only of static vars.
12481 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12482 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12483 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12484 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12485 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12486 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12487 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12488 * config/v850/v850.c (v850_insert_attributes): Likewise.
12489 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12491 (h8300_handle_tiny_data_attribute): Likewise.
12492 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12493 (bfin_handle_l2_attribute): Likewise.
12495 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12497 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12498 remove static initializer.
12500 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12502 * varasm.c (use_blocks_for_decl_p): Check symbol table
12503 instead of alias attribute.
12504 (place_block_symbol): Recurse on aliases.
12506 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12508 * ipa-visibility.c: Include varasm.h
12509 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12511 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12513 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12514 outputting aliases.
12516 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12518 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12519 from test_insn into GGC space escape via SET_SRC.
12521 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12523 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12524 call statement, if any.
12525 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12526 statements, if any. Tidy up.
12528 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12531 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12532 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12533 handles swapping the two 64-bit double words on little endian
12534 systems. Include V1TImode and optionally TImode in VSX_LE so that
12535 these types are properly swapped. Change all of the insns and
12536 splits that do the 64-bit swaps to use VSX_LE.
12537 (vsx_le_perm_load_<mode>): Likewise.
12538 (vsx_le_perm_store_<mode>): Likewise.
12539 (splitters for little endian memory operations): Likewise.
12540 (vsx_xxpermdi2_le_<mode>): Likewise.
12541 (vsx_lxvd2x2_le_<mode>): Likewise.
12542 (vsx_stxvd2x2_le_<mode>): Likewise.
12544 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12547 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12548 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12549 and corresponding splitters. Zero extend general register
12550 or memory input operand to XMM temporary. Enable for
12551 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12552 (floatunssi<mode>2): Update expander predicate.
12554 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
12556 PR rtl-optimization/61325
12557 * lra-constraints.c (process_address_1): Check scale equal to one
12558 to prevent transformation: base + scale * index => base + new_reg.
12560 2014-06-06 Richard Biener <rguenther@suse.de>
12562 PR tree-optimization/59299
12563 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12565 (nearest_common_dominator_of_uses): Likewise.
12566 (statement_sink_location): Adjust. Support sinking loads.
12568 2014-06-06 Martin Jambor <mjambor@suse.cz>
12570 * ipa-prop.c (get_place_in_agg_contents_list): New function.
12571 (build_agg_jump_func_from_list): Likewise.
12572 (determine_known_aggregate_parts): Renamed to
12573 determine_locally_known_aggregate_parts. Moved some functionality
12574 to the two functions above, removed bound checks.
12576 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
12578 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
12579 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
12580 (aarch64_progress_pointer): Likewise.
12581 (aarch64_copy_one_part_and_move_pointers): Likewise.
12582 (aarch64_expand_movmen): Likewise.
12583 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
12584 * config/aarch64/aarch64.md (movmem<mode>): New.
12586 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
12588 * targhooks.c (default_add_stmt_cost): Call target specific
12589 hook instead of default one.
12591 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12593 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
12594 endianness instead of host endianness.
12595 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
12598 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12601 * function.c (instantiate_decls): Process the saved static chain.
12602 (expand_function_start): If not optimizing, save the static chain
12604 * tree-nested.c (convert_all_function_calls): Always create the static
12605 chain for nested functions if not optimizing.
12607 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12609 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
12611 2014-06-06 Richard Biener <rguenther@suse.de>
12613 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
12614 (construct_init_block): Likewise.
12615 (construct_exit_block): Likewise.
12616 (pass_expand::execute): Likewise.
12617 * graphite.c (graphite_transforms): Replace check for current_loops
12618 with a check for > 1 loops.
12619 (pass_graphite_transforms::execute): Adjust.
12620 * ipa-split.c (split_function): Remove check for current_loops.
12621 * omp-low.c (expand_parallel_call): Likewise.
12622 (expand_omp_for_init_counts): Likewise.
12623 (extract_omp_for_update_vars): Likewise.
12624 (expand_omp_for_generic): Likewise.
12625 (expand_omp_sections): Likewise.
12626 (expand_omp_target): Likewise.
12627 * tracer.c (tail_duplicate): Likewise.
12628 (pass_tracer::execute): Likewise.
12629 * trans-mem.c (expand_transaction): Likewise.
12630 * tree-complex.c (expand_complex_div_wide): Likewise.
12631 * tree-eh.c (lower_resx): Likewise.
12632 (cleanup_empty_eh_merge_phis): Likewise.
12633 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
12634 current_loops with a check for > 1 loops.
12635 (pass_predcom::execute): Adjust.
12636 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
12637 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
12638 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
12639 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
12640 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12641 * tree-switch-conversion.c (process_switch): Likewise.
12642 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12643 * tree-vrp.c (vrp_visit_phi_node): Likewise.
12644 (execute_vrp): Likewise.
12645 * ubsan.c (ubsan_expand_null_ifn): Likewise.
12647 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12649 * rtl.h (insn_location): Declare.
12650 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
12651 with UNKNOWN_LOCATION.
12652 * emit-rtl.c (insn_location): New function.
12653 * final.c (notice_source_line): Check that the instruction has a
12654 location before retrieving it and use insn_location.
12655 * modulo-sched.c (loop_single_full_bb_p): Likewise.
12656 * print-rtl.c (print_rtx): Likewise.
12658 2014-06-06 Richard Biener <rguenther@suse.de>
12660 * passes.def: Move 2nd VRP pass before phi-only-cprop.
12662 2014-06-06 Christian Bruel <christian.bruel@st.com>
12664 PR tree-optimization/43934
12665 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
12668 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
12670 * ira-lives.c (single_reg_class): Add missing break. Explicitly
12671 return NO_REGS for extra address and memory constraints. Handle
12672 operands that match (or are equivalent to something that matches)
12673 extra constant constraints. Ignore other non-register operands.
12675 2014-06-06 Alan Modra <amodra@gmail.com>
12678 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
12679 * doc/tm.texi: Regenerate.
12680 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
12681 Use throughout in place of REG_PARM_STACK_SPACE.
12682 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
12683 "incoming" param. Pass to rs6000_function_parms_need_stack.
12684 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
12685 prototype_p when incoming. Use function decl when incoming
12686 to handle K&R style functions.
12687 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
12688 (INCOMING_REG_PARM_STACK_SPACE): Define.
12690 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12693 * cfgexpand.c (expand_debug_expr): Use address space of nested
12694 TREE_TYPE for ADDR_EXPR and MEM_REF.
12696 2014-06-05 Jeff Law <law@redhat.com>
12698 PR tree-optimization/61289
12699 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
12700 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
12701 looking for those which match LHS. All callers changed.
12702 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
12703 parameters and code which manipulated them. All callers changed.
12704 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
12705 and DST_MAP parameters. Simplify invalidation code by just calling
12706 invalidate_equivalences. All callers changed.
12707 (thread_across_edge): Simplify now that we don't need to maintain
12708 the map of equivalences to invalidate.
12710 2014-06-05 Kai Tietz <ktietz@redhat.com>
12711 Richard Henderson <rth@redhat.com>
12714 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
12715 checking for !TARGET_X32.
12716 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
12717 (sibcall_intern): New define_insn, plus required peepholes.
12718 (sibcall_pop_intern): Likewise.
12719 (sibcall_value_intern): Likewise.
12720 (sibcall_value_pop_intern): Likewise.
12722 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
12724 * tree-inline.c (tree_function_versioning): Check DF info existence
12725 before accessing it.
12727 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12729 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
12731 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
12732 aarch64_frame hard_fp_offset and frame_size.
12733 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
12734 frame_size; remove original_frame_size.
12735 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
12736 (aarch64_initial_elimination_offset): Remove frame_size and
12737 offset. Use aarch64_frame frame_size.
12739 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12740 Jiong Wang <jiong.wang@arm.com>
12741 Renlin <renlin.li@arm.com>
12743 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
12744 initialization of R30 offset. Update offset. Iterate core
12745 regisers upto X30. Remove X29, X30 specific code.
12747 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12748 Jiong Wang <jiong.wang@arm.com>
12750 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
12751 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
12752 (aarch64_register_saved_on_entry): Adjust test.
12754 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12756 * config/aarch64/aarch64.h (machine_function): Move
12757 saved_varargs_size from here...
12758 (aarch64_frame): ... to here.
12760 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12761 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
12762 (aarch64_initial_elimination_offset)
12763 (aarch64_setup_incoming_varargs): Adjust location of
12764 saved_varargs_size.
12766 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12768 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
12771 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
12772 Prachi Godbole <Prachi.Godbole@imgtec.com>
12774 * config/mips/mips-cpus.def: Add definition for p5600. Updated
12775 mips32r5 entry to use PROCESSOR_P5600.
12776 * config/mips/mips-tables.opt: Regenerate.
12777 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
12778 * config/mips/mips.c (mips_fmadd_bypass): New function.
12779 (mips_rtx_cost_data): Add costs for p5600.
12780 (mips_issue_rate): Add support for p5600.
12781 (mips_multipass_dfa_lookahead): Likewise.
12782 * config/mips/mips.h (TUNE_P5600): New define.
12783 (TUNE_MACC_CHAINS): Add TUNE_P5600.
12784 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
12785 * config/mips/mips.md: Include p5600.md.
12786 (processor): Add p5600.
12787 * config/mips/p5600.md: New file.
12789 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
12791 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
12792 * config/i386/predicates.md (palignr_operand): New.
12793 Indicates if permutation is suitable for palignr instruction.
12795 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
12797 PR tree-optimization/61319
12798 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12799 stmt belongs to loop.
12801 2014-06-05 Richard Biener <rguenther@suse.de>
12803 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
12804 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
12805 (lookup_tmp_var): Adjust.
12806 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
12808 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12810 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
12812 2014-06-05 Marek Polacek <polacek@redhat.com>
12815 * doc/invoke.texi: Document -Wlogical-not-parentheses.
12817 2014-06-04 Tom de Vries <tom@codesourcery.com>
12819 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
12822 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
12824 PR tree-optimization/61385
12825 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
12827 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
12829 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
12830 changed to use fatal_error.
12831 (main): Ensure lto_wrapper_cleanup is run atexit.
12833 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12835 * lra-constraints.c (valid_address_p): Move earlier in file.
12836 (address_eliminator): New structure.
12837 (satisfies_memory_constraint_p): New function.
12838 (satisfies_address_constraint_p): Likewise.
12839 (process_alt_operands, process_address, curr_insn_transform): Use them.
12841 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12843 * lra-int.h (lra_static_insn_data): Make operand_alternative a
12845 (target_lra_int, default_target_lra_int, this_target_lra_int)
12846 (op_alt_data): Delete.
12847 * lra.h (lra_init): Delete.
12848 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
12849 (init_insn_code_data_once): Remove op_alt_data handling.
12850 (finish_insn_code_data_once): Likewise.
12851 (init_op_alt_data): Delete.
12852 (get_static_insn_data): Initialize operand_alternative to null.
12853 (free_insn_recog_data): Cast operand_alternative before freeing it.
12854 (setup_operand_alternative): Take the operand_alternative as
12855 parameter and assume it isn't already cached in the static
12857 (lra_set_insn_recog_data): Update accordingly.
12858 (lra_init): Delete.
12859 * ira.c (ira_init): Don't call lra_init.
12860 * target-globals.h (this_target_lra_int): Declare.
12861 (target_globals): Remove lra_int.
12862 (restore_target_globals): Update accordingly.
12863 * target-globals.c: Don't include lra-int.h.
12864 (default_target_globals, save_target_globals): Remove lra_int.
12866 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12868 * recog.h (operand_alternative): Convert reg_class, reject,
12869 matched and matches into bitfields.
12870 (preprocess_constraints): New overload.
12871 (preprocess_insn_constraints): New function.
12872 (preprocess_constraints): Take the insn as parameter.
12873 (recog_op_alt): Change into a pointer.
12874 (target_recog): Add x_op_alt.
12875 * recog.c (asm_op_alt): New variable.
12876 (recog_op_alt): Change into a pointer.
12877 (preprocess_constraints): New overload, replacing the old function
12878 definition with one that doesn't use global state.
12879 (preprocess_insn_constraints): New function.
12880 (preprocess_constraints): Use them. Take the insn as parameter.
12881 Use asm_op_alt for asms.
12882 (recog_init): Free existing x_op_alt entries.
12883 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
12885 (make_early_clobber_and_input_conflicts): Likewise.
12886 (process_bb_node_lives): Pass the insn to process_constraints.
12887 * reg-stack.c (check_asm_stack_operands): Likewise.
12888 (subst_asm_stack_regs): Likewise.
12889 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12890 * regrename.c (build_def_use): Likewise.
12891 * sched-deps.c (sched_analyze_insn): Likewise.
12892 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
12893 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
12894 (note_invalid_constants): Likewise.
12895 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12896 (ix86_legitimate_combined_insn): Make operand_alternative pointer
12899 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12901 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
12902 * ira-lives.c (check_and_make_def_conflict): Check for disabled
12904 (make_early_clobber_and_input_conflicts): Likewise.
12905 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12907 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12909 * recog.h (alternative_class): New function.
12910 (which_op_alt): Return a const recog_op_alt.
12911 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
12912 (subst_asm_stack_regs): Likewise.
12913 * config/arm/arm.c (note_invalid_constants): Likewise.
12914 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
12915 the operand_alternative; use alternative class instead.
12916 * sel-sched.c (get_reg_class): Likewise.
12917 * regrename.c (build_def_use): Likewise.
12918 (hide_operands, restore_operands, record_out_operands): Update type
12921 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12923 * recog.h (recog_op_alt): Convert to a flat array.
12924 (which_op_alt): New function.
12925 * recog.c (recog_op_alt): Convert to a flat array.
12926 (preprocess_constraints): Update accordingly, grouping all
12927 operands of the same alternative together, rather than the
12929 * ira-lives.c (check_and_make_def_conflict): Likewise.
12930 (make_early_clobber_and_input_conflicts): Likewise.
12931 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12932 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
12933 (subst_asm_stack_regs): Likewise.
12934 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12935 * regrename.c (hide_operands, record_out_operands): Likewise.
12936 (build_def_use): Likewise.
12937 * sel-sched.c (get_reg_class): Likewise.
12938 * config/arm/arm.c (note_invalid_constants): Likewise.
12940 2014-06-04 Jason Merrill <jason@redhat.com>
12944 * gimplify.c (gimplify_arg): Non-static.
12945 * gimplify.h: Declare it.
12947 2014-06-04 Richard Biener <rguenther@suse.de>
12949 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12950 TREE_PUBLIC and DECL_EXTERNAL decls.
12952 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
12954 * regcprop.c (copyprop_hardreg_forward_1): Account for
12955 HARD_REGNO_CALL_PART_CLOBBERED.
12957 2014-06-04 Richard Biener <rguenther@suse.de>
12959 * configure.ac: Check whether the underlying type of int64_t
12960 is long or long long.
12961 * configure: Regenerate.
12962 * config.in: Likewise.
12963 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
12964 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
12966 2014-06-04 Richard Biener <rguenther@suse.de>
12968 PR tree-optimization/60098
12969 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
12971 (dse_optimize_stmt): Simplify, now that we found a kill
12974 2014-06-04 Richard Biener <rguenther@suse.de>
12976 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
12977 of accesses with non-invariant address.
12979 2014-06-04 Martin Liska <mliska@suse.cz>
12981 * cgraph.h (cgraph_make_wrapper): New function introduced.
12982 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
12983 * ipa-inline.h (inline_analyze_function): The function is global.
12984 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
12986 2014-06-04 Martin Liska <mliska@suse.cz>
12988 * tree.h (private_lookup_attribute_starting): New function.
12989 (lookup_attribute_starting): Likewise.
12990 * tree.c (private_lookup_attribute_starting): Likewise.
12992 2014-06-04 Martin Liska <mliska@suse.cz>
12994 * cgraph.h (expand_thunk): New argument added.
12995 (address_taken_from_non_vtable_p): New global function.
12996 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
12997 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
12998 * cgraphunit.c (analyze_function): Likewise.
12999 (assemble_thunks_and_aliases): Argument added to call.
13000 (expand_thunk): New argument forces to produce GIMPLE thunk.
13002 2014-06-04 Martin Liska <mliska@suse.cz>
13004 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13005 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13006 * profile.c (branch_prob): Likewise.
13008 2014-06-04 Martin Jambor <mjambor@suse.cz>
13011 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13012 handler for switch on an ipa_ref_use enum.
13013 * ipa-reference.c (analyze_function): Likewise.
13015 2014-06-04 Kai Tietz <ktietz@redhat.com>
13017 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13018 from old call-instruction.
13020 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13022 * config/aarch64/aarch64.c (aarch64_classify_address)
13023 (aarch64_legitimize_reload_address): Support full addressing modes
13025 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13026 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13028 2014-06-03 Andrew Pinski <apinski@cavium.com>
13030 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13033 2014-06-03 Andrew Pinski <apinski@cavium.com>
13035 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13036 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13038 2014-06-03 Kai Tietz <ktietz@redhat.com>
13040 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13043 2014-06-03 Dehao Chen <dehao@google.com>
13045 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13048 2014-06-03 Marek Polacek <polacek@redhat.com>
13051 * doc/invoke.texi: Document -Wswitch-bool.
13052 * function.c (stack_protect_epilogue): Cast controlling expression of
13054 * gengtype.c (walk_type): Generate switch expression with its
13055 controlling expression cast to int.
13057 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13059 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13061 * config/avr/avr-tables.opt: Regenerate.
13062 * config/avr/t-multilib: Regenerate.
13063 * doc/avr-mmcu.texi: Regenerate.
13065 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13066 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13068 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13069 (ata6617c, ata664251): Add new avr35 devices.
13070 (ata6612c): Add new avr4 device.
13071 (ata6613c, ata6614q): Add new avr5 devices.
13072 * config/avr/avr-tables.opt: Regenerate.
13073 * config/avr/t-multilib: Regenerate.
13074 * doc/avr-mmcu.texi: Regenerate.
13076 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13078 * gcc/config/aarch64/aarch64-builtins.c
13079 (aarch64_types_binop_ssu_qualifiers): New static data.
13080 (TYPES_BINOP_SSU): Define.
13081 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13082 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13083 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13084 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13085 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13086 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13087 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13088 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13089 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13090 suffix to builtin function name, remove cast.
13091 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13092 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13093 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13095 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13097 * gcc/config/aarch64/aarch64-builtins.c
13098 (aarch64_types_binop_uus_qualifiers,
13099 aarch64_types_shift_to_unsigned_qualifiers,
13100 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13101 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13102 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13103 sqshlu_n, uqshl_n): Update qualifiers.
13104 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13105 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13106 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13107 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13108 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13109 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13110 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13111 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13112 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13113 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13114 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13115 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13116 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13117 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13118 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13119 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13120 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13121 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13122 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13123 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13124 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13125 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13126 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13127 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13128 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13129 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13130 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13132 2014-06-03 Teresa Johnson <tejohnson@google.com>
13134 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13136 2014-06-02 Jason Merrill <jason@redhat.com>
13139 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13141 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13143 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13146 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13148 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13150 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13151 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13152 * config/aarch64/iterators.md (REVERSE): New iterator.
13153 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13154 (rev_op): New int_attribute.
13155 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13156 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13157 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13158 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13159 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13160 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13161 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13162 Replace temporary __asm__ with __builtin_shuffle.
13164 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13166 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13168 * config/mips/mips-tables.opt: Regenerate.
13169 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13170 to use mips_isa_rev rather than ISA_MIPS32R2.
13171 * config/mips/mips.h (ISA_MIPS32R3): New define.
13172 (ISA_MIPS32R5): New define.
13173 (ISA_MIPS64R3): New define.
13174 (ISA_MIPS64R5): New define.
13175 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13176 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13177 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13179 (MIPS_ISA_SYNCI_SPEC): Likewise.
13180 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13181 (LINK_SPEC): Added mips32r3 and mips32r5.
13182 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13183 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13184 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13185 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13186 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13187 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13188 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13190 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13192 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13194 * config/mips/mips.opt (mxpa): New option.
13195 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13198 2014-06-03 Martin Jambor <mjambor@suse.cz>
13201 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13204 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13206 PR tree-optimization/61328
13207 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13208 initialization from find_bswap_or_nop_1.
13209 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13210 in source_expr2 before using the size value the function sets. Also
13211 make use of init_symbolic_number () in both the old place and
13212 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13213 doing recursion in the GIMPLE_BINARY_RHS case.
13215 2014-06-03 Richard Biener <rguenther@suse.de>
13217 PR tree-optimization/61383
13218 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13221 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13223 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13224 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13225 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13226 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13228 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13229 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13230 * system.h: ...here and make it unconditional.
13231 * target.def (conditional_register_usage): Mention
13232 define_register_constraint instead of old-style constraint macros.
13233 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13234 * doc/tm.texi: Regenerate.
13235 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13236 protected by !USE_MD_CONSTRAINTS.
13237 * config/frv/frv.md: Remove quote from old version of documentation.
13238 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13239 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13240 CONST_DOUBLE_OK_FOR_LETTER.
13241 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13243 2014-06-02 Andrew Pinski <apinski@cavium.com>
13245 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13246 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13247 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13248 file whose name depends on -mabi= and -mbig-endian.
13249 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13250 Handle LP64 better and handle ilp32 too.
13251 (MULTILIB_OPTIONS): Delete.
13252 (MULTILIB_DIRNAMES): Delete.
13254 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13256 * expr.h: Remove prototypes of functions defined in builtins.c.
13257 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13258 Remove prototypes of functions defined in builtins.c.
13259 * builtins.h: Update prototype list to include all exported functions.
13260 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13261 no_c99_libc_has_function): Move to targhooks.c
13262 (build_string_literal, build_call_expr_loc_array,
13263 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13265 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13266 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13267 no_c99_libc_has_function): Relocate from builtins.c.
13268 * tree.c: Include builtins.h.
13269 (build_call_expr_loc_array, build_call_expr_loc_vec,
13270 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13272 * fold-const.h (fold_fma): Move prototype to builtins.h.
13273 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13274 * asan.c: Include builtins.h.
13275 * cfgexpand.c: Likewise.
13276 * convert.c: Likewise.
13277 * emit-rtl.c: Likewise.
13278 * except.c: Likewise.
13279 * expr.c: Likewise.
13280 * fold-const.c: Likewise.
13281 * gimple-fold.c: Likewise.
13282 * gimple-ssa-strength-reduction.c: Likewise.
13283 * gimplify.c: Likewise.
13284 * ipa-inline.c: Likewise.
13285 * ipa-prop.c: Likewise.
13286 * lto-streamer-out.c: Likewise.
13287 * stmt.c: Likewise.
13288 * tree-inline.c: Likewise.
13289 * tree-object-size.c: Likewise.
13290 * tree-sra.c: Likewise.
13291 * tree-ssa-ccp.c: Likewise.
13292 * tree-ssa-forwprop.c: Likewise.
13293 * tree-ssa-loop-ivcanon.c: Likewise.
13294 * tree-ssa-loop-ivopts.c: Likewise.
13295 * tree-ssa-math-opts.c: Likewise.
13296 * tree-ssa-reassoc.c: Likewise.
13297 * tree-ssa-threadedge.c: Likewise.
13298 * tree-streamer-in.c: Likewise.
13299 * tree-vect-data-refs.c: Likewise.
13300 * tree-vect-patterns.c: Likewise.
13301 * tree-vect-stmts.c: Likewise.
13302 * config/aarch64/aarch64.c: Likewise.
13303 * config/alpha/alpha.c: Likewise.
13304 * config/arc/arc.c: Likewise.
13305 * config/arm/arm.c: Likewise.
13306 * config/avr/avr.c: Likewise.
13307 * config/bfin/bfin.c: Likewise.
13308 * config/c6x/c6x.c: Likewise.
13309 * config/cr16/cr16.c: Likewise.
13310 * config/cris/cris.c: Likewise.
13311 * config/epiphany/epiphany.c: Likewise.
13312 * config/fr30/fr30.c: Likewise.
13313 * config/frv/frv.c: Likewise.
13314 * config/h8300/h8300.c: Likewise.
13315 * config/i386/i386.c: Likewise.
13316 * config/i386/winnt.c: Likewise.
13317 * config/ia64/ia64.c: Likewise.
13318 * config/iq2000/iq2000.c: Likewise.
13319 * config/lm32/lm32.c: Likewise.
13320 * config/m32c/m32c.c: Likewise.
13321 * config/m32r/m32r.c: Likewise.
13322 * config/m68k/m68k.c: Likewise.
13323 * config/mcore/mcore.c: Likewise.
13324 * config/mep/mep.c: Likewise.
13325 * config/microblaze/microblaze.c: Likewise.
13326 * config/mips/mips.c: Likewise.
13327 * config/mmix/mmix.c: Likewise.
13328 * config/mn10300/mn10300.c: Likewise.
13329 * config/moxie/moxie.c: Likewise.
13330 * config/msp430/msp430.c: Likewise.
13331 * config/nds32/nds32.c: Likewise.
13332 * config/pa/pa.c: Likewise.
13333 * config/pdp11/pdp11.c: Likewise.
13334 * config/picochip/picochip.c: Likewise.
13335 * config/rl78/rl78.c: Likewise.
13336 * config/rs6000/rs6000.c: Likewise.
13337 * config/rx/rx.c: Likewise.
13338 * config/s390/s390.c: Likewise.
13339 * config/score/score.c: Likewise.
13340 * config/sh/sh.c: Likewise.
13341 * config/sparc/sparc.c: Likewise.
13342 * config/spu/spu.c: Likewise.
13343 * config/stormy16/stormy16.c: Likewise.
13344 * config/tilegx/tilegx.c: Likewise.
13345 * config/tilepro/tilepro.c: Likewise.
13346 * config/v850/v850.c: Likewise.
13347 * config/vax/vax.c: Likewise.
13348 * config/xtensa/xtensa.c: Likewise.
13350 2014-06-02 Jeff Law <law@redhat.com>
13352 PR rtl-optimization/61094
13353 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13354 was marked as do_no_reextend. If a copy is needed to eliminate
13355 an extension, then mark it as do_not_reextend.
13357 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13359 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13361 2014-06-02 Richard Henderson <rth@redhat.com>
13364 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13365 addresses inside asms. Use output_operand_lossage instead of
13368 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13371 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13372 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13374 2014-06-02 Tom de Vries <tom@codesourcery.com>
13376 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13377 case that x has VOIDmode.
13379 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13381 * varasm.c (copy_constant): Delete function.
13382 (build_constant_desc): Don't call it.
13384 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13387 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13388 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13389 with immediate_operand.
13391 2014-06-02 Andreas Schwab <schwab@suse.de>
13393 * config/ia64/ia64.c
13394 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13395 pending_data_specs first.
13397 2014-06-02 Richard Biener <rguenther@suse.de>
13399 PR tree-optimization/61378
13400 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13401 valueized_anything.
13403 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13405 * config/i386/constraints.md (Bw): Rename from 'w'.
13406 (Bz): Rename from 'z'.
13407 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13409 2014-06-01 Kai Tietz <ktietz@redhat.com>
13412 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13413 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13414 instead of m constraint.
13416 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13418 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13419 a separate alternative where the scratch operand 2 is marked as
13422 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13424 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13425 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13426 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13427 and __builtins_arm_get_fpscr.
13428 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13429 __builtins_arm_get_fpscr.
13430 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13431 __builtins_arm_ldfpscr.
13432 (arm_atomic_assign_expand_fenv): New function.
13433 * config/arm/vfp.md (set_fpscr): New pattern.
13434 (get_fpscr) : Likewise.
13435 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13437 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13438 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13440 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13442 * asan.c (report_error_func): Add SLOW_P argument, use
13443 BUILT_IN_ASAN_*_N if set.
13444 (build_check_stmt): Likewise.
13445 (instrument_derefs): If T has insufficient alignment,
13446 force same handling as for odd sizes.
13448 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13449 BUILT_IN_ASAN_REPORT_STORE_N): New.
13450 * asan.c (struct asan_mem_ref): Change access_size type to
13452 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13453 update_mem_ref_hash_table): Likewise.
13454 (asan_mem_ref_hasher::hash): Hash in a HWI.
13455 (report_error_func): Change size_in_bytes argument to HWI.
13456 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13458 (build_shadow_mem_access): New function.
13459 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13460 Handle size_in_bytes not power of two or larger than 16.
13461 (instrument_derefs): Don't give up if size_in_bytes is not
13462 power of two or is larger than 16.
13464 2014-05-30 Kai Tietz <ktietz@redhat.com>
13467 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13468 for sibling-tail-calls.
13469 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13471 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13472 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13474 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13476 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13477 * config/avr/avr-tables.opt: Regenerate.
13478 * config/avr/t-multilib: Regenerate.
13479 * doc/avr-mmcu.texi: Regenerate.
13481 2014-05-30 Ian Lance Taylor <iant@google.com>
13483 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13486 2014-05-30 Tom de Vries <tom@codesourcery.com>
13488 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13491 2014-05-30 Tom de Vries <tom@codesourcery.com>
13493 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13494 * lra.c (initialize_lra_reg_info_element): Add init of
13495 actual_call_used_reg_set field.
13496 (lra): Call lra_create_live_ranges before lra_inheritance for
13498 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13500 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13501 instead of call_used_reg_set for -fuse-caller-save.
13502 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13504 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13506 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13508 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13510 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13512 * ira.c (ira_get_dup_out_num): Check for output operands at
13513 the start of the loop. Handle cases where an included alternative
13514 follows an excluded one.
13516 2014-05-29 Mike Stump <mikestump@comcast.net>
13519 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13520 post ld passes when lto is used.
13522 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13524 PR rtl-optimization/61325
13525 * lra-constraints.c (process_address): Rename to process_address_1.
13526 (process_address): New function.
13528 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13530 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13531 TYPES_BINOPV): New static data.
13532 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13534 * config/aarch64/aarch64-simd.md (aarch64_ext,
13535 aarch64_im_lane_boundsi): New patterns.
13536 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13538 (aarch64_evpc_ext): New function.
13540 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13542 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13543 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13544 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13545 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13546 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13548 2014-05-29 Tom de Vries <tom@codesourcery.com>
13550 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13552 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
13553 Richard Sandiford <rdsandiford@googlemail.com>
13555 * arm/iterators.md (shiftable_ops): New code iterator.
13556 (t2_binop0, arith_shift_insn): New code attributes.
13557 * arm/predicates.md (shift_nomul_operator): New predicate.
13558 * arm/arm.md (insn_enabled): Delete.
13559 (enabled): Remove insn_enabled test.
13560 (*arith_shiftsi): Delete. Replace with ...
13561 (*<arith_shift_insn>_multsi): ... new pattern.
13562 (*<arith_shift_insn>_shiftsi): ... new pattern.
13563 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13565 2014-05-29 Radovan Obradovic <robradovic@mips.com>
13566 Tom de Vries <tom@codesourcery.com>
13568 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13569 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13571 (mips_split_call): Use POST_CALL_TMP_REG.
13572 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13574 2014-05-29 Tom de Vries <tom@codesourcery.com>
13576 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
13577 with #ifdef STACK_REGS.
13579 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
13581 * varasm.c (get_variable_section): Walk aliases.
13582 (place_block_symbol): Walk aliases.
13584 2014-05-28 Tom de Vries <tom@codesourcery.com>
13587 2014-05-28 Tom de Vries <tom@codesourcery.com>
13589 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13590 * lra.c (initialize_lra_reg_info_element): Add init of
13591 actual_call_used_reg_set field.
13592 (lra): Call lra_create_live_ranges before lra_inheritance for
13594 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13596 * lra-constraints.c (need_for_call_save_p): Use
13597 actual_call_used_reg_set instead of call_used_reg_set for
13599 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13601 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13603 * doc/md.texi: Document that the % constraint character must
13604 be at the beginning of the string.
13605 * genoutput.c (validate_insn_alternatives): Check that '=',
13606 '+' and '%' only appear at the beginning of a constraint.
13607 * ira.c (commutative_constraint_p): Delete.
13608 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
13609 at the start of the string.
13610 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
13612 * config/arm/neon.md (bicdi3_neon): Likewise.
13613 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
13614 (slt_si, sltu_si): Likewise.
13615 * config/vax/vax.md (sbcdi3): Likewise.
13616 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
13617 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
13618 (mul64): Move '%' to beginning of constraint.
13619 * config/arm/arm.md (*xordi3_insn): Likewise.
13620 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
13621 (xorsi3): Likewise.
13623 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13625 * doc/md.texi: Document the restrictions on the "enabled" attribute.
13627 2014-05-28 Jason Merrill <jason@redhat.com>
13630 * cgraph.h (symtab_node::get_comdat_group_id): New.
13631 * cgraphunit.c (analyze_functions): Call it.
13632 * symtab.c (dump_symtab_node): Likewise.
13633 * tree.c (decl_comdat_group_id): New.
13634 * tree.h: Declare it.
13635 * lto-streamer-out.c (write_symbol): Use it.
13636 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
13638 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13640 PR bootstrap/PR61146
13641 * wide-int.cc: Do not include longlong.h when compiling with clang.
13643 2014-05-28 Richard Biener <rguenther@suse.de>
13645 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
13646 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
13647 (vrp_visit_assignment_or_call): Print less vertical space.
13648 (vrp_visit_stmt): Likewise.
13649 (vrp_visit_phi_node): Likewise. For a PHI argument with
13650 VR_VARYING range consider recording it as copy.
13652 2014-05-28 Richard Biener <rguenther@suse.de>
13655 2014-05-28 Richard Biener <rguenther@suse.de>
13657 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13659 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13661 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
13662 sufficiently aligned and an offset is used at the same time.
13663 (expand_expr_real_1): Likewise.
13665 2014-05-28 Richard Biener <rguenther@suse.de>
13667 PR middle-end/61045
13668 * fold-const.c (fold_comparison): When folding
13669 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
13670 the sign of the remaining constant operand stays the same.
13672 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
13674 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13675 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
13676 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
13678 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
13679 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
13680 (m32bit-doubles) Likewise.
13681 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
13682 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
13685 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13687 * configure.ac ($gcc_cv_ld_clearcap): New test.
13688 * configure: Regenerate.
13689 * config.in: Regenerate.
13690 * config/sol2.opt (mclear-hwcap): New option.
13691 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
13692 * config/sol2-clearcap.map: Moved here from
13693 testsuite/gcc.target/i386/clearcap.map.
13694 * config/sol2-clearcapv2.map: Move here from
13695 gcc.target/i386/clearcapv2.map.
13696 * config/t-sol2 (install): Depend on install-clearcap-map.
13697 (install-clearcap-map): New target.
13698 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
13701 2014-05-28 Richard Biener <rguenther@suse.de>
13703 * hwint.h (*_HALF_WIDE_INT*): Move to ...
13704 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
13705 ... here and remove the rest.
13706 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13708 2014-05-28 Richard Biener <rguenther@suse.de>
13710 PR tree-optimization/61335
13711 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
13712 new range fails, drop to varying.
13714 2014-05-28 Olivier Hainque <hainque@adacore.com>
13716 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
13717 (CPP_SPEC): Add entry for -mcpu=8548.
13718 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
13719 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
13721 2014-05-28 Tom de Vries <tom@codesourcery.com>
13723 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13724 * lra.c (initialize_lra_reg_info_element): Add init of
13725 actual_call_used_reg_set field.
13726 (lra): Call lra_create_live_ranges before lra_inheritance for
13728 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13730 * lra-constraints.c (need_for_call_save_p): Use
13731 actual_call_used_reg_set instead of call_used_reg_set for
13733 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13735 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13736 Tom de Vries <tom@codesourcery.com>
13738 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
13740 (@item -fuse-caller-save): New item.
13742 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13743 Tom de Vries <tom@codesourcery.com>
13745 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
13746 OPT_fuse_caller_save.
13748 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13749 Tom de Vries <tom@codesourcery.com>
13751 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
13752 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
13753 get_call_reg_set_usage.
13754 * resource.c (mark_set_resources, mark_target_live_regs): Use
13755 get_call_reg_set_usage.
13756 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
13758 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
13759 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
13760 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13761 * ira-build.c (ira_create_allocno): Init
13762 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13763 (create_cap_allocno, propagate_allocno_info)
13764 (propagate_some_info_from_allocno)
13765 (copy_info_to_removed_store_destinations): Handle
13766 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13767 * ira-costs.c (ira_tune_allocno_costs): Use
13768 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
13770 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13771 Tom de Vries <tom@codesourcery.com>
13773 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
13774 and function_used_regs_valid fields.
13775 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
13776 find_all_hard_reg_sets.
13777 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
13778 (get_call_reg_set_usage): New function.
13779 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
13780 * regs.h (get_call_reg_set_usage): Declare.
13782 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13785 * config/dbx.h (License): Add Runtime Library Exception.
13786 * config/newlib-stdint.h (License): Same.
13787 * config/rtems.h (License): Same
13788 * config/initfini-array.h (License): Same
13789 * config/v850/v850.h (License): Same.
13790 * config/v850/v850-opts.h (License): Same
13791 * config/v850/rtems.h (License): Same.
13793 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13796 * doc/extend.texi (Local Labels): Note that label differences are
13797 not supported for AVR.
13799 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13800 Olivier Hainque <hainque@adacore.com>
13802 * rtl.h (set_for_reg_notes): Declare.
13803 * emit-rtl.c (set_for_reg_notes): New function.
13804 (set_unique_reg_note): Use it.
13805 * optabs.c (add_equal_note): Likewise
13807 2014-05-27 Andrew Pinski <apinski@cavium.com>
13809 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
13810 Use <w> for the register in assembly template.
13811 (stack_protect_test): Use the mode of operands[0] for the result.
13812 (stack_protect_test_<mode>): Use <w> for the register
13813 in assembly template.
13815 2014-05-27 DJ Delorie <dj@redhat.com>
13817 * config/rx/rx.c (add_vector_labels): New.
13818 (rx_output_function_prologue): Call it.
13819 (rx_handle_func_attribute): Don't require empty arguments.
13820 (rx_handle_vector_attribute): New.
13821 (rx_attribute_table): Add "vector" attribute.
13822 * doc/extend.texi (interrupt, vector): Document new/changed
13823 RX-specific attributes.
13825 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
13827 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13829 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
13830 predicate to detect a negative quotient.
13832 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13834 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
13835 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
13836 Add X - Y CMP 0 to X CMP Y transformation.
13837 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
13839 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
13841 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
13844 2014-05-27 Steve Ellcey <sellcey@mips.com>
13846 * config/mips/mips.c: Add include of cgraph.h.
13848 2014-05-27 Richard Biener <rguenther@suse.de>
13850 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
13852 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
13855 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
13856 * config/arm/arm-cores.def (License): Same.
13857 * config/arm/arm-opts.h (License): Same.
13858 * config/arm/aout.h (License): Same.
13859 * config/arm/bpabi.h (License): Same.
13860 * config/arm/elf.h (License): Same.
13861 * config/arm/linux-elf.h (License): Same.
13862 * config/arm/linux-gas.h (License): Same.
13863 * config/arm/netbsd-elf.h (License): Same.
13864 * config/arm/uclinux-eabi.h (License): Same.
13865 * config/arm/uclinux-elf.h (License): Same.
13866 * config/arm/vxworks.h (License): Same.
13868 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13870 * config/arm/neon.md (neon_bswap<mode>): New pattern.
13871 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
13872 (arm_init_neon_builtins): Handle NEON_BSWAP.
13873 Define required type nodes.
13874 (arm_expand_neon_builtin): Handle NEON_BSWAP.
13875 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
13876 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
13877 * config/arm/iterators.md (VDQHSD): New mode iterator.
13879 2014-05-27 Richard Biener <rguenther@suse.de>
13881 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
13882 Try using literal operands when comparing value-ranges failed.
13884 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13886 * ira.c (commutative_operand): Adjust for change to recog_data.
13887 [Missing from previous commit.]
13889 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13891 * system.h (TEST_BIT): New macro.
13892 * recog.h (alternative_mask): New type.
13893 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
13894 (recog_data_d): Replace alternative_enabled_p array with
13895 enabled_alternatives.
13896 (target_recog): New structure.
13897 (default_target_recog, this_target_recog): Declare.
13898 (get_enabled_alternatives, recog_init): Likewise.
13899 * recog.c (default_target_recog, this_target_recog): New variables.
13900 (get_enabled_alternatives): New function.
13901 (extract_insn): Use it.
13902 (recog_init): New function.
13903 (preprocess_constraints, constrain_operands): Adjust for change to
13905 * postreload.c (reload_cse_simplify_operands): Likewise.
13906 * reload.c (find_reloads): Likewise.
13907 * ira-costs.c (record_reg_classes): Likewise.
13908 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
13909 all alternatives after a disabled one would be skipped.
13910 (ira_implicitly_set_insn_hard_regs): Likewise.
13911 * ira.c (ira_setup_alts): Adjust for change to recog_data.
13912 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
13913 with enabled_alternatives.
13914 * lra.c (free_insn_recog_data): Update accordingly.
13915 (lra_update_insn_recog_data): Likewise.
13916 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
13917 * lra-constraints.c (process_alt_operands): Likewise. Handle
13918 only_alternative as part of the enabled mask.
13919 * target-globals.h (this_target_recog): Declare.
13920 (target_globals): Add a recog field.
13921 (restore_target_globals): Restore this_target_recog.
13922 * target-globals.c: Include recog.h.
13923 (default_target_globals): Initialize recog field.
13924 (save_target_globals): Likewise.
13925 * reginfo.c (reinit_regs): Call recog_init.
13926 * toplev.c (backend_init_target): Likewise.
13928 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13930 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
13931 rather than any named insn's code.
13933 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
13936 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
13937 * config/arm/arm-cores.def (License): Same.
13939 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
13941 * tree.h (decl_comdat_group): Declare.
13942 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
13943 * tree.c (decl_comdat_group): Here.
13945 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
13947 PR rtl-optimization/61222
13948 * combine.c (simplify_shift_const_1): When moving a PLUS outside
13949 the shift, truncate the PLUS operand to the result mode.
13951 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
13954 * config/i386/i386.c (ix86_rtx_costs)
13955 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
13958 2014-05-26 Martin Jambor <mjambor@suse.cz>
13960 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
13963 2014-05-26 Richard Biener <rguenther@suse.de>
13965 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
13966 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
13967 Provide specializations.
13968 (wi::int_traits <HOST_WIDE_INT>,
13969 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
13971 2014-05-26 Alan Modra <amodra@gmail.com>
13974 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
13975 params and return a bool. Remove dead code. Update comment.
13976 Assert we have a const_int source. Remove bogus code from
13977 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
13978 handling of constants > 2G and reg_equal note, from..
13979 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
13980 return value. Update comment. If we can, use a new pseudo
13981 for intermediate calculations.
13982 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
13984 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
13985 call to rs6000_emit_set_const in splitter.
13986 (movdi_internal64+2, +3): Likewise.
13988 2014-05-26 Richard Biener <rguenther@suse.de>
13990 * system.h: Define __STDC_FORMAT_MACROS before
13991 including inttypes.h.
13992 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
13993 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
13994 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
13995 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
13996 HOST_WIDEST_INT_C): Remove.
13997 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
13998 if C99 inttypes.h is not available.
13999 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14000 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14001 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14002 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14003 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14004 (struct output_info): Likewise.
14005 (print_statistics): Adjust.
14006 (dump_bitmap_statistics): Likewise.
14007 * bt-load.c (migrate_btr_defs): Print with PRId64.
14008 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14009 (MAX_SAFE_MULTIPLIER): Adjust.
14010 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14011 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14012 dump_cgraph_node): Likewise.
14013 * final.c (dump_basic_block_info): Likewise.
14014 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14015 * gcov.c (format_gcov): Likewise.
14016 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14018 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14019 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14020 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14021 Use PRId64 for dumping.
14022 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14023 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14024 (add_allocno_hard_regs): Adjust.
14025 * loop-doloop.c (doloop_modify): Print using PRId64.
14026 * loop-iv.c (inverse): Compute in uint64_t.
14027 (determine_max_iter, iv_number_of_iterations): Likewise.
14028 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14029 Print using PRId64.
14030 * lto-streamer-out.c (write_symbol): Use uint64_t.
14031 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14032 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14033 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14034 * modulo-sched.c (const_iteration_count): Use int64_t.
14035 (sms_schedule): Dump using PRId64.
14036 * predict.c (dump_prediction): Likewise.
14037 * pretty-print.h (pp_widest_integer): Remove.
14038 * profile.c (get_working_sets, is_edge_inconsistent,
14039 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14040 * tree-pretty-print.c (pp_double_int): Remove case handling
14041 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14042 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14044 (pass_optimize_bswap::execute): Remove restriction on hosts.
14045 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14046 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14047 * tree.c (widest_int_cst_value): Remove.
14048 * tree.h (widest_int_cst_value): Likewise.
14049 * value-prof.c (dump_histogram_value): Print using PRId64.
14050 * gengtype.c (main): Also inject int64_t.
14051 * ggc-page.c (struct max_alignment): Use int64_t.
14052 * alloc-pool.c (struct allocation_object_def): Likewise.
14053 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14055 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14056 * doc/tm.texi: Regenerated.
14057 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14058 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14059 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14060 mmix_output_register_setting): Use [u]int64_t in prototypes.
14061 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14062 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14063 mmix_output_octa, mmix_output_shifted_value): Adjust.
14064 (mmix_intval): Adjust. Remove unreachable case.
14065 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14067 2014-05-26 Richard Biener <rguenther@suse.de>
14069 * configure.ac: Drop __int64 type check. Insist that we
14070 found uint64_t and int64_t.
14071 * hwint.h (HOST_BITS_PER___INT64): Remove.
14072 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14073 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14074 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14075 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14076 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14077 for dst_q_src_df_rms_cdt.
14078 * configure: Regenerate.
14079 * config.in: Likewise.
14081 2014-05-26 Michael Tautschnig <mt@debian.org>
14084 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14085 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14087 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14089 PR rtl-optimization/61278
14090 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14092 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14094 PR rtl-optimization/61220
14095 Part of PR rtl-optimization/61225
14096 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14097 insn; skip split_edge for a block with only one successor.
14099 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14101 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14104 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14106 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14107 (update_vtable_references): New function.
14108 (function_and_variable_visibility): Rewrite also vtable initializers.
14109 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14111 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14113 * ggc.h (ggc_grow): New function.
14114 * ggc-none.c (ggc_grow): New function.
14115 * ggc-page.c (ggc_grow): Likewise.
14117 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14119 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14120 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14121 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14122 varpool_externally_visible_p, can_replace_by_local_alias,
14123 update_visibility_by_resolution_info, function_and_variable_visibility,
14124 pass_data_ipa_function_and_variable_visibility,
14125 make_pass_ipa_function_and_variable_visibility,
14126 whole_program_function_and_variable_visibility,
14127 pass_data_ipa_whole_program_visibility,
14128 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14129 * cgraph.h (cgraph_local_node_p): Declare.
14130 * ipa-visibility.c: New file.
14131 * Makefile.in (OBJS): Add ipa-visiblity.o
14133 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14135 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14136 that var decl is available.
14138 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14140 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14141 symtab_node pointer.
14142 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14143 (find_decls_types_r): Do not walk COMDAT_GROUP.
14144 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14145 * varasm.c (make_decl_one_only): Use set_comdat_group;
14146 create node if needed.
14147 * ipa-inline-transform.c (save_inline_function_body): Update
14148 way we decl->symtab mapping.
14149 * symtab.c (symtab_hash, hash_node, eq_node
14150 symtab_insert_node_to_hashtable): Remove.
14151 (symtab_register_node): Update.
14152 (symtab_unregister_node): Update.
14153 (symtab_get_node): Reimplement as inline function.
14154 (symtab_add_to_same_comdat_group): Update.
14155 (symtab_dissolve_same_comdat_group_list): Update.
14156 (dump_symtab_base): Update.
14157 (verify_symtab_base): Update.
14158 (symtab_make_decl_local): Update.
14159 (fixup_same_cpp_alias_visibility): Update.
14160 (symtab_nonoverwritable_alias): Update.
14161 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14162 * ipa.c (update_visibility_by_resolution_info): UPdate.
14163 * bb-reorder.c: Include cgraph.h
14164 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14165 with comdat groups.
14166 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14167 * cgraph.c (cgraph_get_create_node): Update.
14168 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14170 (symtab_get_node): Make inline.
14171 (symtab_insert_node_to_hashtable): Remove.
14172 (symtab_can_be_discarded): Update.
14173 (decl_comdat_group): New function.
14174 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14176 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14178 (read_comdat_group): New function.
14179 (input_node, input_varpool_node): Use it.
14180 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14182 * mips.c (mips_start_unique_function): Likewise.
14183 (ix86_code_end): Likewise.
14184 (rs6000_code_end): Likweise.
14185 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14187 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14189 * gengtype-state.c (fatal_reading_state): Bring offline.
14190 * optabs.c (widening_optab_handler): Bring offline.
14191 * optabs.h (widening_optab_handler): Likewise.
14192 * final.c (get_attr_length_1): Likewise.
14194 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14196 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14198 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14200 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14201 (ppc440-compare): Include shift with dot.
14202 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14203 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14205 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14207 (e6500_sfx2): Include it.
14208 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14209 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14210 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14211 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14212 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14213 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14214 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14215 *lshiftrt_internal1le, *lshiftrt_internal1be,
14216 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14217 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14218 *rotldi3_internal10le, *rotldi3_internal10be,
14219 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14220 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14221 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14222 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14223 define_insns): Use type "shift" in the appropriate alternatives.
14225 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14227 * config/rs6000/rs6000.md (type): Add "logical". Delete
14229 (dot): Adjust comment.
14230 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14231 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14232 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14233 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14234 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14235 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14236 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14237 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14239 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14240 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14241 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14242 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14243 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14244 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14245 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14246 * config/rs6000/8540.md (ppc8540_su): Adjust.
14247 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14248 cell-cmp-microcoded): Adjust.
14249 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14250 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14251 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14252 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14253 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14254 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14255 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14256 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14257 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14259 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14260 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14261 Adjust. Adjust comment.
14262 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14263 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14265 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14267 * config/rs6000/rs6000.md (type): Add "add".
14268 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14269 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14270 define_insns): Use it.
14271 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14273 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14274 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14275 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14276 * config/rs6000/601.md (ppc601-integer): Adjust.
14277 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14278 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14279 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14280 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14281 * config/rs6000/8540.md (ppc8540_su): Adjust.
14282 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14283 cell-cmp-microcoded): Adjust.
14284 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14285 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14286 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14287 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14288 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14289 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14290 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14291 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14292 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14294 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14295 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14296 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14297 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14299 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14301 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14302 "delayed_compare", "var_delayed_compare".
14303 (var_shift): New attribute.
14304 (cell_micro): Adjust.
14305 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14306 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14307 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14308 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14309 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14310 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14311 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14312 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14313 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14314 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14315 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14316 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14317 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14318 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14319 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14320 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14321 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14322 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14323 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14324 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14325 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14326 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14327 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14328 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14329 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14331 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14332 * config/rs6000/440.md (ppc440-integer): Adjust.
14333 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14334 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14335 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14336 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14337 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14338 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14339 * config/rs6000/8540.md (ppc8540_su): Adjust.
14340 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14341 cell-cmp-microcoded): Adjust.
14342 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14343 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14344 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14345 e500mc64_delayed): Adjust.
14346 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14347 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14348 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14349 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14350 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14351 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14352 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14353 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14354 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14356 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14357 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14359 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14361 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14362 (bits): New mode_attr.
14363 (idiv_ldiv): Delete mode_attr.
14364 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14365 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14366 rs6000_adjust_priority, is_nonpipeline_insn,
14367 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14369 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14370 * config/rs6000/440.md (ppc440-idiv): Adjust.
14371 * config/rs6000/476.md (ppc476-idiv): Adjust.
14372 * config/rs6000/601.md (ppc601-idiv): Adjust.
14373 * config/rs6000/603.md (ppc603-idiv): Adjust.
14374 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14375 ppc620-ldiv): Adjust.
14376 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14377 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14378 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14379 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14380 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14381 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14382 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14383 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14384 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14385 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14386 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14387 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14388 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14389 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14390 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14391 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14392 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14393 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14395 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14397 * config/rs6000/rs6000.md (type): Delete "insert_word",
14398 "insert_dword". Add "insert".
14399 (size): Update comment.
14400 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14401 insn_must_be_first_in_group): Adjust.
14402 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14403 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14404 *insvsi_internal6, insvdi_internal): Adjust.
14406 * config/rs6000/40x.md (ppc403-integer): Adjust.
14407 * config/rs6000/440.md (ppc440-integer): Adjust.
14408 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14409 * config/rs6000/601.md (ppc601-integer): Adjust.
14410 * config/rs6000/603.md (ppc603-integer): Adjust.
14411 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14412 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14413 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14414 * config/rs6000/8540.md (ppc8540_su): Adjust.
14415 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14416 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14417 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14418 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14419 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14420 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14421 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14422 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14423 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14424 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14425 * config/rs6000/power7.md (power7-integer): Adjust.
14426 * config/rs6000/power8.md (power8-1cyc): Adjust.
14427 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14428 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14430 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14432 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14433 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14434 (size): New attribute.
14435 (dot): New attribute.
14436 (cell_micro): Adjust.
14437 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14438 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14439 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14440 umuldi3_highpart): Adjust.
14441 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14442 rs6000_adjust_priority, is_nonpipeline_insn,
14443 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14445 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14446 ppc405-imul3): Adjust.
14447 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14448 * config/rs6000/476.md (ppc476-imul): Adjust.
14449 * config/rs6000/601.md (ppc601-imul): Adjust.
14450 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14451 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14452 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14453 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14454 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14456 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14457 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14458 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14459 cell-imul): Adjust.
14460 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14461 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14462 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14463 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14464 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14465 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14466 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14467 power4-lmul, power4-imul, power4-imul3): Adjust.
14468 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14469 power5-lmul, power5-imul, power5-imul3): Adjust.
14470 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14471 power6-lmul, power6-imul, power6-imul3): Adjust.
14472 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14473 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14475 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14476 rs64a-lmul): Adjust.
14477 * config/rs6000/titan.md (titan_imul): Adjust.
14479 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14481 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14482 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14483 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14484 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14485 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14486 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14487 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14488 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14489 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14490 * config/rs6000/titan.md: Delete nonsensical comment.
14491 (titan_imul): Add type imul3.
14492 (titan_mulhw): Remove type imul3; add type halfmul.
14494 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14496 * config/rs6000/rs6000.md (type): Reorder, reformat.
14498 2014-05-23 Martin Jambor <mjambor@suse.cz>
14500 PR tree-optimization/53787
14501 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14502 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14503 analysis_done, update all uses.
14504 * ipa-prop.c: Include domwalk.h
14505 (param_analysis_info): Removed.
14506 (param_aa_status): New type.
14507 (ipa_bb_info): Likewise.
14508 (func_body_info): Likewise.
14509 (ipa_get_bb_info): New function.
14510 (aa_overwalked): Likewise.
14511 (find_dominating_aa_status): Likewise.
14512 (parm_bb_aa_status_for_bb): Likewise.
14513 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14514 (load_from_unmodified_param): Accept func_body_info as a parameter
14515 instead of parms_ainfo.
14516 (parm_ref_data_preserved_p): Changed to use new param AA info.
14517 (parm_ref_data_pass_through_p): Likewise.
14518 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14519 (compute_complex_assign_jump_func): Changed to use new param AA info.
14520 (compute_complex_ancestor_jump_func): Likewise.
14521 (ipa_compute_jump_functions_for_edge): Likewise.
14522 (ipa_compute_jump_functions): Removed.
14523 (ipa_compute_jump_functions_for_bb): New function.
14524 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14526 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14527 and info, moved variable declarations down.
14528 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14530 (ipa_analyze_stmt_uses): Likewise.
14531 (ipa_analyze_params_uses): Removed.
14532 (ipa_analyze_params_uses_in_bb): New function.
14533 (ipa_analyze_controlled_uses): Likewise.
14534 (free_ipa_bb_info): Likewise.
14535 (analysis_dom_walker): New class.
14536 (ipa_analyze_node): Handle node-specific forbidden analysis,
14537 initialize and free func_body_info, use dominator walker.
14538 (ipcp_modif_dom_walker): New class.
14539 (ipcp_transform_function): Create and free func_body_info, use
14540 ipcp_modif_dom_walker, moved a lot of functionality there.
14542 2014-05-23 Marek Polacek <polacek@redhat.com>
14543 Jakub Jelinek <jakub@redhat.com>
14545 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14546 * gcc.c (sanitize_spec_function): Likewise.
14547 * convert.c (convert_to_integer): Include "ubsan.h". Add
14548 floating-point to integer instrumentation.
14549 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14550 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14551 SANITIZE_NONDEFAULT.
14552 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14553 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14554 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14555 * ubsan.c: Include "realmpfr.h" and "dfp.h".
14556 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14557 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14558 float/double/long double.
14559 (ubsan_instrument_float_cast): New function.
14560 * ubsan.h (ubsan_instrument_float_cast): Declare.
14562 2014-05-23 Jiong Wang <jiong.wang@arm.com>
14564 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14566 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
14567 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14568 Adjust for tailcalling through registers.
14569 * config/aarch64/aarch64.h (enum reg_class): New caller save
14571 (REG_CLASS_NAMES): Likewise.
14572 (REG_CLASS_CONTENTS): Likewise.
14573 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14574 Allow tailcalling without decls.
14576 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14578 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14579 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
14581 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
14582 gsi, and variables v_* to v*.
14584 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
14586 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
14588 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14590 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
14591 * omp-low.c: Update accordingly.
14593 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
14594 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
14595 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
14596 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
14597 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
14598 GF_OMP_TARGET_KIND_UPDATE.
14600 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14601 Explicitly enumerate the expected region types.
14603 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
14606 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
14607 documentation; the old documentation didn't clearly state the
14608 constraints on the contents of the pointed-to storage.
14610 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14612 Fix bootstrap error on ia64
14613 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
14614 Return default value.
14616 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
14618 PR tree-optimization/54733
14619 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
14621 (find_bswap_or_nop_load): New.
14622 (find_bswap_1): Renamed to ...
14623 (find_bswap_or_nop_1): This. Also add support for memory source.
14624 (find_bswap): Renamed to ...
14625 (find_bswap_or_nop): This. Also add support for memory source and
14626 detection of bitwise operations equivalent to load in target
14628 (execute_optimize_bswap): Likewise. Also move its leading comment back
14629 in place and split statement transformation into ...
14630 (bswap_replace): This.
14632 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14634 PR rtl-optimization/61215
14635 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
14636 simplify_gen_subreg until final substitution.
14638 2014-05-23 Alan Modra <amodra@gmail.com>
14641 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
14642 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
14643 Use "Y" constraint rather than "m".
14645 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14647 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
14649 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
14650 New function declaration.
14651 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
14652 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
14653 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
14654 (aarch64_init_builtins) : Initialize builtins
14655 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14656 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14657 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
14658 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
14659 and __builtins_aarch64_set_fpsr.
14660 (aarch64_atomic_assign_expand_fenv): New function.
14661 * config/aarch64/aarch64.md (set_fpcr): New pattern.
14662 (get_fpcr) : Likewise.
14663 (set_fpsr) : Likewise.
14664 (get_fpsr) : Likewise.
14665 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
14666 and UNSPECV_SET_FPSR.
14667 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14668 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14669 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14671 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14673 PR rtl-optimization/60969
14674 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
14675 constraints. Set up mem cost for NO_REGS case.
14677 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
14679 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
14681 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
14683 * config/darwin.c: Include "lto-section-names.h".
14684 (LTO_SEGMENT_NAME): Don't define.
14685 * config/i386/winnt.c: Include "lto-section-names.h".
14686 * lto-streamer.c: Include "lto-section-names.h".
14687 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
14688 * lto-wrapper.c: Include "lto-section-names.h".
14689 (LTO_SECTION_NAME_PREFIX): Don't define.
14690 * lto-section-names.h: New file.
14691 * cgraphunit.c: Include "lto-section-names.h".
14693 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
14695 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
14697 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
14700 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
14702 2014-05-22 Nick Clifton <nickc@redhat.com>
14704 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
14706 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
14708 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
14709 -> (T)A transformation to integer types.
14711 2014-05-22 Teresa Johnson <tejohnson@google.com>
14713 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
14714 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
14715 (gcov_rewrite): Use gcov_nonruntime_assert.
14716 (gcov_open): Ditto.
14717 (gcov_write_words): Ditto.
14718 (gcov_write_length): Ditto.
14719 (gcov_read_words): Use gcov_nonruntime_assert, and remove
14720 gcc_assert from IN_LIBGCOV code.
14721 (gcov_read_summary): Use gcov_error to flag profile corruption.
14722 (gcov_sync): Use gcov_nonruntime_assert.
14723 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
14724 (gcov_histo_index): Use gcov_nonruntime_assert.
14725 (static void gcov_histogram_merge): Ditto.
14726 (compute_working_sets): Ditto.
14727 * gcov-io.h (gcov_nonruntime_assert): Define.
14728 (gcov_error): Define for !IN_LIBGCOV
14730 2014-05-22 Richard Biener <rguenther@suse.de>
14732 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14733 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
14734 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
14735 and deallocation site.
14736 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14737 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
14738 passing through the incoming points-to set.
14739 (handle_lhs_call): Use flags argument instead of recomputing it.
14740 (find_func_aliases_for_call): Call handle_lhs_call with proper
14743 2014-05-22 Jakub Jelinek <jakub@redhat.com>
14745 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
14746 all padding bits in REAL_VALUE_TYPE are cleared.
14748 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14750 Cleanup and improve multipass_dfa_lookahead_guard
14751 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
14752 (core2i7_first_cycle_multipass_begin,)
14753 (core2i7_first_cycle_multipass_issue,)
14754 (core2i7_first_cycle_multipass_backtrack): Update signature.
14755 * config/ia64/ia64.c
14756 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
14757 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
14758 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
14760 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
14761 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
14763 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
14765 * doc/tm.texi: Regenerate.
14767 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
14768 * haifa-sched.c (ready_try): Make signed to allow negative values.
14769 (rebug_ready_list_1): Update.
14770 (choose_ready): Simplify.
14771 (sched_extend_ready_list): Update.
14773 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14775 Remove IA64 speculation tweaking flags
14776 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
14777 speculation tuning flags.
14778 (msched-prefer-non-data-spec-insns,)
14779 (msched-prefer-non-control-spec-insns): Obsolete options.
14780 * haifa-sched.c (choose_ready): Remove handling of
14781 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14782 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
14783 and PREFER_NON_DATA_SPEC.
14784 * sel-sched.c (process_spec_exprs): Remove handling of
14785 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14787 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14789 Improve scheduling debug output
14790 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
14791 (advance_one_cycle): Update.
14792 (schedule_insn, queue_to_ready): Add debug printouts.
14793 (debug_ready_list_1): New static function.
14794 (debug_ready_list): Update.
14795 (max_issue): Add debug printouts.
14796 (dump_insn_stream): New static function.
14797 (schedule_block): Use it. Also better indent printouts.
14799 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14801 Fix sched_insn debug counter
14802 * haifa-sched.c (schedule_insn): Update.
14803 (struct haifa_saved_data): Add nonscheduled_insns_begin.
14804 (save_backtrack_point, restore_backtrack_point): Update.
14805 (first_nonscheduled_insn): New static function.
14806 (queue_to_ready, choose_ready): Use it.
14807 (schedule_block): Init nonscheduled_insns_begin.
14808 (sched_emit_insn): Update.
14811 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
14813 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
14815 (aarch64_secondary_reload) : LikeWise.
14816 (aarch64_class_max_nregs) : Remove CORE_REGS.
14817 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
14818 (REG_CLASS_NAMES) : Likewise.
14819 (REG_CLASS_CONTENTS) : LikeWise.
14820 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
14822 2014-05-21 Guozhi Wei <carrot@google.com>
14825 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
14827 (vqdmulhq_n_s16): Likewise.
14829 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
14831 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
14833 2014-05-21 Marek Polacek <polacek@redhat.com>
14836 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
14838 2014-05-21 Martin Jambor <mjambor@suse.cz>
14840 * doc/invoke.texi (Optimize Options): Document parameters
14841 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
14842 ipa-cp-array-index-hint-bonus.
14844 2014-05-21 Mark Wielaard <mjw@redhat.com>
14847 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
14848 version >= 3 or not strict DWARF.
14849 * langhooks.h (struct lang_hooks_for_types): Add
14850 enum_underlying_base_type.
14851 * langhooks.c (lhd_enum_underlying_base_type): New function.
14852 * gcc/langhooks.h (struct lang_hooks_for_types): Add
14853 enum_underlying_base_type.
14854 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
14855 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
14856 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
14858 2014-05-21 Richard Biener <rguenther@suse.de>
14860 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
14862 2014-05-21 John Marino <gnugcc@marino.st>
14864 * config.gcc (*-*-dragonfly*): New target.
14865 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
14866 * configure: Regenerate.
14867 * config/dragonfly-stdint.h: New.
14868 * config/dragonfly.h: New.
14869 * config/dragonfly.opt: New.
14870 * config/i386/dragonfly.h: New.
14871 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
14873 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14875 * tree.def (VOID_CST): New.
14876 * tree-core.h (TI_VOID): New.
14877 * tree.h (void_node): New.
14878 * tree.c (tree_node_structure_for_code, tree_code_size)
14879 (iterative_hash_expr): Handle VOID_CST.
14880 (build_common_tree_nodes): Initialize void_node.
14882 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
14884 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
14886 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
14888 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
14891 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
14892 flag_reorder_blocks_and_partition.
14893 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
14895 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
14898 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
14900 (*addc_r_t): Add new insn_and_split.
14902 2014-05-21 Jakub Jelinek <jakub@redhat.com>
14904 PR middle-end/61252
14905 * omp-low.c (handle_simd_reference): New function.
14906 (lower_rec_input_clauses): Use it. Defer adding reference
14907 initialization even for reduction without placeholder if in simd,
14908 handle it properly later on.
14910 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14912 PR tree-optimization/60899
14913 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
14914 assume all static symbols will have definition wile parsing and
14915 check the do have definition later in compilation; check that
14916 variable referring symbol will be output before concluding that
14917 reference is safe; be conservative for referring local statics;
14918 be more precise about when comdat is output in other partition.
14920 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14923 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
14925 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
14926 (ipa_inline): Loop inline_to_all_callers until no more aliases
14929 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14931 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
14932 set writeonly flag only for vars actually written to.
14934 2014-05-20 Dehao Chen <dehao@google.com>
14936 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
14937 and callee count to get clone count.
14938 * tree-inline.c (expand_call_inline): Use callee count instead of bb
14939 count in copy_body.
14941 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
14943 PR rtl-optimization/61243
14944 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
14946 2014-05-20 Xinliang David Li <davidxl@google.com>
14948 * cgraphunit.c (walk_polymorphic_call_targets): Add
14949 dbgcnt and fopt-info support.
14950 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
14951 * ipa-devirt.c (ipa_devirt): Ditto.
14952 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
14953 * ipa.c (walk_polymorphic_call_targets): Ditto.
14954 * gimple-fold.c (fold_gimple_assign): Ditto.
14955 (gimple_fold_call): Ditto.
14956 * dbgcnt.def: New counter.
14958 2014-05-20 DJ Delorie <dj@redhat.com>
14960 * config/msp430/msp430.md (split): Don't allow subregs when
14961 splitting SImode adds.
14962 (andneghi): Fix subtraction logic.
14963 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
14965 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14967 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
14969 * except.c (switch_to_exception_section, resolve_unique_section,
14970 get_named_text_section, default_function_rodata_section,
14971 align_variable, get_block_for_decl, default_section_type_flags):
14972 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
14973 * symtab.c (symtab_add_to_same_comdat_group,
14974 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
14975 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
14977 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
14978 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
14979 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
14980 (c6x_function_in_section_p): Likewise.
14981 * config/darwin.c (machopic_select_section): Likewise.
14982 * config/arm/arm.c (arm_function_in_section_p): Likewise.
14983 * config/mips/mips.c (mips_function_rodata_section): Likewise.
14984 * config/mep/mep.c (mep_select_section): LIkewise.
14985 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
14987 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
14989 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
14990 EH region of calls to pure functions that can throw an exception.
14991 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
14992 (copy_reference_ops_from_call): Also copy the EH region of the call if
14993 it can throw an exception.
14995 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14997 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
14998 nested VEC_SELECTs that are inverses of each other.
15000 2014-05-20 Richard Biener <rguenther@suse.de>
15002 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15003 (extract_and_process_scc_for_name): not here.
15004 (cond_dom_walker::before_dom_children): Only process
15005 stmts that end the BB in interesting ways.
15006 (run_scc_vn): Mark param uses as visited.
15008 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15010 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15013 2014-05-20 Nick Clifton <nickc@redhat.com>
15015 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15016 (msp430_gimplify_va_arg_expr): New function.
15017 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15019 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15020 operand 0 in order to prevent confusion about the number of
15021 registers involved.
15023 2014-05-20 Richard Biener <rguenther@suse.de>
15025 PR tree-optimization/61221
15026 * tree-ssa-pre.c (el_to_update): Remove.
15027 (eliminate_dom_walker::before_dom_children): Handle released
15028 VDEFs by value-numbering them to the associated VUSE. Update
15029 stmt immediately for substituted call address.
15030 (eliminate): Remove delayed stmt updating code.
15031 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15032 possibly late re-numbered vuses.
15033 (vn_reference_lookup_2): Adjust.
15034 (vn_reference_lookup_pieces): Likewise.
15035 (vn_reference_lookup): Likewise.
15037 2014-05-20 Richard Biener <rguenther@suse.de>
15039 * config.gcc: Remove need_64bit_hwint.
15040 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15041 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15043 * config.in: Regenerate.
15044 * configure: Likewise.
15046 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15048 * doc/extend.texi: Create Label Attributes section,
15049 move all label attributes into it and reference it.
15051 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15053 * arm.c (thumb1_reorg): When scanning backwards skip anything
15054 that's not a proper insn.
15056 2014-05-19 Richard Biener <rguenther@suse.de>
15058 PR tree-optimization/61221
15059 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15060 Do nothing for unreachable blocks.
15061 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15062 Improve unreachability detection.
15064 2014-05-19 Richard Biener <rguenther@suse.de>
15066 PR tree-optimization/61209
15067 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15069 2014-05-19 Nick Clifton <nickc@redhat.com>
15071 * except.c (init_eh): Fix computation of builtin setjmp buffer
15072 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15074 2014-05-19 Richard Biener <rguenther@suse.de>
15076 PR tree-optimization/61184
15077 * tree-vrp.c (is_negative_overflow_infinity): Use
15078 TREE_OVERFLOW_P and do that check first.
15079 (is_positive_overflow_infinity): Likewise.
15080 (is_overflow_infinity): Likewise.
15081 (vrp_operand_equal_p): Properly treat operands with
15082 differing overflow as not equal.
15084 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15086 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15087 shift simplification where it was intended.
15089 2014-05-19 Christian Bruel <christian.bruel@st.com>
15092 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15094 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15097 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15100 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15102 * reg-notes.def (CROSSING_JUMP): Likewise.
15103 * rtl.h (rtx_def): Update comment for jump flag.
15104 (CROSSING_JUMP_P): Define.
15105 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15106 of a REG_CROSSING_JUMP note.
15107 * cfghooks.c (tidy_fallthru_edges): Likewise.
15108 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15109 * emit-rtl.c (try_split): Likewise.
15110 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15111 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15112 * jump.c (redirect_jump_2): Likewise.
15113 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15114 (relax_delay_slots): Likewise.
15115 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15116 (bbit_di): Likewise.
15117 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15118 * config/sh/sh.md (jump_compact): Likewise.
15119 * bb-reorder.c (rotate_loop): Likewise.
15120 (pass_duplicate_computed_gotos::execute): Likewise.
15121 (add_reg_crossing_jump_notes): Rename to...
15122 (update_crossing_jump_flags): ...this.
15123 (pass_partition_blocks::execute): Update accordingly.
15125 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15127 * tree.h: Remove extraneous template <>.
15129 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15131 * ipa.c (symtab_remove_unreachable_nodes): Remove
15132 symbol from comdat group if its body was eliminated.
15133 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15134 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15135 (symtab_unregister_node): ... this one.
15136 (verify_symtab_base): More strict checking of comdats.
15137 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15139 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15141 * tree-pass.h (make_pass_ipa_comdats): New pass.
15142 * timevar.def (TV_IPA_COMDATS): New timevar.
15143 * passes.def (pass_ipa_comdats): Add.
15144 * Makefile.in (OBJS): Add ipa-comdats.o
15145 * ipa-comdats.c: New file.
15147 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15149 * ipa.c (update_visibility_by_resolution_info): New function.
15150 (function_and_variable_visibility): Use it.
15152 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15154 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15156 (FOR_EACH_DEFINED_SYMBOL): New macro.
15157 (varpool_first_static_initializer, varpool_next_static_initializer,
15158 varpool_first_defined_variable, varpool_next_defined_variable):
15160 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15162 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15164 * ggc-page.c (ggc_handle_finalizers): Add comment.
15166 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15168 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15169 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15170 (ggc_internal_cleared_alloc): Likewise.
15171 * ggc-page.c (finalizer): New class.
15172 (vec_finalizer): Likewise.
15173 (globals::finalizers): New member.
15174 (globals::vec_finalizers): Likewise.
15175 (ggc_internal_alloc): Record the finalizer if any for the block being
15177 (ggc_handle_finalizers): New function.
15178 (ggc_collect): Call ggc_handle_finalizers.
15179 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15181 (ggc_internal_cleared_alloc): Likewise.
15182 (finalize): New function.
15183 (need_finalization_p): Likewise.
15184 (ggc_alloc): Install the type's destructor as the finalizer if it
15185 might do something.
15186 (ggc_cleared_alloc): Likewise.
15187 (ggc_vec_alloc): Likewise.
15188 (ggc_cleared_vec_alloc): Likewise.
15190 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15192 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15194 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15196 * alias.c (record_alias_subset): Adjust.
15197 * bitmap.c (bitmap_element_allocate): Likewise.
15198 (bitmap_gc_alloc_stat): Likewise.
15199 * cfg.c (init_flow): Likewise.
15200 (alloc_block): Likewise.
15201 (unchecked_make_edge): Likewise.
15202 * cfgloop.c (alloc_loop): Likewise.
15203 (flow_loops_find): Likewise.
15204 (rescan_loop_exit): Likewise.
15205 * cfgrtl.c (init_rtl_bb_info): Likewise.
15206 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15207 (cgraph_allocate_node): Likewise.
15208 (cgraph_create_edge_1): Likewise.
15209 (cgraph_allocate_init_indirect_info): Likewise.
15210 * cgraphclones.c (cgraph_clone_edge): Likewise.
15211 * cgraphunit.c (add_asm_node): Likewise.
15212 (init_lowered_empty_function): Likewise.
15213 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15214 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15215 (alpha_use_linkage): Likewise.
15216 * config/arc/arc.c (arc_init_machine_status): Likewise.
15217 * config/arm/arm.c (arm_init_machine_status): Likewise.
15218 * config/avr/avr.c (avr_init_machine_status): Likewise.
15219 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15220 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15221 * config/cris/cris.c (cris_init_machine_status): Likewise.
15222 * config/darwin.c (machopic_indirection_name): Likewise.
15223 (darwin_build_constant_cfstring): Likewise.
15224 (darwin_enter_string_into_cfstring_table): Likewise.
15225 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15226 * config/frv/frv.c (frv_init_machine_status): Likewise.
15227 * config/i386/i386.c (get_dllimport_decl): Likewise.
15228 (ix86_init_machine_status): Likewise.
15229 (assign_386_stack_local): Likewise.
15230 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15231 (i386_pe_maybe_record_exported_symbol): Likewise.
15232 (i386_pe_record_stub): Likewise.
15233 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15234 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15235 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15236 (m32c_note_pragma_address): Likewise.
15237 * config/mep/mep.c (mep_init_machine_status): Likewise.
15238 (mep_note_pragma_flag): Likewise.
15239 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15240 (mips16_local_alias): Likewise.
15241 (mips_init_machine_status): Likewise.
15242 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15243 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15244 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15245 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15246 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15247 * config/pa/pa.c (pa_init_machine_status): Likewise.
15248 (pa_get_deferred_plabel): Likewise.
15249 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15250 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15251 (rs6000_init_machine_status): Likewise.
15252 (output_toc): Likewise.
15253 * config/s390/s390.c (s390_init_machine_status): Likewise.
15254 * config/score/score.c (score_output_external): Likewise.
15255 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15256 * config/spu/spu.c (spu_init_machine_status): Likewise.
15257 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15258 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15259 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15260 * coverage.c (coverage_end_function): Likewise.
15261 * dbxout.c (dbxout_init): Likewise.
15262 * doc/gty.texi: Don't mention variable_size attribute.
15263 * dwarf2cfi.c (new_cfi): Adjust.
15264 (new_cfi_row): Likewise.
15265 (copy_cfi_row): Likewise.
15266 (create_cie_data): Likewise.
15267 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15268 (new_loc_descr): Likewise.
15269 (find_AT_string_in_table): Likewise.
15270 (add_addr_table_entry): Likewise.
15271 (new_die): Likewise.
15272 (add_var_loc_to_decl): Likewise.
15273 (clone_die): Likewise.
15274 (clone_as_declaration): Likewise.
15275 (break_out_comdat_types): Likewise.
15276 (new_loc_list): Likewise.
15277 (add_loc_descr_to_each): Likewise.
15278 (add_location_or_const_value_attribute): Likewise.
15279 (add_linkage_name): Likewise.
15280 (lookup_filename): Likewise.
15281 (dwarf2out_var_location): Likewise.
15282 (new_line_info_table): Likewise.
15283 (dwarf2out_init): Likewise.
15284 (mem_loc_descriptor): Likewise.
15285 (loc_descriptor): Likewise.
15286 (add_const_value_attribute): Likewise.
15287 (tree_add_const_value_attribute): Likewise.
15288 (comp_dir_string): Likewise.
15289 (dwarf2out_vms_debug_main_pointer): Likewise.
15290 (string_cst_pool_decl): Likewise.
15291 * emit-rtl.c (set_mem_attrs): Likewise.
15292 (get_reg_attrs): Likewise.
15293 (start_sequence): Likewise.
15294 (init_emit): Likewise.
15295 (init_emit_regs): Likewise.
15296 * except.c (init_eh_for_function): Likewise.
15297 (gen_eh_region): Likewise.
15298 (gen_eh_region_catch): Likewise.
15299 (gen_eh_landing_pad): Likewise.
15300 (add_call_site): Likewise.
15301 * function.c (add_frame_space): Likewise.
15302 (insert_temp_slot_address): Likewise.
15303 (assign_stack_temp_for_type): Likewise.
15304 (get_hard_reg_initial_val): Likewise.
15305 (allocate_struct_function): Likewise.
15306 (prepare_function_start): Likewise.
15307 (types_used_by_var_decl_insert): Likewise.
15308 * gengtype.c (variable_size_p): Remove function.
15309 (enum alloc_quantity): Remove enum.
15310 (write_typed_alloc_def): Remove function.
15311 (write_typed_struct_alloc_def): Likewise.
15312 (write_typed_typedef_alloc_def): Likewise.
15313 (write_typed_alloc_defns): Likewise.
15315 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15316 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15317 * ggc.h (ggc_alloc): new function.
15318 (ggc_cleared_alloc): Likewise.
15319 (ggc_vec_alloc): Template on type of vector element, and remove
15320 element size argument.
15321 (ggc_cleared_vec_alloc): Likewise.
15322 * gimple.c (gimple_build_omp_for): Adjust.
15323 (gimple_copy): Likewise.
15324 * ipa-cp.c (get_replacement_map): Likewise.
15325 (find_aggregate_values_for_callers_subset): Likewise.
15326 (known_aggs_to_agg_replacement_list): Likewise.
15327 * ipa-devirt.c (get_odr_type): Likewise.
15328 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15329 (read_agg_replacement_chain): Likewise.
15330 * loop-iv.c (get_simple_loop_desc): Likewise.
15331 * lto-cgraph.c (input_node_opt_summary): Likewise.
15332 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15333 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15334 (input_eh_region): Likewise.
15335 (input_eh_lp): Likewise.
15336 (input_cfg): Likewise.
15337 * optabs.c (set_optab_libfunc): Likewise.
15338 (init_tree_optimization_optabs): Likewise.
15339 (set_conv_libfunc): Likewise.
15340 * passes.c (do_per_function_toporder): Likewise.
15341 * rtl.h: Don't use variable_size gty attribute.
15342 * sese.c (if_region_set_false_region): Adjust.
15343 * stringpool.c (gt_pch_save_stringpool): Likewise.
15344 * target-globals.c (save_target_globals): Likewise.
15345 * toplev.c (general_init): Likewise.
15346 * trans-mem.c (record_tm_replacement): Likewise.
15347 (split_bb_make_tm_edge): Likewise.
15348 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15349 * tree-data-ref.h (lambda_vector_new): Likewise.
15350 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15351 * tree-iterator.c (tsi_link_before): Likewise.
15352 (tsi_link_after): Likewise.
15353 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15354 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15355 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15356 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15357 * tree-ssa.c (init_tree_ssa): Adjust.
15358 * tree-ssanames.c (set_range_info): Likewise.
15359 (get_ptr_info): Likewise.
15360 (duplicate_ssa_name_ptr_info): Likewise.
15361 (duplicate_ssa_name_range_info): Likewise.
15362 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15363 (unpack_ts_fixed_cst_value_fields): Likewise.
15364 * tree.c (build_fixed): Likewise.
15365 (build_real): Likewise.
15366 (build_string): Likewise.
15367 (decl_priority_info): Likewise.
15368 (decl_debug_expr_insert): Likewise.
15369 (decl_value_expr_insert): Likewise.
15370 (decl_debug_args_insert): Likewise.
15371 (type_hash_add): Likewise.
15372 (build_omp_clause): Likewise.
15373 * ubsan.c (decl_for_type_insert): Likewise.
15374 * varasm.c (get_unnamed_section): Likewise.
15375 (get_noswitch_section): Likewise.
15376 (get_section): Likewise.
15377 (get_block_for_section): Likewise.
15378 (create_block_symbol): Likewise.
15379 (build_constant_desc): Likewise.
15380 (create_constant_pool): Likewise.
15381 (force_const_mem): Likewise.
15382 (record_tm_clone_pair): Likewise.
15383 * varpool.c (varpool_create_empty_node): Likewise.
15385 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15387 * dwarf2out.c (tree_add_const_value_attribute): Call
15388 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15389 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15390 instead of ggc_internal_<x>alloc_stat.
15391 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15392 (ggc_realloc): Likewise.
15393 * ggc-none.c (ggc_internal_alloc): Likewise.
15394 (ggc_internal_cleared_alloc): Likewise.
15395 * ggc-page.c: Likewise.
15396 * ggc.h (ggc_internal_alloc_stat): Likewise.
15397 (ggc_internal_alloc): Remove macro.
15398 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15399 (ggc_internal_cleared_alloc): Remove macro.
15400 (GGC_RESIZEVEC): Adjust.
15401 (ggc_resizevar): Remove macro.
15402 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15403 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15404 (ggc_internal_vec_cleared_alloc): Remove macro.
15405 (ggc_alloc_atomic_stat): Drop _stat suffix.
15406 (ggc_alloc_atomic): Remove macro.
15407 (ggc_alloc_cleared_atomic): Remove macro.
15408 (ggc_alloc_string_stat): Drop _stat suffix.
15409 (ggc_alloc_string): Remove macro.
15410 (ggc_alloc_rtx_def_stat): Adjust.
15411 (ggc_alloc_tree_node_stat): Likewise.
15412 (ggc_alloc_cleared_tree_node_stat): Likewise.
15413 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15414 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15415 * gimple.c (gimple_build_omp_for): Likewise.
15416 (gimple_copy): Likewise.
15417 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15418 * toplev.c (realloc_for_line_map): Adjust.
15419 * tree-data-ref.h (lambda_vector_new): Likewise.
15420 * tree-phinodes.c (allocate_phi_node): Likewise.
15421 * tree.c (grow_tree_vec_stat): Likewise.
15422 * vec.h (va_gc::reserve): Adjust.
15424 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15426 * config/microblaze/microblaze.c (break_handler): New Declaration.
15427 (microblaze_break_function_p,microblaze_is_break_handler): New.
15428 (compute_frame_size): Use microblaze_break_function_p.
15429 Add the test of break_handler.
15430 (microblaze_function_prologue) : Add the test of variable
15431 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15432 (microblaze_function_epilogue) : Add the test of break_handler.
15433 (microblaze_globalize_label) : Add the test of break_handler.
15434 Check the name by BREAK_HANDLER_NAME.
15436 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15438 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15439 microblaze_is_break_handler test.
15440 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15441 Use SYMBOL_REF_DECL.
15443 * config/microblaze/microblaze-protos.h
15444 (microblaze_break_function_p,microblaze_is_break_handler):
15447 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15448 new MicroBlaze break_handler functions.
15450 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15452 * doc/extend.texi (Size of an asm): Move node text according
15453 to its @menu entry position.
15455 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15457 PR tree-optimization/61140
15458 PR tree-optimization/61150
15459 PR tree-optimization/61197
15460 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15462 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15464 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15466 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15468 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15469 __SIZEOF_INT128__ is defined.
15471 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15473 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15474 (rs6000_delegitimize_address): Use it.
15476 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15478 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15479 inplace argument. Store the new address in the original MEM when true.
15480 * emit-rtl.c (change_address_1): Likewise.
15481 (adjust_address_1, adjust_automodify_address_1, offset_address):
15482 Update accordingly.
15483 * rtl.h (plus_constant): Add an inplace argument.
15484 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15485 when true. Avoid generating (plus X (const_int 0)).
15486 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15487 in-place. Pass true to plus_constant.
15488 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15490 2014-05-16 Dehao Chen <dehao@google.com>
15492 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15494 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15497 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15499 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15501 2014-05-16 Dehao Chen <dehao@google.com>
15503 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15504 optimize_function_for_size_p.
15505 * regs.h (REG_FREQ_FROM_BB): Likewise.
15507 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15510 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15511 negt_reg_operand cases.
15512 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15514 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15516 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15518 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15521 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15524 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15526 * tree-cfg.c (dump_function_to_file): Dump the return type of
15527 functions, in a line to itself before the function body, mimicking
15528 the layout of a C function.
15530 2014-05-16 Dehao Chen <dehao@google.com>
15532 * cfghooks.c (make_forwarder_block): Use direct computation to
15533 get fall-through edge's count and frequency.
15535 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15537 * config/arc/arc.c (arc_init): Fix typo in error message.
15538 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15539 (split_stack_prologue_scratch_regno): Likewise.
15540 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15541 word from error message.
15543 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15545 * ira-costs.c: Fix typo in comment.
15547 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15549 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15551 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
15553 * varpool.c (dump_varpool_node): Dump write-only flag.
15554 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15556 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15557 write-only variables.
15558 * ipa.c (process_references): New function.
15559 (set_readonly_bit): New function.
15560 (set_writeonly_bit): New function.
15561 (clear_addressable_bit): New function.
15562 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15563 fix handling of aliases.
15564 * cgraph.h (struct varpool_node): Add writeonly flag.
15566 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
15568 PR rtl-optimization/60969
15569 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15570 Calculate costs for this case.
15572 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
15574 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
15575 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
15577 2014-05-16 Richard Biener <rguenther@suse.de>
15579 PR tree-optimization/61194
15580 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
15581 bool patterns ending in a COND_EXPR.
15583 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15585 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
15587 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15589 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
15590 where we were unable to cost an RTX.
15592 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15594 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
15597 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15598 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15600 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
15602 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15603 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15605 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
15606 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
15608 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15609 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15611 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
15614 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15615 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15617 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15620 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15621 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15623 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
15624 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
15626 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15627 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15629 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15630 rotates and shifts.
15632 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15633 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15635 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
15636 ZERO_EXTEND and SIGN_EXTEND better.
15638 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15639 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15641 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
15642 logical operations.
15644 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15645 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15647 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
15648 costs when costing loads and stores to memory.
15650 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15651 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
15653 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
15656 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15658 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
15660 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15661 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15663 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
15665 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
15667 (aarch64_rtx_mult_cost): New.
15668 (aarch64_rtx_costs): Use it, refactor as appropriate.
15670 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15671 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15673 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
15674 emit instructions, return number of instructions which would
15676 (aarch64_add_constant): Update call to aarch64_build_constant.
15677 (aarch64_output_mi_thunk): Likewise.
15678 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
15681 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15683 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
15684 (TARGET_RTX_COSTS): Call it.
15686 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15688 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
15689 (cortexa57_vector_cost): Likewise.
15690 (cortexa57_tunings): Use them.
15692 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15694 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
15695 (cpu_addrcost_table): Use it.
15696 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
15697 (aarch64_address_cost): Rewrite using aarch64_classify_address,
15700 2014-05-16 Richard Biener <rguenther@suse.de>
15702 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
15703 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
15704 (visit_phi): Ignore edges marked as not executable.
15705 (class cond_dom_walker): New.
15706 (cond_dom_walker::before_dom_children): Value-number
15707 control statements and mark successor edges as not
15708 executable if possible.
15709 (run_scc_vn): First walk all control statements in
15710 dominator order, marking edges as not executable.
15711 * tree-inline.c (copy_edges_for_bb): Be not confused
15712 about random edge flags.
15714 2014-05-16 Richard Biener <rguenther@suse.de>
15716 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
15718 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
15721 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
15722 (__TM_simple_begin): Use it.
15723 (__TM_begin): Likewise.
15725 2014-05-15 Martin Jambor <mjambor@suse.cz>
15728 * ipa-prop.c (update_indirect_edges_after_inlining): Check
15729 type_preserved flag when the indirect edge is polymorphic.
15731 2014-05-15 Martin Jambor <mjambor@suse.cz>
15733 PR tree-optimization/61090
15734 * tree-sra.c (sra_modify_expr): Pass the current gsi to
15735 build_ref_for_model.
15737 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15739 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
15740 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
15742 2014-05-15 Jakub Jelinek <jakub@redhat.com>
15744 PR tree-optimization/61158
15745 * fold-const.c (fold_binary_loc): If X is zero-extended and
15746 shiftc >= prec, make sure zerobits is all ones instead of
15747 invoking undefined behavior.
15749 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15751 * regcprop.h: New file.
15752 * regcprop.c (skip_debug_insn_p): New decl.
15753 (replace_oldest_value_reg): Check skip_debug_insn_p.
15754 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
15755 * shrink-wrap.c: Include regcprop.h.
15756 (prepare_shrink_wrap): Call
15757 copyprop_hardreg_forward_bb_without_debug_insn.
15759 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15761 * shrink-wrap.h: Update comment.
15762 * shrink-wrap.c: Update comment.
15763 (next_block_for_reg): Rename to live_edge_for_reg.
15764 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
15765 (move_insn_for_shrink_wrap): Split live_edge.
15766 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
15768 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15770 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
15772 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
15773 * config/sparc/sparc.md (fptype_ut699): New attribute.
15774 (in_branch_delay): Return false if -mfix-ut699 is specified and
15775 fptype_ut699 is set to single.
15776 (truncdfsf2): Add fptype_ut699 attribute.
15777 (fix_truncdfsi2): Likewise.
15778 (floatsisf2): Change fptype attribute.
15779 (fix_truncsfsi2): Likewise.
15780 (negtf2_notv9): Delete.
15781 (negtf2_v9): Likewise.
15782 (negtf2_hq): New instruction.
15783 (negtf2): New instruction and splitter.
15784 (negdf2_notv9): Rewrite.
15785 (abstf2_notv9): Delete.
15786 (abstf2_hq_v9): Likewise.
15787 (abstf2_v9): Likewise.
15788 (abstf2_hq): New instruction.
15789 (abstf2): New instruction and splitter.
15790 (absdf2_notv9): Rewrite.
15792 2014-05-14 Cary Coutant <ccoutant@google.com>
15795 * opts.c (common_handle_option): Don't special-case "-g".
15796 (set_debug_level): Default to at least level 2 with "-g".
15798 2014-05-14 DJ Delorie <dj@redhat.com>
15800 * config/msp430/msp430.c (msp430_builtin): Add
15801 MSP430_BUILTIN_DELAY_CYCLES.
15802 (msp430_init_builtins): Register void __delay_cycles(long long).
15803 (msp430_builtin_decl): Add it.
15804 (cg_magic_constant): New.
15805 (msp430_expand_delay_cycles): New.
15806 (msp430_expand_builtin): Call it.
15807 (msp430_print_operand_raw): Change integer printing from "int" to
15809 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
15810 (delay_cycles_start): New.
15811 (delay_cycles_end): New.
15812 (delay_cycles_32): New.
15813 (delay_cycles_32x): New.
15814 (delay_cycles_16): New.
15815 (delay_cycles_16x): New.
15816 (delay_cycles_2): New.
15817 (delay_cycles_1): New.
15818 * doc/extend.texi: Document __delay_cycles().
15820 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
15822 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
15823 length attribute computation.
15825 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
15828 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
15830 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
15833 * config/sparc/sparc.md: Fix types of low and high in DI constant
15834 splitter. Use gen_int_mode in some other splitters.
15836 2014-05-14 Martin Jambor <mjambor@suse.cz>
15839 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
15841 2014-05-14 James Norris <jnorris@codesourcery.com>
15843 * omp-low.c (expand_parallel_call): Remove shadow variable.
15844 (expand_omp_taskreg): Likewise.
15846 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
15848 * common/config/i386/i386-common.c
15849 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
15850 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
15851 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
15852 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
15853 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
15854 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
15855 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
15856 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
15857 xsavecintrin.h, xsavesintrin.h.
15858 (x86_64-*-*): Ditto.
15859 * config/i386/clflushoptintrin.h: New.
15860 * config/i386/xsavecintrin.h: Ditto.
15861 * config/i386/xsavesintrin.h: Ditto.
15862 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
15863 (bit_XSAVES): Ditto.
15864 (bit_XSAVES): Ditto.
15865 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
15866 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
15868 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15869 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
15870 OPTION_MASK_ISA_XSAVES.
15871 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
15872 -mxsavec, -mxsaves.
15873 (PTA_CLFLUSHOPT) Define.
15874 (PTA_XSAVEC): Ditto.
15875 (PTA_XSAVES): Ditto.
15876 (ix86_option_override_internal): Handle new options.
15877 (ix86_valid_target_attribute_inner_p): Ditto.
15878 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
15879 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
15880 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
15881 (bdesc_special_args): Add __builtin_ia32_xsaves,
15882 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
15883 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
15884 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
15885 (ix86_expand_builtin): Handle new builtins.
15886 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
15887 (TARGET_CLFLUSHOPT_P): Ditto.
15888 (TARGET_XSAVEC): Ditto.
15889 (TARGET_XSAVEC_P): Ditto.
15890 (TARGET_XSAVES): Ditto.
15891 (TARGET_XSAVES_P): Ditto.
15892 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
15893 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
15894 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
15896 (ANY_XRSTOR64): Ditto.
15898 (xrstor): Change into <xrstor>.
15899 (xrstor_rex64): Change into <xrstor>_rex64.
15900 (xrstor64): Change into <xrstor>64
15902 * config/i386/i386.opt (mclflushopt): New.
15905 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
15907 * doc/invoke.texi: Document new options.
15909 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
15911 PR rtl-optimization/60866
15912 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
15913 Default it to -1. Pass it down to init_simplejump_data.
15914 (init_simplejump_data): New parameter old_seqno. Pass it down
15915 to get_seqno_for_a_jump.
15916 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
15917 initializing new jump seqno as a last resort. Add comment.
15918 (sel_redirect_edge_and_branch): Save old seqno of the conditional
15919 jump and pass it down to sel_init_new_insn.
15920 (sel_redirect_edge_and_branch_force): Likewise.
15922 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
15924 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
15925 shifted values to avoid build warning.
15927 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15929 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
15930 * cfgrtl.c (rtl_merge_blocks): Fix comment.
15931 (cfg_layout_merge_blocks): Likewise.
15932 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
15934 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
15936 PR rtl-optimization/60901
15937 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
15938 bb predecessor belongs to the same scheduling region. Adjust comment.
15940 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
15942 * doc/sourcebuild.texi: (dfp_hw): Document.
15943 (p8vector_hw): Likewise.
15944 (powerpc_eabi_ok): Likewise.
15945 (powerpc_elfv2): Likewise.
15946 (powerpc_htm_ok): Likewise.
15947 (ppc_recip_hw): Likewise.
15948 (vsx_hw): Likewise.
15950 2014-05-13 Cary Coutant <ccoutant@google.com>
15952 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
15954 2014-05-13 David Malcolm <dmalcolm@redhat.com>
15956 * gengtype-parse.c (require3): Eliminate in favor of...
15958 (require_template_declaration): Update to support optional single *
15961 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
15962 (create_user_defined_type): Handle a single level of explicit
15963 pointerness within template arguments.
15964 (struct write_types_data): Add field "kind".
15965 (filter_type_name): Handle "*" character.
15966 (write_user_func_for_structure_ptr): Require a write_types_data
15967 rather than just a prefix string, so that we can look up the kind
15968 of the wtd and use it as an index into wrote_user_func_for_ptr,
15969 ensuring that such functions are written at most once. Support
15970 subclasses by invoking the marking function of the ultimate base class.
15971 (write_user_func_for_structure_body): Require a write_types_data
15972 rather than just a prefix string, so that we can pass this to
15973 write_user_func_for_structure_ptr.
15974 (write_func_for_structure): Likewise.
15975 (ggc_wtd): Add initializer of new "kind" field.
15976 (pch_wtd): Likewise.
15978 * gengtype.h (enum write_types_kinds): New.
15979 (struct type): Add field wrote_user_func_for_ptr to the "s"
15982 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
15984 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
15985 instead of const_binop.
15986 (fold_binary_loc): Likewise.
15988 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
15990 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
15991 calculation to match get_ref_base_and_extent.
15993 2014-05-13 Catherine Moore <clm@codesourcery.com>
15994 Sandra Loosemore <sandra@codesourcery.com>
15996 * configure.ac: Fix assembly for explicit JALR relocation check.
15997 * configure: Regenerate.
15999 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16001 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16002 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16003 Remove associated type declarations and initialisations.
16004 (arm_expand_neon_builtin): Likewise.
16005 (neon_emit_pair_result_insn): Delete.
16006 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16007 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16008 (neon_vzip<mode>): Likewise.
16009 (neon_vuzp<mode>): Likewise.
16011 2014-05-13 Richard Biener <rguenther@suse.de>
16014 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16015 it needs revisiting whether the call still may be tail-called.
16017 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16019 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16020 * rtl.h (block_symbol): Reduce number of fields to 2.
16021 (rtx_def): Add u2.symbol_ref_flags.
16022 (SYMBOL_REF_FLAGS): Use it.
16023 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16024 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16025 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16026 Lower index of SYMBOL_REF_DATA.
16027 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16028 Print SYMBOL_REF_FLAGS at the same time.
16029 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16031 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16033 * rtl.def (VAR_LOCATION): Remove "i" field.
16034 * rtl.h (rtx_def): Add u2.var_location_status.
16035 (PAT_VAR_LOCATION_STATUS): Use it.
16036 (gen_rtx_VAR_LOCATION): Declare.
16037 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16038 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16039 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16041 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16043 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16044 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16046 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16048 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16049 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16050 * rtl.h (rtx_def): Add insn_uid to u2 field.
16051 (RTX_FLAG_CHECK8): Delete in favor of...
16052 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16053 (INSN_DELETED_P): Update accordingly.
16054 (INSN_UID): Use u2.insn_uid.
16055 (INSN_CHAIN_CODE_P): Define.
16056 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16057 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16058 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16059 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16060 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16061 indices accordingly.
16062 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16063 Update indices for insn-chain rtxes.
16064 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16065 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16066 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16067 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16068 * combine.c (try_combine): Likewise.
16069 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16071 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16073 * rtl.def (REG): Remove middle field.
16074 * rtl.h (rtx_def): Add orignal_regno to u2.
16075 (ORIGINAL_REGNO): Use it instead of field 1.
16076 (REG_ATTRS): Lower field index accordingly.
16077 * gengtype.c (adjust_field_rtx_def): Remove handling of
16078 ORIGINAL_REGNO. Move REG_ATTRS index down.
16079 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16080 code that prints the REGNO.
16082 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16084 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16087 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16089 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16091 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16093 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16094 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16096 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16098 * config/aarch64/aarch64-protos.h
16099 (aarch64_hard_regno_caller_save_mode): New prototype.
16100 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16102 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16104 2014-05-13 Christian Bruel <christian.bruel@st.com>
16106 * target.def (mode_switching): New hook vector.
16107 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16108 (mode_exit, modepriority_to_mode): Likewise.
16109 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16110 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16111 * target.h: Include tm.h and hard-reg-set.h.
16112 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16113 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16114 * doc/tm.texi Regenerate.
16115 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16116 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16117 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16118 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16119 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16120 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16121 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16122 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16123 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16124 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16125 (ix86_emit_mode_set): Hookify.
16126 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16128 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16129 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16130 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16131 (epiphany_mode_priority_to_mode): Remove declaration.
16132 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16133 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16134 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16136 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16137 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16138 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16140 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16143 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16144 is const0_rtx, return immediately. Don't test count == 0 when
16147 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16149 * Makefile.in: add shrink-wrap.o.
16150 * config/i386/i386.c: include "shrink-wrap.h"
16151 * function.c: Likewise.
16152 (requires_stack_frame_p, next_block_for_reg,
16153 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16154 dup_block_and_redirect): Move to shrink-wrap.c
16155 (thread_prologue_and_epilogue_insns): Extract three code segments
16156 as functions in shrink-wrap.c
16157 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16159 * shrink-wrap.c: New file.
16160 * shrink-wrap.h: New file.
16162 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16164 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16165 reference to Solaris.
16167 2014-05-12 Mike Stump <mikestump@comcast.net>
16170 * genattrtab.c (filename): Add.
16171 (convert_set_attr_alternative): Improve error message.
16172 (check_defs): Restore read_md_filename for error messages.
16173 (gen_insn): Save filename.
16175 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16177 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16178 -fno-local-ivars and -fivar-visibility.
16179 * c-family/c.opt: Make -Wshadow also implicitly enable
16182 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16184 * doc/tm.texi: Remove reference to deleted macro.
16185 * doc/tm.texi.in: Likewise.
16187 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16190 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16193 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16196 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16197 * config/arm/aout.h (License): Same.
16198 * config/arm/bpabi.h (License): Same.
16199 * config/arm/elf.h (License): Same.
16200 * config/arm/linux-elf.h (License): Same.
16201 * config/arm/linux-gas.h (License): Same.
16202 * config/arm/netbsd-elf.h (License): Same.
16203 * config/arm/uclinux-eabi.h (License): Same.
16204 * config/arm/uclinux-elf.h (License): Same.
16205 * config/arm/vxworks.h (License): Same.
16207 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16209 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16210 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16211 number of operands to 3.
16212 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16213 * tree-nested.c (convert_nonlocal_omp_clauses,
16214 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16215 * gimplify.c (gimplify_scan_omp_clauses): Handle
16216 OMP_CLAUSE_LINEAR_STMT.
16217 * omp-low.c (lower_rec_input_clauses): Fix typo.
16218 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16219 cast between Fortran boolean_type_node and C _Bool if
16222 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16224 PR tree-optimization/61136
16225 * wide-int.h (multiple_of_p): Define a version that doesn't return
16227 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16228 integer_zerop/const_binop pair.
16229 (multiple_of_p): Likewise, converting both operands to widest_int
16232 2014-05-09 Teresa Johnson <tejohnson@google.com>
16234 * cgraphunit.c (analyze_functions): Use correct dump file.
16236 2014-05-09 Florian Weimer <fweimer@redhat.com>
16238 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16240 (stack_protect_return_slot_p): New function.
16241 (expand_used_vars): Call stack_protect_decl_p and
16242 stack_protect_return_slot_p for -fstack-protector-strong.
16244 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16245 Andrew Haley <aph@redhat.com>
16246 Richard Sandiford <rdsandiford@googlemail.com>
16248 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16251 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16253 PR middle-end/61111
16254 * fold-const.c (fold_binary_loc): Changed width of mask.
16256 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16258 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16259 unsigned int initializers for regno_in, regno_out.
16261 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16264 * config/avr/avr.md (cc): Add new attribute set_vzn.
16265 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16266 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16267 with INC, DEC or NEG.
16268 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16269 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16270 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16272 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16275 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16277 * wide-int.cc (UTItype): Define.
16278 (UDWtype): Define for appropriate W_TYPE_SIZE.
16280 2014-05-09 Richard Biener <rguenther@suse.de>
16282 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16283 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16284 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16285 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16286 ssa_propagate): Adjust.
16288 2014-05-08 Jeff Law <law@redhat.com>
16290 PR tree-optimization/61009
16291 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16292 tri-state rather than a boolean. When a block is too big to
16293 thread through, inform caller via negative return value.
16294 (thread_across_edge): If a block was too big for normal threading,
16295 then it's too big for a joiner too, so remove temporary equivalences
16296 and return immediately.
16298 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16299 Matthias Klose <doko@ubuntu.com>
16302 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16304 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16307 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16309 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16312 * config/alpha/alpha.c: Include gimple-iterator.h.
16313 (alpha_gimple_fold_builtin): New function. Move
16314 ALPHA_BUILTIN_UMULH folding from ...
16315 (alpha_fold_builtin): ... here.
16316 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16318 2014-05-08 Wei Mi <wmi@google.com>
16321 * config/i386/i386.c (ix86_compute_frame_layout): Update
16322 preferred_stack_boundary for call, expanded from tls descriptor.
16323 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16324 to depend on SP register.
16325 (*tls_local_dynamic_base_32_gnu): Ditto.
16326 (*tls_local_dynamic_32_once): Ditto.
16327 (tls_global_dynamic_64_<mode>): Set
16328 ix86_tls_descriptor_calls_expanded_in_cfun.
16329 (tls_local_dynamic_base_64_<mode>): Ditto.
16330 (tls_global_dynamic_32): Set
16331 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16332 to depend on SP register.
16333 (tls_local_dynamic_base_32): Ditto.
16335 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16337 * config/arm/arm_neon.h: Update comment.
16338 * config/arm/neon-docgen.ml: Delete.
16339 * config/arm/neon-gen.ml: Delete.
16340 * doc/arm-neon-intrinsics.texi: Update comment.
16342 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16344 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16346 (vand, vorr, veor, vorn, vbic): Remove.
16347 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16349 (neon_vsub_unspec): Likewise.
16350 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16352 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16354 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16355 (vadd_s16): Likewise.
16356 (vadd_s32): Likewise.
16357 (vadd_f32): Likewise.
16358 (vadd_u8): Likewise.
16359 (vadd_u16): Likewise.
16360 (vadd_u32): Likewise.
16361 (vadd_s64): Likewise.
16362 (vadd_u64): Likewise.
16363 (vaddq_s8): Likewise.
16364 (vaddq_s16): Likewise.
16365 (vaddq_s32): Likewise.
16366 (vaddq_s64): Likewise.
16367 (vaddq_f32): Likewise.
16368 (vaddq_u8): Likewise.
16369 (vaddq_u16): Likewise.
16370 (vaddq_u32): Likewise.
16371 (vaddq_u64): Likewise.
16372 (vmul_s8): Likewise.
16373 (vmul_s16): Likewise.
16374 (vmul_s32): Likewise.
16375 (vmul_f32): Likewise.
16376 (vmul_u8): Likewise.
16377 (vmul_u16): Likewise.
16378 (vmul_u32): Likewise.
16379 (vmul_p8): Likewise.
16380 (vmulq_s8): Likewise.
16381 (vmulq_s16): Likewise.
16382 (vmulq_s32): Likewise.
16383 (vmulq_f32): Likewise.
16384 (vmulq_u8): Likewise.
16385 (vmulq_u16): Likewise.
16386 (vmulq_u32): Likewise.
16387 (vsub_s8): Likewise.
16388 (vsub_s16): Likewise.
16389 (vsub_s32): Likewise.
16390 (vsub_f32): Likewise.
16391 (vsub_u8): Likewise.
16392 (vsub_u16): Likewise.
16393 (vsub_u32): Likewise.
16394 (vsub_s64): Likewise.
16395 (vsub_u64): Likewise.
16396 (vsubq_s8): Likewise.
16397 (vsubq_s16): Likewise.
16398 (vsubq_s32): Likewise.
16399 (vsubq_s64): Likewise.
16400 (vsubq_f32): Likewise.
16401 (vsubq_u8): Likewise.
16402 (vsubq_u16): Likewise.
16403 (vsubq_u32): Likewise.
16404 (vsubq_u64): Likewise.
16405 (vand_s8): Likewise.
16406 (vand_s16): Likewise.
16407 (vand_s32): Likewise.
16408 (vand_u8): Likewise.
16409 (vand_u16): Likewise.
16410 (vand_u32): Likewise.
16411 (vand_s64): Likewise.
16412 (vand_u64): Likewise.
16413 (vandq_s8): Likewise.
16414 (vandq_s16): Likewise.
16415 (vandq_s32): Likewise.
16416 (vandq_s64): Likewise.
16417 (vandq_u8): Likewise.
16418 (vandq_u16): Likewise.
16419 (vandq_u32): Likewise.
16420 (vandq_u64): Likewise.
16421 (vorr_s8): Likewise.
16422 (vorr_s16): Likewise.
16423 (vorr_s32): Likewise.
16424 (vorr_u8): Likewise.
16425 (vorr_u16): Likewise.
16426 (vorr_u32): Likewise.
16427 (vorr_s64): Likewise.
16428 (vorr_u64): Likewise.
16429 (vorrq_s8): Likewise.
16430 (vorrq_s16): Likewise.
16431 (vorrq_s32): Likewise.
16432 (vorrq_s64): Likewise.
16433 (vorrq_u8): Likewise.
16434 (vorrq_u16): Likewise.
16435 (vorrq_u32): Likewise.
16436 (vorrq_u64): Likewise.
16437 (veor_s8): Likewise.
16438 (veor_s16): Likewise.
16439 (veor_s32): Likewise.
16440 (veor_u8): Likewise.
16441 (veor_u16): Likewise.
16442 (veor_u32): Likewise.
16443 (veor_s64): Likewise.
16444 (veor_u64): Likewise.
16445 (veorq_s8): Likewise.
16446 (veorq_s16): Likewise.
16447 (veorq_s32): Likewise.
16448 (veorq_s64): Likewise.
16449 (veorq_u8): Likewise.
16450 (veorq_u16): Likewise.
16451 (veorq_u32): Likewise.
16452 (veorq_u64): Likewise.
16453 (vbic_s8): Likewise.
16454 (vbic_s16): Likewise.
16455 (vbic_s32): Likewise.
16456 (vbic_u8): Likewise.
16457 (vbic_u16): Likewise.
16458 (vbic_u32): Likewise.
16459 (vbic_s64): Likewise.
16460 (vbic_u64): Likewise.
16461 (vbicq_s8): Likewise.
16462 (vbicq_s16): Likewise.
16463 (vbicq_s32): Likewise.
16464 (vbicq_s64): Likewise.
16465 (vbicq_u8): Likewise.
16466 (vbicq_u16): Likewise.
16467 (vbicq_u32): Likewise.
16468 (vbicq_u64): Likewise.
16469 (vorn_s8): Likewise.
16470 (vorn_s16): Likewise.
16471 (vorn_s32): Likewise.
16472 (vorn_u8): Likewise.
16473 (vorn_u16): Likewise.
16474 (vorn_u32): Likewise.
16475 (vorn_s64): Likewise.
16476 (vorn_u64): Likewise.
16477 (vornq_s8): Likewise.
16478 (vornq_s16): Likewise.
16479 (vornq_s32): Likewise.
16480 (vornq_s64): Likewise.
16481 (vornq_u8): Likewise.
16482 (vornq_u16): Likewise.
16483 (vornq_u32): Likewise.
16484 (vornq_u64): Likewise.
16486 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16488 * wide-int.cc (UTItype): Define.
16489 (UDWtype): Define for appropriate W_TYPE_SIZE.
16491 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16493 PR tree-optimization/59100
16494 * tree-ssa-phiopt.c: Include tree-inline.h.
16495 (neutral_element_p, absorbing_element_p): New functions.
16496 (value_replacement): Handle conditional binary operations with a
16497 neutral or absorbing element.
16499 2014-05-08 Richard Biener <rguenther@suse.de>
16501 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16502 folding the expression.
16503 (valueize_expr): Remove.
16504 (visit_reference_op_load): Do not valueize the result of
16506 (simplify_binary_expression): Likewise.
16507 (simplify_unary_expression): Likewise.
16509 2014-05-08 Richard Biener <rguenther@suse.de>
16511 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16512 looking at TYPE_ARG_TYPES.
16514 2014-05-08 Richard Biener <rguenther@suse.de>
16516 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16517 pointer propagation special-case.
16519 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16521 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16522 core part of address expressions.
16524 2014-05-08 Alan Modra <amodra@gmail.com>
16527 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16528 loads and stores when -mno-strict-align at any alignment.
16529 (expand_block_clear): Similarly. Also correct calculation of
16532 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16534 PR middle-end/39246
16535 * tree-complex.c (expand_complex_move): Keep line info when expanding
16537 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16538 of complex expression. Use new argument to display correct location
16539 for values coming from phi statement.
16540 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16541 (warn_uninitialized_phi): Pass location of phi argument to
16543 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16544 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16546 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16548 * config/rs6000/predicates.md (indexed_address_mem): New.
16549 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16550 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16551 fpstore_ux, fpstore_u.
16552 (sign_extend, indexed, update): New.
16553 (cell_micro): Adjust.
16554 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16555 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16556 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16557 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16558 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16559 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16560 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16561 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16562 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16563 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16564 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16565 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16566 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16567 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16568 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16570 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16571 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16572 *vsx_extract_<mode>_store): Adjust.
16573 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16574 is_cracked_insn, insn_must_be_first_in_group,
16575 insn_must_be_last_in_group): Adjust.
16577 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
16579 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
16580 ppc440-fpstore): Adjust.
16581 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
16582 ppc476-fpstore): Adjust.
16583 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
16584 ppc601-fpstore): Adjust.
16585 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
16587 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
16589 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
16590 ppc7450-fpstore): Adjust.
16591 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
16592 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
16593 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
16595 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
16596 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
16597 cell-fpstore, cell-fpstore-update): Adjust.
16598 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
16599 ppce300c3_store, ppce300c3_fpstore): Adjust.
16600 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
16601 e500mc_fpstore): Adjust.
16602 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
16603 e500mc64_store, e500mc64_fpstore): Adjust.
16604 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
16605 e5500_fpstore): Adjust.
16606 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
16607 e6500_fpstore): Adjust.
16608 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
16610 * config/rs6000/power4.md (power4-load, power4-load-ext,
16611 power4-load-ext-update, power4-load-ext-update-indexed,
16612 power4-load-update-indexed, power4-load-update, power4-fpload,
16613 power4-fpload-update, power4-store, power4-store-update,
16614 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
16616 * config/rs6000/power5.md (power5-load, power5-load-ext,
16617 power5-load-ext-update, power5-load-ext-update-indexed,
16618 power5-load-update-indexed, power5-load-update, power5-fpload,
16619 power5-fpload-update, power5-store, power5-store-update,
16620 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
16622 * config/rs6000/power6.md (power6-load, power6-load-ext,
16623 power6-load-update, power6-load-update-indexed,
16624 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
16625 power6-fpload-update, power6-store, power6-store-update,
16626 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
16628 * config/rs6000/power7.md (power7-load, power7-load-ext,
16629 power7-load-update, power7-load-update-indexed,
16630 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
16631 power7-fpload-update, power7-store, power7-store-update,
16632 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
16634 * config/rs6000/power8.md (power8-load, power8-load-update,
16635 power8-load-ext, power8-load-ext-update, power8-fpload,
16636 power8-fpload-update, power8-store, power8-store-update-indexed,
16637 power8-fpstore, power8-fpstore-update): Adjust.
16638 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
16640 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
16641 titan_lsu_store, titan_lsu_fpstore): Adjust.
16642 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
16644 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16647 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
16648 unrolled byte insns. Emit address increments after move insns.
16650 2014-05-07 David Malcolm <dmalcolm@redhat.com>
16652 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
16653 const_gimple, rather than a gimple.
16654 (gimple_call_builtin_p): Likewise, for the three variants.
16656 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
16657 (gimple_call_builtin_p): Likewise, for the three variants.
16659 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16661 PR tree-optimization/61095
16662 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
16664 2014-05-07 Richard Biener <rguenther@suse.de>
16666 PR tree-optimization/61034
16667 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
16668 (maybe_skip_until): Use translate to take into account
16669 lattices when trying to do disambiguations.
16670 (get_continuation_for_phi_1): Likewise.
16671 (get_continuation_for_phi): Adjust for added translate arguments.
16672 (walk_non_aliased_vuses): Likewise.
16673 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
16674 (walk_non_aliased_vuses): Likewise.
16675 (call_may_clobber_ref_p_1): Declare.
16676 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
16677 calls. Stop early if we are only supposed to disambiguate.
16678 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
16680 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
16682 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
16683 Emit an error when the function has arguments.
16685 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16687 * cfgloop.h (unswitch_loops): Remove.
16688 * doc/passes.texi: Remove references to loop-unswitch.c
16689 * timevar.def (TV_LOOP_UNSWITCH): Remove.
16691 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
16693 * tree-vect-data-refs.c (vect_grouped_load_supported): New
16694 check for loads group of length 3.
16695 (vect_permute_load_chain): New permutations for loads group of
16697 * tree-vect-stmts.c (vect_model_load_cost): Change cost
16698 of vec_perm_shuffle for the new permutations.
16700 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
16702 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
16703 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
16704 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
16705 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
16706 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
16707 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
16708 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
16709 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
16711 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16713 * loop-unswitch.c: Delete.
16715 2014-05-07 Richard Biener <rguenther@suse.de>
16717 * config.gcc: Always set need_64bit_hwint to yes.
16719 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
16721 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
16722 of using optimize_size.
16724 2014-05-06 Mike Stump <mikestump@comcast.net>
16726 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
16728 2014-05-06 Joseph Myers <joseph@codesourcery.com>
16730 * config/i386/sse.md (*mov<mode>_internal)
16731 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
16732 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
16733 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
16734 (*<code><mode>3, *andnot<mode>3<mask_name>)
16735 (<mask_codefor><code><mode>3<mask_name>): Only consider
16736 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
16738 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16741 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
16743 * lra-constraints.c (valid_address_p): Move earlier in file.
16744 Add a constraint argument to the address_info version.
16745 (satisfies_memory_constraint_p): New function.
16746 (satisfies_address_constraint_p): Likewise.
16747 (process_alt_operands, curr_insn_transform): Use them.
16748 (process_address): Pass the constraint to valid_address_p when
16749 checking address operands.
16751 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
16753 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
16754 to their respective blocks. Fix inadvertent use of "node".
16756 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16758 * emit-rtl.c (init_derived_machine_modes): New functionm, split
16760 (init_emit_once): ...here.
16761 * rtl.h (init_derived_machine_modes): Declare.
16762 * toplev.c (do_compile): Call it even if no_backend.
16764 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
16765 Mike Stump <mikestump@comcast.net>
16766 Richard Sandiford <rdsandiford@googlemail.com>
16767 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16769 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
16770 (rtx_equal_for_memref_p): Update comment.
16771 (adjust_offset_for_component_ref): Use wide-int interfaces.
16772 * builtins.c (get_object_alignment_2): Likewise.
16773 (c_readstr): Likewise.
16774 (target_char_cast): Add comment.
16775 (determine_block_size): Use wide-int interfaces.
16776 (expand_builtin_signbit): Likewise.
16777 (fold_builtin_int_roundingfn): Likewise.
16778 (fold_builtin_bitop): Likewise.
16779 (fold_builtin_bswap): Likewise.
16780 (fold_builtin_logarithm): Use signop.
16781 (fold_builtin_pow): Likewise.
16782 (fold_builtin_memory_op): Use wide-int interfaces.
16783 (fold_builtin_object_size): Likewise.
16784 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
16785 nb_iterations_estimate.
16786 (record_niter_bound): Use wide-int interfaces.
16787 (get_estimated_loop_iterations_int): Likewise.
16788 (get_estimated_loop_iterations): Likewise.
16789 (get_max_loop_iterations): Likewise.
16790 * cfgloop.h: Include wide-int.h.
16791 (struct nb_iter_bound): Change bound to widest_int.
16792 (struct loop): Change nb_iterations_upper_bound and
16793 nb_iterations_estimate to widest_int.
16794 (record_niter_bound): Switch to use widest_int.
16795 (get_estimated_loop_iterations): Likewise.
16796 (get_max_loop_iterations): Likewise.
16797 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
16798 update for wide-int.
16799 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
16800 * combine.c (try_combine): Likewise.
16801 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
16802 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
16804 (aarch64_float_const_representable_p): Likewise.
16805 * config/arc/arc.c: Include wide-int.h.
16806 (arc_can_use_doloop_p): Use wide-int interfaces.
16807 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
16808 (vfp3_const_double_index): Likewise.
16809 * config/avr/avr.c (avr_out_round): Likewise.
16810 (avr_fold_builtin): Likewise.
16811 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
16812 (bfin_can_use_doloop_p): Likewise.
16813 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
16814 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
16815 * config/i386/i386.c: Include wide-int.h.
16816 (ix86_data_alignment): Use wide-int interfaces.
16817 (ix86_local_alignment): Likewise.
16818 (ix86_emit_swsqrtsf): Update real_from_integer.
16819 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
16820 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
16821 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
16822 (zero_constant): Likewise.
16823 (input_operand): Likewise.
16824 (splat_input_operand): Likewise.
16825 (non_logical_cint_operand): Change const_double to const_wide_int.
16826 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
16827 (easy_altivec_constant): Remove comment.
16828 (paired_expand_vector_init): Use CONSTANT_P.
16829 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
16830 (rs6000_emit_move): Update checks.
16831 (rs6000_aggregate_candidate): Use wide-int interfaces.
16832 (rs6000_expand_ternop_builtin): Likewise.
16833 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
16834 (rs6000_assemble_integer): Likewise.
16835 (rs6000_hash_constant): Likewise.
16836 (output_toc): Likewise.
16837 (rs6000_rtx_costs): Likewise.
16838 (rs6000_emit_swrsqrt); Update call to real_from_integer.
16839 * config/rs6000/rs6000-c.c: Include wide-int.h.
16840 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
16841 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
16842 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
16843 Handle CONST_WIDE_INT.
16844 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
16845 Use tree_fits_uhwi_p.
16846 * config/sparc/sparc.c: Include wide-int.h.
16847 (sparc_fold_builtin): Use wide-int interfaces.
16848 * config/vax/vax.c: Include wide-int.h.
16849 (vax_float_literal): Use real_from_integer.
16850 * coretypes.h (struct hwivec_def): New.
16852 (const_hwivec): New.
16853 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
16854 (equiv_constant): Handle CONST_WIDE_INT.
16855 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
16856 (cselib_hash_rtx): Handle CONST_WIDE_INT.
16857 * dbxout.c (stabstr_U): Use wide-int interfaces.
16858 (dbxout_type): Update to use cst_fits_shwi_p.
16859 * defaults.h (LOG2_BITS_PER_UNIT): Define.
16860 (TARGET_SUPPORTS_WIDE_INT): Add default.
16861 * dfp.c: Include wide-int.h.
16862 (decimal_real_to_integer2): Use wide-int interfaces and rename to
16863 decimal_real_to_integer.
16864 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
16865 decimal_real_to_integer.
16866 * doc/generic.texi (Constant expressions): Update for wide_int.
16867 * doc/rtl.texi (const_double): Likewise.
16868 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
16869 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
16870 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
16871 (REAL_VALUE_FROM_INT): Remove.
16872 (TARGET_SUPPORTS_WIDE_INT): New.
16873 * doc/tm.texi: Regenerate.
16874 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
16875 * double-int.h: Include wide-int.h.
16876 (struct wi::int_traits): New.
16877 * dwarf2out.c (get_full_len): New.
16878 (dw_val_equal_p): Add case dw_val_class_wide_int.
16879 (size_of_loc_descr): Likewise.
16880 (output_loc_operands): Likewise.
16881 (insert_double): Remove.
16882 (insert_wide_int): New.
16883 (add_AT_wide): New.
16884 (print_die): Add case dw_val_class_wide_int.
16885 (attr_checksum): Likewise.
16886 (attr_checksum_ordered): Likewise.
16887 (same_dw_val_p): Likewise.
16888 (size_of_die): Likewise.
16889 (value_format): Likewise.
16890 (output_die): Likewise.
16891 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
16893 (clz_loc_descriptor): Use wide-int interfaces.
16894 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
16895 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
16896 (round_up_to_align): Use wide-int interfaces.
16897 (field_byte_offset): Likewise.
16898 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
16899 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
16900 CONST_DOUBLE handling. Use wide-int interfaces.
16901 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
16902 (gen_enumeration_type_die): Use add_AT_wide.
16903 (hash_loc_operands): Add case dw_val_class_wide_int.
16904 (compare_loc_operands): Likewise.
16905 * dwarf2out.h: Include wide-int.h.
16906 (wide_int_ptr): New.
16907 (enum dw_val_class): Add dw_val_class_wide_int.
16908 (struct dw_val_struct): Add val_wide.
16909 * emit-rtl.c (const_wide_int_htab): New.
16910 (const_wide_int_htab_hash): New.
16911 (const_wide_int_htab_eq): New.
16912 (lookup_const_wide_int): New.
16913 (const_double_htab_hash): Use wide-int interfaces.
16914 (const_double_htab_eq): Likewise.
16915 (rtx_to_double_int): Conditionally compile for wide-int.
16916 (immed_double_int_const): Rename to immed_wide_int_const and
16917 update for wide-int.
16918 (immed_double_const): Conditionally compile for wide-int.
16919 (init_emit_once): Use wide-int interfaces.
16920 * explow.c (plus_constant): Likewise.
16921 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
16922 (lshift_value): Use wide-int interfaces.
16923 (expand_mult): Likewise.
16924 (choose_multiplier): Likewise.
16925 (expand_smod_pow2): Likewise.
16926 (make_tree): Likewise.
16927 * expr.c (convert_modes): Consolidate handling of constants.
16928 Use wide-int interfaces.
16929 (emit_group_load_1): Add note.
16930 (store_expr): Update comment.
16931 (get_inner_reference): Use wide-int interfaces.
16932 (expand_constructor): Update comment.
16933 (expand_expr_real_2): Use wide-int interfaces.
16934 (expand_expr_real_1): Likewise.
16935 (reduce_to_bit_field_precision): Likewise.
16936 (const_vector_from_tree): Likewise.
16937 * final.c: Include wide-int-print.h.
16938 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
16939 * fixed-value.c: Include wide-int.h.
16940 (fixed_from_string): Use wide-int interfaces.
16941 (fixed_to_decimal): Likewise.
16942 (fixed_convert_from_real): Likewise.
16943 (real_convert_from_fixed): Likewise.
16944 * fold-const.h (mem_ref_offset): Return an offset_int.
16945 (div_if_zero_remainder): Remove code parameter.
16946 * fold-const.c (div_if_zero_remainder): Remove code parameter.
16947 Use wide-int interfaces.
16948 (may_negate_without_overflow_p): Use wide-int interfaces.
16949 (negate_expr_p): Likewise.
16950 (fold_negate_expr): Likewise.
16951 (int_const_binop_1): Likewise.
16952 (const_binop): Likewise.
16953 (fold_convert_const_int_from_int): Likewise.
16954 (fold_convert_const_int_from_real): Likewise.
16955 (fold_convert_const_int_from_fixed): Likewise.
16956 (fold_convert_const_fixed_from_int): Likewise.
16957 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
16958 (sign_bit_p): Use wide-int interfaces.
16959 (make_range_step): Likewise.
16960 (build_range_check): Likewise. Pass an integer of the correct type
16961 instead of using integer_one_node.
16962 (range_predecessor): Pass an integer of the correct type instead
16963 of using integer_one_node.
16964 (range_successor): Likewise.
16965 (merge_ranges): Likewise.
16966 (unextend): Use wide-int interfaces.
16967 (extract_muldiv_1): Likewise.
16968 (fold_div_compare): Likewise.
16969 (fold_single_bit_test): Likewise.
16970 (fold_sign_changed_comparison): Likewise.
16971 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
16972 (fold_plusminus_mult_expr): Use wide-int interfaces.
16973 (native_encode_int): Likewise.
16974 (native_interpret_int): Likewise.
16975 (fold_unary_loc): Likewise.
16976 (pointer_may_wrap_p): Likewise.
16977 (size_low_cst): Likewise.
16978 (mask_with_tz): Likewise.
16979 (fold_binary_loc): Likewise.
16980 (fold_ternary_loc): Likewise.
16981 (multiple_of_p): Likewise.
16982 (tree_call_nonnegative_warnv_p): Update calls to
16983 tree_int_cst_min_precision and real_from_integer.
16984 (fold_negate_const): Use wide-int interfaces.
16985 (fold_abs_const): Likewise.
16986 (fold_relational_const): Use tree_int_cst_lt.
16987 (round_up_loc): Use wide-int interfaces.
16988 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
16989 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
16990 * gengtype.c: Remove include of double-int.h.
16991 (do_typedef): Use wide-int interfaces.
16992 (open_base_files): Add wide-int.h.
16993 (main): Add offset_int and widest_int typedefs.
16994 * gengtype-lex.l: Handle "^".
16995 (CXX_KEYWORD): Add "static".
16996 * gengtype-parse.c (require3): New.
16997 (require_template_declaration): Handle constant template arguments
16998 and nested templates.
16999 * gengtype-state.c: Don't include "double-int.h".
17000 * genpreds.c (write_one_predicate_function): Update comment.
17001 (write_tm_constrs_h): Add check for hval and lval use in
17003 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17004 (add_to_sequence): Likewise.
17005 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17006 and const_double_operand.
17007 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17009 * gimple-fold.c (get_base_constructor): Likewise.
17010 (fold_array_ctor_reference): Likewise.
17011 (fold_nonarray_ctor_reference): Likewise.
17012 (fold_const_aggregate_ref_1): Likewise.
17013 (gimple_val_nonnegative_real_p): Likewise.
17014 (gimple_fold_indirect_ref): Likewise.
17015 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17016 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17017 (struct slsr_cand_d): Change index to be widest_int.
17018 (struct incr_info_d): Change incr to be widest_int.
17019 (alloc_cand_and_find_basis): Use wide-int interfaces.
17020 (slsr_process_phi): Likewise.
17021 (backtrace_base_for_ref): Likewise. Return a widest_int.
17022 (restructure_reference): Take a widest_int instead of a double_int.
17023 (slsr_process_ref): Use wide-int interfaces.
17024 (create_mul_ssa_cand): Likewise.
17025 (create_mul_imm_cand): Likewise.
17026 (create_add_ssa_cand): Likewise.
17027 (create_add_imm_cand): Take a widest_int instead of a double_int.
17028 (slsr_process_add): Use wide-int interfaces.
17029 (slsr_process_cast): Likewise.
17030 (slsr_process_copy): Likewise.
17031 (dump_candidate): Likewise.
17032 (dump_incr_vec): Likewise.
17033 (replace_ref): Likewise.
17034 (cand_increment): Likewise. Return a widest_int.
17035 (cand_abs_increment): Likewise.
17036 (replace_mult_candidate): Take a widest_int instead of a double_int.
17037 (replace_unconditional_candidate): Use wide-int interfaces.
17038 (incr_vec_index): Take a widest_int instead of a double_int.
17039 (create_add_on_incoming_edge): Likewise.
17040 (create_phi_basis): Use wide-int interfaces.
17041 (replace_conditional_candidate): Likewise.
17042 (record_increment): Take a widest_int instead of a double_int.
17043 (record_phi_increments): Use wide-int interfaces.
17044 (phi_incr_cost): Take a widest_int instead of a double_int.
17045 (lowest_cost_path): Likewise.
17046 (total_savings): Likewise.
17047 (analyze_increments): Use wide-int interfaces.
17048 (ncd_with_phi): Take a widest_int instead of a double_int.
17049 (ncd_of_cand_and_phis): Likewise.
17050 (nearest_common_dominator_for_cands): Likewise.
17051 (insert_initializers): Use wide-int interfaces.
17052 (all_phi_incrs_profitable): Likewise.
17053 (replace_one_candidate): Likewise.
17054 (replace_profitable_candidates): Likewise.
17055 * godump.c: Include wide-int-print.h.
17056 (go_output_typedef): Use wide-int interfaces.
17057 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17058 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17059 (build_loop_iteration_domains): Likewise.
17060 * hooks.h: Include wide-int.h rather than double-int.h.
17061 (hook_bool_dint_dint_uint_bool_true): Delete.
17062 (hook_bool_wint_wint_uint_bool_true): Declare.
17063 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17064 (hook_bool_wint_wint_uint_bool_true): New.
17065 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17067 (ubsan_expand_si_overflow_mul_check): Likewise.
17068 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17069 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17070 (get_ancestor_addr_info): Likewise.
17071 (ipa_modify_call_arguments): Likewise.
17072 * loop-doloop.c (doloop_modify): Likewise.
17073 (doloop_optimize): Likewise.
17074 * loop-iv.c (iv_number_of_iterations): Likewise.
17075 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17076 (unroll_loop_constant_iterations): Likewise.
17077 (decide_unroll_runtime_iterations): Likewise.
17078 (unroll_loop_runtime_iterations): Likewise.
17079 (decide_peel_simple): Likewise.
17080 (decide_unroll_stupid): Likewise.
17081 * lto-streamer-in.c (streamer_read_wi): Add.
17082 (input_cfg): Use wide-int interfaces.
17083 (lto_input_tree_1): Likewise.
17084 * lto-streamer-out.c (streamer_write_wi): Add.
17085 (hash_tree): Use wide-int interfaces.
17086 (output_cfg): Likewise.
17087 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17088 (GTFILES): Add wide-int.h and signop.h.
17089 (TAGS): Look for .cc files too.
17090 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17091 * optabs.c (expand_subword_shift): Likewise.
17092 (expand_doubleword_shift): Likewise.
17093 (expand_absneg_bit): Likewise.
17094 (expand_copysign_absneg): Likewise.
17095 (expand_copysign_bit): Likewise.
17096 * postreload.c (reload_cse_simplify_set): Likewise.
17097 * predict.c (predict_iv_comparison): Likewise.
17098 * pretty-print.h: Include wide-int-print.h.
17100 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17101 * print-tree.c: Include wide-int-print.h.
17102 (print_node_brief): Use wide-int interfaces.
17103 (print_node): Likewise.
17104 * read-rtl.c (validate_const_wide_int): New.
17105 (read_rtx_code): Add CONST_WIDE_INT case.
17106 * real.c: Include wide-int.h.
17107 (real_to_integer2): Delete.
17108 (real_to_integer): New function, returning a wide_int.
17109 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17110 (ten_to_ptwo): Update call to real_from_integer.
17111 (real_digit): Likewise.
17112 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17113 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17114 (REAL_VALUE_TO_INT): Delete.
17115 (real_to_integer): Declare a wide-int form.
17116 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17117 * recog.c (const_int_operand): Improve comment.
17118 (const_scalar_int_operand): New.
17119 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17120 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17121 (split_double): Likewise.
17122 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17123 (rtx_size): Likewise.
17124 (rtx_alloc_stat_v): New.
17125 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17126 (cwi_output_hex): New.
17127 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17128 (cwi_check_failed_bounds): New.
17129 * rtl.def (CONST_WIDE_INT): New.
17130 * rtl.h: Include <utility> and wide-int.h.
17131 (struct hwivec_def): New.
17132 (CWI_GET_NUM_ELEM): New.
17133 (CWI_PUT_NUM_ELEM): New.
17134 (struct rtx_def): Add num_elem and hwiv.
17135 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17136 (CASE_CONST_UNIQUE): Likewise.
17137 (CASE_CONST_ANY): Likewise.
17138 (CONST_SCALAR_INT_P): Likewise.
17139 (CONST_WIDE_INT_P): New.
17141 (HWIVEC_CHECK): New.
17142 (cwi_check_failed_bounds): New.
17144 (HWIVEC_CHECK): New.
17145 (CONST_WIDE_INT_VEC) New.
17146 (CONST_WIDE_INT_NUNITS) New.
17147 (CONST_WIDE_INT_ELT) New.
17148 (rtx_mode_t): New type.
17149 (wi::int_traits <rtx_mode_t>): New.
17151 (wi::min_value): New.
17152 (wi::max_value): New.
17154 (const_wide_int_alloc): New.
17155 (immed_wide_int_const): New.
17156 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17157 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17158 * signop.h: New file.
17159 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17160 (simplify_const_unary_operation): Use wide-int interfaces.
17161 (simplify_binary_operation_1): Likewise.
17162 (simplify_const_binary_operation): Likewise.
17163 (simplify_const_relational_operation): Likewise.
17164 (simplify_immed_subreg): Likewise.
17165 * stmt.c (expand_case): Likewise.
17166 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17167 signop rather than a bool.
17168 * stor-layout.c (layout_type): Use wide-int interfaces.
17169 (initialize_sizetypes): Update calls to
17170 set_min_and_max_values_for_integral_type.
17171 (set_min_and_max_values_for_integral_type): Take a signop rather
17172 than a bool. Use wide-int interfaces.
17173 (fixup_signed_type): Update accordingly. Remove
17174 HOST_BITS_PER_DOUBLE_INT limit.
17175 (fixup_unsigned_type): Likewise.
17176 * system.h (STATIC_CONSTANT_P): New.
17177 (STATIC_ASSERT): New.
17178 * target.def (can_use_doloop_p): Take widest_ints rather than
17180 * target.h: Include wide-int.h rather than double-int.h.
17181 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17183 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17184 rather than INT_CST_LT_UNSIGNED.
17185 (can_use_doloop_if_innermost): Take widest_ints rather than
17187 * tree-affine.c: Include wide-int-print.h.
17188 (double_int_ext_for_comb): Delete.
17189 (wide_int_ext_for_comb): New.
17190 (aff_combination_zero): Use wide-int interfaces.
17191 (aff_combination_const): Take a widest_int instead of a double_int.
17192 (aff_combination_elt): Use wide-int interfaces.
17193 (aff_combination_scale): Take a widest_int instead of a double_int.
17194 (aff_combination_add_elt): Likewise.
17195 (aff_combination_add_cst): Likewise.
17196 (aff_combination_add): Use wide-int interfaces.
17197 (aff_combination_convert): Likewise.
17198 (tree_to_aff_combination): Likewise.
17199 (add_elt_to_tree): Take a widest_int instead of a double_int.
17200 (aff_combination_to_tree): Use wide-int interfaces.
17201 (aff_combination_remove_elt): Likewise.
17202 (aff_combination_add_product): Take a widest_int instead of
17204 (aff_combination_mult): Use wide-int interfaces.
17205 (aff_combination_expand): Likewise.
17206 (double_int_constant_multiple_p): Delete.
17207 (wide_int_constant_multiple_p): New.
17208 (aff_combination_constant_multiple_p): Take a widest_int pointer
17209 instead of a double_int pointer.
17210 (print_aff): Use wide-int interfaces.
17211 (get_inner_reference_aff): Take a widest_int pointer
17212 instead of a double_int pointer.
17213 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17214 * tree-affine.h: Include wide-int.h.
17215 (struct aff_comb_elt): Change type of coef to widest_int.
17216 (struct affine_tree_combination): Change type of offset to widest_int.
17217 (double_int_ext_for_comb): Delete.
17218 (wide_int_ext_for_comb): New.
17219 (aff_combination_const): Use widest_int instead of double_int.
17220 (aff_combination_scale): Likewise.
17221 (aff_combination_add_elt): Likewise.
17222 (aff_combination_constant_multiple_p): Likewise.
17223 (get_inner_reference_aff): Likewise.
17224 (aff_comb_cannot_overlap_p): Likewise.
17225 (aff_combination_zero_p): Use wide-int interfaces.
17226 * tree.c: Include tree.h.
17227 (init_ttree): Use make_int_cst.
17228 (tree_code_size): Removed code for INTEGER_CST case.
17229 (tree_size): Add INTEGER_CST case.
17230 (make_node_stat): Update comment.
17231 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17232 (build_int_cst_type): Use wide-int interfaces.
17233 (double_int_to_tree): Likewise.
17234 (double_int_fits_to_tree_p): Delete.
17235 (force_fit_type_double): Delete.
17236 (force_fit_type): New.
17237 (int_cst_hash_hash): Use wide-int interfaces.
17238 (int_cst_hash_eq): Likewise.
17239 (build_int_cst_wide): Delete.
17240 (wide_int_to_tree): New.
17241 (cache_integer_cst): Use wide-int interfaces.
17242 (build_low_bits_mask): Likewise.
17243 (cst_and_fits_in_hwi): Likewise.
17244 (real_value_from_int_cst): Likewise.
17245 (make_int_cst_stat): New.
17246 (integer_zerop): Use wide_int interfaces.
17247 (integer_onep): Likewise.
17248 (integer_all_onesp): Likewise.
17249 (integer_pow2p): Likewise.
17250 (integer_nonzerop): Likewise.
17251 (tree_log2): Likewise.
17252 (tree_floor_log2): Likewise.
17253 (tree_ctz): Likewise.
17254 (int_size_in_bytes): Likewise.
17255 (mem_ref_offset): Return an offset_int rather than a double_int.
17256 (build_type_attribute_qual_variant): Use wide_int interfaces.
17257 (type_hash_eq): Likewise
17258 (tree_int_cst_equal): Likewise.
17259 (tree_int_cst_lt): Delete.
17260 (tree_int_cst_compare): Likewise.
17261 (tree_fits_shwi_p): Use wide_int interfaces.
17262 (tree_fits_uhwi_p): Likewise.
17263 (tree_int_cst_sign_bit): Likewise.
17264 (tree_int_cst_sgn): Likewise.
17265 (tree_int_cst_min_precision): Take a signop rather than a bool.
17266 (simple_cst_equal): Use wide_int interfaces.
17267 (compare_tree_int): Likewise.
17268 (iterative_hash_expr): Likewise.
17269 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17271 (get_type_static_bounds): Use wide_int interfaces.
17272 (tree_int_cst_elt_check_failed): New.
17273 (build_common_tree_nodes): Reordered to set prec before filling in
17275 (int_cst_value): Check cst_and_fits_in_hwi.
17276 (widest_int_cst_value): Use wide_int interfaces.
17277 (upper_bound_in_type): Likewise.
17278 (lower_bound_in_type): Likewise.
17279 (num_ending_zeros): Likewise.
17280 (drop_tree_overflow): Likewise.
17281 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17282 (gen_conditions_for_pow_cst_base): Likewise.
17283 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17284 (group_case_labels_stmt): Use wide-int interfaces.
17285 (verify_gimple_assign_binary): Likewise.
17286 (print_loop): Likewise.
17287 * tree-chrec.c (tree_fold_binomial): Likewise.
17288 * tree-core.h (struct tree_base): Add int_length.
17289 (struct tree_int_cst): Change rep of value.
17290 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17291 (dr_may_alias_p): Likewise.
17292 (max_stmt_executions_tree): Likewise.
17293 * tree.def (INTEGER_CST): Update comment.
17294 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17295 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17296 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17297 (dequeue_and_dump): Use wide-int interfaces.
17298 * tree.h: Include wide-int.h.
17299 (NULL_TREE): Moved to earlier loc in file.
17300 (TREE_INT_CST_ELT_CHECK): New.
17301 (tree_int_cst_elt_check_failed): New.
17303 (TREE_INT_CST): Delete.
17304 (TREE_INT_CST_LOW): Use wide-int interfaces.
17305 (TREE_INT_CST_HIGH): Delete.
17306 (TREE_INT_CST_NUNITS): New.
17307 (TREE_INT_CST_EXT_NUNITS): Likewise.
17308 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17309 (TREE_INT_CST_ELT): Likewise.
17310 (INT_CST_LT): Delete.
17311 (tree_int_cst_elt_check): New (two forms).
17312 (type_code_size): Update comment.
17313 (make_int_cst_stat, make_int_cst): New.
17314 (tree_to_double_int): Delete.
17315 (double_int_fits_to_tree_p): Delete.
17316 (force_fit_type_double): Delete.
17317 (build_int_cstu): Replace with out-of-line function.
17318 (build_int_cst_wide): Delete.
17319 (tree_int_cst_lt): Define inline.
17320 (tree_int_cst_le): New.
17321 (tree_int_cst_compare): Define inline.
17322 (tree_int_cst_min_precision): Take a signop rather than a bool.
17323 (wi::int_traits <const_tree>): New.
17324 (wi::int_traits <tree>): New.
17325 (wi::extended_tree): New.
17326 (wi::int_traits <wi::extended_tree>): New.
17327 (wi::to_widest): New.
17328 (wi::to_offset): New.
17329 (wi::fits_to_tree_p): New.
17330 (wi::min_value): New.
17331 (wi::max_value): New.
17332 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17333 (copy_tree_body_r): Likewise.
17334 * tree-object-size.c (compute_object_offset): Likewise.
17335 (addr_object_size): Likewise.
17336 * tree-predcom.c: Include wide-int-print.h.
17337 (struct dref_d): Change type of offset to widest_int.
17338 (dump_dref): Call wide-int printer.
17339 (aff_combination_dr_offset): Use wide-int interfaces.
17340 (determine_offset): Take a widest_int pointer rather than a
17341 double_int pointer.
17342 (split_data_refs_to_components): Use wide-int interfaces.
17343 (suitable_component_p): Likewise.
17344 (order_drefs): Likewise.
17345 (add_ref_to_chain): Likewise.
17346 (valid_initializer_p): Likewise.
17347 (determine_roots_comp): Likewise.
17348 * tree-pretty-print.c: Include wide-int-print.h.
17349 (dump_generic_node): Use wide-int interfaces.
17350 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17351 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17352 (move_fixed_address_to_symbol): Likewise.
17353 (move_hint_to_base): Likewise.
17354 (move_pointer_to_base): Likewise.
17355 (move_variant_to_index): Likewise.
17356 (most_expensive_mult_to_index): Likewise.
17357 (addr_to_parts): Likewise.
17358 (copy_ref_info): Likewise.
17359 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17360 (indirect_refs_may_alias_p): Likewise.
17361 (stmt_kills_ref_p_1): Likewise.
17362 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17363 * tree-ssa-ccp.c: Update comment at top of file. Include
17365 (struct prop_value_d): Change type of mask to widest_int.
17366 (extend_mask): New function.
17367 (dump_lattice_value): Use wide-int interfaces.
17368 (get_default_value): Likewise.
17369 (set_constant_value): Likewise.
17370 (set_value_varying): Likewise.
17371 (valid_lattice_transition): Likewise.
17372 (set_lattice_value): Likewise.
17373 (value_to_double_int): Delete.
17374 (value_to_wide_int): New.
17375 (get_value_from_alignment): Use wide-int interfaces.
17376 (get_value_for_expr): Likewise.
17377 (do_dbg_cnt): Likewise.
17378 (ccp_finalize): Likewise.
17379 (ccp_lattice_meet): Likewise.
17380 (bit_value_unop_1): Use widest_ints rather than double_ints.
17381 (bit_value_binop_1): Likewise.
17382 (bit_value_unop): Use wide-int interfaces.
17383 (bit_value_binop): Likewise.
17384 (bit_value_assume_aligned): Likewise.
17385 (evaluate_stmt): Likewise.
17386 (ccp_fold_stmt): Likewise.
17387 (visit_cond_stmt): Likewise.
17388 (ccp_visit_stmt): Likewise.
17389 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17390 (constant_pointer_difference): Likewise.
17391 (associate_pointerplus): Likewise.
17392 (combine_conversions): Likewise.
17393 * tree-ssa-loop.h: Include wide-int.h.
17394 (struct tree_niter_desc): Change type of max to widest_int.
17395 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17396 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17397 (remove_redundant_iv_tests): Likewise.
17398 (canonicalize_loop_induction_variables): Likewise.
17399 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17400 (constant_multiple_of): Take a widest_int pointer instead of
17401 a double_int pointer.
17402 (get_computation_aff): Use wide-int interfaces.
17403 (ptr_difference_cost): Likewise.
17404 (difference_cost): Likewise.
17405 (get_loop_invariant_expr_id): Likewise.
17406 (get_computation_cost_at): Likewise.
17407 (iv_elimination_compare_lt): Likewise.
17408 (may_eliminate_iv): Likewise.
17409 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17410 instead of double_int.
17411 (max_loop_iterations): Likewise.
17412 (max_stmt_executions): Likewise.
17413 (estimated_stmt_executions): Likewise.
17414 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17415 (split_to_var_and_offset): Use wide-int interfaces.
17416 (determine_value_range): Likewise.
17417 (bound_difference_of_offsetted_base): Likewise.
17418 (bounds_add): Take a widest_int instead of a double_int.
17419 (number_of_iterations_ne_max): Use wide-int interfaces.
17420 (number_of_iterations_ne): Likewise.
17421 (number_of_iterations_lt_to_ne): Likewise.
17422 (assert_loop_rolls_lt): Likewise.
17423 (number_of_iterations_lt): Likewise.
17424 (number_of_iterations_le): Likewise.
17425 (number_of_iterations_cond): Likewise.
17426 (number_of_iterations_exit): Likewise.
17427 (finite_loop_p): Likewise.
17428 (derive_constant_upper_bound_assign): Likewise.
17429 (derive_constant_upper_bound): Return a widest_int.
17430 (derive_constant_upper_bound_ops): Likewise.
17431 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17432 (record_estimate): Take a widest_int rather than a double_int.
17433 (record_nonwrapping_iv): Use wide-int interfaces.
17434 (double_int_cmp): Delete.
17435 (wide_int_cmp): New.
17436 (bound_index): Take a widest_int rather than a double_int.
17437 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17438 (maybe_lower_iteration_bound): Likewise.
17439 (estimate_numbers_of_iterations_loop): Likewise.
17440 (estimated_loop_iterations): Take a widest_int pointer than than
17441 a double_int pointer.
17442 (estimated_loop_iterations_int): Use wide-int interfaces.
17443 (max_loop_iterations): Take a widest_int pointer than than
17444 a double_int pointer.
17445 (max_loop_iterations_int): Use wide-int interfaces.
17446 (max_stmt_executions): Take a widest_int pointer than than
17447 a double_int pointer.
17448 (estimated_stmt_executions): Likewise.
17449 (n_of_executions_at_most): Use wide-int interfaces.
17450 (scev_probably_wraps_p): Likewise.
17451 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17452 to real_to_integer.
17453 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17455 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17456 double_ints. Adjust for trailing_wide_ints <3> representation.
17457 (set_nonzero_bits): Likewise.
17458 (get_range_info): Return wide_ints rather than double_ints.
17459 Adjust for trailing_wide_ints <3> representation.
17460 (get_nonzero_bits): Likewise.
17461 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17463 * tree-ssanames.h (struct range_info_def): Replace min, max and
17464 nonzero_bits with a trailing_wide_ints <3>.
17465 (set_range_info): Use wide_int_refs rather than double_ints.
17466 (set_nonzero_bits): Likewise.
17467 (get_range_info): Return wide_ints rather than double_ints.
17468 (get_nonzero_bits): Likewise.
17469 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17470 * tree-ssa-pre.c (phi_translate_1): Likewise.
17471 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17472 (acceptable_pow_call): Likewise.
17473 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17475 (vn_reference_fold_indirect): Likewise.
17476 (vn_reference_maybe_forwprop_address): Likewise.
17477 (valueize_refs_1): Likewise.
17478 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17479 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17480 tree_int_cst_lt and tree_int_cst_le.
17481 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17483 (streamer_alloc_tree): Likewise.
17484 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17485 (streamer_write_tree_header): Likewise.
17486 (streamer_write_integer_cst): Likewise.
17487 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17488 (build_constructors): Likewise.
17489 (array_value_type): Likewise.
17490 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17491 (vect_check_gather): Likewise.
17492 * tree-vect-generic.c (build_replicated_const): Likewise.
17493 (expand_vector_divmod): Likewise.
17494 * tree-vect-loop.c (vect_transform_loop): Likewise.
17495 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17496 (vect_do_peeling_for_alignment): Likewise.
17497 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17498 * tree-vrp.c: Include wide-int.h.
17499 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17500 (extract_range_from_assert): Use wide-int interfaces.
17501 (vrp_int_const_binop): Likewise.
17502 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17503 double_int pointers.
17504 (ranges_from_anti_range): Use wide-int interfaces.
17505 (quad_int_cmp): Delete.
17506 (quad_int_pair_sort): Likewise.
17507 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17508 (extract_range_from_unary_expr_1): Likewise.
17509 (adjust_range_with_scev): Likewise.
17510 (masked_increment): Take and return wide_ints rather than double_ints.
17511 (register_edge_assert_for_2): Use wide-int interfaces.
17512 (check_array_ref): Likewise.
17513 (search_for_addr_array): Likewise.
17514 (maybe_set_nonzero_bits): Likewise.
17515 (union_ranges): Pass an integer of the correct type instead of
17516 using integer_one_node.
17517 (intersect_ranges): Likewise.
17518 (simplify_truth_ops_using_ranges): Likewise.
17519 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17520 (range_fits_type_p): Likewise.
17521 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17523 (simplify_conversion_using_ranges): Use wide-int interfaces.
17524 (simplify_float_conversion_using_ranges): Likewise.
17525 (vrp_finalize): Likewise.
17526 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17527 (gimple_stringops_transform): Likewise.
17528 * varasm.c (decode_addr_const): Likewise.
17529 (const_hash_1): Likewise.
17530 (const_rtx_hash_1): Likewise
17531 (output_constant): Likewise.
17532 (array_size_for_constructor): Likewise.
17533 (output_constructor_regular_field): Likewise.
17534 (output_constructor_bitfield): Likewise.
17535 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17536 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17538 * gencheck.c: Define BITS_PER_UNIT.
17539 * wide-int.cc: New.
17541 * wide-int-print.cc: New.
17542 * wide-int-print.h: New.
17544 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17546 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17548 2014-05-06 Richard Biener <rguenther@suse.de>
17550 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17551 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17552 (TODO_verify_all): Adjust.
17553 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17554 TODO_verify_stmts and TODO_verify_rtl_sharing.
17555 * bb-reorder.c: Likewise.
17556 * cfgexpand.c: Likewise.
17557 * cprop.c: Likewise.
17559 * function.c: Likewise.
17560 * fwprop.c: Likewise.
17561 * gcse.c: Likewise.
17562 * gimple-ssa-isolate-paths.c: Likewise.
17563 * gimple-ssa-strength-reduction.c: Likewise.
17564 * ipa-split.c: Likewise.
17565 * loop-init.c: Likewise.
17566 * loop-unroll.c: Likewise.
17567 * lower-subreg.c: Likewise.
17568 * modulo-sched.c: Likewise.
17569 * postreload-gcse.c: Likewise.
17570 * predict.c: Likewise.
17571 * recog.c: Likewise.
17572 * sched-rgn.c: Likewise.
17573 * store-motion.c: Likewise.
17574 * tracer.c: Likewise.
17575 * trans-mem.c: Likewise.
17576 * tree-call-cdce.c: Likewise.
17577 * tree-cfg.c: Likewise.
17578 * tree-cfgcleanup.c: Likewise.
17579 * tree-complex.c: Likewise.
17580 * tree-eh.c: Likewise.
17581 * tree-emutls.c: Likewise.
17582 * tree-if-conv.c: Likewise.
17583 * tree-into-ssa.c: Likewise.
17584 * tree-loop-distribution.c: Likewise.
17585 * tree-object-size.c: Likewise.
17586 * tree-parloops.c: Likewise.
17587 * tree-pass.h: Likewise.
17588 * tree-sra.c: Likewise.
17589 * tree-ssa-ccp.c: Likewise.
17590 * tree-ssa-copy.c: Likewise.
17591 * tree-ssa-copyrename.c: Likewise.
17592 * tree-ssa-dce.c: Likewise.
17593 * tree-ssa-dom.c: Likewise.
17594 * tree-ssa-dse.c: Likewise.
17595 * tree-ssa-forwprop.c: Likewise.
17596 * tree-ssa-ifcombine.c: Likewise.
17597 * tree-ssa-loop-ch.c: Likewise.
17598 * tree-ssa-loop-ivcanon.c: Likewise.
17599 * tree-ssa-loop.c: Likewise.
17600 * tree-ssa-math-opts.c: Likewise.
17601 * tree-ssa-phiopt.c: Likewise.
17602 * tree-ssa-phiprop.c: Likewise.
17603 * tree-ssa-pre.c: Likewise.
17604 * tree-ssa-reassoc.c: Likewise.
17605 * tree-ssa-sink.c: Likewise.
17606 * tree-ssa-strlen.c: Likewise.
17607 * tree-ssa-tail-merge.c: Likewise.
17608 * tree-ssa-uncprop.c: Likewise.
17609 * tree-switch-conversion.c: Likewise.
17610 * tree-tailcall.c: Likewise.
17611 * tree-vect-generic.c: Likewise.
17612 * tree-vectorizer.c: Likewise.
17613 * tree-vrp.c: Likewise.
17614 * tsan.c: Likewise.
17615 * var-tracking.c: Likewise.
17616 * bt-load.c: Likewise.
17617 * cfgcleanup.c: Likewise.
17618 * combine-stack-adj.c: Likewise.
17619 * combine.c: Likewise.
17620 * compare-elim.c: Likewise.
17621 * config/epiphany/resolve-sw-modes.c: Likewise.
17622 * config/i386/i386.c: Likewise.
17623 * config/mips/mips.c: Likewise.
17624 * config/s390/s390.c: Likewise.
17625 * config/sh/sh_treg_combine.cc: Likewise.
17626 * config/sparc/sparc.c: Likewise.
17629 * final.c: Likewise.
17630 * ifcvt.c: Likewise.
17631 * mode-switching.c: Likewise.
17632 * passes.c: Likewise.
17633 * postreload.c: Likewise.
17635 * reg-stack.c: Likewise.
17636 * regcprop.c: Likewise.
17637 * regrename.c: Likewise.
17640 2014-05-06 Richard Biener <rguenther@suse.de>
17642 PR middle-end/61070
17643 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
17644 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
17646 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
17649 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
17651 2014-05-05 Radovan Obradovic <robradovic@mips.com>
17652 Tom de Vries <tom@codesourcery.com>
17654 * target.def (call_fusage_contains_non_callee_clobbers): New
17656 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
17658 (@node Miscellaneous Register Hooks): New node.
17659 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
17660 * doc/tm.texi: Regenerate.
17662 2014-05-05 Marek Polacek <polacek@redhat.com>
17665 * opts.c (common_handle_option): Call error_at instead of warning_at.
17667 2014-05-05 Richard Biener <rguenther@suse.de>
17669 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
17670 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
17671 under the TODO_verify_il umbrella.
17673 2014-05-05 Richard Biener <rguenther@suse.de>
17675 * passes.c (execute_function_todo): Move TODO_verify_flow under
17676 the TODO_verify_ul umbrella.
17678 2014-05-05 Richard Biener <rguenther@suse.de>
17680 PR middle-end/61010
17681 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
17682 X & CST away from a CST that is the mask of a mode.
17684 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17686 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
17687 int argument to enum machine_mode.
17688 (picochip_class_max_nregs): Ditto.
17689 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
17690 (picochip_class_max_nregs): Ditto.
17692 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17694 * target.def: Add new target hook.
17695 * doc/tm.texi: Regenerate.
17696 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
17697 * targhooks.c (default_keep_leaf_when_profiled): New function.
17699 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
17700 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
17702 2014-05-05 Bin Cheng <bin.cheng@arm.com>
17704 PR tree-optimization/60363
17705 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
17706 (copy_phi_args): New parameters. Call get_value_locus_in_path.
17707 (update_destination_phis): New parameter.
17708 (create_edge_and_update_destination_phis): Ditto.
17709 (ssa_fix_duplicate_block_edges): Pass new arguments.
17710 (thread_single_edge): Ditto.
17712 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
17714 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
17715 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
17716 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
17717 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
17718 Use RS6000_BTM_HARD_FLOAT.
17719 (BU_MISC_2): Likewise.
17720 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17721 RS6000_BTM_HARD_FLOAT.
17722 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
17723 is explicitly used.
17724 (rs6000_invalid_builtin): Add hard floating builtin support.
17725 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
17726 hard float builtins.
17727 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
17729 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17731 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
17732 Add missing function* argument.
17734 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17736 * lra-constraints.c (valid_address_p): Move earlier in file.
17737 Add a constraint argument to the address_info version.
17738 (satisfies_memory_constraint_p): New function.
17739 (satisfies_address_constraint_p): Likewise.
17740 (process_alt_operands, curr_insn_transform): Use them.
17741 (process_address): Pass the constraint to valid_address_p when
17742 checking address operands.
17744 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17746 * config/mips/mips.c (mips_isa_rev): New variable.
17747 (mips_set_architecture): Set it.
17748 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
17750 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
17751 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
17752 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
17753 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
17754 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
17755 conditions in terms of mips_isa_rev.
17756 (mips_isa_rev): Declare.
17758 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17760 * config/sh/sh-mem.cc: Use tabs instead of spaces.
17761 (prob_unlikely, prob_likely): Make variables const.
17763 2014-05-03 Denis Chertykov <chertykov@gmail.com>
17765 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
17767 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17769 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
17771 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17773 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
17774 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
17775 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
17777 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
17778 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
17780 Replace usage of ROUND_REG with sh_round_reg.
17781 Use CEIL instead of ROUND_ADVANCE.
17783 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17786 * config/sh/sh.c: Include stdlib headers before everything else.
17788 2014-05-02 Jakub Jelinek <jakub@redhat.com>
17790 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
17791 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
17792 (gimplify_adjust_omp_clauses): Simd region is never
17793 directly nested in combined parallel. Instead, for linear
17794 with copyin/copyout, if in combined for simd loop, make decl
17795 firstprivate/lastprivate on OMP_FOR.
17796 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
17797 expand_omp_for_static_chunk): When setting endvar, also set
17798 fd->loop.v to the same value.
17800 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17802 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
17804 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
17806 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
17809 2014-05-02 Marek Polacek <polacek@redhat.com>
17811 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
17813 2014-05-02 Kito Cheng <kito@0xlab.org>
17815 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
17816 to a C expression marco.
17817 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
17818 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
17819 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
17820 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
17821 HONOR_REG_ALLOC_ORDER.
17822 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
17824 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17826 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
17828 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17830 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
17832 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
17834 * tree-if-conv.c (is_cond_scalar_reduction): New function.
17835 (convert_scalar_cond_reduction): Likewise.
17836 (predicate_scalar_phi): Add recognition and transformation
17837 of simple conditioanl reduction to be vectorizable.
17839 2014-05-01 Marek Polacek <polacek@redhat.com>
17842 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
17844 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
17846 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
17847 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
17848 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
17849 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
17850 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
17851 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
17852 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
17853 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
17855 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
17857 * config/arc/arc.opt (mlra): Move comment above option name
17858 to avoid mis-parsing as language options.
17860 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17862 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
17863 * config/sol2.h: ... here.
17864 * config/sol2-10.h: Remove.
17866 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
17867 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
17868 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
17869 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
17870 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
17871 * config/sol2.h: ... here.
17872 (SECTION_NAME_FORMAT): Don't redefine.
17873 (STARTFILE_ARCH32_SPEC): Rename to ...
17874 (STARTFILE_ARCH_SPEC): ... this.
17875 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
17876 * config/sparc/sol2.h: ... here.
17877 (SECTION_NAME_FORMAT): Don't undef.
17878 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
17879 (SUBTARGET_EXTRA_SPECS): Remove.
17880 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
17882 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
17883 (MD_STARTFILE_PREFIX): Remove.
17884 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
17885 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
17886 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
17887 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
17888 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
17889 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
17890 * config/i386/sol2.h: ... here.
17891 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
17892 * config/i386/sol2-bi.h: Remove.
17893 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
17894 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
17896 * config/i386/t-sol2-64: Rename to ...
17897 * config/i386/t-sol2: ... this.
17898 * config/sparc/t-sol2-64: Rename to ...
17899 * config/sparc/t-sol2: ... this.
17901 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
17902 sol2_tm_file_head, sol2_tm_file_tail.
17903 Include ${cpu_type}/sol2.h before sol2.h.
17905 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
17906 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
17907 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
17908 Reflect i386/t-sol2-64 renaming.
17909 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
17910 Reflect sparc/t-sol2-64 renaming.
17912 2014-04-30 Richard Biener <rguenther@suse.de>
17914 * passes.c (execute_function_todo): Move TODO_verify_stmts
17915 and TODO_verify_ssa under the TODO_verify_il umbrella.
17916 * tree-ssa.h (verify_ssa): Adjust prototype.
17917 * tree-ssa.c (verify_ssa): Add parameter to tell whether
17918 we should verify SSA operands.
17919 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
17920 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
17921 whether we should verify whether not throwing stmts have EH info.
17922 * graphite-scop-detection.c (create_sese_edges): Adjust.
17923 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
17924 * tree-eh.c (lower_try_finally_switch): Do not add the
17925 default case label twice.
17927 2014-04-30 Marek Polacek <polacek@redhat.com>
17929 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
17930 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
17931 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
17932 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
17934 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
17936 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
17937 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
17938 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
17939 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
17940 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
17941 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
17942 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
17943 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
17945 2014-04-29 David Malcolm <dmalcolm@redhat.com>
17947 * tree-cfg.c (dump_function_to_file): Dump the return type of
17948 functions, in a line to itself before the function body, mimicking
17949 the layout of a C function.
17951 2014-04-29 Jakub Jelinek <jakub@redhat.com>
17953 PR tree-optimization/60971
17954 * tree-tailcall.c (process_assignment): Reject conversions which
17957 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
17959 * calls.c (initialize_argument_information): Always treat
17960 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
17961 (expand_call): Likewise.
17962 (emit_library_call_calue_1): Likewise.
17963 * expr.c (PUSH_ARGS_REVERSED): Do not define.
17964 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
17967 2014-04-29 Nick Clifton <nickc@redhat.com>
17969 * config/msp430/msp430.md (umulsidi): Fix typo.
17970 (mulhisi3): Enable even inside interrupt handlers.
17971 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
17972 bigger return address pushed in large mode.
17974 2014-04-29 Nick Clifton <nickc@redhat.com>
17976 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
17977 (arc_init_reg_tables): Use a machine_mode enum to iterate over
17979 * config/m32r/m32r.c (init_reg_tables): Likewise.
17980 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
17981 enum to hold the modes.
17983 2014-04-29 Richard Biener <rguenther@suse.de>
17985 * dominance.c (free_dominance_info): Add overload with
17986 function parameter.
17987 (dom_info_state): Likewise.
17988 (dom_info_available_p): Likewise.
17989 * basic-block.h (free_dominance_info, dom_info_state,
17990 dom_info_available_p): Declare overloads.
17991 * passes.c (execute_function_todo): Verify that verifiers
17992 don't change dominator info state. Drop dominator info
17993 for IPA pass invocations.
17994 * cgraph.c (release_function_body): Restore asserts that
17995 dominator information is released.
17997 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
17999 * doc/invoke.texi: Fix typo.
18000 * tree-vrp.c: Fix typos.
18001 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18003 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18005 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18007 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18009 * config/aarch64/aarch64-builtins.c
18010 (aarch64_types_storestruct_lane_qualifiers): New.
18011 (TYPES_STORESTRUCT_LANE): Likewise.
18012 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18013 (st3_lane): Likewise.
18014 (st4_lane): Likewise.
18015 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18016 (vec_store_lanesci_lane<mode>): Likewise.
18017 (vec_store_lanesxi_lane<mode>): Likewise.
18018 (aarch64_st2_lane<VQ:mode>): Likewise.
18019 (aarch64_st3_lane<VQ:mode>): Likewise.
18020 (aarch64_st4_lane<VQ:mode>): Likewise.
18021 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18022 * config/aarch64/arm_neon.h
18023 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18024 use new macro arguments.
18025 (__ST3_LANE_FUNC): Likewise.
18026 (__ST4_LANE_FUNC): Likewise.
18027 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18028 (V_THREE_ELEM): Likewise.
18029 (V_FOUR_ELEM): Likewise.
18031 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18033 * doc/gimple.texi: Replace the description of the now-defunct
18034 union gimple_statement_d with a diagram showing the
18035 gimple_statement_base class hierarchy and its relationships to
18036 the GSS_ and GIMPLE_ enums.
18038 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18040 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18041 * config/aarch64/aarch64.c
18042 (aarch64_cannot_change_mode_class): Weaken conditions.
18043 (aarch64_modes_tieable_p): New.
18044 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18046 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18048 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18049 (loadsync_<mode>): Change mode.
18050 (load_quadpti, store_quadpti): New.
18051 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18052 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18054 2014-04-28 Martin Jambor <mjambor@suse.cz>
18056 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18057 same alias type as the original statement.
18058 (subreplacement_assignment_data): New type.
18059 (handle_unscalarized_data_in_subtree): New type of parameter,
18060 generate new memory accesses with same alias type as the original
18062 (load_assign_lhs_subreplacements): Likewise.
18063 (sra_modify_constructor_assign): Generate new memory accesses with
18064 same alias type as the original statement.
18066 2014-04-28 Richard Biener <rguenther@suse.de>
18068 * tree-pass.h (TODO_verify_il): Define.
18069 (TODO_verify_all): Complete properly.
18070 * passes.c (execute_function_todo): Move existing loop-closed
18071 SSA verification under TODO_verify_il.
18072 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18073 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18074 Fix tree sharing issue.
18076 2014-04-28 Richard Biener <rguenther@suse.de>
18078 PR middle-end/60092
18079 * builtins.def (DEF_C11_BUILTIN): Add.
18080 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18081 * coretypes.h (enum function_class): Add function_c11_misc.
18082 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18083 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18084 (call_may_clobber_ref_p_1): Likewise.
18085 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18086 (mark_all_reaching_defs_necessary_1): Likewise.
18087 (propagate_necessity): Likewise.
18088 (eliminate_unnecessary_stmts): Likewise.
18089 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18091 2014-04-28 Richard Biener <rguenther@suse.de>
18093 * tree-vrp.c (vrp_var_may_overflow): Remove.
18094 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18095 with overflow immediately bump to one before that value and
18096 let iteration figure out overflow status.
18098 2014-04-28 Richard Biener <rguenther@suse.de>
18100 * configure.ac: Do valgrind header checks unconditionally.
18101 Add --enable-valgrind-annotations.
18102 * system.h: Guard valgrind header inclusion with
18103 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18104 * alloc-pool.c (pool_alloc, pool_free): Use
18105 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18106 to guard possibly dead code.
18107 * config.in: Regenerated.
18108 * configure: Likewise.
18110 2014-04-28 Jeff Law <law@redhat.com>
18112 PR tree-optimization/60902
18113 * tree-ssa-threadedge.c
18114 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18115 over real defs when invalidating outputs from statements that do not
18116 produce useful outputs for threading.
18118 2014-04-28 Richard Biener <rguenther@suse.de>
18120 PR tree-optimization/60979
18121 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18122 SCOPs that end in a block with a successor with abnormal
18125 2014-04-28 Richard Biener <rguenther@suse.de>
18127 * tree-pass.h (execute_pass_list): Adjust prototype.
18128 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18129 (do_per_function): Change callback signature, push all actual
18130 work to the callbals.
18131 (do_per_function_toporder): Likewise.
18132 (execute_function_dump): Adjust.
18133 (execute_function_todo): Likewise.
18134 (clear_last_verified): Likewise.
18135 (verify_curr_properties): Likewise.
18136 (update_properties_after_pass): Likewise.
18137 (execute_pass_list_1): Split out from ...
18138 (execute_pass_list): ... here. Adjust.
18139 (execute_ipa_pass_list): Likewise.
18140 * cgraphunit.c (cgraph_add_new_function): Adjust.
18141 (analyze_function): Likewise.
18142 (expand_function): Likewise.
18143 * cgraph.c (release_function_body): Free dominance info
18144 here instead of asserting it was magically freed elsewhere.
18146 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18148 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18149 * configure: Regenerate.
18150 * config/sparc/sparc.opt (muser-mode): New option.
18151 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18153 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18154 * doc/invoke.texi (SPARC options): Document -muser-mode.
18156 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18158 * cselib.c (find_slot_memmode): Delete.
18159 (cselib_hasher): Change compare_type to a struct.
18160 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18162 (preserve_constants_and_equivs): Adjust for new compare_type.
18163 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18164 (wrap_constant): Delete.
18165 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18167 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18169 * doc/install.texi (Building with profile feedback): Remove
18172 2014-04-26 Tom de Vries <tom@codesourcery.com>
18174 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18177 2014-04-25 Cary Coutant <ccoutant@google.com>
18180 * dwarf2out.c (should_move_die_to_comdat): A type definition
18181 can contain a subprogram definition, but don't move it to a
18183 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18184 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18186 (clone_tree_hash): Rename to...
18187 (clone_tree_partial): ...this; change callers. Copy
18188 DW_TAG_subprogram DIEs as declarations.
18189 (copy_decls_walk): Don't copy children of a declaration into a
18192 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18195 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18198 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18200 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18201 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18203 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18206 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18208 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18210 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18212 PR tree-optimization/60930
18213 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18214 creating a multiply candidate by folding two constant
18215 multiplicands when the result overflows.
18217 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18219 PR tree-optimization/60960
18220 * tree-vect-generic.c (expand_vector_operation): Only call
18221 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18223 2014-04-25 Tom de Vries <tom@codesourcery.com>
18225 * expr.c (clobber_reg_mode): New function.
18226 * expr.h (clobber_reg): New function.
18228 2014-04-25 Tom de Vries <tom@codesourcery.com>
18230 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18233 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18234 Tom de Vries <tom@codesourcery.com>
18236 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18238 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18239 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18240 new argument to find_all_hard_reg_sets call.
18242 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18244 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18245 Use HOST_WIDE_INT_C for mask literal.
18246 (aarch_rev16_shleft_mask_imm_p): Likewise.
18248 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18251 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18253 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18255 PR preprocessor/56540
18256 * config/i386/i386-c.c (ix86_target_macros): Define
18257 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18259 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18261 * configure.ac (tga_func): Remove.
18262 (LIB_TLS_SPEC): Remove.
18263 * configure: Regenerate.
18264 * config.in: Regenerate.
18265 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18267 2014-04-25 Richard Biener <rguenther@suse.de>
18270 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18271 call stmt use/clobber sets during stmt walk instead of
18272 walking the possibly incomplete set of caller edges.
18274 2014-04-25 Richard Biener <rguenther@suse.de>
18277 * passes.c (apply_ipa_transforms): Inline into only caller ...
18278 (execute_one_pass): ... here. Properly bring in function
18279 bodies for nodes we want to apply IPA transforms to.
18281 2014-04-24 Cong Hou <congh@google.com>
18283 PR tree-optimization/60896
18284 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18285 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18286 (vect_mark_pattern_stmts): Set the def type of all statements in
18287 PATTERN_DEF_SEQ as vect_internal_def.
18289 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18291 * doc/extend.texi (PowerPC Built-in Functions): Document new
18292 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18293 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18295 * config/rs6000/predicates.md (const_0_to_3_operand): New
18296 predicate to match 0..3 integer constants.
18298 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18299 to support adding miscellaneous builtin functions.
18300 (BU_DFP_MISC_2): Likewise.
18301 (BU_P7_MISC_1): Likewise.
18302 (BU_P7_MISC_2): Likewise.
18303 (BU_P8V_MISC_3): Likewise.
18304 (BU_MISC_1): Likewise.
18305 (BU_MISC_2): Likewise.
18306 (DIVWE): Add extended divide builtin functions.
18307 (DIVWEO): Likewise.
18308 (DIVWEU): Likewise.
18309 (DIVWEUO): Likewise.
18311 (DIVDEO): Likewise.
18312 (DIVDEU): Likewise.
18313 (DIVDEUO): Likewise.
18314 (DXEX): Add decimal floating-point builtin functions.
18316 (DDEDPD): Likewise.
18317 (DDEDPDQ): Likewise.
18318 (DENBCD): Likewise.
18319 (DENBCDQ): Likewise.
18323 (DSCLIQ): Likewise.
18325 (DSCRIQ): Likewise.
18326 (CDTBCD): Add new BCD builtin functions.
18327 (CBCDTD): Likewise.
18328 (ADDG6S): Likewise.
18329 (BCDADD): Likewise.
18330 (BCDADD_LT): Likewise.
18331 (BCDADD_EQ): Likewise.
18332 (BCDADD_GT): Likewise.
18333 (BCDADD_OV): Likewise.
18334 (BCDSUB): Likewise.
18335 (BCDSUB_LT): Likewise.
18336 (BCDSUB_EQ): Likewise.
18337 (BCDSUB_GT): Likewise.
18338 (BCDSUB_OV): Likewise.
18339 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18340 (UNPACK_TD): Likewise.
18341 (PACK_TF): Likewise.
18342 (UNPACK_TF): Likewise.
18343 (UNPACK_TF_0): Likewise.
18344 (UNPACK_TF_1): Likewise.
18345 (PACK_V1TI): Likewise.
18346 (UNPACK_V1TI): Likewise.
18348 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18349 support for decimal floating point builtin functions.
18350 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18351 functions that take constant arguments.
18352 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18353 (rs6000_init_builtins): Setup long double, _Decimal64, and
18354 _Decimal128 types for new builtin functions.
18355 (builtin_function_type): Set the unsigned flags appropriately for
18356 the new builtin functions.
18357 (rs6000_opt_masks): Add support for decimal floating point builtin
18360 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18361 floating point builtin functions.
18362 (RS6000_BTM_COMMON): Likewise.
18363 (RS6000_BTI_long_double): Likewise.
18364 (RS6000_BTI_dfloat64): Likewise.
18365 (RS6000_BTI_dfloat128): Likewise.
18366 (long_double_type_internal_node): Likewise.
18367 (dfloat64_type_internal_node): Likewise.
18368 (dfloat128_type_internal_node): Likewise.
18370 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18371 2.07 bcd arithmetic instructions.
18372 (UNSPEC_BCDSUB): Likewise.
18373 (UNSPEC_BCD_OVERFLOW): Likewise.
18374 (UNSPEC_BCD_ADD_SUB): Likewise.
18375 (bcd_add_sub): Likewise.
18376 (BCD_TEST): Likewise.
18377 (bcd<bcd_add_sub>): Likewise.
18378 (bcd<bcd_add_sub>_test): Likewise.
18379 (bcd<bcd_add_sub>_test2): Likewise.
18380 (bcd<bcd_add_sub>_<code>): Likewise.
18381 (peephole2 for combined bcd ops): Likewise.
18383 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18384 decimal floating point builtin functions.
18385 (UNSPEC_DENBCD): Likewise.
18386 (UNSPEC_DXEX): Likewise.
18387 (UNSPEC_DIEX): Likewise.
18388 (UNSPEC_DSCLI): Likewise.
18389 (UNSPEC_DSCRI): Likewise.
18390 (D64_D128): Likewise.
18391 (dfp_suffix): Likewise.
18392 (dfp_ddedpd_<mode>): Likewise.
18393 (dfp_denbcd_<mode>): Likewise.
18394 (dfp_dxex_<mode>): Likewise.
18395 (dfp_diex_<mode>): Likewise.
18396 (dfp_dscli_<mode>): Likewise.
18397 (dfp_dscri_<mode>): Likewise.
18399 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18401 (UNSPEC_CDTBCD): Likewise.
18402 (UNSPEC_CBCDTD): Likewise.
18403 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18404 (UNSPEC_DIVEO): Likewise.
18405 (UNSPEC_DIVEU): Likewise.
18406 (UNSPEC_DIVEUO): Likewise.
18407 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18408 pack/unpack 128-bit types.
18409 (UNSPEC_PACK_128BIT): Likewise.
18410 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18411 (udiv<mode>3): Use idiv_ldiv mode attribute.
18412 (div<mode>3): Likewise.
18413 (addg6s): Add new BCD builtin functions.
18414 (cdtbcd): Likewise.
18415 (cbcdtd): Likewise.
18416 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18417 (div_extend): Likewise.
18418 (div<div_extend>_<mode>"): Likewise.
18419 (FP128_64): Add support for new builtin functions to pack/unpack
18421 (unpack<mode>): Likewise.
18422 (unpacktf_0): Likewise.
18423 (unpacktf_1): Likewise.
18424 (unpack<mode>_dm): Likewise.
18425 (unpack<mode>_nodm): Likewise.
18426 (pack<mode>): Likewise.
18427 (unpackv1ti): Likewise.
18428 (packv1ti): Likewise.
18430 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18432 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18435 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18437 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18438 * gimplify.c (omp_is_private): Change last argument's type to int.
18439 Only diagnose lastprivate if the simd argument is 1, only diagnose
18440 linear if the simd argument is 2.
18441 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18442 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18443 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18444 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18445 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18446 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18447 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18448 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18449 * tree-nested.c (convert_nonlocal_omp_clauses,
18450 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18452 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18455 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18458 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18460 * flag-types.h (enum ivar_visibility): Add.
18462 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18464 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18465 function * argument.
18467 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18469 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18471 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18472 Tom de Vries <tom@codesourcery.com>
18474 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18475 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18477 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18478 * emit-rtl.c (try_split): Same.
18480 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18481 Tom de Vries <tom@codesourcery.com>
18483 * common.opt (fuse-caller-save): New option.
18485 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18487 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18488 elements for big-endian.
18490 2014-04-24 Richard Biener <rguenther@suse.de>
18492 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18493 during TER and instead use the sepops interface for expanding
18494 non-GIMPLE_SINGLE_RHS.
18496 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18498 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18499 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18501 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18503 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18504 assembler 64-bit option.
18505 * configure: Regenerate.
18507 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18509 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18510 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18511 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18512 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18513 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18515 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18517 * config/aarch64/aarch64-builtins.c
18518 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18519 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18520 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18521 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18523 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18524 (Vrevsuff): New mode attribute.
18526 2014-04-24 Terry Guo <terry.guo@arm.com>
18528 * config/arm/arm.h (machine_function): Define variable
18529 after_arm_reorg here.
18530 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18531 (arm_split_constant): Update the way to access variable
18533 (arm_reorg): Ditto.
18534 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18536 2014-04-23 Tom de Vries <tom@codesourcery.com>
18538 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18540 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18542 * is-a.h: Update comments to reflect the following changes to the
18543 "pointerness" of the API, making the template parameter match the
18544 return type, allowing use of is-a.h with typedefs of pointers.
18545 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18546 that the return type matches the parameter to the is_a_helper.
18548 (dyn_cast): Likewise.
18550 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18551 pointer from the is-a.h API.
18553 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18554 (is_a_helper <cgraph_node *>::test): ...this, matching change to
18556 (is_a_helper <varpool_node>::test): Likewise, convert to...
18557 (is_a_helper <varpool_node *>::test): ...this.
18559 (varpool_first_variable): Update for removal of implicit pointer
18560 from the is-a.h API.
18561 (varpool_next_variable): Likewise.
18562 (varpool_first_static_initializer): Likewise.
18563 (varpool_next_static_initializer): Likewise.
18564 (varpool_first_defined_variable): Likewise.
18565 (varpool_next_defined_variable): Likewise.
18566 (cgraph_first_defined_function): Likewise.
18567 (cgraph_next_defined_function): Likewise.
18568 (cgraph_first_function): Likewise.
18569 (cgraph_next_function): Likewise.
18570 (cgraph_first_function_with_gimple_body): Likewise.
18571 (cgraph_next_function_with_gimple_body): Likewise.
18572 (cgraph_alias_target): Likewise.
18573 (varpool_alias_target): Likewise.
18574 (cgraph_function_or_thunk_node): Likewise.
18575 (varpool_variable_node): Likewise.
18576 (symtab_real_symbol_p): Likewise.
18577 * cgraphunit.c (referred_to_p): Likewise.
18578 (analyze_functions): Likewise.
18579 (handle_alias_pairs): Likewise.
18580 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
18581 * gimple-ssa.h (gimple_vuse_op): Likewise.
18582 (gimple_vdef_op): Likewise.
18583 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
18584 * gimple.c (gimple_build_asm_1): Likewise.
18585 (gimple_build_try): Likewise.
18586 (gimple_build_resx): Likewise.
18587 (gimple_build_eh_dispatch): Likewise.
18588 (gimple_build_omp_for): Likewise.
18589 (gimple_omp_for_set_clauses): Likewise.
18591 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
18592 (is_a_helper <gimple_statement_asm *>::test): ...this.
18593 (is_a_helper <gimple_statement_bind>::test): Convert to...
18594 (is_a_helper <gimple_statement_bind *>::test): ...this.
18595 (is_a_helper <gimple_statement_call>::test): Convert to...
18596 (is_a_helper <gimple_statement_call *>::test): ...this.
18597 (is_a_helper <gimple_statement_catch>::test): Convert to...
18598 (is_a_helper <gimple_statement_catch *>::test): ...this.
18599 (is_a_helper <gimple_statement_resx>::test): Convert to...
18600 (is_a_helper <gimple_statement_resx *>::test): ...this.
18601 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
18602 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
18603 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
18604 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
18605 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
18606 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
18607 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
18608 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
18609 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
18610 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
18611 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
18612 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
18613 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
18614 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
18615 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
18616 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
18617 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
18618 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
18619 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
18620 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
18621 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
18622 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
18623 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
18624 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
18625 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
18626 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
18627 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
18628 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
18629 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
18630 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
18631 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
18632 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
18633 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
18634 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
18635 (is_a_helper <gimple_statement_phi>::test): Convert to...
18636 (is_a_helper <gimple_statement_phi *>::test): ...this.
18637 (is_a_helper <gimple_statement_transaction>::test): Convert to...
18638 (is_a_helper <gimple_statement_transaction *>::test): ...this.
18639 (is_a_helper <gimple_statement_try>::test): Convert to...
18640 (is_a_helper <gimple_statement_try *>::test): ...this.
18641 (is_a_helper <gimple_statement_wce>::test): Convert to...
18642 (is_a_helper <gimple_statement_wce *>::test): ...this.
18643 (is_a_helper <const gimple_statement_asm>::test): Convert to...
18644 (is_a_helper <const gimple_statement_asm *>::test): ...this.
18645 (is_a_helper <const gimple_statement_bind>::test): Convert to...
18646 (is_a_helper <const gimple_statement_bind *>::test): ...this.
18647 (is_a_helper <const gimple_statement_call>::test): Convert to...
18648 (is_a_helper <const gimple_statement_call *>::test): ...this.
18649 (is_a_helper <const gimple_statement_catch>::test): Convert to...
18650 (is_a_helper <const gimple_statement_catch *>::test): ...this.
18651 (is_a_helper <const gimple_statement_resx>::test): Convert to...
18652 (is_a_helper <const gimple_statement_resx *>::test): ...this.
18653 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
18654 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
18655 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
18656 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
18657 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
18659 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
18661 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
18663 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
18665 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
18666 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
18667 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
18669 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
18670 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
18672 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
18673 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
18674 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
18675 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
18676 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
18677 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
18679 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
18680 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
18681 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
18682 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
18684 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
18685 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
18686 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
18687 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
18688 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
18689 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
18690 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
18691 (is_a_helper <const gimple_statement_phi>::test): Convert to...
18692 (is_a_helper <const gimple_statement_phi *>::test): ...this.
18693 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
18694 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
18695 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
18696 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
18697 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
18698 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
18699 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
18701 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
18703 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
18704 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
18706 (gimple_use_ops): Update for removal of implicit pointer from the
18708 (gimple_set_use_ops): Likewise.
18709 (gimple_vuse): Likewise.
18710 (gimple_vdef): Likewise.
18711 (gimple_vuse_ptr): Likewise.
18712 (gimple_vdef_ptr): Likewise.
18713 (gimple_set_vuse): Likewise.
18714 (gimple_set_vdef): Likewise.
18715 (gimple_omp_return_set_lhs): Likewise.
18716 (gimple_omp_return_lhs): Likewise.
18717 (gimple_omp_return_lhs_ptr): Likewise.
18718 (gimple_call_fntype): Likewise.
18719 (gimple_call_set_fntype): Likewise.
18720 (gimple_call_set_internal_fn): Likewise.
18721 (gimple_call_use_set): Likewise.
18722 (gimple_call_clobber_set): Likewise.
18723 (gimple_bind_vars): Likewise.
18724 (gimple_bind_set_vars): Likewise.
18725 (gimple_bind_body_ptr): Likewise.
18726 (gimple_bind_set_body): Likewise.
18727 (gimple_bind_add_stmt): Likewise.
18728 (gimple_bind_block): Likewise.
18729 (gimple_bind_set_block): Likewise.
18730 (gimple_asm_ninputs): Likewise.
18731 (gimple_asm_noutputs): Likewise.
18732 (gimple_asm_nclobbers): Likewise.
18733 (gimple_asm_nlabels): Likewise.
18734 (gimple_asm_input_op): Likewise.
18735 (gimple_asm_input_op_ptr): Likewise.
18736 (gimple_asm_output_op): Likewise.
18737 (gimple_asm_output_op_ptr): Likewise.
18738 (gimple_asm_set_output_op): Likewise.
18739 (gimple_asm_clobber_op): Likewise.
18740 (gimple_asm_set_clobber_op): Likewise.
18741 (gimple_asm_label_op): Likewise.
18742 (gimple_asm_set_label_op): Likewise.
18743 (gimple_asm_string): Likewise.
18744 (gimple_catch_types): Likewise.
18745 (gimple_catch_types_ptr): Likewise.
18746 (gimple_catch_handler_ptr): Likewise.
18747 (gimple_catch_set_types): Likewise.
18748 (gimple_catch_set_handler): Likewise.
18749 (gimple_eh_filter_types): Likewise.
18750 (gimple_eh_filter_types_ptr): Likewise.
18751 (gimple_eh_filter_failure_ptr): Likewise.
18752 (gimple_eh_filter_set_types): Likewise.
18753 (gimple_eh_filter_set_failure): Likewise.
18754 (gimple_eh_must_not_throw_fndecl): Likewise.
18755 (gimple_eh_must_not_throw_set_fndecl): Likewise.
18756 (gimple_eh_else_n_body_ptr): Likewise.
18757 (gimple_eh_else_e_body_ptr): Likewise.
18758 (gimple_eh_else_set_n_body): Likewise.
18759 (gimple_eh_else_set_e_body): Likewise.
18760 (gimple_try_eval_ptr): Likewise.
18761 (gimple_try_cleanup_ptr): Likewise.
18762 (gimple_try_set_eval): Likewise.
18763 (gimple_try_set_cleanup): Likewise.
18764 (gimple_wce_cleanup_ptr): Likewise.
18765 (gimple_wce_set_cleanup): Likewise.
18766 (gimple_phi_capacity): Likewise.
18767 (gimple_phi_num_args): Likewise.
18768 (gimple_phi_result): Likewise.
18769 (gimple_phi_result_ptr): Likewise.
18770 (gimple_phi_set_result): Likewise.
18771 (gimple_phi_arg): Likewise.
18772 (gimple_phi_set_arg): Likewise.
18773 (gimple_resx_region): Likewise.
18774 (gimple_resx_set_region): Likewise.
18775 (gimple_eh_dispatch_region): Likewise.
18776 (gimple_eh_dispatch_set_region): Likewise.
18777 (gimple_omp_critical_name): Likewise.
18778 (gimple_omp_critical_name_ptr): Likewise.
18779 (gimple_omp_critical_set_name): Likewise.
18780 (gimple_omp_for_clauses): Likewise.
18781 (gimple_omp_for_clauses_ptr): Likewise.
18782 (gimple_omp_for_set_clauses): Likewise.
18783 (gimple_omp_for_collapse): Likewise.
18784 (gimple_omp_for_index): Likewise.
18785 (gimple_omp_for_index_ptr): Likewise.
18786 (gimple_omp_for_set_index): Likewise.
18787 (gimple_omp_for_initial): Likewise.
18788 (gimple_omp_for_initial_ptr): Likewise.
18789 (gimple_omp_for_set_initial): Likewise.
18790 (gimple_omp_for_final): Likewise.
18791 (gimple_omp_for_final_ptr): Likewise.
18792 (gimple_omp_for_set_final): Likewise.
18793 (gimple_omp_for_incr): Likewise.
18794 (gimple_omp_for_incr_ptr): Likewise.
18795 (gimple_omp_for_set_incr): Likewise.
18796 (gimple_omp_for_pre_body_ptr): Likewise.
18797 (gimple_omp_for_set_pre_body): Likewise.
18798 (gimple_omp_parallel_clauses): Likewise.
18799 (gimple_omp_parallel_clauses_ptr): Likewise.
18800 (gimple_omp_parallel_set_clauses): Likewise.
18801 (gimple_omp_parallel_child_fn): Likewise.
18802 (gimple_omp_parallel_child_fn_ptr): Likewise.
18803 (gimple_omp_parallel_set_child_fn): Likewise.
18804 (gimple_omp_parallel_data_arg): Likewise.
18805 (gimple_omp_parallel_data_arg_ptr): Likewise.
18806 (gimple_omp_parallel_set_data_arg): Likewise.
18807 (gimple_omp_task_clauses): Likewise.
18808 (gimple_omp_task_clauses_ptr): Likewise.
18809 (gimple_omp_task_set_clauses): Likewise.
18810 (gimple_omp_task_child_fn): Likewise.
18811 (gimple_omp_task_child_fn_ptr): Likewise.
18812 (gimple_omp_task_set_child_fn): Likewise.
18813 (gimple_omp_task_data_arg): Likewise.
18814 (gimple_omp_task_data_arg_ptr): Likewise.
18815 (gimple_omp_task_set_data_arg): Likewise.
18816 (gimple_omp_taskreg_clauses): Likewise.
18817 (gimple_omp_taskreg_clauses_ptr): Likewise.
18818 (gimple_omp_taskreg_set_clauses): Likewise.
18819 (gimple_omp_taskreg_child_fn): Likewise.
18820 (gimple_omp_taskreg_child_fn_ptr): Likewise.
18821 (gimple_omp_taskreg_set_child_fn): Likewise.
18822 (gimple_omp_taskreg_data_arg): Likewise.
18823 (gimple_omp_taskreg_data_arg_ptr): Likewise.
18824 (gimple_omp_taskreg_set_data_arg): Likewise.
18825 (gimple_omp_task_copy_fn): Likewise.
18826 (gimple_omp_task_copy_fn_ptr): Likewise.
18827 (gimple_omp_task_set_copy_fn): Likewise.
18828 (gimple_omp_task_arg_size): Likewise.
18829 (gimple_omp_task_arg_size_ptr): Likewise.
18830 (gimple_omp_task_set_arg_size): Likewise.
18831 (gimple_omp_task_arg_align): Likewise.
18832 (gimple_omp_task_arg_align_ptr): Likewise.
18833 (gimple_omp_task_set_arg_align): Likewise.
18834 (gimple_omp_single_clauses): Likewise.
18835 (gimple_omp_single_clauses_ptr): Likewise.
18836 (gimple_omp_single_set_clauses): Likewise.
18837 (gimple_omp_target_clauses): Likewise.
18838 (gimple_omp_target_clauses_ptr): Likewise.
18839 (gimple_omp_target_set_clauses): Likewise.
18840 (gimple_omp_target_child_fn): Likewise.
18841 (gimple_omp_target_child_fn_ptr): Likewise.
18842 (gimple_omp_target_set_child_fn): Likewise.
18843 (gimple_omp_target_data_arg): Likewise.
18844 (gimple_omp_target_data_arg_ptr): Likewise.
18845 (gimple_omp_target_set_data_arg): Likewise.
18846 (gimple_omp_teams_clauses): Likewise.
18847 (gimple_omp_teams_clauses_ptr): Likewise.
18848 (gimple_omp_teams_set_clauses): Likewise.
18849 (gimple_omp_sections_clauses): Likewise.
18850 (gimple_omp_sections_clauses_ptr): Likewise.
18851 (gimple_omp_sections_set_clauses): Likewise.
18852 (gimple_omp_sections_control): Likewise.
18853 (gimple_omp_sections_control_ptr): Likewise.
18854 (gimple_omp_sections_set_control): Likewise.
18855 (gimple_omp_for_set_cond): Likewise.
18856 (gimple_omp_for_cond): Likewise.
18857 (gimple_omp_atomic_store_set_val): Likewise.
18858 (gimple_omp_atomic_store_val): Likewise.
18859 (gimple_omp_atomic_store_val_ptr): Likewise.
18860 (gimple_omp_atomic_load_set_lhs): Likewise.
18861 (gimple_omp_atomic_load_lhs): Likewise.
18862 (gimple_omp_atomic_load_lhs_ptr): Likewise.
18863 (gimple_omp_atomic_load_set_rhs): Likewise.
18864 (gimple_omp_atomic_load_rhs): Likewise.
18865 (gimple_omp_atomic_load_rhs_ptr): Likewise.
18866 (gimple_omp_continue_control_def): Likewise.
18867 (gimple_omp_continue_control_def_ptr): Likewise.
18868 (gimple_omp_continue_set_control_def): Likewise.
18869 (gimple_omp_continue_control_use): Likewise.
18870 (gimple_omp_continue_control_use_ptr): Likewise.
18871 (gimple_omp_continue_set_control_use): Likewise.
18872 (gimple_transaction_body_ptr): Likewise.
18873 (gimple_transaction_label): Likewise.
18874 (gimple_transaction_label_ptr): Likewise.
18875 (gimple_transaction_set_body): Likewise.
18876 (gimple_transaction_set_label): Likewise.
18878 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
18879 * ipa-inline-analysis.c (inline_write_summary): Likewise.
18880 * ipa-ref.c (ipa_record_reference): Likewise.
18881 * ipa-reference.c (analyze_function): Likewise.
18882 (ipa_reference_write_optimization_summary): Likewise.
18883 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
18884 (address_taken_from_non_vtable_p): Likewise.
18885 (comdat_can_be_unshared_p_1): Likewise.
18886 * lto-cgraph.c (lto_output_ref): Likewise.
18887 (add_references): Likewise.
18888 (compute_ltrans_boundary): Likewise.
18889 (output_symtab): Likewise.
18890 (input_ref): Likewise.
18891 (input_cgraph_1): Likewise.
18892 (output_cgraph_opt_summary): Likewise.
18893 * lto-streamer-out.c (lto_output): Likewise.
18894 (output_symbol_p): Likewise.
18895 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
18896 (lsei_start_function_in_partition): Likewise.
18897 (lsei_next_variable_in_partition): Likewise.
18898 (lsei_start_variable_in_partition): Likewise.
18899 * symtab.c (insert_to_assembler_name_hash): Likewise.
18900 (unlink_from_assembler_name_hash): Likewise.
18901 (symtab_unregister_node): Likewise.
18902 (symtab_remove_node): Likewise.
18903 (dump_symtab_node): Likewise.
18904 (verify_symtab_base): Likewise.
18905 (verify_symtab_node): Likewise.
18906 (symtab_make_decl_local): Likewise.
18907 (symtab_alias_ultimate_target): Likewise.
18908 (symtab_resolve_alias): Likewise.
18909 (symtab_get_symbol_partitioning_class): Likewise.
18910 * tree-phinodes.c (allocate_phi_node): Likewise.
18911 (reserve_phi_args_for_new_edge): Likewise.
18912 (remove_phi_args): Likewise.
18913 * varpool.c (varpool_node_for_asm): Likewise.
18914 (varpool_remove_unreferenced_decls): Likewise.
18916 2014-04-23 Jeff Law <law@redhat.com>
18918 PR tree-optimization/60902
18919 * tree-ssa-threadedge.c
18920 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
18921 invalidate outputs from statements that do not produce useful
18922 outputs for threading.
18924 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
18926 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
18927 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
18928 machine descriptions for Stack Smashing Protector.
18930 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
18932 * aarch64.md (<optab>_rol<mode>3): New pattern.
18933 (<optab>_rolsi3_uxtw): Likewise.
18934 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
18936 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
18938 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
18939 (arm_cortex_a12_tune): Likewise.
18941 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18943 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
18945 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18947 * config/arm/arm.md (arm_rev16si2): New pattern.
18948 (arm_rev16si2_alt): Likewise.
18949 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
18951 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18953 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
18954 (rev16<mode>2_alt): Likewise.
18955 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
18956 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
18957 (aarch_rev16_shleft_mask_imm_p): Likewise.
18958 (aarch_rev16_p_1): Likewise.
18959 (aarch_rev16_p): Likewise.
18960 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
18961 (aarch_rev16_shright_mask_imm_p): Likewise.
18962 (aarch_rev16_shleft_mask_imm_p): Likewise.
18964 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18966 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
18967 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
18969 (cortex_a53_extra_costs): Likewise.
18970 (cortex_a57_extra_costs): Likewise.
18971 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
18972 (cortexa7_extra_costs): Likewise.
18973 (cortexa8_extra_costs): Likewise.
18974 (cortexa12_extra_costs): Likewise.
18975 (cortexa15_extra_costs): Likewise.
18976 (v7m_extra_costs): Likewise.
18977 (arm_new_rtx_costs): Handle BSWAP.
18979 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18981 * config/arm/arm.c (cortexa8_extra_costs): New table.
18982 (arm_cortex_a8_tune): New tuning struct.
18983 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
18985 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18987 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
18989 2014-04-23 Richard Biener <rguenther@suse.de>
18991 * Makefile.in (OBJS): Remove loop-unswitch.o.
18992 * tree-pass.h (make_pass_rtl_unswitch): Remove.
18993 * passes.def (pass_rtl_unswitch): Likewise.
18994 * loop-init.c (gate_rtl_unswitch): Likewise.
18995 (rtl_unswitch): Likewise.
18996 (pass_data_rtl_unswitch): Likewise.
18997 (pass_rtl_unswitch): Likewise.
18998 (make_pass_rtl_unswitch): Likewise.
18999 * rtl.h (reversed_condition): Likewise.
19000 (compare_and_jump_seq): Likewise.
19001 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19003 * loop-unroll.c (compare_and_jump_seq): Likewise.
19005 2014-04-23 Richard Biener <rguenther@suse.de>
19007 PR tree-optimization/60903
19008 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19009 commented code block.
19010 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19011 loop flags to newly created BBs and edges.
19013 2014-04-23 Nick Clifton <nickc@redhat.com>
19015 * config/msp430/msp430.c (msp430_handle_option): Move function
19017 (msp430_option_override): Simplify mcu and mcpu option handling.
19018 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19019 support for -mhwmult command line option.
19020 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19021 -mhwmult command line option.
19022 (msp430_hwmult_enabled): Delete.
19023 (msp43o_output_labelref): Add support for -mhwmult command line option.
19024 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19025 (umulsidi3): Likewise.
19026 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19027 (mcpu, mlarge, msmall): Likewise.
19028 (mhwmult): New option.
19029 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19031 (msp430_is_f5_mcu): Remove prototype.
19032 (msp430_use_f5_series_hwmult): Add prototype.
19033 * config/msp430/msp430-opts.h: New file.
19034 * common/config/msp430: New directory.
19035 * common/config/msp430/msp430-common.c: New file.
19036 * config.gcc (msp430): Remove target_has_targetm_common.
19037 * doc/invoke.texi: Document -mhwmult command line option.
19039 2014-04-23 Nick Clifton <nickc@redhat.com>
19041 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19042 default-manifest.o if it can be found in the search path.
19043 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19045 2014-04-23 Terry Guo <terry.guo@arm.com>
19047 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19049 2014-04-23 Richard Biener <rguenther@suse.de>
19051 PR middle-end/60895
19052 * tree-inline.c (declare_return_variable): Use mark_addressable.
19054 2014-04-23 Richard Biener <rguenther@suse.de>
19056 PR middle-end/60891
19057 * loop-init.c (loop_optimizer_init): Make sure to apply
19058 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19060 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19063 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19065 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19066 if flag_sanitize_undefined_trap_on_error.
19067 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19068 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19069 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19070 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19071 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19072 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19073 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19074 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19075 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19076 * ubsan.c (ubsan_instrument_unreachable): Return
19077 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19078 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19079 if flag_sanitize_undefined_trap_on_error and
19080 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19081 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19082 instrument_bool_enum_load): Emit __builtin_trap () if
19083 flag_sanitize_undefined_trap_on_error and
19084 __builtin_handle_*_abort () if !flag_sanitize_recover.
19085 * doc/invoke.texi (-fsanitize-recover,
19086 -fsanitize-undefined-trap-on-error): Document.
19088 2014-04-22 Christian Bruel <christian.bruel@st.com>
19090 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19091 Force immediates to SImode.
19093 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19095 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19096 (lroundsfsi2): New.
19097 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19098 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19099 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19100 (nios2_fpu_insn): Add entry for round.
19101 (N2FPU_NO_ERRNO_P): Define.
19102 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19104 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19106 2014-04-22 Richard Henderson <rth@redhat.com>
19108 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19109 (add<GPI>3_compare0): Remove leading * from name.
19110 (add<GPI>3_carryin): Likewise.
19111 (sub<GPI>3_compare0): Likewise.
19112 (sub<GPI>3_carryin): Likewise.
19113 (<su_optab>mulditi3): New expander.
19114 (multi3): New expander.
19115 (madd<GPI>): Remove leading * from name.
19117 2014-04-22 Martin Jambor <mjambor@suse.cz>
19119 * cgraphclones.c (cgraph_function_versioning): Copy
19120 ipa_transforms_to_apply instead of asserting it is empty.
19122 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19125 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19126 on count_exp to get mode.
19128 2014-04-22 Andrew Pinski <apinski@cavium.com>
19130 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19131 Handle TLS for ILP32.
19132 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19133 (tlsie_small_<mode>): this and handle PTR.
19134 (tlsie_small_sidi): New pattern.
19135 (tlsle_small): Change to an expand to handle ILP32.
19136 (tlsle_small_<mode>): New pattern.
19137 (tlsdesc_small): Rename to ...
19138 (tlsdesc_small_<mode>): this and handle PTR.
19140 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19142 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19144 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19146 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19147 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19148 (aarch64_types_signed_poly_qualifiers): Likewise.
19149 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19150 (aarch64_types_poly_signed_qualifiers): Likewise.
19151 (TYPES_REINTERP_SS): Type macro added.
19152 (TYPES_REINTERP_SU): Likewise.
19153 (TYPES_REINTERP_SP): Likewise.
19154 (TYPES_REINTERP_US): Likewise.
19155 (TYPES_REINTERP_PS): Likewise.
19156 (aarch64_fold_builtin): New expression folding added.
19157 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19158 Declarations removed.
19159 (REINTERP_SS): Declarations added.
19160 (REINTERP_US): Likewise.
19161 (REINTERP_PS): Likewise.
19162 (REINTERP_SU): Likewise.
19163 (REINTERP_SP): Likewise.
19164 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19165 (vreinterpretq_p8_f64): Likewise.
19166 (vreinterpret_p16_f64): Likewise.
19167 (vreinterpretq_p16_f64): Likewise.
19168 (vreinterpret_f32_f64): Likewise.
19169 (vreinterpretq_f32_f64): Likewise.
19170 (vreinterpret_f64_f32): Likewise.
19171 (vreinterpret_f64_p8): Likewise.
19172 (vreinterpret_f64_p16): Likewise.
19173 (vreinterpret_f64_s8): Likewise.
19174 (vreinterpret_f64_s16): Likewise.
19175 (vreinterpret_f64_s32): Likewise.
19176 (vreinterpret_f64_s64): Likewise.
19177 (vreinterpret_f64_u8): Likewise.
19178 (vreinterpret_f64_u16): Likewise.
19179 (vreinterpret_f64_u32): Likewise.
19180 (vreinterpret_f64_u64): Likewise.
19181 (vreinterpretq_f64_f32): Likewise.
19182 (vreinterpretq_f64_p8): Likewise.
19183 (vreinterpretq_f64_p16): Likewise.
19184 (vreinterpretq_f64_s8): Likewise.
19185 (vreinterpretq_f64_s16): Likewise.
19186 (vreinterpretq_f64_s32): Likewise.
19187 (vreinterpretq_f64_s64): Likewise.
19188 (vreinterpretq_f64_u8): Likewise.
19189 (vreinterpretq_f64_u16): Likewise.
19190 (vreinterpretq_f64_u32): Likewise.
19191 (vreinterpretq_f64_u64): Likewise.
19192 (vreinterpret_s64_f64): Likewise.
19193 (vreinterpretq_s64_f64): Likewise.
19194 (vreinterpret_u64_f64): Likewise.
19195 (vreinterpretq_u64_f64): Likewise.
19196 (vreinterpret_s8_f64): Likewise.
19197 (vreinterpretq_s8_f64): Likewise.
19198 (vreinterpret_s16_f64): Likewise.
19199 (vreinterpretq_s16_f64): Likewise.
19200 (vreinterpret_s32_f64): Likewise.
19201 (vreinterpretq_s32_f64): Likewise.
19202 (vreinterpret_u8_f64): Likewise.
19203 (vreinterpretq_u8_f64): Likewise.
19204 (vreinterpret_u16_f64): Likewise.
19205 (vreinterpretq_u16_f64): Likewise.
19206 (vreinterpret_u32_f64): Likewise.
19207 (vreinterpretq_u32_f64): Likewise.
19209 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19211 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19212 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19213 (vreinterpret_p8_s8): Likewise.
19214 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19215 (vreinterpret_p8_s16): Likewise.
19216 (vreinterpret_p8_s32): Likewise.
19217 (vreinterpret_p8_s64): Likewise.
19218 (vreinterpret_p8_f32): Likewise.
19219 (vreinterpret_p8_u8): Likewise.
19220 (vreinterpret_p8_u16): Likewise.
19221 (vreinterpret_p8_u32): Likewise.
19222 (vreinterpret_p8_u64): Likewise.
19223 (vreinterpret_p8_p16): Likewise.
19224 (vreinterpretq_p8_s8): Likewise.
19225 (vreinterpretq_p8_s16): Likewise.
19226 (vreinterpretq_p8_s32): Likewise.
19227 (vreinterpretq_p8_s64): Likewise.
19228 (vreinterpretq_p8_f32): Likewise.
19229 (vreinterpretq_p8_u8): Likewise.
19230 (vreinterpretq_p8_u16): Likewise.
19231 (vreinterpretq_p8_u32): Likewise.
19232 (vreinterpretq_p8_u64): Likewise.
19233 (vreinterpretq_p8_p16): Likewise.
19234 (vreinterpret_p16_s8): Likewise.
19235 (vreinterpret_p16_s16): Likewise.
19236 (vreinterpret_p16_s32): Likewise.
19237 (vreinterpret_p16_s64): Likewise.
19238 (vreinterpret_p16_f32): Likewise.
19239 (vreinterpret_p16_u8): Likewise.
19240 (vreinterpret_p16_u16): Likewise.
19241 (vreinterpret_p16_u32): Likewise.
19242 (vreinterpret_p16_u64): Likewise.
19243 (vreinterpret_p16_p8): Likewise.
19244 (vreinterpretq_p16_s8): Likewise.
19245 (vreinterpretq_p16_s16): Likewise.
19246 (vreinterpretq_p16_s32): Likewise.
19247 (vreinterpretq_p16_s64): Likewise.
19248 (vreinterpretq_p16_f32): Likewise.
19249 (vreinterpretq_p16_u8): Likewise.
19250 (vreinterpretq_p16_u16): Likewise.
19251 (vreinterpretq_p16_u32): Likewise.
19252 (vreinterpretq_p16_u64): Likewise.
19253 (vreinterpretq_p16_p8): Likewise.
19254 (vreinterpret_f32_s8): Likewise.
19255 (vreinterpret_f32_s16): Likewise.
19256 (vreinterpret_f32_s32): Likewise.
19257 (vreinterpret_f32_s64): Likewise.
19258 (vreinterpret_f32_u8): Likewise.
19259 (vreinterpret_f32_u16): Likewise.
19260 (vreinterpret_f32_u32): Likewise.
19261 (vreinterpret_f32_u64): Likewise.
19262 (vreinterpret_f32_p8): Likewise.
19263 (vreinterpret_f32_p16): Likewise.
19264 (vreinterpretq_f32_s8): Likewise.
19265 (vreinterpretq_f32_s16): Likewise.
19266 (vreinterpretq_f32_s32): Likewise.
19267 (vreinterpretq_f32_s64): Likewise.
19268 (vreinterpretq_f32_u8): Likewise.
19269 (vreinterpretq_f32_u16): Likewise.
19270 (vreinterpretq_f32_u32): Likewise.
19271 (vreinterpretq_f32_u64): Likewise.
19272 (vreinterpretq_f32_p8): Likewise.
19273 (vreinterpretq_f32_p16): Likewise.
19274 (vreinterpret_s64_s8): Likewise.
19275 (vreinterpret_s64_s16): Likewise.
19276 (vreinterpret_s64_s32): Likewise.
19277 (vreinterpret_s64_f32): Likewise.
19278 (vreinterpret_s64_u8): Likewise.
19279 (vreinterpret_s64_u16): Likewise.
19280 (vreinterpret_s64_u32): Likewise.
19281 (vreinterpret_s64_u64): Likewise.
19282 (vreinterpret_s64_p8): Likewise.
19283 (vreinterpret_s64_p16): Likewise.
19284 (vreinterpretq_s64_s8): Likewise.
19285 (vreinterpretq_s64_s16): Likewise.
19286 (vreinterpretq_s64_s32): Likewise.
19287 (vreinterpretq_s64_f32): Likewise.
19288 (vreinterpretq_s64_u8): Likewise.
19289 (vreinterpretq_s64_u16): Likewise.
19290 (vreinterpretq_s64_u32): Likewise.
19291 (vreinterpretq_s64_u64): Likewise.
19292 (vreinterpretq_s64_p8): Likewise.
19293 (vreinterpretq_s64_p16): Likewise.
19294 (vreinterpret_u64_s8): Likewise.
19295 (vreinterpret_u64_s16): Likewise.
19296 (vreinterpret_u64_s32): Likewise.
19297 (vreinterpret_u64_s64): Likewise.
19298 (vreinterpret_u64_f32): Likewise.
19299 (vreinterpret_u64_u8): Likewise.
19300 (vreinterpret_u64_u16): Likewise.
19301 (vreinterpret_u64_u32): Likewise.
19302 (vreinterpret_u64_p8): Likewise.
19303 (vreinterpret_u64_p16): Likewise.
19304 (vreinterpretq_u64_s8): Likewise.
19305 (vreinterpretq_u64_s16): Likewise.
19306 (vreinterpretq_u64_s32): Likewise.
19307 (vreinterpretq_u64_s64): Likewise.
19308 (vreinterpretq_u64_f32): Likewise.
19309 (vreinterpretq_u64_u8): Likewise.
19310 (vreinterpretq_u64_u16): Likewise.
19311 (vreinterpretq_u64_u32): Likewise.
19312 (vreinterpretq_u64_p8): Likewise.
19313 (vreinterpretq_u64_p16): Likewise.
19314 (vreinterpret_s8_s16): Likewise.
19315 (vreinterpret_s8_s32): Likewise.
19316 (vreinterpret_s8_s64): Likewise.
19317 (vreinterpret_s8_f32): Likewise.
19318 (vreinterpret_s8_u8): Likewise.
19319 (vreinterpret_s8_u16): Likewise.
19320 (vreinterpret_s8_u32): Likewise.
19321 (vreinterpret_s8_u64): Likewise.
19322 (vreinterpret_s8_p8): Likewise.
19323 (vreinterpret_s8_p16): Likewise.
19324 (vreinterpretq_s8_s16): Likewise.
19325 (vreinterpretq_s8_s32): Likewise.
19326 (vreinterpretq_s8_s64): Likewise.
19327 (vreinterpretq_s8_f32): Likewise.
19328 (vreinterpretq_s8_u8): Likewise.
19329 (vreinterpretq_s8_u16): Likewise.
19330 (vreinterpretq_s8_u32): Likewise.
19331 (vreinterpretq_s8_u64): Likewise.
19332 (vreinterpretq_s8_p8): Likewise.
19333 (vreinterpretq_s8_p16): Likewise.
19334 (vreinterpret_s16_s8): Likewise.
19335 (vreinterpret_s16_s32): Likewise.
19336 (vreinterpret_s16_s64): Likewise.
19337 (vreinterpret_s16_f32): Likewise.
19338 (vreinterpret_s16_u8): Likewise.
19339 (vreinterpret_s16_u16): Likewise.
19340 (vreinterpret_s16_u32): Likewise.
19341 (vreinterpret_s16_u64): Likewise.
19342 (vreinterpret_s16_p8): Likewise.
19343 (vreinterpret_s16_p16): Likewise.
19344 (vreinterpretq_s16_s8): Likewise.
19345 (vreinterpretq_s16_s32): Likewise.
19346 (vreinterpretq_s16_s64): Likewise.
19347 (vreinterpretq_s16_f32): Likewise.
19348 (vreinterpretq_s16_u8): Likewise.
19349 (vreinterpretq_s16_u16): Likewise.
19350 (vreinterpretq_s16_u32): Likewise.
19351 (vreinterpretq_s16_u64): Likewise.
19352 (vreinterpretq_s16_p8): Likewise.
19353 (vreinterpretq_s16_p16): Likewise.
19354 (vreinterpret_s32_s8): Likewise.
19355 (vreinterpret_s32_s16): Likewise.
19356 (vreinterpret_s32_s64): Likewise.
19357 (vreinterpret_s32_f32): Likewise.
19358 (vreinterpret_s32_u8): Likewise.
19359 (vreinterpret_s32_u16): Likewise.
19360 (vreinterpret_s32_u32): Likewise.
19361 (vreinterpret_s32_u64): Likewise.
19362 (vreinterpret_s32_p8): Likewise.
19363 (vreinterpret_s32_p16): Likewise.
19364 (vreinterpretq_s32_s8): Likewise.
19365 (vreinterpretq_s32_s16): Likewise.
19366 (vreinterpretq_s32_s64): Likewise.
19367 (vreinterpretq_s32_f32): Likewise.
19368 (vreinterpretq_s32_u8): Likewise.
19369 (vreinterpretq_s32_u16): Likewise.
19370 (vreinterpretq_s32_u32): Likewise.
19371 (vreinterpretq_s32_u64): Likewise.
19372 (vreinterpretq_s32_p8): Likewise.
19373 (vreinterpretq_s32_p16): Likewise.
19374 (vreinterpret_u8_s8): Likewise.
19375 (vreinterpret_u8_s16): Likewise.
19376 (vreinterpret_u8_s32): Likewise.
19377 (vreinterpret_u8_s64): Likewise.
19378 (vreinterpret_u8_f32): Likewise.
19379 (vreinterpret_u8_u16): Likewise.
19380 (vreinterpret_u8_u32): Likewise.
19381 (vreinterpret_u8_u64): Likewise.
19382 (vreinterpret_u8_p8): Likewise.
19383 (vreinterpret_u8_p16): Likewise.
19384 (vreinterpretq_u8_s8): Likewise.
19385 (vreinterpretq_u8_s16): Likewise.
19386 (vreinterpretq_u8_s32): Likewise.
19387 (vreinterpretq_u8_s64): Likewise.
19388 (vreinterpretq_u8_f32): Likewise.
19389 (vreinterpretq_u8_u16): Likewise.
19390 (vreinterpretq_u8_u32): Likewise.
19391 (vreinterpretq_u8_u64): Likewise.
19392 (vreinterpretq_u8_p8): Likewise.
19393 (vreinterpretq_u8_p16): Likewise.
19394 (vreinterpret_u16_s8): Likewise.
19395 (vreinterpret_u16_s16): Likewise.
19396 (vreinterpret_u16_s32): Likewise.
19397 (vreinterpret_u16_s64): Likewise.
19398 (vreinterpret_u16_f32): Likewise.
19399 (vreinterpret_u16_u8): Likewise.
19400 (vreinterpret_u16_u32): Likewise.
19401 (vreinterpret_u16_u64): Likewise.
19402 (vreinterpret_u16_p8): Likewise.
19403 (vreinterpret_u16_p16): Likewise.
19404 (vreinterpretq_u16_s8): Likewise.
19405 (vreinterpretq_u16_s16): Likewise.
19406 (vreinterpretq_u16_s32): Likewise.
19407 (vreinterpretq_u16_s64): Likewise.
19408 (vreinterpretq_u16_f32): Likewise.
19409 (vreinterpretq_u16_u8): Likewise.
19410 (vreinterpretq_u16_u32): Likewise.
19411 (vreinterpretq_u16_u64): Likewise.
19412 (vreinterpretq_u16_p8): Likewise.
19413 (vreinterpretq_u16_p16): Likewise.
19414 (vreinterpret_u32_s8): Likewise.
19415 (vreinterpret_u32_s16): Likewise.
19416 (vreinterpret_u32_s32): Likewise.
19417 (vreinterpret_u32_s64): Likewise.
19418 (vreinterpret_u32_f32): Likewise.
19419 (vreinterpret_u32_u8): Likewise.
19420 (vreinterpret_u32_u16): Likewise.
19421 (vreinterpret_u32_u64): Likewise.
19422 (vreinterpret_u32_p8): Likewise.
19423 (vreinterpret_u32_p16): Likewise.
19424 (vreinterpretq_u32_s8): Likewise.
19425 (vreinterpretq_u32_s16): Likewise.
19426 (vreinterpretq_u32_s32): Likewise.
19427 (vreinterpretq_u32_s64): Likewise.
19428 (vreinterpretq_u32_f32): Likewise.
19429 (vreinterpretq_u32_u8): Likewise.
19430 (vreinterpretq_u32_u16): Likewise.
19431 (vreinterpretq_u32_u64): Likewise.
19432 (vreinterpretq_u32_p8): Likewise.
19433 (vreinterpretq_u32_p16): Likewise.
19435 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19437 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19439 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19441 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19442 (vqnegd_s64): Likewise.
19443 (vqabs_s64): Likewise.
19444 (vqabsd_s64): Likewise.
19446 2014-04-22 Richard Henderson <rth@redhat.com>
19448 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19449 computation to the top of the loop.
19451 2014-04-22 Renlin <renlin.li@arm.com>
19452 Jiong Wang <jiong.wang@arm.com>
19454 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19455 * config/aarch64/aarch64.c (aarch64_layout_frame)
19456 (aarch64_initial_elimination_offset): Likewise.
19458 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19460 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19463 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19465 * machmode.h (bitwise_mode_for_mode): Declare.
19466 * stor-layout.h (bitwise_type_for_mode): Likewise.
19467 * stor-layout.c (bitwise_mode_for_mode): New function.
19468 (bitwise_type_for_mode): Likewise.
19469 * builtins.c (fold_builtin_memory_op): Use it instead of
19470 int_mode_for_mode and build_nonstandard_integer_type.
19472 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19474 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19475 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19476 (*-*-solaris2*): Simplify.
19477 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19478 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19479 *-*-solaris2.9* handling.
19481 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19483 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19484 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19485 handling, simplify.
19486 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19487 * configure: Regenerate.
19489 * config/i386/sol2-9.h: Remove.
19491 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19492 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19493 Remove Solaris 9 references.
19495 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19497 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19498 (floatuns<GPI:mode><GPF:mode>2): Remove.
19499 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19500 and floatuns conversions.
19501 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19502 and floatuns conversions.
19503 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19504 (w1,w2): New mode attributes for inequal width conversions.
19506 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19508 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19509 the output asm format.
19511 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19513 * config/aarch64/aarch64-simd.md
19514 (aarch64_cm<optab>di): Always split.
19515 (*aarch64_cm<optab>di): New.
19516 (aarch64_cmtstdi): Always split.
19517 (*aarch64_cmtstdi): New.
19519 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19521 PR tree-optimization/60823
19522 * omp-low.c (ipa_simd_modify_function_body): Go through
19523 all SSA_NAMEs and for those refering to vector arguments
19524 which are going to be replaced adjust SSA_NAME_VAR and,
19525 if it is a default definition, change it into a non-default
19526 definition assigned at the beginning of function from new_decl.
19527 (ipa_simd_modify_stmt_ops): Rewritten.
19528 * tree-dfa.c (set_ssa_default_def): When removing default def,
19529 check for NULL loc instead of NULL *loc.
19531 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19533 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19534 restrictions on core registers for DImode values in Thumb2.
19536 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19538 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19539 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19541 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19543 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19544 (*iordi_notzesidi_di): Likewise.
19545 (*iordi_notsesidi_di): Likewise.
19547 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19549 * config/arm/arm-protos.h (tune_params): New struct members.
19550 * config/arm/arm.c: Initialise tune_params per processor.
19551 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19552 for speed, based on new tune_params.
19554 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19556 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19557 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19558 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19559 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19560 * config/aarch64/arm_neon.h (vrnd_f64): Added.
19561 (vrnda_f64): Likewise.
19562 (vrndi_f64): Likewise.
19563 (vrndm_f64): Likewise.
19564 (vrndn_f64): Likewise.
19565 (vrndp_f64): Likewise.
19566 (vrndx_f64): Likewise.
19568 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19570 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19571 GET_MODE_SIZE argument is enum machine_mode.
19573 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19576 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
19577 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
19579 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
19581 PR middle-end/60281
19582 * asan.c (asan_emit_stack_protection): Force the base to align to
19583 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
19584 appropriate bits if STRICT_ALIGNMENT.
19585 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
19587 (expand_used_vars): Leave a space in the stack frame for alignment
19588 if STRICT_ALIGNMENT.
19590 2014-04-21 David Malcolm <dmalcolm@redhat.com>
19592 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
19594 (gimple_store_p): Likewise.
19595 (gimple_assign_load_p): Likewise.
19596 (gimple_assign_cast_p): Likewise.
19597 (gimple_clobber_p): Likewise.
19599 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
19600 rather than a gimple.
19601 (gimple_assign_cast_p): Likewise.
19603 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19606 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
19607 If mode is DDmode and TARGET_E500_DOUBLE allow move.
19609 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
19610 more debug information for E500 if -mdebug=reg.
19612 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
19615 * config/i386/i386.c (ix86_expand_builtin)
19616 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
19617 register for target RTX.
19618 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
19620 2014-04-18 Cong Hou <congh@google.com>
19622 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
19623 the widen-mult pattern by handling two operands with different sizes,
19624 and operands whose size is smaller than half of the result type.
19626 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19628 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
19629 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
19630 (do_estimate_edge_time): Compute it.
19631 * ipa-inline.c (want_inline_small_function_p): Bypass
19632 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
19634 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19636 * ipa-inline.c (spec_rem): New static variable.
19637 (dump_overall_stats): New function.
19638 (dump_inline_stats): New function.
19640 2014-04-18 Richard Henderson <rth@redhat.com>
19642 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
19643 to GET_MODE_SIZE, not a reg_class_t.
19645 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19647 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
19648 (vsx_xxmrglw_<mode>): Likewise.
19650 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
19653 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
19654 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
19655 (rs6000_init_hard_regno_mode_ok): Likewise.
19657 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
19659 * ipa-inline.c (inline_small_functions): Account only non-cold
19661 * doc/invoke.texi (inline-unit-growth): Update documentation.
19663 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
19665 * config/rs6000/rs6000.md (addti3, subti3): New.
19667 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
19670 * config/i386/i386.c (ix86_expand_clear): Remove outdated
19671 comment. Check optimize_insn_for_size_p instead of
19672 optimize_insn_for_speed_p.
19674 2014-04-17 Martin Jambor <mjambor@suse.cz>
19676 * gimple-iterator.c (gsi_start_edge): New function.
19677 * gimple-iterator.h (gsi_start_edge): Declare.
19678 * tree-sra.c (single_non_eh_succ): New function.
19679 (disqualify_ops_if_throwing_stmt): Renamed to
19680 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
19681 having one non-EH successor BB.
19682 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
19683 generate loads into replacements.
19684 (sra_modify_assign): Likewise and and also use the simple path for
19686 (sra_modify_function_body): Commit statements on edges.
19688 2014-04-17 Richard Biener <rguenther@suse.de>
19690 PR middle-end/60849
19691 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
19692 comparison results and add clarifying comment.
19694 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19696 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
19697 (blank_mode): Initialize it.
19698 (emit_mode_size_inline, emit_mode_nunits_inline,
19699 emit_mode_inner_inline): New functions.
19700 (emit_insn_modes_h): Call them and surround their output with
19701 #if GCC_VERSION >= 4001 ... #endif.
19702 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
19703 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
19704 mode_* arrays if the argument is __builtin_constant_p.
19705 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
19706 is enum machine_mode.
19708 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19710 * passes.c (opt_pass::execute): Adjust.
19711 (pass_manager::execute_pass_mode_switching): Likewise.
19712 (early_local_passes::execute): Likewise.
19713 (execute_one_pass): Pass cfun to the pass's execute method.
19714 * tree-pass.h (opt_pass::execute): Add function * argument.
19715 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19716 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19717 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19718 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19719 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19720 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
19721 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
19722 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19723 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19724 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
19725 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
19726 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
19727 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
19728 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
19729 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19730 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19731 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19732 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
19733 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19734 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19735 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19736 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19737 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19738 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19739 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19740 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19741 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19742 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19743 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19746 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19748 * passes.c (opt_pass::gate): Take function * argument.
19749 (gate_all_early_local_passes): Merge into
19750 (early_local_passes::gate): this.
19751 (gate_all_early_optimizations): Merge into
19752 (all_early_optimizations::gate): this.
19753 (gate_all_optimizations): Mege into
19754 (all_optimizations::gate): this.
19755 (gate_all_optimizations_g): Merge into
19756 (all_optimizations_g::gate): this.
19757 (gate_rest_of_compilation): Mege into
19758 (rest_of_compilation::gate): this.
19759 (gate_postreload): Merge into
19760 (postreload::gate): this.
19761 (dump_one_pass): Pass cfun to the pass's gate method.
19762 (execute_ipa_summary_passes): Likewise.
19763 (execute_one_pass): Likewise.
19764 (ipa_write_summaries_2): Likewise.
19765 (ipa_write_optimization_summaries_1): Likewise.
19766 (ipa_read_summaries_1): Likewise.
19767 (ipa_read_optimization_summaries_1): Likewise.
19768 (execute_ipa_stmt_fixups): Likewise.
19769 * tree-pass.h (opt_pass::gate): Add function * argument.
19770 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
19771 combine-stack-adj.c, combine.c, compare-elim.c,
19772 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19773 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
19774 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
19775 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
19776 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19777 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19778 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19779 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
19780 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19781 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
19782 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19783 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19784 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
19785 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19786 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19787 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19788 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19789 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19790 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19791 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19792 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19793 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19794 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
19795 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
19796 var-tracking.c, vtable-verify.c, web.c: Adjust.
19798 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19800 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
19801 * configure: Regenerate.
19803 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19805 * passes.c (dump_one_pass): don't check pass->has_gate.
19806 (execute_ipa_summary_passes): Likewise.
19807 (execute_one_pass): Likewise.
19808 (ipa_write_summaries_2): Likewise.
19809 (ipa_write_optimization_summaries_1): Likewise.
19810 (ipa_read_optimization_summaries_1): Likewise.
19811 (execute_ipa_stmt_fixups): Likewise.
19812 * tree-pass.h (pass_data::has_gate): Remove.
19813 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19814 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19815 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19816 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19817 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19818 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19819 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19820 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19821 gimple-low.c, gimple-ssa-isolate-paths.c,
19822 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19823 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
19824 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19825 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
19826 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
19827 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
19828 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
19829 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
19830 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
19831 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19832 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19833 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19834 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19835 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19836 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19837 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19838 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19839 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19840 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19841 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19842 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19843 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19846 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19848 * pass_manager.h (pass_manager::register_dump_files_1): Remove
19850 * passes.c (pass_manager::register_dump_files_1): Merge into
19851 (pass_manager::register_dump_files): this, and remove its handling of
19852 properties since the pass always has the properties anyway.
19853 (pass_manager::pass_manager): Adjust.
19855 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19857 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
19858 * passes.c (pass_manager::register_dump_files_1): Remove dead code
19859 dealing with properties.
19860 (pass_manager::register_dump_files): Adjust.
19862 2014-03-20 Mark Wielaard <mjw@redhat.com>
19864 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
19865 then represent the bound as normal constant value.
19867 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19870 Forward port from 4.8 branch
19871 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
19873 * config/i386/bmiintrin.h (_blsi_u32): New.
19874 (_blsi_u64): Ditto.
19875 (_blsr_u32): Ditto.
19876 (_blsr_u64): Ditto.
19877 (_blsmsk_u32): Ditto.
19878 (_blsmsk_u64): Ditto.
19879 (_tzcnt_u32): Ditto.
19880 (_tzcnt_u64): Ditto.
19882 2014-04-17 Kito Cheng <kito@0xlab.org>
19884 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
19886 2014-04-17 Richard Biener <rguenther@suse.de>
19888 PR middle-end/60849
19889 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
19890 boolean results for comparisons.
19892 2014-04-17 Richard Biener <rguenther@suse.de>
19894 PR tree-optimization/60836
19895 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
19896 initial PHI args to be gimple values.
19898 2014-04-17 Richard Biener <rguenther@suse.de>
19900 PR tree-optimization/60841
19901 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
19902 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
19903 of stmts to SLP build.
19904 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
19905 (vect_analyze_slp): Likewise.
19906 (vect_analyze_slp_instance): Likewise.
19907 (vect_build_slp_tree): Limit overall SLP tree growth.
19908 * tree-vectorizer.h (vect_analyze_data_refs,
19909 vect_analyze_slp): Adjust prototypes.
19911 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19913 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
19916 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19918 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
19919 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
19920 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
19921 for TARGET_SLOW_PSHUFB
19923 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19925 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
19926 * config/i386/i386.c (intel_cost): Ditto.
19928 2014-04-17 Joey Ye <joey.ye@arm.com>
19930 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
19932 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19934 * opts.c (common_handle_option): Disable -fipa-reference coorectly
19935 with -fuse-profile.
19937 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19939 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
19940 (type_all_derivations_known_p): New predicate.
19941 (type_all_ctors_visible_p): New predicate.
19942 (type_possibly_instantiated_p): New predicate.
19943 (get_odr_type): Compute all_derivations_known.
19944 (dump_odr_type): Dump the flag.
19945 (maybe_record_type): Cleanup.
19946 (record_target_from_binfo): Add bases_to_consider array;
19947 record bases for types w/o instances and skip CXX destructor.
19948 (possible_polymorphic_call_targets_1): Add bases_to_consider
19949 and consider_construction parameters; check if type may have instance.
19950 (get_polymorphic_call_info): Set maybe_in_construction to true
19951 when we know nothing.
19952 (record_targets_from_bases): Skip CXX destructors; they are
19953 never called for types in construction.
19954 (possible_polymorphic_call_targets): Do not record target when
19955 type may not have instance.
19957 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19960 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
19961 external aliases alive, too.
19963 2014-04-16 Andrew Pinski <apinski@cavium.com>
19965 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
19968 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
19970 * final.c (compute_alignments): Do not apply loop alignment to a block
19971 falling through to the exit.
19973 2014-04-16 Catherine Moore <clm@codesourcery.com>
19975 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
19976 Adjust constraints for microMIPS store patterns.
19978 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
19980 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
19982 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
19984 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
19985 (append_use): Run at -O0.
19986 (append_vdef): Likewise.
19987 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
19988 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
19990 2014-04-16 Jakub Jelinek <jakub@redhat.com>
19992 PR tree-optimization/60844
19993 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
19994 (propagate_op_to_single_use, remove_visited_stmt_chain,
19995 linearize_expr, repropagate_negates, reassociate_bb): Use it
19996 instead of gsi_remove.
19998 2014-04-16 Martin Jambor <mjambor@suse.cz>
20000 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20001 ipa_transforms_to_apply.
20002 (cgraph_function_versioning): Assert that old_node has empty
20003 ipa_transforms_to_apply.
20004 * trans-mem.c (ipa_tm_create_version): Likewise.
20005 * tree-inline.c (tree_function_versioning): Do not duplicate
20006 ipa_transforms_to_apply.
20008 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20011 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20013 Pass necessary as flags on 64-bit Solaris/x86.
20014 Use lowercase relocs for x86_64-*-*.
20015 * configure: Regenerate.
20017 2014-04-15 Jan Hubicka <jh@suse.cz>
20019 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20020 (maybe_record_node, likely_target_p): Use it.
20022 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20025 Revert following patch
20027 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20030 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20031 software floating point or no floating point registers, do not
20032 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20033 in GPRs that occurs after we tested for GPRs that would never be
20036 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20037 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20038 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20039 specifically allow DDmode, since that does not use the SPE SIMD
20042 2014-03-21 Mark Wielaard <mjw@redhat.com>
20044 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20045 as unsigned or int depending on type and value used.
20047 2014-04-15 Richard Biener <rguenther@suse.de>
20049 PR rtl-optimization/56965
20050 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20051 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20053 * alias.c (true_dependence_1): Do not call
20054 nonoverlapping_component_refs_p.
20055 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20056 nonoverlapping_component_refs_p.
20057 (indirect_refs_may_alias_p): Likewise.
20059 2014-04-15 Teresa Johnson <tejohnson@google.com>
20061 * cfg.c (dump_bb_info): Fix flags check.
20062 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20064 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20066 PR rtl-optimization/60663
20067 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20070 2014-04-15 Richard Biener <rguenther@suse.de>
20072 * lto-streamer.h (LTO_major_version): Bump to 4.
20074 2014-04-15 Richard Biener <rguenther@suse.de>
20076 * common.opt (lto_partition_model): New enum.
20077 (flto-partition=): Merge separate options with a single with argument,
20078 add -flto-partition=one support.
20079 * flag-types.h (enum lto_partition_model): Declare.
20080 * opts.c (finish_options): Remove duplicate -flto-partition=
20082 * lto-wrapper.c (run_gcc): Adjust.
20084 2014-04-15 Richard Biener <rguenther@suse.de>
20086 * alias.c (ncr_compar): New function.
20087 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20089 2014-04-15 Richard Biener <rguenther@suse.de>
20091 * alias.c (record_component_aliases): Do not walk BINFOs.
20093 2014-04-15 Richard Biener <rguenther@suse.de>
20095 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20096 Add struct function argument and adjust.
20097 (find_func_aliases_for_call): Likewise.
20098 (find_func_aliases): Likewise.
20099 (find_func_clobbers): Likewise.
20100 (intra_create_variable_infos): Likewise.
20101 (compute_points_to_sets): Likewise.
20102 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20104 2014-04-15 Richard Biener <rguenther@suse.de>
20106 * tree.c (iterative_hash_expr): Use enum tree_code_class
20107 to store TREE_CODE_CLASS.
20108 (tree_block): Likewise.
20109 (tree_set_block): Likewise.
20110 * tree.h (fold_build_pointer_plus_loc): Use
20111 convert_to_ptrofftype_loc.
20113 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20116 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20119 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20121 * cfgloop.h (struct loop): Move force_vectorize down.
20122 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20123 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20124 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20125 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20126 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20127 * tree-core.h (enum annot_expr_kind): Add new kind values.
20128 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20129 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20131 * tree.def (ANNOTATE_EXPR): Tweak comment.
20133 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20135 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20138 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20140 * tree.h (TYPE_IDENTIFIER): Declare.
20141 * tree.c (subrange_type_for_debug_p): Use it.
20142 * godump.c (go_format_type): Likewise.
20143 * dwarf2out.c (is_cxx_auto, modified_type_die,
20144 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20145 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20147 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20150 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20152 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20154 * config/i386/i386.c (examine_argument): Return bool. Return true if
20155 parameter should be passed in memory.
20156 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20157 (construct_container): Update calls to examine_argument.
20158 (function_arg_advance_64): Ditto.
20159 (return_in_memory_32): Merge with ix86_return_in_memory.
20160 (return_in_memory_64): Ditto.
20161 (return_in_memory_ms_64): Ditto.
20163 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20165 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20166 * coverage.c (coverage_compute_profile_id): Handle externally visible
20169 2014-04-14 Martin Jambor <mjambor@suse.cz>
20171 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20172 DECL_DISREGARD_INLINE_LIMITS functions.
20174 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20177 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20179 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20182 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20183 optimize_insn_for_speed_p instead of
20184 optimize_function_for_speed_p.
20186 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20188 * doc/invoke.texi (free): Document AArch64.
20190 2014-04-14 Richard Biener <rguenther@suse.de>
20192 PR tree-optimization/60042
20193 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20194 (insert_into_preds_of_block): Do not prevent PHI insertion
20195 for REFERENCE exprs here ...
20196 (eliminate_dom_walker::before_dom_children): ... but prevent
20197 their use here under similar conditions when applied to the
20198 IL after PRE optimizations.
20200 2014-04-14 Richard Biener <rguenther@suse.de>
20202 * passes.def: Move early points-to after early SRA.
20204 2014-04-14 Richard Biener <rguenther@suse.de>
20206 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20207 check for which sign-changes we allow when forwarding
20208 a converted value into a switch.
20210 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20212 * stor-layout.c (place_field): Finalize non-constant offset for the
20215 2014-04-14 Richard Biener <rguenther@suse.de>
20217 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20219 (expand_switch_using_bit_tests_p): Likewise.
20220 (process_switch): Compute and pass on speed_p based on the
20222 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20223 optimize_bb_for_speed_p.
20225 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20227 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20228 * function.h (struct function): Rename has_force_vect_loops into
20229 has_force_vectorize_loops.
20230 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20231 (input_struct_function_base): Likewise.
20232 * lto-streamer-out.c (output_cfg): Likewise.
20233 (output_struct_function_base): Likewise.
20234 * omp-low.c (expand_omp_simd): Likewise.
20235 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20236 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20237 (version_loop_for_if_conversion): Likewise.
20238 (tree_if_conversion): Likewise.
20239 (main_tree_if_conversion): Likewise.
20240 (gate_tree_if_conversion): Likewise.
20241 * tree-inline.c (copy_loops): Likewise.
20242 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20243 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20244 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20245 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20246 * tree-vectorizer.c (vectorize_loops): Likewise.
20247 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20249 2014-04-14 Richard Biener <rguenther@suse.de>
20252 * lto-streamer-out.c (wrap_refs): New function.
20253 (lto_output): Wrap symbol references in global initializes in
20254 type-preserving MEM_REFs.
20256 2014-04-14 Christian Bruel <christian.bruel@st.com>
20258 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20260 2014-04-14 Christian Bruel <christian.bruel@st.com>
20262 * config/sh/sh.md (setmemqi): New expand pattern.
20263 * config/sh/sh.h (CLEAR_RATIO): Define.
20264 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20265 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20267 2014-04-14 Richard Biener <rguenther@suse.de>
20269 PR middle-end/55022
20270 * fold-const.c (negate_expr_p): Don't negate directional rounding
20272 (fold_negate_expr): Likewise.
20274 2014-04-14 Richard Biener <rguenther@suse.de>
20276 PR tree-optimization/59817
20277 PR tree-optimization/60453
20278 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20279 recursion to catch all CHRECs in the scalar evolution and restrict
20280 the predicate for the remains appropriately.
20282 2014-04-12 Catherine Moore <clm@codesourcery.com>
20284 * config/mips/constraints.md: Add new register constraint "kb".
20285 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20286 (*movhi_internal): Likewise.
20287 (*movqi_internal): Likewise.
20288 * config/mips/mips.h (M16_STORE_REGS): New register class.
20289 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20290 (REG_CLASS_CONTENTS): Likewise.
20291 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20293 2014-04-11 Tobias Burnus <burnus@net-b.de>
20296 * doc/invoke.texi (-Wformat-signedness): Document it.
20297 (Wformat=2): Mention that this enables -Wformat-signedness.
20299 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20301 * common/config/epiphany/epiphany-common.c
20302 (epiphany_option_optimization_table): Enable section anchors by
20303 default at -O1 or higher.
20304 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20305 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20306 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20307 carries no extra cost.
20308 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20309 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20310 * config/epiphany/predicates.md (memclob_operand): New predicate.
20311 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20312 Use memclob_operand predicate and X constraint for operand 3.
20314 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20316 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20317 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20320 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20322 PR rtl-optimization/60651
20323 * mode-switching.c (optimize_mode_switching): Make sure to emit
20324 sets of a lower numbered entity before sets of a higher numbered
20325 entity to a mode of the same or lower priority.
20326 When creating a seginfo for a basic block that starts with a code
20327 label, move the insertion point past the code label.
20328 (new_seginfo): Document and enforce requirement that
20329 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20330 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20331 * doc/tm.texi: Regenerate.
20333 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20336 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20338 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20340 * BASE-VER: Set to 4.10.0.
20342 2014-04-11 Tobias Burnus <burnus@net-b.de>
20345 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20346 * doc/gcc.texi (Service): Update description in the @menu
20347 * doc/invoke.texi (Option Summary): Remove misplaced and
20350 2014-04-11 Steve Ellcey <sellcey@mips.com>
20351 Jakub Jelinek <jakub@redhat.com>
20353 PR middle-end/60556
20354 * expr.c (convert_move): Use emit_store_flag_force instead of
20355 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20358 2014-04-11 Richard Biener <rguenther@suse.de>
20360 PR middle-end/60797
20361 * varasm.c (assemble_alias): Avoid endless error reporting
20362 recursion by setting TREE_ASM_WRITTEN.
20364 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20366 * config/s390/s390.md: Add a splitter for NOT rtx.
20368 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20370 PR rtl-optimization/60663
20371 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20373 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20374 Jakub Jelinek <jakub@redhat.com>
20377 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20378 flag from decl_node to node.
20380 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20383 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20384 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20385 ameliorating the cases where it can be.
20387 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20390 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20392 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20393 (loadsync_<mode>): Change mode.
20394 (load_quadpti, store_quadpti): New.
20395 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20396 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20397 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20399 2014-04-09 Cong Hou <congh@google.com>
20402 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20405 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20407 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20408 instead of vnor to exploit possible fusion opportunity in the
20410 (altivec_expand_vec_perm_const_le): Likewise.
20412 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20414 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20415 (loadsync_<mode>): Change mode.
20416 (load_quadpti, store_quadpti): New.
20417 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20418 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20420 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20423 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20424 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20425 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20427 2014-04-08 Richard Biener <rguenther@suse.de>
20429 PR middle-end/60706
20430 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20431 a 64bit widest int print double-int similar to on HWI64 hosts.
20433 2014-04-08 Richard Biener <rguenther@suse.de>
20435 PR tree-optimization/60785
20436 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20437 default defs properly.
20439 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20441 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20442 (Weffc++): Likewise.
20444 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20446 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20447 set completep to false rather than true.
20449 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20452 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20453 ARM_TARGET2_DWARF_FORMAT.
20455 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20458 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20459 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20462 2014-04-07 Richard Biener <rguenther@suse.de>
20464 PR tree-optimization/60766
20465 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20466 (may_eliminate_iv): Convert cand_value_at result to desired type.
20468 2014-04-07 Jason Merrill <jason@redhat.com>
20471 * common.opt (-fno-gnu-unique): Add.
20472 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20474 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20476 * haifa-sched.c: Fix outdated function reference and minor
20477 grammar errors in introductory comment.
20479 2014-04-07 Richard Biener <rguenther@suse.de>
20481 PR middle-end/60750
20482 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20483 for noreturn calls.
20484 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20486 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20489 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20490 size accounting for thunks.
20491 (pa_asm_output_mi_thunk): Use final_start_function() and
20492 final_end_function() to output function start and end directives.
20494 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20496 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20497 device specific ISA/ feature information. Remove short_sp and
20498 errata_skip ds. Add avr_device_specific_features enum to have device
20500 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20501 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20502 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20503 updated device specific info.
20504 * config/avr/avr-mcus.def: Merge device specific details to
20505 dev_attribute field.
20506 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20508 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20509 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20510 assembler if RMW isa supported by current device.
20511 * config/avr/genmultilib.awk: Update as device info structure changed.
20512 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20514 2014-04-04 Cong Hou <congh@google.com>
20516 PR tree-optimization/60656
20517 * tree-vect-stmts.c (supportable_widening_operation):
20518 Fix a bug that elements in a vector with vect_used_by_reduction
20519 property are incorrectly reordered when the operation on it is not
20520 consistant with the one in reduction operation.
20522 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20524 PR rtl-optimization/60155
20525 * gcse.c (record_set_data): New function.
20526 (single_set_gcse): New function.
20527 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20528 (hoist_code): Likewise.
20529 (get_pressure_class_and_nregs): Likewise.
20531 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20533 * explow.c (probe_stack_range): Emit a final optimization blockage.
20535 2014-04-04 Anthony Green <green@moxielogic.com>
20537 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20540 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20543 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20544 flags are set only during streaming.
20545 * ipa.c (process_references, walk_polymorphic_call_targets,
20546 symtab_remove_unreachable_nodes): Drop bodies of always inline
20547 after early inlining.
20548 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20550 2014-04-04 Jakub Jelinek <jakub@redhat.com>
20551 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20554 * dwarf2out.c (const_ok_for_output_1): Reject expressions
20557 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20560 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20562 (cortex_a53_fdivd): Likewise.
20564 2014-04-04 Martin Jambor <mjambor@suse.cz>
20567 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20568 Adjust all callers.
20569 * cgraph.c (clone_of_p): Also return true if thunks match.
20570 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20571 cgraph_function_or_thunk_node and an obsolete comment.
20572 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20574 (build_function_decl_skip_args): Likewise.
20575 (set_new_clone_decl_and_node_flags): New function.
20576 (duplicate_thunk_for_node): Likewise.
20577 (redirect_edge_duplicating_thunks): Likewise.
20578 (cgraph_clone_node): New parameter args_to_skip, pass it to
20579 redirect_edge_duplicating_thunks which is called instead of
20580 cgraph_redirect_edge_callee.
20581 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
20582 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
20584 2014-04-04 Jeff Law <law@redhat.com>
20587 * config/arm/predicates.md (const_int_I_operand): New predicate.
20588 (const_int_M_operand): Similarly.
20589 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
20591 (insv_t2, extv_reg, extzv_t2): Likewise.
20592 (load_multiple_with_writeback): Similarly for const_int_I_operand.
20593 (pop_multiple_with_writeback_and_return): Likewise.
20594 (vfp_pop_multiple_with_writeback): Likewise
20596 2014-04-04 Richard Biener <rguenther@suse.de>
20599 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
20600 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
20602 * gimplify.h (gimple_add_tmp_var_fn): Declare.
20603 * gimplify.c (gimple_add_tmp_var_fn): New function.
20604 * gimple-expr.h (create_tmp_reg_fn): Declare.
20605 * gimple-expr.c (create_tmp_reg_fn): New function.
20606 * gimple-low.c (record_vars_into): Don't change cfun.
20607 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
20608 code generation without cfun.
20610 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
20613 * Makefile.in (install-driver): Fix shell scripting.
20615 2014-04-03 Cong Hou <congh@google.com>
20617 PR tree-optimization/60505
20618 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
20619 threshold of number of iterations below which no vectorization
20621 * tree-vect-loop.c (new_loop_vec_info):
20622 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
20623 * tree-vect-loop.c (vect_analyze_loop_operations):
20624 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
20625 * tree-vect-loop.c (vect_transform_loop):
20626 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
20627 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
20628 of iterations of the loop and see if we should build the epilogue.
20630 2014-04-03 Richard Biener <rguenther@suse.de>
20632 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
20633 (streamer_tree_cache_create): Adjust.
20634 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
20635 to allow optional nodes array.
20636 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
20637 (streamer_tree_cache_append): Likewise.
20638 (streamer_tree_cache_create): Create nodes array optionally
20639 as specified by parameter.
20640 * lto-streamer-out.c (create_output_block): Avoid maintaining
20641 the node array in the writer cache.
20642 (DFS_write_tree): Remove assertion.
20643 (produce_asm_for_decls): Free the out decl state hash table early.
20644 * lto-streamer-in.c (lto_data_in_create): Adjust for
20645 streamer_tree_cache_create prototype change.
20647 2014-04-03 Richard Biener <rguenther@suse.de>
20649 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
20650 set TREE_CHAIN to NULL_TREE.
20652 2014-04-03 Richard Biener <rguenther@suse.de>
20654 PR tree-optimization/60740
20655 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
20656 over all GIMPLE_COND operands.
20658 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
20660 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
20661 (Weffc++): Remove Scott's numbering, merge lists and reference
20664 2014-04-03 Nick Clifton <nickc@redhat.com>
20666 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
20669 2014-04-03 Martin Jambor <mjambor@suse.cz>
20671 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
20672 mention gcc_unreachable before failing.
20673 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
20676 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
20679 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
20680 inconsistent code and instead mark the context inconsistent.
20681 (possible_polymorphic_call_targets): For inconsistent contexts
20682 return empty complete list.
20684 2014-04-02 Anthony Green <green@moxielogic.com>
20686 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
20687 (extendqisi2, extendhisi2): Define.
20688 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
20689 (WCHAR_TYPE): Change to unsigned int.
20691 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20693 PR tree-optimization/60733
20694 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
20695 insertion point for PHI candidates to be the end of the feeding
20696 block for the PHI argument.
20698 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
20700 PR rtl-optimization/60650
20701 * lra-constraints.c (process_alt_operands): Decrease reject for
20702 earlyclobber matching.
20704 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20706 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
20708 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20710 * config/spu/spu.c (pad_bb): Do not crash when the last
20711 insn is CODE_FOR_blockage.
20713 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20715 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
20716 lies outside the target mode.
20718 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20721 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20722 software floating point or no floating point registers, do not
20723 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20724 in GPRs that occurs after we tested for GPRs that would never be
20727 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20728 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20729 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20730 specifically allow DDmode, since that does not use the SPE SIMD
20733 2014-04-02 Richard Biener <rguenther@suse.de>
20735 PR middle-end/60729
20736 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
20737 MODE_INTs. Properly use negv_optab.
20738 (expand_abs): Likewise.
20740 2014-04-02 Richard Biener <rguenther@suse.de>
20743 * Makefile.in (install-driver): Guard extra installs with special
20746 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
20748 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20749 Document vec_vgbbd.
20751 2014-04-01 Richard Henderson <rth@redhat.com>
20754 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
20755 alternative enabled before register allocation.
20757 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
20759 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
20760 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
20762 (nios2_large_got_address): Remove unneeded 'sym' parameter.
20763 (nios2_got_address): Update nios2_large_got_address call site.
20764 (nios2_delegitimize_address): New function.
20765 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
20766 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
20767 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
20769 2014-04-01 Martin Husemann <martin@duskware.de>
20771 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
20774 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
20776 PR rtl-optimization/60604
20777 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
20778 check from register_operand.
20779 (register_operand): Redefine in terms of general_operand.
20780 (nonmemory_operand): Use register_operand for the non-constant cases.
20782 2014-04-01 Richard Biener <rguenther@suse.de>
20784 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
20786 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
20788 * doc/invoke.texi (mapp-regs): Clarify.
20790 2014-03-31 Ulrich Drepper <drepper@gmail.com>
20792 * config/i386/avx512fintrin.h (__v32hi): Define type.
20793 (__v64qi): Likewise.
20794 (_mm512_set1_epi8): Define.
20795 (_mm512_set1_epi16): Define.
20796 (_mm512_set4_epi32): Define.
20797 (_mm512_set4_epi64): Define.
20798 (_mm512_set4_pd): Define.
20799 (_mm512_set4_ps): Define.
20800 (_mm512_setr4_epi64): Define.
20801 (_mm512_setr4_epi32): Define.
20802 (_mm512_setr4_pd): Define.
20803 (_mm512_setr4_ps): Define.
20804 (_mm512_setzero_epi32): Define.
20806 2014-03-31 Martin Jambor <mjambor@suse.cz>
20808 PR middle-end/60647
20809 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
20810 callsite_arguments_match_p. Updated all callers. Also check types of
20811 corresponding formal parameters and actual arguments.
20812 (not_all_callers_have_enough_arguments_p) Renamed to
20813 some_callers_have_mismatched_arguments_p.
20815 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
20817 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
20819 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
20822 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
20825 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
20827 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
20828 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
20830 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
20831 Use FMAMODE_NOVF512 mode iterator.
20832 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
20833 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
20834 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
20835 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
20837 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
20838 Use VF_128_256 mode iterator.
20839 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
20842 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20844 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
20845 static chain if needed.
20847 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
20850 * lra-constraints.c (index_part_to_reg): New.
20851 (process_address): Use it.
20853 2014-03-27 Jeff Law <law@redhat.com>
20854 Jakub Jelinek <jakub@redhat.com>
20857 * expr.c (do_tablejump): Use simplify_gen_binary rather than
20858 gen_rtx_{PLUS,MULT} to build up the address expression.
20860 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
20861 creating non-canonical RTL.
20863 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20866 * ipa-inline.c (want_inline_small_function_p): Short circuit large
20867 functions; reorganize to make cheap checks first.
20868 (inline_small_functions): Do not estimate growth when dumping;
20870 * ipa-inline.h (inline_summary): Add min_size.
20871 (growth_likely_positive): New function.
20872 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
20873 (set_cond_stmt_execution_predicate): Cleanup.
20874 (estimate_edge_size_and_time): Compute min_size.
20875 (estimate_calls_size_and_time): Likewise.
20876 (estimate_node_size_and_time): Likewise.
20877 (inline_update_overall_summary): Update min_size.
20878 (do_estimate_edge_time): Likewise.
20879 (do_estimate_edge_size): Update.
20880 (do_estimate_edge_hints): Update.
20881 (growth_likely_positive): New function.
20883 2014-03-28 Jakub Jelinek <jakub@redhat.com>
20886 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
20887 also if addr has VOIDmode.
20889 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20891 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
20892 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
20894 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
20895 instructions as well as AdvancedSIMD loads.
20897 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20899 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
20900 Use crypto_aese type.
20901 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
20902 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
20903 crypto_aese, crypto_aesmc. Move to types.md.
20904 * config/arm/types.md (crypto_aes): Split into crypto_aese,
20906 * config/arm/iterators.md (crypto_type): Likewise.
20908 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20910 * cgraph.c: Include expr.h and tree-dfa.h.
20911 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
20914 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
20917 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
20918 regs from checking multi-reg pseudos.
20920 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20922 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
20924 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20926 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
20927 if it would clobber the stack pointer, even temporarily.
20929 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
20931 * mode-switching.c: Make small adjustments to the top comment.
20933 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
20935 * config/rs6000/constraints.md (wD constraint): New constraint to
20936 match the constant integer to get the top DImode/DFmode out of a
20937 vector in a VSX register.
20939 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
20940 match the constant integer to get the top DImode/DFmode out of a
20941 vector in a VSX register.
20943 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
20946 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20949 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
20950 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
20952 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
20953 Optimize vec_extract of 64-bit values, where the value being
20954 extracted is in the top word, where we can use scalar
20955 instructions. Add direct move and store support. Combine the big
20956 endian/little endian vector select load support into a single insn.
20957 (vsx_extract_<mode>_internal1): Likewise.
20958 (vsx_extract_<mode>_internal2): Likewise.
20959 (vsx_extract_<mode>_load): Likewise.
20960 (vsx_extract_<mode>_store): Likewise.
20961 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
20962 combined into vsx_extract_<mode>_load.
20963 (vsx_extract_<mode>_one_le): Likewise.
20965 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
20966 define the top 64-bit vector element.
20968 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
20971 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20972 Document vec_vbpermq builtin.
20975 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
20976 enable use of xxsldwi and xxpermdi builtin functions.
20977 (vec_xxpermdi): Likewise.
20979 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20980 Document use of vec_xxsldwi and vec_xxpermdi builtins.
20982 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
20984 PR rtl-optimization/60650
20985 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
20987 (find_spills_for): New.
20988 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
20989 Spill all pseudos on the second iteration.
20991 2014-03-27 Marek Polacek <polacek@redhat.com>
20994 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
20997 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20999 * config/s390/s390.c (s390_can_use_return_insn): Check for
21000 call-saved FPRs on 31 bit.
21002 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21004 PR middle-end/60682
21005 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21006 if they need regimplification, just drop them instead of
21007 calling gimple_regimplify_operands on them.
21009 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21012 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21013 (aarch64_frame_pointer_required): Adjust logic.
21014 (aarch64_can_eliminate): Adjust logic.
21015 (aarch64_override_options_after_change): Adjust logic.
21017 2014-03-27 Dehao Chen <dehao@google.com>
21019 * ipa-inline.c (early_inliner): Update node's inline info.
21021 2014-03-26 Dehao Chen <dehao@google.com>
21023 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21024 compiler inserted conditional jumps for NAN float check.
21026 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21028 * ubsan.h (ubsan_create_data): Change second argument's type
21029 to const location_t *.
21030 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21032 (ubsan_create_data): Change second argument to const location_t *PLOC.
21033 Create Loc field whenever PLOC is non-NULL.
21034 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21035 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21039 * real.c (real_to_integer2): Change type of low to UHWI.
21041 2014-03-26 Tobias Burnus <burnus@net-b.de>
21043 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21044 (CILK_SELF_SPECS): New define.
21045 (driver_self_specs): Use it.
21047 2014-03-26 Richard Biener <rguenther@suse.de>
21049 * tree-pretty-print.c (percent_K_format): Implement special
21050 case for LTO and its stripped down BLOCK tree.
21052 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21055 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21057 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21058 one range is range_int_cst_p, but not both, at least optimize
21059 addition/subtraction of 0 and multiplication by 0 or 1.
21060 * gimple-fold.c (gimple_fold_call): Fold
21061 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21062 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21063 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21065 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21067 PR rtl-optimization/60452
21068 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21069 <case REG>: Return 1 for invalid offsets from the frame pointer.
21071 2014-03-26 Marek Polacek <polacek@redhat.com>
21074 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21077 2014-03-26 Marek Polacek <polacek@redhat.com>
21080 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21083 2014-03-26 Marek Polacek <polacek@redhat.com>
21086 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21087 multiplication in unsigned type.
21089 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21091 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21093 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21095 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21097 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21100 * cif-code.def (UNREACHABLE) New code.
21101 * ipa-inline.c (inline_small_functions): Skip edges to
21102 __builtlin_unreachable.
21103 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21104 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21105 predicate to __bulitin_unreachable.
21106 (set_cond_stmt_execution_predicate): Fix issue when
21107 invert_tree_comparison returns ERROR_MARK.
21108 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21109 propagate to inline clones.
21110 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21112 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21113 * cgraphclones.c (cgraph_clone_node): If call destination is already
21114 ureachable, do not redirect it back.
21115 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21118 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21120 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21121 Do not modify inline clones.
21123 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21125 * config/i386/i386.md (general_sext_operand): New mode attr.
21126 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21127 don't generate (sign_extend (const_int)).
21128 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21129 operands[2]. Use We constraint instead of <i> and
21130 <general_sext_operand> predicate instead of <general_operand>.
21131 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21132 * config/i386/constraints.md (We): New constraint.
21133 * config/i386/predicates.md (x86_64_sext_operand,
21134 sext_operand): New predicates.
21136 2014-03-25 Martin Jambor <mjambor@suse.cz>
21139 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21140 inconsistent devirtualizations to __builtin_unreachable.
21142 2014-03-25 Marek Polacek <polacek@redhat.com>
21145 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21147 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21149 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21150 order of elements for big-endian.
21152 2014-03-25 Richard Biener <rguenther@suse.de>
21154 PR middle-end/60635
21155 * gimplify-me.c (gimple_regimplify_operands): Update the
21158 2014-03-25 Martin Jambor <mjambor@suse.cz>
21161 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21162 (lto_output_varpool_node): Likewise.
21163 (input_overwrite_node): Likewise.
21164 (input_varpool_node): Likewise.
21166 2014-03-25 Richard Biener <rguenther@suse.de>
21168 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21169 (run_gcc): Likewise.
21171 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21173 * combine.c (simplify_compare_const): Add MODE argument.
21174 Handle mode_width 0 as very large mode_width.
21175 (try_combine, simplify_comparison): Adjust callers.
21177 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21178 type to avoid signed integer overflow.
21179 * explow.c (plus_constant): Likewise.
21181 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21183 * doc/generic.texi: Correct typos.
21185 2014-03-24 Tobias Burnus <burnus@net-b.de>
21187 * doc/invoke.texi (-flto): Expand section about
21188 using static libraries with LTO.
21190 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21192 PR rtl-optimization/60501
21193 * optabs.def (addptr3_optab): New optab.
21194 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21195 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21196 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21198 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21200 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21202 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21204 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21207 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21208 (_mm256_undefined_ps): Define.
21209 (_mm256_undefined_pd): Define.
21210 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21211 (_mm_undefined_pd): Define.
21212 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21213 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21214 (_mm512_undefined_ps): Define.
21215 (_mm512_undefined_pd): Define.
21216 Use _mm*_undefined_*.
21217 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21219 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21221 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21222 (lshr_simd): DI mode added.
21223 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21224 (aarch64_ushr_simddi): Likewise.
21225 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21226 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21227 (vshrd_n_u64): Likewise.
21229 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21231 * Makefile.in (s-macro_list): Depend on cc1.
21233 2014-03-23 Teresa Johnson <tejohnson@google.com>
21235 * ipa-utils.c (ipa_print_order): Use specified dump file.
21237 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21239 PR rtl-optimization/60601
21240 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21242 * gcc.c (eval_spec_function): Initialize save_growing_value.
21244 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21247 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21248 code == MINUS_EXPR, never swap op0 with op1.
21250 * toplev.c (init_local_tick): Avoid signed integer multiplication
21252 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21253 shift by first operand's bitsize.
21255 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21258 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21259 redefine to 1 or 0.
21260 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21261 TARGET_ISA_64BIT_P(x).
21263 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21265 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21266 pattern for vector nor instead of subtract from splat(-1).
21267 (altivec_expand_vec_perm_const_le): Likewise.
21269 2014-03-21 Richard Henderson <rth@twiddle.net>
21272 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21273 related insns after epilogue_completed.
21275 2014-03-21 Martin Jambor <mjambor@suse.cz>
21278 * cgraph.h (symtab_node): New flag body_removed.
21279 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21280 when removing bodies.
21281 * symtab.c (dump_symtab_base): Dump body_removed flag.
21282 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21283 had their bodies removed.
21285 2014-03-21 Martin Jambor <mjambor@suse.cz>
21288 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21291 2014-03-21 Richard Biener <rguenther@suse.de>
21293 PR tree-optimization/60577
21294 * tree-core.h (struct tree_base): Document nothrow_flag use
21295 in DECL_NONALIASED.
21296 * tree.h (DECL_NONALIASED): New.
21297 (may_be_aliased): Adjust.
21298 * coverage.c (build_var): Set DECL_NONALIASED.
21300 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21302 * expr.c (expand_expr_real_1): Remove outdated comment.
21304 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21306 PR middle-end/60597
21307 * ira.c (adjust_cleared_regs): Call copy_rtx on
21308 *reg_equiv[REGNO (loc)].src_p before passing it to
21309 simplify_replace_fn_rtx.
21312 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21313 into CONST, put pic register as first operand of PLUS. Use
21314 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21316 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21318 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21320 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21322 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21323 around for store forwarding issue in the FPU on the UT699.
21324 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21325 loads and operations if -mfix-ut699 is specified.
21326 (divtf3_hq): Tweak attribute.
21327 (sqrttf2_hq): Likewise.
21329 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21331 * calls.c (store_one_arg): Remove incorrect const qualification on the
21332 type of the temporary.
21333 * cfgexpand.c (expand_return): Likewise.
21334 * expr.c (expand_constructor): Likewise.
21335 (expand_expr_real_1): Likewise.
21337 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21339 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21342 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21345 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21347 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21349 * config/arm/aarch-common-protos.h
21350 (alu_cost_table): Fix spelling of "extend".
21351 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21353 2014-03-19 Richard Biener <rguenther@suse.de>
21355 PR middle-end/60553
21356 * tree-core.h (tree_type_common): Re-order pointer members
21357 to reduce recursion depth during GC walks.
21359 2014-03-19 Marek Polacek <polacek@redhat.com>
21362 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21363 before accessing it.
21365 2014-03-19 Richard Biener <rguenther@suse.de>
21368 * lto-streamer-in.c (input_function): In WPA stage do not drop
21371 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21373 PR tree-optimization/60559
21374 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21375 with build_zero_cst assignment.
21377 2014-03-18 Kai Tietz <ktietz@redhat.com>
21379 PR rtl-optimization/56356
21380 * sdbout.c (sdbout_parms): Verify that parms'
21381 incoming argument is valid.
21382 (sdbout_reg_parms): Likewise.
21384 2014-03-18 Richard Henderson <rth@redhat.com>
21387 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21388 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21389 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21391 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21393 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21394 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21395 Italicize plugin event names in description. Explain that
21396 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21397 Remind that no GCC functions should be called after PLUGIN_FINISH.
21398 Explain what pragmas with expansion are.
21400 2014-03-18 Martin Liska <mliska@suse.cz>
21402 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21403 gimple call statement is update.
21404 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21405 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21407 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21410 * ubsan.c (ubsan_instrument_unreachable): Call
21411 initialize_sanitizer_builtins.
21412 (ubsan_pass): Likewise.
21415 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21416 varpool_finalize_decl instead of rest_of_decl_compilation.
21418 2014-03-18 Richard Biener <rguenther@suse.de>
21420 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21421 by using bitmap_and_compl instead of bitmap_and_compl_into.
21422 (df_rd_transfer_function): Likewise.
21424 2014-03-18 Richard Biener <rguenther@suse.de>
21426 * doc/lto.texi (fresolution): Fix typo.
21428 2014-03-18 Richard Biener <rguenther@suse.de>
21430 * doc/invoke.texi (flto): Update for changes in 4.9.
21432 2014-03-18 Richard Biener <rguenther@suse.de>
21434 * doc/loop.texi: Remove section on the removed lambda framework.
21435 Update loop docs with recent changes in preserving loop structure.
21437 2014-03-18 Richard Biener <rguenther@suse.de>
21439 * doc/lto.texi (-fresolution): Document.
21441 2014-03-18 Richard Biener <rguenther@suse.de>
21443 * doc/contrib.texi: Adjust my name.
21445 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21448 * internal-fn.c: Include diagnostic-core.h.
21449 (expand_BUILTIN_EXPECT): New function.
21450 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21451 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21452 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21453 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21454 IFN_BUILTIN_EXPECT.
21455 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21456 Revert 3 argument __builtin_expect code.
21457 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21458 * gimple-fold.c (gimple_fold_call): Likewise.
21459 * tree.h (fold_builtin_expect): New prototype.
21460 * builtins.c (build_builtin_expect_predicate): Add predictor
21461 argument, if non-NULL, create 3 argument __builtin_expect.
21462 (fold_builtin_expect): No longer static. Add ARG2 argument,
21463 pass it through to build_builtin_expect_predicate.
21464 (fold_builtin_2): Adjust caller.
21465 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21466 * internal-fn.def (BUILTIN_EXPECT): New.
21468 2014-03-18 Tobias Burnus <burnus@net-b.de>
21471 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21472 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21473 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21475 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21478 * predict.c (combine_predictions_for_bb): Fix up formatting.
21479 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21480 fill what it points to if non-NULL.
21481 (tree_predict_by_opcode): Adjust caller, use the predictor.
21482 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21484 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21486 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21487 proper constant for the store mode.
21489 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21491 * symtab.c (change_decl_assembler_name): Fix transparent alias
21492 chain construction.
21494 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21496 * config/aarch64/aarch64.c: Correct the comments about the
21497 aarch64 stack layout.
21499 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21501 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21502 check for GF_OMP_FOR_KIND_FOR.
21504 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21506 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21507 ymm and zmm register names.
21509 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21512 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21513 note creation for the 2010-08-31 changes.
21515 2014-03-17 Marek Polacek <polacek@redhat.com>
21517 PR middle-end/60534
21518 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21519 as -fno-tree-loop-vectorize.
21520 (expand_omp_simd): Likewise.
21522 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21524 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21525 (eligible_for_call_delay): New prototype.
21526 * config/sparc/sparc.c (tls_call_delay): Rename into...
21527 (eligible_for_call_delay): ...this. Return false if the instruction
21528 cannot be put in the delay slot of a branch.
21529 (eligible_for_restore_insn): Simplify.
21530 (eligible_for_return_delay): Return false if the instruction cannot be
21531 put in the delay slot of a branch and simplify.
21532 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21533 put in the delay slot of a branch.
21534 * config/sparc/sparc.md (fix_ut699): New attribute.
21535 (tls_call_delay): Delete.
21536 (in_call_delay): Reimplement.
21537 (eligible_for_sibcall_delay): Rename into...
21538 (in_sibcall_delay): ...this.
21539 (eligible_for_return_delay): Rename into...
21540 (in_return_delay): ...this.
21541 (in_branch_delay): Reimplement.
21542 (in_uncond_branch_delay): Delete.
21543 (in_annul_branch_delay): Delete.
21545 2014-03-14 Richard Henderson <rth@redhat.com>
21548 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21549 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21550 (*floathi<X87MODEF>2_i387_with_temp): Remove.
21551 (floathi splitters): Remove.
21552 (float<SWI48x>xf2): New pattern.
21553 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
21554 code that tried to handle DImode for 32-bit, but which was excluded
21555 by the pattern's condition. Drop allocation of stack temporary.
21556 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21557 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21558 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21559 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21560 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21561 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21562 (*float<SWI48><MODEF>2_sse_interunit): Remove.
21563 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21564 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21565 (*float<SWI48x><X87MODEF>2_i387): Remove.
21566 (all float _with_temp splitters): Remove.
21567 (*float<SWI48x><MODEF>2_i387): New pattern.
21568 (*float<SWI48><MODEF>2_sse): New pattern.
21569 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21570 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21572 2014-03-14 Jakub Jelinek <jakub@redhat.com>
21573 Marek Polacek <polacek@redhat.com>
21575 PR middle-end/60484
21576 * common.opt (dump_base_name_prefixed): New Variable.
21577 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
21578 if x_dump_base_name_prefixed is already set, set it at the end.
21580 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
21582 PR rtl-optimization/60508
21583 * lra-constraints.c (get_reload_reg): Add new parameter
21585 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
21586 Pass the new parameter values.
21588 2014-03-14 Richard Biener <rguenther@suse.de>
21590 * common.opt: Revert unintented changes from r205065.
21591 * opts.c: Likewise.
21593 2014-03-14 Richard Biener <rguenther@suse.de>
21595 PR middle-end/60518
21596 * cfghooks.c (split_block): Properly adjust all loops the
21597 block was a latch of.
21599 2014-03-14 Martin Jambor <mjambor@suse.cz>
21602 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
21605 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
21608 * config/avr/avr.c (avr_set_current_function): Pass function name
21609 through default_strip_name_encoding before sanity checking instead
21610 of skipping the first char of the assembler name.
21612 2014-03-13 Richard Henderson <rth@redhat.com>
21615 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
21616 (ix86_force_to_memory, ix86_free_from_memory): Remove.
21617 * config/i386/i386-protos.h: Likewise.
21618 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
21619 in the expander instead of a splitter.
21620 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
21621 any possibility of requiring a memory.
21622 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
21623 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
21624 (fp branch splitters): Update for ix86_split_fp_branch.
21625 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
21626 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
21627 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
21628 (*fop_<MODEF>_2_i387): Remove f/r alternative.
21629 (*fop_<MODEF>_3_i387): Likewise.
21630 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
21631 (splitters for the fop_* register patterns): Remove.
21632 (fscalexf4_i387): Rename from *fscalexf4_i387.
21633 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
21635 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21637 PR tree-optimization/59779
21638 * tree-dfa.c (get_ref_base_and_extent): Use double_int
21639 type for bitsize and maxsize instead of HOST_WIDE_INT.
21641 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
21643 PR rtl-optimization/57320
21644 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
21645 the CFG after thread_prologue_and_epilogue_insns.
21647 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
21649 PR rtl-optimization/57189
21650 * lra-constraints.c (process_alt_operands): Disfavor spilling
21653 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
21655 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
21657 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21659 PR tree-optimization/59025
21660 PR middle-end/60418
21661 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
21662 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
21664 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
21667 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
21668 calls of avr_out_plus_1.
21670 2014-03-13 Bin Cheng <bin.cheng@arm.com>
21672 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
21673 BB's single pred and update the father loop's latch info later.
21675 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21677 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
21681 (VEC_base): Likewise.
21682 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
21683 registers, we need to swap double words in little endian mode.
21685 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
21686 to be a container mode for 128-bit integer operations added in ISA
21687 2.07. Unlike TImode and PTImode, the preferred register set is
21688 the Altivec/VMX registers for the 128-bit operations.
21690 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
21692 (rs6000_split_128bit_ok_p): Likewise.
21694 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
21695 macros for creating ISA 2.07 normal and overloaded builtin
21696 functions with 3 arguments.
21697 (BU_P8V_OVERLOAD_3): Likewise.
21698 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
21699 for use as overloaded functions.
21700 (VPERM_1TI_UNS): Likewise.
21701 (VSEL_1TI): Likewise.
21702 (VSEL_1TI_UNS): Likewise.
21703 (ST_INTERNAL_1ti): Likewise.
21704 (LD_INTERNAL_1ti): Likewise.
21705 (XXSEL_1TI): Likewise.
21706 (XXSEL_1TI_UNS): Likewise.
21707 (VPERM_1TI): Likewise.
21708 (VPERM_1TI_UNS): Likewise.
21709 (XXPERMDI_1TI): Likewise.
21710 (SET_1TI): Likewise.
21711 (LXVD2X_V1TI): Likewise.
21712 (STXVD2X_V1TI): Likewise.
21713 (VEC_INIT_V1TI): Likewise.
21714 (VEC_SET_V1TI): Likewise.
21715 (VEC_EXT_V1TI): Likewise.
21716 (EQV_V1TI): Likewise.
21717 (NAND_V1TI): Likewise.
21718 (ORC_V1TI): Likewise.
21719 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
21720 added in ISA 2.07. Add both normal 'altivec' builtins, and the
21721 overloaded builtin.
21722 (VADDUQM): Likewise.
21723 (VSUBCUQ): Likewise.
21724 (VADDEUQM): Likewise.
21725 (VADDECUQ): Likewise.
21726 (VSUBEUQM): Likewise.
21727 (VSUBECUQ): Likewise.
21729 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
21730 __int128_t and __uint128_t types.
21731 (__uint128_type): Likewise.
21732 (altivec_categorize_keyword): Add support for vector __int128_t,
21733 vector __uint128_t, vector __int128, and vector unsigned __int128
21734 as a container type for TImode operations that need to be done in
21735 VSX/Altivec registers.
21736 (rs6000_macro_to_expand): Likewise.
21737 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
21738 to support 128-bit integer instructions vaddcuq, vadduqm,
21739 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
21740 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
21742 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
21743 for V1TImode, and set up preferences to use VSX/Altivec registers.
21744 Setup VSX reload handlers.
21745 (rs6000_debug_reg_global): Likewise.
21746 (rs6000_init_hard_regno_mode_ok): Likewise.
21747 (rs6000_preferred_simd_mode): Likewise.
21748 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
21749 (easy_altivec_constant): Likewise.
21750 (output_vec_const_move): Likewise.
21751 (rs6000_expand_vector_set): Convert V1TImode set and extract to
21753 (rs6000_expand_vector_extract): Likewise.
21754 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
21756 (rs6000_const_vec): Add support for V1TImode.
21757 (rs6000_emit_le_vsx_load): Swap double words when loading or
21758 storing TImode/V1TImode.
21759 (rs6000_emit_le_vsx_store): Likewise.
21760 (rs6000_emit_le_vsx_move): Likewise.
21761 (rs6000_emit_move): Add support for V1TImode.
21762 (altivec_expand_ld_builtin): Likewise.
21763 (altivec_expand_st_builtin): Likewise.
21764 (altivec_expand_vec_init_builtin): Likewise.
21765 (altivec_expand_builtin): Likewise.
21766 (rs6000_init_builtins): Add support for V1TImode type. Add
21767 support for ISA 2.07 128-bit integer builtins. Define type names
21768 for the VSX/Altivec vector types.
21769 (altivec_init_builtins): Add support for overloaded vector
21770 functions with V1TImode type.
21771 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
21772 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
21774 (rs6000_split_128bit_ok_p): Likewise.
21775 (rs6000_handle_altivec_attribute): Create V1TImode from vector
21776 __int128_t and vector __uint128_t.
21778 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
21779 and mode attributes.
21781 (VSX_M2): Likewise.
21786 (VS_scalar): Likewise.
21787 (VS_double): Likewise.
21788 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
21790 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
21791 we support the ISA 2.07 128-bit integer arithmetic instructions.
21792 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
21793 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
21794 and TImode types for use with the builtin functions.
21795 (V1TI_type_node): Likewise.
21796 (unsigned_V1TI_type_node): Likewise.
21797 (intTI_type_internal_node): Likewise.
21798 (uintTI_type_internal_node): Likewise.
21800 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
21801 128-bit builtin functions.
21802 (UNSPEC_VADDEUQM): Likewise.
21803 (UNSPEC_VADDECUQ): Likewise.
21804 (UNSPEC_VSUBCUQ): Likewise.
21805 (UNSPEC_VSUBEUQM): Likewise.
21806 (UNSPEC_VSUBECUQ): Likewise.
21807 (VM): Add V1TImode to vector mode iterators.
21809 (VI_unit): Likewise.
21810 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
21811 (altivec_vaddcuq): Likewise.
21812 (altivec_vsubuqm): Likewise.
21813 (altivec_vsubcuq): Likewise.
21814 (altivec_vaddeuqm): Likewise.
21815 (altivec_vaddecuq): Likewise.
21816 (altivec_vsubeuqm): Likewise.
21817 (altivec_vsubecuq): Likewise.
21819 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
21821 (BOOL_128): Likewise.
21822 (BOOL_REGS_OUTPUT): Likewise.
21823 (BOOL_REGS_OP1): Likewise.
21824 (BOOL_REGS_OP2): Likewise.
21825 (BOOL_REGS_UNARY): Likewise.
21826 (BOOL_REGS_AND_CR0): Likewise.
21828 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
21829 128-bit integer builtin support.
21830 (vec_vadduqm): Likewise.
21831 (vec_vaddecuq): Likewise.
21832 (vec_vaddeuqm): Likewise.
21833 (vec_vsubecuq): Likewise.
21834 (vec_vsubeuqm): Likewise.
21835 (vec_vsubcuq): Likewise.
21836 (vec_vsubuqm): Likewise.
21838 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21839 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
21840 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
21841 128-bit integer add/subtract to ISA 2.07.
21843 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
21845 * config/arc/arc.c (arc_predicate_delay_insns):
21846 Fix third argument passed to conditionalize_nonjump.
21848 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
21850 * config/aarch64/aarch64-builtins.c
21851 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
21852 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
21853 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
21854 instead of __builtin_lfloor.
21855 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
21857 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21859 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
21860 (tree_ssa_ifcombine_bb_1): New function.
21861 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
21862 is an empty forwarder block to then_bb or vice versa and then_bb
21863 and else_bb are effectively swapped.
21865 2014-03-12 Christian Bruel <christian.bruel@st.com>
21868 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
21869 REG_CFA_DEF_CFA note.
21870 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
21871 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
21873 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
21875 PR tree-optimization/60454
21876 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
21878 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21880 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
21881 Do not define target_cpu_default2 to generic.
21882 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
21883 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
21884 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
21886 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21887 Marc Glisse <marc.glisse@inria.fr>
21889 PR tree-optimization/60502
21890 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
21891 instead of build_low_bits_mask.
21893 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21895 PR middle-end/60482
21896 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
21897 if there are multiple uses, but op doesn't live on E edge.
21898 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
21899 clobber stmts before __builtin_unreachable.
21901 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
21903 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
21904 hard_frame_pointer_rtx.
21905 * cse.c (cse_insn): Remove volatile check.
21906 * cselib.c (cselib_process_insn): Likewise.
21907 * dse.c (scan_insn): Likewise.
21909 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
21911 * config/arc/arc.c (conditionalize_nonjump): New function,
21913 (arc_ifcvt): ... this.
21914 (arc_predicate_delay_insns): Use it.
21916 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
21918 * config/arc/predicates.md (extend_operand): During/after reload,
21919 allow const_int_operand.
21920 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
21921 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
21922 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
21924 (umulsi3_highpart_i): Likewise.
21926 2014-03-11 Richard Biener <rguenther@suse.de>
21928 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
21929 Add asserts to guard possible wrong-code bugs.
21931 2014-03-11 Richard Biener <rguenther@suse.de>
21933 PR tree-optimization/60429
21934 PR tree-optimization/60485
21935 * tree-ssa-structalias.c (set_union_with_increment): Properly
21936 take into account all fields that overlap the shifted vars.
21937 (do_sd_constraint): Likewise.
21938 (do_ds_constraint): Likewise.
21939 (get_constraint_for_ptr_offset): Likewise.
21941 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
21943 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
21944 (nios2_compute_frame_layout):
21945 Add calculation of cfun->machine->fp_save_offset.
21946 (nios2_expand_prologue): Correct setting of frame pointer register
21948 (nios2_expand_epilogue): Update recovery of stack pointer from
21949 frame pointer accordingly.
21950 (nios2_initial_elimination_offset): Update calculation of offset
21951 for eliminating to HARD_FRAME_POINTER_REGNUM.
21953 2014-03-10 Jakub Jelinek <jakub@redhat.com>
21956 * ipa.c (symtab_remove_unreachable_nodes): Don't call
21957 cgraph_get_create_node on VAR_DECLs.
21959 2014-03-10 Richard Biener <rguenther@suse.de>
21961 PR middle-end/60474
21962 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
21964 2014-03-08 Douglas B Rupp <rupp@gnat.com>
21966 * config/vms/vms.opt (vms_float_format): New variable.
21968 2014-03-08 Tobias Burnus <burnus@net-b.de>
21970 * doc/invoke.texi (-fcilkplus): Update implementation status.
21972 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
21973 Richard Biener <rguenther@suse.de>
21975 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
21976 consistently accross all TUs.
21977 (run_gcc): Enable -fshort-double automatically at link at link-time
21978 and disallow override.
21980 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
21983 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
21984 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
21985 if they can't be used.
21987 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21989 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
21990 for Solaris 11/x86 ld.
21991 * configure: Regenerate.
21993 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21995 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
21996 (LIB_TLS_SPEC): Save as ld_tls_libs.
21997 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
21998 (HAVE_AS_IX86_TLSLDM): New test.
21999 * configure, config.in: Regenerate.
22000 * config/i386/i386.c (legitimize_tls_address): Fall back to
22001 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22002 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22003 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22004 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22006 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22008 * common.opt (fira-loop-pressure): Mark as optimization.
22010 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22012 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22013 an OpenMP mappable type.
22015 2014-03-06 Matthias Klose <doko@ubuntu.com>
22017 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22018 MULTILIB_OSDIRNAMES is not defined.
22020 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22021 Meador Inge <meadori@codesourcery.com>
22024 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22025 (arm_legitimize_address): Call legitimize_tls_address for any
22026 arm_tls_referenced_p expression, handle constant addend. Call it
22027 before testing for !TARGET_ARM.
22028 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22030 2014-03-06 Richard Biener <rguenther@suse.de>
22032 PR middle-end/60445
22036 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22038 * tree-streamer.c (record_common_node): Assert we don't record
22039 nodes with type double.
22040 (preload_common_node): Skip type double, complex double and double
22041 pointer since it is now frontend dependent due to fshort-double option.
22043 2014-03-06 Richard Biener <rguenther@suse.de>
22045 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22046 or -fno-lto is specified and the linker has full plugin support.
22047 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22048 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22049 * lto-wrapper.c (merge_and_complain): Merge compile-time
22050 optimization levels.
22051 (run_gcc): And pass it through to the link options.
22053 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22057 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22059 * cselib.c (remove_useless_values): Skip to avoid quadratic
22060 behavior if the condition moved from...
22061 (cselib_process_insn): ... here holds.
22063 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22066 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22067 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22070 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22071 (TM_H): Add x86-tune.def.
22073 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22075 * config/aarch64/aarch64.c (generic_tunings):
22076 Use cortexa57_extra_costs.
22078 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22081 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22082 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22083 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22086 2014-03-04 Heiher <r@hev.cc>
22088 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22089 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22091 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22093 * config/i386/predicates.md (const2356_operand): Change to ...
22094 (const2367_operand): ... this.
22095 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22097 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22098 (*avx512pf_scatterpf<mode>sf): Ditto.
22099 (avx512pf_scatterpf<mode>df): Ditto.
22100 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22101 (*avx512pf_scatterpf<mode>df): Ditto.
22102 * config/i386/i386.c (ix86_expand_builtin): Update
22103 incorrect hint operand error message.
22105 2014-03-04 Richard Biener <rguenther@suse.de>
22107 * lto-section-in.c (lto_get_section_data): Fix const cast.
22109 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22111 * tree-streamer.c (record_common_node): Assert we don't record
22112 nodes with type double.
22113 (preload_common_node): Skip type double, complex double and double
22114 pointer since it is now frontend dependent due to fshort-double option.
22116 2014-03-04 Richard Biener <rguenther@suse.de>
22119 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22120 (lto_input_toplevel_asms): Likewise.
22121 * lto-section-in.c (lto_get_section_data): Instead do it here
22124 2014-03-04 Richard Biener <rguenther@suse.de>
22126 PR tree-optimization/60382
22127 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22128 dead PHIs a reduction.
22130 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22132 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22134 (_mm_prefetch): Move out of GCC target("sse") pragma.
22135 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22136 GCC target("prfchw") pragma.
22137 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22139 * config/i386/i386.c (ix86_option_override_internal): Enable
22140 -mprfchw with -mprefetchwt1.
22142 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22144 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22147 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22149 * opts.h (CL_PCH_IGNORE): Define.
22150 * targhooks.c (option_affects_pch_p):
22151 Return false for options that have CL_PCH_IGNORE set.
22152 * opt-functions.awk: Process PchIgnore.
22153 * doc/options.texi: Document PchIgnore.
22155 * config/arc/arc.opt (misize): Add PchIgnore property.
22157 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22159 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22160 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22161 constraint on constants to permit them being loaded into
22162 GENERAL_REGS or BASE_REGS.
22164 2014-03-03 Nick Clifton <nickc@redhat.com>
22166 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22167 anti-cacnonical alternatives.
22168 (negandhi3_real): New pattern.
22169 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22171 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22173 * config/avr/avr-mcus.def: Remove atxmega16x1.
22174 * config/avr/avr-tables.opt: Regenerate.
22175 * config/avr/t-multilib: Regenerate.
22176 * doc/avr-mmcu.texi: Regenerate.
22178 2014-03-03 Tobias Grosser <tobias@grosser.es>
22179 Mircea Namolaru <mircea.namolaru@inria.fr>
22181 PR tree-optimization/58028
22182 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22185 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22187 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22188 not handled by recognizers.
22190 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22192 PR middle-end/60175
22193 * function.c (expand_function_end): Don't emit
22194 clobber_return_register sequence if clobber_after is a BARRIER.
22195 * cfgexpand.c (construct_exit_block): Append instructions before
22196 return_label to prev_bb.
22198 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22200 * config/rs6000/constraints.md: Document reserved use of "wc".
22202 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22205 * ipa.c (function_and_variable_visibility): When dissolving comdat
22206 group, also set all symbols to local.
22208 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22213 2013-12-14 Jan Hubicka <jh@suse.cz>
22214 PR middle-end/58477
22215 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22217 2014-03-02 Jon Beniston <jon@beniston.com>
22223 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22224 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22225 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22226 (simple_return, *simple_return): New patterns
22227 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22228 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22230 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22232 * dwarf2out.c (gen_subprogram_die): Tidy.
22234 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22237 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22238 (*mov_t_msb_neg_negc): ... this new insn.
22240 2014-02-28 Jason Merrill <jason@redhat.com>
22243 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22246 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22249 * dwarf2out.c (decltype_auto_die): New static.
22250 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22251 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22252 (is_cxx_auto): Likewise.
22254 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22256 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22257 we are not using general regs only.
22259 2014-02-28 Richard Biener <rguenther@suse.de>
22262 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22263 previous fix and only allow to remove trivial pre-headers
22264 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22265 (remove_forwarder_block): Properly update the latch of a loop.
22267 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22270 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22271 (cselib_preserved_hash_table): New.
22272 (preserve_constants_and_equivs): Move preserved vals to it.
22273 (cselib_find_slot): Look it up first.
22274 (cselib_init): Initialize it.
22275 (cselib_finish): Release it.
22276 (dump_cselib_table): Dump it.
22278 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22281 * cselib.c (remove_useless_values): Skip to avoid quadratic
22282 behavior if the condition moved from...
22283 (cselib_process_insn): ... here holds.
22285 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22288 * var-tracking.c (vt_initialize): Apply the same condition to
22289 preserve the CFA base value.
22291 2014-02-28 Joey Ye <joey.ye@arm.com>
22294 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22295 if reload in progress or completed.
22297 2014-02-28 Tobias Burnus <burnus@net-b.de>
22299 PR middle-end/60147
22300 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22303 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22305 * doc/tm.texi.in (Condition Code Status): Update documention for
22306 relative locations of cc0-setter and cc0-user.
22308 2014-02-27 Jeff Law <law@redhat.com>
22310 PR rtl-optimization/52714
22311 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22312 into two independent simple sets, if I3 is a jump, ensure the
22313 pattern we place into I3 is a (set (pc) ...).
22315 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22316 Jeff Law <law@redhat.com>
22318 PR rtl-optimization/49847
22319 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22320 are in different blocks.
22321 * doc/tm.texi (Condition Code Status): Update documention for
22322 relative locations of cc0-setter and cc0-user.
22324 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22327 * lra.c (lra_emit_add): Check SUBREG too.
22329 2014-02-27 Andreas Schwab <schwab@suse.de>
22331 * config/m68k/m68k.c (m68k_option_override): Disable
22332 -flive-range-shrinkage for classic m68k.
22333 (m68k_override_options_after_change): Likewise.
22335 2014-02-27 Marek Polacek <polacek@redhat.com>
22337 PR middle-end/59223
22338 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22339 -Wmaybe-uninitialized.
22341 2014-02-27 Alan Modra <amodra@gmail.com>
22344 * reload1.c (emit_input_reload_insns): When reload_override_in,
22345 set old to rl->in_reg when rl->in_reg is a subreg.
22347 2014-02-26 Richard Biener <rguenther@suse.de>
22350 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22352 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22354 * common/config/i386/predicates.md (const1256_operand): Remove.
22355 (const2356_operand): New.
22356 (const_1_to_2_operand): Remove.
22357 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22358 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22359 (*avx512pf_gatherpf<mode>sf): Ditto.
22360 (avx512pf_gatherpf<mode>df): Ditto.
22361 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22362 (*avx512pf_gatherpf<mode>df): Ditto.
22363 (avx512pf_scatterpf<mode>sf): Ditto.
22364 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22365 (*avx512pf_scatterpf<mode>sf): Ditto.
22366 (avx512pf_scatterpf<mode>df): Ditto.
22367 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22368 (*avx512pf_scatterpf<mode>df): Ditto.
22369 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22371 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22373 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22374 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22375 (_mm512_mask_testn_epi64_mask): Move to ...
22376 * config/i386/avx512cdintrin.h: Here.
22377 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22378 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22379 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22380 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22381 TARGET_AVX512F from TARGET_AVX512CD.
22383 2014-02-26 Richard Biener <rguenther@suse.de>
22386 * ipa.c (walk_polymorphic_call_targets): Properly guard
22387 call to inline_update_overall_summary.
22389 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22392 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22393 and latches only if requested. Fix latch if it is removed.
22394 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22395 LOOPS_HAVE_PREHEADERS.
22397 2014-02-25 Andrew Pinski <apinski@cavium.com>
22399 * builtins.c (expand_builtin_thread_pointer): Create a new target
22400 when the target is NULL.
22402 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22404 PR rtl-optimization/60317
22405 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22406 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22407 * lra-assigns.c: Include params.h.
22408 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22409 other reload pseudos considerations.
22411 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22413 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22414 to use canonical form for nor<mode>3.
22416 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22419 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22422 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22424 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22425 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22426 (ix86_handle_option): Handle OPT_mprefetchwt1.
22427 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22428 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22430 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22431 OPTION_MASK_ISA_PREFETCHWT1.
22432 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22433 (PTA_PREFETCHWT1): New.
22434 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22435 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22436 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22437 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22438 (*prefetch_avx512pf_<mode>_: Change into ...
22439 (*prefetch_prefetchwt1_<mode>: This.
22440 * config/i386/i386.opt (mprefetchwt1): New.
22441 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22442 (_mm_prefetch): Handle intent to write.
22443 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22445 2014-02-25 Richard Biener <rguenther@suse.de>
22447 PR middle-end/60291
22448 * emit-rtl.c (mem_attrs_htab): Remove.
22449 (mem_attrs_htab_hash): Likewise.
22450 (mem_attrs_htab_eq): Likewise.
22451 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22452 (init_emit_once): Do not allocate mem_attrs_htab.
22454 2014-02-25 Richard Biener <rguenther@suse.de>
22457 * lto-opts.c (lto_write_options): Output non-explicit conservative
22458 -fwrapv, -fno-trapv and -fno-strict-overflow.
22459 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22460 (run_gcc): And pass them through.
22462 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22464 * sel-sched.c (calculate_new_fences): New parameter ptime.
22465 Calculate it as a maximum over all fence cycles.
22466 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22467 Print the final schedule timing when sched_verbose.
22469 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22471 PR rtl-optimization/60292
22472 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22473 bit fot the fence instruction.
22475 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22477 * calls.h: Fix typo in comment.
22479 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22481 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22482 adjusting offsetable addresses.
22484 2014-02-24 Guozhi Wei <carrot@google.com>
22486 * sparseset.h (sparseset_pop): Fix the wrong index.
22488 2014-02-24 Walter Lee <walt@tilera.com>
22490 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22491 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22493 * common/config/tilegx/tilegx-common.c
22494 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22495 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22496 (LINK_SPEC): Ditto.
22497 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22498 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22499 (tilegx_gimplify_va_arg_expr): Handle big endian.
22500 (tilegx_expand_unaligned_load): Ditto.
22501 (tilegx_expand_unaligned_store): Ditto.
22502 (TARGET_RETURN_IN_MSB): New.
22503 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22504 (TARGET_ENDIAN_DEFAULT): New.
22505 (TARGET_BIG_ENDIAN): Handle big endian.
22506 (BYTES_BIG_ENDIAN): Ditto.
22507 (WORDS_BIG_ENDIAN): Ditto.
22508 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22509 (ENDIAN_SPEC): New.
22510 (EXTRA_SPECS): New.
22511 * config/tilegx/tilegx.md (extv): Handle big endian.
22513 (insn_st<n>): Ditto.
22514 (insn_st<n>_add<bitsuffix>): Ditto.
22515 (insn_stnt<n>): Ditto.
22516 (insn_stnt<n>_add<bitsuffix>):Ditto.
22517 (vec_interleave_highv8qi): Handle big endian.
22518 (vec_interleave_highv8qi_be): New.
22519 (vec_interleave_highv8qi_le): New.
22520 (insn_v1int_h): Handle big endian.
22521 (vec_interleave_lowv8qi): Handle big endian.
22522 (vec_interleave_lowv8qi_be): New.
22523 (vec_interleave_lowv8qi_le): New.
22524 (insn_v1int_l): Handle big endian.
22525 (vec_interleave_highv4hi): Handle big endian.
22526 (vec_interleave_highv4hi_be): New.
22527 (vec_interleave_highv4hi_le): New.
22528 (insn_v2int_h): Handle big endian.
22529 (vec_interleave_lowv4hi): Handle big endian.
22530 (vec_interleave_lowv4hi_be): New.
22531 (vec_interleave_lowv4hi_le): New.
22532 (insn_v2int_l): Handle big endian.
22533 (vec_interleave_highv2si): Handle big endian.
22534 (vec_interleave_highv2si_be): New.
22535 (vec_interleave_highv2si_le): New.
22536 (insn_v4int_h): Handle big endian.
22537 (vec_interleave_lowv2si): Handle big endian.
22538 (vec_interleave_lowv2si_be): New.
22539 (vec_interleave_lowv2si_le): New.
22540 (insn_v4int_l): Handle big endian.
22541 * config/tilegx/tilegx.opt (mbig-endian): New option.
22542 (mlittle-endian): New option.
22543 * doc/install.texi: Document tilegxbe-linux.
22544 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22546 2014-02-24 Martin Jambor <mjambor@suse.cz>
22549 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22550 there are no parameter descriptors.
22552 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
22554 PR rtl-optimization/60268
22555 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22556 initialization to ...
22557 (sched_rgn_init): ... here.
22558 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22560 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22562 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22565 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22567 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22570 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22572 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22573 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22575 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22577 * config/microblaze/predicates.md: Add cmp_op predicate.
22578 * config/microblaze/microblaze.md: Add branch_compare instruction
22579 which uses cmp_op predicate and emits cmp insn before branch.
22580 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
22581 to microblaze_expand_conditional_branch and consolidate logic.
22582 (microblaze_expand_conditional_branch): emit branch_compare
22583 insn instead of handling cmp op separate from branch insn.
22585 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22587 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
22590 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22592 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
22593 define_insn with define_expand and new define_insn
22594 *altivec_lve<VI_char>x_internal.
22595 (altivec_stve<VI_char>x): Replace define_insn with define_expand
22596 and new define_insn *altivec_stve<VI_char>x_internal.
22597 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
22599 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
22601 (altivec_expand_stvex_be): New function.
22603 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
22605 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
22606 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
22607 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
22608 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
22610 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
22613 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
22614 instead of emit_move_insn.
22616 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22618 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
22619 vspltw with vsldoi.
22620 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
22621 gen_altivec_vsumsws.
22623 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22625 * config/rs6000/altivec.md (altivec_lvxl): Rename as
22626 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
22627 (altivec_lvxl_<mode>): New define_expand incorporating
22628 -maltivec=be semantics where needed.
22629 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
22630 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
22631 semantics where needed.
22632 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
22633 (altivec_stvx_<mode>): New define_expand incorporating
22634 -maltivec=be semantics where needed.
22635 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
22636 VM2 iterator instead of V4SI.
22637 (altivec_stvxl_<mode>): New define_expand incorporating
22638 -maltivec=be semantics where needed.
22639 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
22640 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
22641 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
22642 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
22643 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
22644 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
22645 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
22646 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
22647 ALTIVEC_BUILTIN_STVXL.
22648 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
22649 (altivec_expand_stvx_be): Likewise.
22650 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
22651 (altivec_expand_lvx_be): Likewise.
22652 (altivec_expand_stvx_be): Likewise.
22653 (altivec_expand_builtin): Add cases for
22654 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
22655 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
22656 (altivec_init_builtins): Add definitions for
22657 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
22658 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
22660 2014-02-21 Catherine Moore <clm@codesourcery.com>
22662 * doc/invoke.texi (mvirt, mno-virt): Document.
22663 * config/mips/mips.opt (mvirt): New option.
22664 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
22666 2014-02-21 Richard Biener <rguenther@suse.de>
22668 PR tree-optimization/60276
22669 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
22670 (STMT_VINFO_MIN_NEG_DIST): New macro.
22671 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
22672 STMT_VINFO_MIN_NEG_DIST.
22673 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
22674 made for negative dependence distances still hold.
22676 2014-02-21 Richard Biener <rguenther@suse.de>
22678 PR middle-end/60291
22679 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
22680 DECL_INITIAL for globals not in the current function context.
22682 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22684 PR tree-optimization/56490
22685 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
22686 * tree-ssa-uninit.c: Include params.h.
22687 (compute_control_dep_chain): Add num_calls argument, return false
22688 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
22689 num_calls to recursive call.
22690 (find_predicates): Change dep_chain into normal array,
22691 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
22692 variable and adjust compute_control_dep_chain caller.
22693 (find_def_preds): Likewise.
22695 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
22697 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
22698 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
22700 2014-02-21 Nick Clifton <nickc@redhat.com>
22702 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
22703 (pushhi1): Likewise.
22704 (popqi1): Add mode to pre_dec.
22705 (pophi1): Likewise.
22707 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22709 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
22710 mode for mask of V8SFmode permutation.
22712 2014-02-20 Richard Henderson <rth@redhat.com>
22715 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
22716 a new pseudo for OLDVAL.
22718 2014-02-20 Jakub Jelinek <jakub@redhat.com>
22721 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
22722 gen_reg_rtx if d->testing_p.
22723 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
22724 if d->testing_p and we will certainly return true.
22725 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
22728 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
22730 * emit-rtl.c (gen_reg_rtx): Assert that
22731 crtl->emit.regno_pointer_align_length is non-zero.
22733 2014-02-20 Richard Henderson <rth@redhat.com>
22736 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
22737 on failure the store back into EXPECT.
22739 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
22740 Sandra Loosemore <sandra@codesourcery.com>
22742 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
22743 * config/nios2/nios2.c (nios2_function_profiler): Add
22744 -fPIC (flag_pic == 2) support.
22745 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
22746 (nios2_large_offset_p): New function.
22747 (nios2_unspec_reloc_p): Move up position, update to use
22748 nios2_large_offset_p.
22749 (nios2_unspec_address): Remove function.
22750 (nios2_unspec_offset): New function.
22751 (nios2_large_got_address): New function.
22752 (nios2_got_address): Add large offset support.
22753 (nios2_legitimize_tls_address): Update usage of removed and new
22755 (nios2_symbol_binds_local_p): New function.
22756 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
22757 (nios2_legitimize_address): Update to use nios2_large_offset_p.
22758 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
22759 (nios2_print_operand): Merge H/L processing, add hiadj/lo
22760 processing for (const (unspec ...)).
22761 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
22763 2014-02-20 Richard Biener <rguenther@suse.de>
22765 * tree-cfg.c (replace_uses_by): Mark altered BBs before
22766 doing the substitution.
22767 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
22769 2014-02-20 Martin Jambor <mjambor@suse.cz>
22772 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
22773 info when checking whether lattices are bottom.
22775 2014-02-20 Richard Biener <rguenther@suse.de>
22777 PR middle-end/60221
22778 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
22781 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
22784 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
22785 parameter specifying the scaling.
22786 (inline_call): Update.
22787 (want_inline_recursively): Guard division by zero.
22788 (recursive_inlining): Update.
22789 * ipa-inline.h (clone_inlined_nodes): Update.
22791 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22794 * config/i386/i386.c (classify_argument): Pass structures of size
22795 64 bytes or less in register.
22797 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22798 Kirill Yukhin <kirill.yukhin@intel.com>
22800 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
22801 (_mm_rcp28_round_ss): Ditto.
22802 (_mm_rsqrt28_round_sd): Ditto.
22803 (_mm_rsqrt28_round_ss): Ditto.
22804 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
22805 (_mm_rcp14_round_ss): Ditto.
22806 (_mm_rsqrt14_round_sd): Ditto.
22807 (_mm_rsqrt14_round_ss): Ditto.
22808 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
22809 the first input operand, get rid of match_dup.
22810 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
22812 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
22814 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
22815 operand as the first input operand, set type attribute.
22816 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
22817 Set type attribute.
22818 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
22819 operand as the first input operand, set type attribute.
22821 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22823 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
22826 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
22829 * config/i386/i386.c (construct_container): Remove TFmode check
22830 for X86_64_INTEGER_CLASS.
22832 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
22835 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
22836 only when -Wpsabi is enabled.
22838 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
22841 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
22842 passing arrays in registers are the same as for structs, so remove the
22843 special case for them.
22845 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
22847 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
22848 destination type, extract only the valid bits if the source type is not
22849 integral and has a different mode.
22851 2014-02-19 Richard Biener <rguenther@suse.de>
22854 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
22857 2014-02-19 Richard Biener <rguenther@suse.de>
22860 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
22861 (ipa_modify_call_arguments): Emit an argument load explicitely and
22862 preserve virtual SSA form there and for the replacement call.
22863 Do not update SSA form nor free dominance info.
22865 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22867 * ipa.c (function_and_variable_visibility): Also clear WEAK
22868 flag when disolving COMDAT_GROUP.
22870 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22872 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
22873 * ipa-prop.c (ipa_set_jf_known_type): Return early when
22874 not devirtualizing.
22875 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
22876 do more sanity checks.
22877 (detect_type_change): Return true when giving up early.
22878 (compute_complex_assign_jump_func): Fix type parameter of
22879 ipa_set_ancestor_jf.
22880 (compute_complex_ancestor_jump_func): Likewise.
22881 (update_jump_functions_after_inlining): Fix updating of
22883 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
22885 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22887 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
22888 inline clones when edge disappears.
22890 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22893 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
22894 Split 64-bit moves into 2 patterns. Do not allow the use of
22895 direct move for TDmode in little endian, since the decimal value
22896 has little endian bytes within a word, but the 64-bit pieces are
22897 ordered in a big endian fashion, and normal subreg's of TDmode are
22899 (mov<mode>_64bit_dm): Likewise.
22900 (movtd_64bit_nodm): Likewise.
22902 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
22904 PR tree-optimization/60174
22905 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
22906 statement of an SSA_NAME that occurs in an abnormal PHI node.
22908 2014-02-18 Jakub Jelinek <jakub@redhat.com>
22911 * final.c (SEEN_BB): Remove.
22912 (SEEN_NOTE, SEEN_EMITTED): Renumber.
22913 (final_scan_insn): Don't force_source_line on second
22914 NOTE_INSN_BASIC_BLOCK.
22916 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
22919 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
22920 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
22921 (type_natural_mode): Warn ABI change when %zmm register is not
22922 available for AVX512F vector value passing.
22924 2014-02-18 Kai Tietz <ktietz@redhat.com>
22927 * config/i386/i386.c (ix86_expand_prologue): Use value in
22928 rax register as displacement when restoring %r10 or %rax.
22929 Fix wrong offset when restoring both registers.
22931 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
22933 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
22934 assertion with conditional return.
22936 2014-02-18 Jakub Jelinek <jakub@redhat.com>
22937 Uros Bizjak <ubizjak@gmail.com>
22940 * config/i386/driver-i386.c (host_detect_local_cpu): If
22941 YMM state is not saved by the OS, also clear has_f16c. Move
22942 CPUID 0x80000001 handling before YMM state saving checking.
22944 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
22946 PR rtl-optimization/58960
22947 * haifa-sched.c (alloc_global_sched_pressure_data): New,
22948 factored out from ...
22949 (sched_init): ... here.
22950 (free_global_sched_pressure_data): New, factored out from ...
22951 (sched_finish): ... here.
22952 * sched-int.h (free_global_sched_pressure_data): Declare.
22953 * sched-rgn.c (nr_regions_initial): New static global.
22954 (haifa_find_rgns): Initialize it.
22955 (schedule_region): Disable sched-pressure for the newly
22958 2014-02-17 Richard Biener <rguenther@suse.de>
22960 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
22961 release SSA defs of pattern stmts.
22963 2014-02-17 Richard Biener <rguenther@suse.de>
22965 * tree-inline.c (expand_call_inline): Release the virtual
22966 operand defined by the call we are about to inline.
22968 2014-02-17 Richard Biener <rguenther@suse.de>
22970 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
22972 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
22973 Ilya Tocar <ilya.tocar@intel.com>
22975 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
22976 arguments order in builtin.
22977 (_mm512_permutexvar_epi64): Ditto.
22978 (_mm512_mask_permutexvar_epi64): Ditto
22979 (_mm512_maskz_permutexvar_epi32): Ditto
22980 (_mm512_permutexvar_epi32): Ditto
22981 (_mm512_mask_permutexvar_epi32): Ditto
22983 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22985 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
22986 (p8_vmrgow): Likewise.
22988 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22990 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
22993 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
22996 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
22997 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
22998 into 64-bit and 32-bit moves. On 64-bit moves, add support for
22999 using direct move instructions on ISA 2.07. Also adjust
23000 instruction length for 64-bit.
23001 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23002 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23004 2014-02-15 Alan Modra <amodra@gmail.com>
23008 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23009 find_replacement on parts of insn rtl that might be reloaded.
23011 2014-02-15 Richard Biener <rguenther@suse.de>
23013 PR tree-optimization/60183
23014 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23015 (tree_ssa_phiprop): Calculate and free post-dominators.
23017 2014-02-14 Jeff Law <law@redhat.com>
23019 PR rtl-optimization/60131
23020 * ree.c (get_extended_src_reg): New function.
23021 (combine_reaching_defs): Use it rather than assuming location of REG.
23022 (find_and_remove_re): Verify first operand of extension is
23023 a REG before adding the insns to the copy list.
23025 2014-02-14 Roland McGrath <mcgrathr@google.com>
23027 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23028 * configure: Regenerated.
23029 * config.in: Regenerated.
23030 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23031 instead of ASM_SHORT.
23033 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23034 Richard Earnshaw <rearnsha@arm.com>
23036 PR rtl-optimization/59535
23037 * lra-constraints.c (process_alt_operands): Encourage alternative
23038 when unassigned pseudo class is superset of the alternative class.
23039 (inherit_reload_reg): Don't inherit when optimizing for code size.
23040 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23041 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23042 modes not less than 4 for Thumb1.
23044 2014-02-14 Kyle McMartin <kyle@redhat.com>
23047 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23049 2014-02-14 Richard Biener <rguenther@suse.de>
23051 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23052 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23053 Do not strip INDIRECT_REFs.
23055 2014-02-14 Richard Biener <rguenther@suse.de>
23058 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23059 DECL_FUNCTION_SPECIFIC_TARGET.
23060 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23061 * tree-streamer-out.c (pack_ts_target_option): Remove.
23062 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23063 (write_ts_function_decl_tree_pointers): Do not stream
23064 DECL_FUNCTION_SPECIFIC_TARGET.
23065 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23066 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23067 (lto_input_ts_function_decl_tree_pointers): Do not stream
23068 DECL_FUNCTION_SPECIFIC_TARGET.
23070 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23072 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23073 (get_initial_def_for_induction, vectorizable_induction): Ignore
23074 debug stmts when looking for exit_phi.
23075 (vectorizable_live_operation): Fix up condition.
23077 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23079 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23080 nreverse() because it changes the content of original tree list.
23082 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23084 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23085 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23087 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23089 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23090 GNU coding standards.
23092 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23095 * dwarf2out.c (gen_subprogram_die): Don't call
23096 add_calling_convention_attribute if subr_die is old_die.
23098 2014-02-13 Sharad Singhai <singhai@google.com>
23100 * doc/optinfo.texi: Fix order of nodes.
23102 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23104 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23105 operands[2], not operands[3].
23107 2014-02-13 Richard Biener <rguenther@suse.de>
23110 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23111 mention the possibility of an in-tree build.
23112 (CLooG): Update recommended version to 0.18.1, mention the
23113 possibility of an in-tree build and clarify that the ISL
23114 bundled with CLooG does not work.
23116 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23119 * expr.c (compress_float_constant): If x is a hard register,
23120 extend into a pseudo and then move to x.
23122 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23124 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23125 caused by bad second argument to warning_at() with -mhotpatch and
23126 nested functions (e.g. with gfortran).
23128 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23130 * opts.c (option_name): Remove "enabled by default" rider.
23132 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23134 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23136 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23137 Uros Bizjak <ubizjak@gmail.com>
23140 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23141 * configure: Regenerated.
23143 2014-02-12 Richard Biener <rguenther@suse.de>
23145 * vec.c (vec_prefix::calculate_allocation): Move as
23146 inline variant to vec.h.
23147 (vec_prefix::calculate_allocation_1): New out-of-line version.
23148 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23149 (vec_prefix::m_has_auto_buf): Rename to ...
23150 (vec_prefix::m_using_auto_storage): ... this.
23151 (vec_prefix::calculate_allocation): Inline the easy cases
23152 and dispatch to calculate_allocation_1 which doesn't need the
23154 (va_heap::reserve): Use gcc_checking_assert.
23155 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23156 m_using_auto_storage.
23157 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23159 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23160 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23161 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23163 2014-02-12 Richard Biener <rguenther@suse.de>
23165 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23166 when we found a dependence.
23168 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23170 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23172 (maybe_fold_stmt): ... into this new function.
23173 * omp-low.c (lower_omp): Update comment.
23175 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23178 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23181 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23183 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23184 identifiers in comments.
23185 (cortexa53_extra_costs): Likewise.
23186 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23187 (cortexa7_extra_costs): Likewise.
23188 (cortexa12_extra_costs): Likewise.
23189 (cortexa15_extra_costs): Likewise.
23190 (v7m_extra_costs): Likewise.
23192 2014-02-12 Richard Biener <rguenther@suse.de>
23194 PR middle-end/60092
23195 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23196 of posix_memalign being successful.
23197 (lower_stmt): Restrict lowering of posix_memalign to when
23198 -ftree-bit-ccp is enabled.
23200 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23202 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23204 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23206 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23208 PR rtl-optimization/60116
23209 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23210 other_insn once the combination has been validated.
23212 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23215 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23217 * ipa-devirt.c: Include demangle.h
23218 (odr_violation_reported): New static variable.
23219 (add_type_duplicate): Update odr_violations.
23220 (maybe_record_node): Add completep parameter; update it.
23221 (record_target_from_binfo): Add COMPLETEP parameter;
23222 update it as needed.
23223 (possible_polymorphic_call_targets_1): Likewise.
23224 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23225 rename FINAL to COMPLETE.
23226 (record_targets_from_bases): Sanity check we found the binfo;
23227 fix COMPLETEP updating.
23228 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23229 parameter, fix computing of COMPLETEP.
23230 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23231 at LTO time do demangling.
23232 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23233 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23235 (gimple_get_virt_method_for_binfo): Likewise.
23236 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23237 gimple_get_virt_method_for_vtable): Update prototypes.
23239 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23242 * genautomata.c (add_presence_absence): Fix typo with
23243 {final_}presence_list.
23245 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23248 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23249 for VSX/Altivec vectors that land in GPR registers.
23251 2014-02-11 Richard Henderson <rth@redhat.com>
23252 Jakub Jelinek <jakub@redhat.com>
23255 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23256 around drhs if type conversion to lacc->type is not useless.
23258 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23260 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23262 (cortex-a57.cortex-a53): Likewise.
23263 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23265 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23267 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23270 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23272 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23273 add_options_for_arm_vfp3.
23275 2014-02-11 Jeff Law <law@redhat.com>
23277 PR middle-end/54041
23278 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23279 object with an undesirable mode.
23281 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23284 * config/i386/sol2-9.h: New file.
23285 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23286 *-*-solaris2.9*): Use it.
23288 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23290 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23291 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23293 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23295 * config/microblaze/microblaze.c: Extend mcpu version format
23297 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23299 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23301 2014-02-10 Richard Henderson <rth@redhat.com>
23304 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23305 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23306 ms-abi vs -mno-accumulate-outgoing-args.
23307 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23308 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23311 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23313 PR middle-end/60080
23314 * cfgexpand.c (expand_asm_operands): Attach source location to
23315 ASM_INPUT rtx objects.
23316 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23318 2014-02-10 Nick Clifton <nickc@redhat.com>
23320 * config/mn10300/mn10300.c (popcount): New function.
23321 (mn10300_expand_prologue): Include saved registers in stack usage
23324 2014-02-10 Jeff Law <law@redhat.com>
23326 PR middle-end/52306
23327 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23328 when changing the SET_DEST of a prior insn to avoid an input reload.
23330 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23332 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23333 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23334 -mcall-openbsd, or -mcall-linux.
23335 (CC1_ENDIAN_BIG_SPEC): Remove.
23336 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23337 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23338 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23339 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23340 and %cc1_endian_default.
23341 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23343 2014-02-10 Richard Biener <rguenther@suse.de>
23345 PR tree-optimization/60115
23346 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23347 MEM_REF handling. Properly verify that the accesses are not
23348 out of the objects bound.
23350 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23352 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23355 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23357 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23358 proper constants and fix formatting.
23359 (possible_polymorphic_call_targets): Fix formatting.
23361 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23362 Ilya Tocar <ilya.tocar@intel.com>
23364 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23365 (_mm512_loadu_epi32): Renamed into...
23366 (_mm512_loadu_si512): This.
23367 (_mm512_storeu_epi32): Renamed into...
23368 (_mm512_storeu_si512): This.
23369 (_mm512_maskz_ceil_ps): Removed.
23370 (_mm512_maskz_ceil_pd): Ditto.
23371 (_mm512_maskz_floor_ps): Ditto.
23372 (_mm512_maskz_floor_pd): Ditto.
23373 (_mm512_floor_round_ps): Ditto.
23374 (_mm512_floor_round_pd): Ditto.
23375 (_mm512_ceil_round_ps): Ditto.
23376 (_mm512_ceil_round_pd): Ditto.
23377 (_mm512_mask_floor_round_ps): Ditto.
23378 (_mm512_mask_floor_round_pd): Ditto.
23379 (_mm512_mask_ceil_round_ps): Ditto.
23380 (_mm512_mask_ceil_round_pd): Ditto.
23381 (_mm512_maskz_floor_round_ps): Ditto.
23382 (_mm512_maskz_floor_round_pd): Ditto.
23383 (_mm512_maskz_ceil_round_ps): Ditto.
23384 (_mm512_maskz_ceil_round_pd): Ditto.
23385 (_mm512_expand_pd): Ditto.
23386 (_mm512_expand_ps): Ditto.
23387 * config/i386/i386.c (ix86_builtins): Remove
23388 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23389 (bdesc_args): Ditto.
23390 * config/i386/predicates.md (const1256_operand): New.
23391 (const_1_to_2_operand): Ditto.
23392 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23393 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23394 (*avx512pf_gatherpf<mode>sf): Ditto.
23395 (avx512pf_gatherpf<mode>df): Ditto.
23396 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23397 (*avx512pf_gatherpf<mode>df): Ditto.
23398 (avx512pf_scatterpf<mode>sf): Ditto.
23399 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23400 (*avx512pf_scatterpf<mode>sf): Ditto.
23401 (avx512pf_scatterpf<mode>df): Ditto.
23402 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23403 (*avx512pf_scatterpf<mode>df): Ditto.
23404 (avx512f_expand<mode>): Removed.
23405 (<shift_insn><mode>3<mask_name>): Change predicate type.
23407 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23409 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23410 not at the end of datarefs vector use ordered_remove to avoid
23411 reordering datarefs vector.
23414 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23415 mark local addressable non-static vars as GOVD_PRIVATE
23416 instead of GOVD_LOCAL.
23417 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23418 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23421 PR middle-end/60092
23422 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23423 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23424 assume_aligned or alloc_align attributes.
23425 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23426 arguments. Handle also assume_aligned and alloc_align attributes.
23427 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23428 calls to functions with assume_aligned or alloc_align attributes.
23429 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23431 2014-02-08 Terry Guo <terry.guo@arm.com>
23433 * doc/invoke.texi: Document ARM -march=armv7e-m.
23435 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23437 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23438 flag on __cilkrts_rethrow builtin.
23441 * ipa-cp.c (determine_versionability): Fail at -O0
23442 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23443 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23446 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23449 * tree-inline.c (copy_forbidden): Fail for
23450 __attribute__((optimize (0))) functions.
23452 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23454 * varpool.c: Include pointer-set.h.
23455 (varpool_remove_unreferenced_decls): Variables in other partitions
23456 will not be output; be however careful to not lose information
23457 about partitioning.
23459 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23461 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23462 lookup in the vtable constructor.
23464 2014-02-07 Jeff Law <law@redhat.com>
23467 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23468 define_insn_and_split.
23470 * ipa-inline.c (inline_small_functions): Fix typos.
23472 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23474 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23475 (s390_can_use_return_insn): Declare.
23476 * config/s390/s390.h (EPILOGUE_USES): Define.
23477 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23479 (s390_chunkify_start): Handle return JUMP_LABELs.
23480 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23481 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23482 (s390_can_use_return_insn): New functions.
23483 (s390_fix_long_loop_prediction): Handle conditional returns.
23484 (TARGET_SET_UP_BY_PROLOGUE): Define.
23485 * config/s390/s390.md (ANY_RETURN): New code iterator.
23486 (*creturn, *csimple_return, return, simple_return): New patterns.
23488 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23490 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23491 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23492 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23493 REG_CFA_RESTORE list when deciding not to restore a register.
23495 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23497 * config/s390/s390.c: Include tree-pass.h and context.h.
23498 (s390_early_mach): New function, split out from...
23499 (s390_emit_prologue): ...here.
23500 (pass_data_s390_early_mach): New pass structure.
23501 (pass_s390_early_mach): New class.
23502 (s390_option_override): Create and register early_mach pass.
23503 Move to end of file.
23505 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23507 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23508 to match for the exit block.
23510 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23512 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23513 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23514 Reject misaligned operands.
23516 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23518 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23520 2014-02-07 Richard Biener <rguenther@suse.de>
23522 PR middle-end/60092
23523 * gimple-low.c (lower_builtin_posix_memalign): New function.
23524 (lower_stmt): Call it to lower posix_memalign in a way
23525 to make alignment info accessible.
23527 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23530 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23531 __builtin_setjmp_receiver.
23533 2014-02-07 Richard Biener <rguenther@suse.de>
23535 PR middle-end/60092
23536 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23537 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23538 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23539 Handle BUILT_IN_POSIX_MEMALIGN.
23540 (find_func_clobbers): Likewise.
23541 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23542 (call_may_clobber_ref_p_1): Likewise.
23544 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23547 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23550 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23553 * lto-cgraph.c (lto_output_node): Use
23554 symtab_get_symbol_partitioning_class.
23555 (lto_output_varpool_node): likewise.
23556 (symtab_get_symbol_partitioning_class): Move here from
23557 lto/lto-partition.c
23558 * cgraph.h (symbol_partitioning_class): Likewise.
23559 (symtab_get_symbol_partitioning_class): Declare.
23561 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23563 * ggc.h (ggc_internal_cleared_alloc): New macro.
23564 * vec.h (vec_safe_copy): Handle memory stats.
23565 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23566 * target-globals.c (save_target_globals): Likewise.
23568 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23571 * expr.c (emit_move_resolve_push): Export; be bit more selective
23572 on when to clear alias set.
23573 * expr.h (emit_move_resolve_push): Declare.
23574 * function.h (struct function): Add tail_call_marked.
23575 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
23576 * config/i386/i386-protos.h (ix86_expand_push): Remove.
23577 * config/i386/i386.md (TImode move expander): De not call
23579 (FP push expanders): Preserve memory attributes.
23580 * config/i386/sse.md (push<mode>1): Remove.
23581 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
23582 (ix86_expand_push): Remove.
23583 * config/i386/mmx.md (push<mode>1): Remove.
23585 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23587 PR rtl-optimization/60030
23588 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
23589 lopart with paradoxical subreg before shifting it up by hprec.
23591 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23593 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
23594 Remove extra newline at end of file.
23595 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
23596 (arm_issue_rate): Handle cortexa57.
23597 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
23598 (cortex-a57.cortex-a53): Likewise.
23600 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23603 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
23604 don't record in REG_FRAME_RELATED_EXPR registers not set in that
23606 (arm_expand_prologue): Adjust all callers.
23607 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
23608 info, registers also at the lowest numbered registers side. Use
23609 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
23613 * var-tracking.c (adjust_mems): Before adding a SET to
23614 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
23616 2014-02-06 Alan Modra <amodra@gmail.com>
23619 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
23620 change SDmode to DDmode when lra_in_progress.
23622 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23624 PR middle-end/59150
23625 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
23626 free_data_ref on the dr first, and before goto again also set dr
23627 to the next dr. For simd_lane_access, free old datarefs[i] before
23628 overwriting it. For get_vectype_for_scalar_type failure, don't
23629 free_data_ref if simd_lane_access.
23631 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
23634 * tree.h (opts_for_fn): New inline function.
23635 (opt_for_fn): Define.
23636 * config/i386/i386.c (ix86_function_regparm): Use
23637 opt_for_fn (decl, optimize) instead of optimize.
23639 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
23641 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
23642 for SYMBOL_REF in large memory model.
23644 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23646 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
23647 and crypto support.
23648 (cortex-a57): Likewise.
23649 (cortex-a57.cortex-a53): Likewise.
23651 2014-02-06 Yury Gribov <y.gribov@samsung.com>
23652 Kugan Vivekanandarajah <kuganv@linaro.org>
23654 * config/arm/arm.c (arm_vector_alignment_reachable): Check
23656 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
23658 2014-02-06 Richard Biener <rguenther@suse.de>
23660 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
23661 set_loop_copy and initialize_original_copy_tables.
23663 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
23665 * config/aarch64/aarch64-simd.md
23666 (aarch64_ashr_simddi): Change QI to SI.
23668 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23669 Jakub Jelinek <jakub@redhat.com>
23671 PR middle-end/60013
23672 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
23675 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23677 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
23678 CODE_FOR_altivec_vpku[hw]um to
23679 CODE_FOR_altivec_vpku[hw]um_direct.
23680 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
23681 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
23682 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
23683 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
23685 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23687 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
23688 generation for -maltivec=be.
23689 (altivec_vsumsws): Simplify redundant test.
23691 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23693 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
23694 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
23695 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
23696 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
23697 gen_altivec_vpkuwum.
23698 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
23700 (altivec_vpks<VI_char>ss): Likewise.
23701 (altivec_vpks<VI_char>us): Likewise.
23702 (altivec_vpku<VI_char>us): Likewise.
23703 (altivec_vpku<VI_char>um): Likewise.
23704 (altivec_vpku<VI_char>um_direct): New (copy of
23705 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
23707 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
23708 target is little endian and -maltivec=be is not specified.
23709 (*altivec_vupkhs<VU_char>_direct): New (copy of
23710 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
23711 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
23712 target is little endian and -maltivec=be is not specified.
23713 (*altivec_vupkls<VU_char>_direct): New (copy of
23714 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
23715 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
23716 little endian and -maltivec=be is not specified.
23717 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
23718 little endian and -maltivec=be is not specified.
23720 2014-02-05 Richard Henderson <rth@redhat.com>
23723 * combine-stack-adj.c: Revert r206943.
23724 * sched-int.h (struct deps_desc): Add last_args_size.
23725 * sched-deps.c (init_deps): Initialize it.
23726 (sched_analyze_insn): Add OUTPUT dependencies between insns that
23727 contain REG_ARGS_SIZE notes.
23729 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23731 * lto-cgraph.c (asm_nodes_output): Make global.
23732 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
23733 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
23734 (driver_handle_option): Handle OPT_fwpa.
23736 2014-02-05 Jakub Jelinek <jakub@redhat.com>
23739 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
23740 a comment typo and formatting issue. If odr_hash hasn't been
23741 created, return vNULL and set *completep to false.
23743 PR middle-end/57499
23744 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
23745 bb with no successors.
23747 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
23750 * doc/invoke.texi (-march): Clarify documentation for ARM.
23751 (-mtune): Likewise.
23754 2014-02-05 Richard Biener <rguenther@suse.de>
23756 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
23757 when not vectorizing because of too many alias checks.
23758 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23759 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
23761 2014-02-05 Nick Clifton <nickc@redhat.com>
23763 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
23764 accept extended registers in any mode when compiling for the MN10300.
23766 2014-02-05 Yury Gribov <y.gribov@samsung.com>
23768 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
23769 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
23770 sanitization attributes.
23771 (can_inline_edge_p): Likewise.
23772 (sanitize_attrs_match_for_inline_p): New function.
23774 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23776 * ipa-prop.c (detect_type_change): Shor circuit testing of
23777 type changes on THIS pointer.
23779 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
23782 * config/pa/pa.c (legitimize_tls_address): Return original address
23783 if not passed a SYMBOL_REF rtx.
23784 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
23786 (pa_emit_move_sequence): Simplify TLS source operands.
23787 (pa_legitimate_constant_p): Reject all TLS constants.
23788 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
23789 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
23791 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23793 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
23794 groups when we know they are controlled by LTO.
23795 * varasm.c (default_binds_local_p_1): If object is in other partition,
23796 it will be resolved locally.
23798 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23800 * config/host-linux.c (linux_gt_pch_use_address): Don't
23801 use SSIZE_MAX because it is not always defined.
23803 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
23806 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
23807 threshold for pseudo splitting.
23808 (update_ebb_live_info): Process call argument hard registers and
23809 hard registers from insn definition too.
23810 (max_small_class_regs_num): New constant.
23811 (inherit_in_ebb): Update live hard regs through EBBs. Update
23812 reloads_num only for small register classes. Don't split for
23815 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
23818 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
23821 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23823 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
23824 visibility is safe.
23826 2014-02-04 Marek Polacek <polacek@redhat.com>
23828 * gdbinit.in (pel): Define.
23830 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23832 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
23835 2014-02-04 Richard Biener <rguenther@suse.de>
23838 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
23839 in function context local.
23840 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
23841 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
23842 similar to LTO_imported_decl_ref.
23844 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23846 PR tree-optimization/60002
23847 * cgraphclones.c (build_function_decl_skip_args): Clear
23848 DECL_LANG_SPECIFIC.
23850 PR tree-optimization/60023
23851 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
23852 false to gsi_replace.
23853 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
23854 has been in some EH region and vec_stmt could throw, add
23855 vec_stmt into the same EH region.
23856 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
23857 has no lhs, ignore it.
23858 * internal-fn.c (expand_MASK_LOAD): Likewise.
23861 * tree-inline.c (copy_forbidden): Fail for
23862 __attribute__((optimize (0))) functions.
23865 * omp-low.c (simd_clone_struct_copy): If from->inbranch
23866 is set, copy one less argument.
23867 (expand_simd_clones): Don't subtract clone_info->inbranch
23868 from simd_clone_struct_alloc argument.
23870 PR rtl-optimization/57915
23871 * recog.c (simplify_while_replacing): If all unary/binary/relational
23872 operation arguments are constant, attempt to simplify those.
23874 PR middle-end/59261
23875 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
23876 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
23878 2014-02-04 Richard Biener <rguenther@suse.de>
23880 PR tree-optimization/60012
23881 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
23882 TBAA disambiguation to all DDRs.
23884 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23887 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
23888 (LINK_SPEC): Use it for -shared, -shared-libgcc.
23890 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23893 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
23895 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23897 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
23898 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
23900 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23903 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
23904 to figure out targets of polymorphic calls with known decl.
23905 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23906 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
23907 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
23908 (get_polymorphic_call_info): ... here.
23909 (get_polymorphic_call_info_from_invariant): New function.
23911 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23913 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
23914 lookup via vtable pointer; check for type consistency
23915 and turn inconsitent facts into UNREACHABLE.
23916 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23917 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
23918 type inconsistent querries; return UNREACHABLE instead.
23920 2014-02-03 Richard Henderson <rth@twiddle.net>
23923 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
23924 already processed this node.
23925 (normalize_one_pred_1): Pass along mark_set.
23926 (normalize_one_pred): Create and destroy a pointer_set_t.
23927 (normalize_one_pred_chain): Likewise.
23929 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
23931 PR gcov-profile/58602
23932 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
23934 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23937 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
23938 -fno-devirtualize; try to devirtualize by the knowledge of
23939 virtual table pointer given by aggregate propagation.
23940 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23941 (ipa_print_node_jump_functions): Dump also offset that
23942 is relevant for polymorphic calls.
23943 (determine_known_aggregate_parts): Add arg_type parameter; use it
23944 instead of determining the type from pointer type.
23945 (ipa_compute_jump_functions_for_edge): Update call of
23946 determine_known_aggregate_parts.
23947 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
23948 (gimple_get_virt_method_for_binfo): ... here; simplify using
23949 vtable_pointer_value_to_vtable.
23950 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
23951 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
23952 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
23953 (vtable_pointer_value_to_vtable): Break out from ...; handle also
23955 (vtable_pointer_value_to_binfo): ... here.
23956 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
23958 2014-02-03 Teresa Johnson <tejohnson@google.com>
23960 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
23961 redef of outer loop index variable.
23963 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
23967 * doc/extend.texi (Function Attributes): Typo.
23969 2014-02-03 Cong Hou <congh@google.com>
23971 PR tree-optimization/60000
23972 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
23973 if the vectorized statement is a store. A store statement can only
23974 appear at the end of pattern statements.
23976 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
23978 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
23979 (ix86_option_override_internal): Default long double to 64-bit for
23980 32-bit Bionic and to 128-bit for 64-bit Bionic.
23982 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
23983 TARGET_LONG_DOUBLE_128 is true.
23984 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
23986 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
23987 (mlong-double-64): Negate -mlong-double-128.
23988 (mlong-double-128): New option.
23990 * config/i386/i386-c.c (ix86_target_macros): Define
23991 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
23993 * doc/invoke.texi: Document -mlong-double-128.
23995 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
23997 PR rtl-optimization/60024
23998 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24000 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24002 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24004 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24006 PR rtl-optimization/57662
24007 * sel-sched.c (code_motion_path_driver): Do not mark already not
24008 existing blocks in the visiting bitmap.
24010 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24012 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24013 on the insn being emitted.
24015 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24016 Will Deacon <will.deacon@arm.com>
24018 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24020 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24022 * config/arm/arm-tables.opt: Regenerate.
24024 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24026 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24027 for vector types other than V16QImode.
24028 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24029 define_expand, and call altivec_expand_vec_perm_le when producing
24030 code with little endian element order.
24031 (*altivec_vperm_<mode>_internal): New insn having previous
24032 behavior of altivec_vperm_<mode>.
24033 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24034 altivec_expand_vec_perm_le when producing code with little endian
24036 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24037 behavior of altivec_vperm_<mode>_uns.
24039 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24041 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24042 (altivec_vsumsws): Add handling for -maltivec=be with a little
24044 (altivec_vsumsws_direct): New.
24045 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24046 gen_altivec_vsumsws.
24048 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24050 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24051 vtable_pointer_value_to_binfo): New functions.
24052 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24053 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24055 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24057 * config/nios2/nios2.md (load_got_register): Initialize GOT
24058 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24059 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24061 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24063 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24064 preserverd by passthrough, do not propagate the type.
24066 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24068 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24069 (mips_atomic_assign_expand_fenv): New function.
24070 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24072 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24074 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24075 (__builtin_mips_set_fcsr): Likewise.
24076 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24077 MIPS_USI_FTYPE_VOID.
24078 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24079 (mips16_expand_set_fcsr): Likewise.
24080 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24081 (mips16_set_fcsr_stub): Likewise.
24082 (mips16_get_fcsr_one_only_stub): New class.
24083 (mips16_set_fcsr_one_only_stub): Likewise.
24084 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24085 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24086 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24087 (hard_float): New availability predicate.
24088 (mips_builtins): Add get_fcsr and set_fcsr.
24089 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24090 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24091 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24092 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24093 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24096 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24098 * config/mips/mips.c (mips_one_only_stub): New class.
24099 (mips_need_mips16_rdhwr_p): Replace with...
24100 (mips16_rdhwr_stub): ...this new variable.
24101 (mips16_stub_call_address): New function.
24102 (mips16_rdhwr_one_only_stub): New class.
24103 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24104 (mips_output_mips16_rdhwr): Delete.
24105 (mips_finish_stub): New function.
24106 (mips_code_end): Use it to handle rdhwr stubs.
24108 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24111 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24112 when calculating size of integer atomic types.
24114 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24116 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24118 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24120 PR tree-optimization/60003
24121 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24122 * profile.c (branch_prob): Use gimple_call_builtin_p
24123 to check for BUILT_IN_SETJMP_RECEIVER.
24124 * tree-inline.c (copy_bb): Call notice_special_calls.
24126 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24129 * lra-constraints.c (process_alt_operands): Update reload_sum only
24132 2014-01-31 Richard Henderson <rth@redhat.com>
24134 PR middle-end/60004
24135 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24136 until after else_eh is processed.
24138 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24140 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24141 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24142 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24143 in smmintrin.h, remove them.
24144 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24145 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24146 * config/i386/i386.md (ROUND_SAE): Fix value.
24147 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24148 (const48_operand): New.
24149 * config/i386/subst.md (round), (round_expand): Use
24150 const_4_or_8_to_11_operand.
24151 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24153 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24155 * config/i386/constraints.md (Yk): Swap meaning with k.
24156 * config/i386/i386.md (movhi_internal): Change Yk to k.
24157 (movqi_internal): Ditto.
24158 (*k<logic><mode>): Ditto.
24161 (kandn<mode>): Ditto.
24162 (*<code>hi_1): Ditto.
24163 (*<code>qi_1): Ditto.
24164 (kxnor<mode>): Ditto.
24165 (kortestzhi): Ditto.
24166 (kortestchi): Ditto.
24168 (*one_cmplhi2_1): Ditto.
24169 (*one_cmplqi2_1): Ditto.
24170 * config/i386/sse.md (): Change k to Yk.
24171 (avx512f_load<mode>_mask): Ditto.
24172 (avx512f_blendm<mode>): Ditto.
24173 (avx512f_store<mode>_mask): Ditto.
24174 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24175 (avx512f_storedqu<mode>_mask): Ditto.
24176 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24178 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24179 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24180 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24181 (avx512f_maskcmp<mode>3): Ditto.
24182 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24183 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24184 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24185 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24186 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24187 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24188 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24189 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24190 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24191 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24192 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24193 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24194 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24195 (vec_extract_lo_<mode>_maskm): Ditto.
24196 (vec_extract_hi_<mode>_maskm): Ditto.
24197 (avx512f_vternlog<mode>_mask): Ditto.
24198 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24199 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24200 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24201 (avx512f_<code>v8div16qi2_mask): Ditto.
24202 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24203 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24204 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24205 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24206 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24207 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24208 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24209 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24210 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24211 (avx512cd_maskb_vec_dupv8di): Ditto.
24212 (avx512cd_maskw_vec_dupv16si): Ditto.
24213 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24214 (avx512f_vpermi2var<mode>3_mask): Ditto.
24215 (avx512f_vpermi2var<mode>3_mask): Ditto.
24216 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24217 (*avx512f_gathersi<mode>): Ditto.
24218 (*avx512f_gathersi<mode>_2): Ditto.
24219 (*avx512f_gatherdi<mode>): Ditto.
24220 (*avx512f_gatherdi<mode>_2): Ditto.
24221 (*avx512f_scattersi<mode>): Ditto.
24222 (*avx512f_scatterdi<mode>): Ditto.
24223 (avx512f_compress<mode>_mask): Ditto.
24224 (avx512f_compressstore<mode>_mask): Ditto.
24225 (avx512f_expand<mode>_mask): Ditto.
24226 * config/i386/subst.md (mask): Change k to Yk.
24227 (mask_scalar_merge): Ditto.
24230 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24232 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24234 2014-01-31 Richard Biener <rguenther@suse.de>
24236 PR middle-end/59990
24237 * builtins.c (fold_builtin_memory_op): Make sure to not
24238 use a floating-point mode or a boolean or enumeral type for
24239 the copy operation.
24241 2014-01-30 DJ Delorie <dj@redhat.com>
24243 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24244 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24245 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24246 whenever main() has an epilogue.
24248 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24250 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24251 unused variable "field".
24252 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24253 (vsx_mergeh_<mode>): Likewise.
24254 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24255 (altivec_vmrghh): Likewise.
24256 (altivec_vmrghw): Likewise.
24257 (altivec_vmrglb): Likewise.
24258 (altivec_vmrglh): Likewise.
24259 (altivec_vmrglw): Likewise.
24260 (altivec_vspltb): Add missing uses.
24261 (altivec_vsplth): Likewise.
24262 (altivec_vspltw): Likewise.
24263 (altivec_vspltsf): Likewise.
24265 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24268 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24269 frame related instructions.
24271 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24273 PR rtl-optimization/59959
24274 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24275 any reload of register whose subreg is invalid.
24277 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24279 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24280 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24281 Add missing return type - void.
24283 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24285 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24286 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24287 remove element index adjustment for endian (now handled in vsx.md
24289 (altivec_expand_vec_perm_const): Use
24290 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24291 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24292 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24293 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24294 define_expand and a new define_insn *altivec_vspltb_internal;
24295 adjust for -maltivec=be on a little endian target.
24296 (altivec_vspltb_direct): New.
24297 (altivec_vsplth): Divide into a define_expand and a new
24298 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24299 little endian target.
24300 (altivec_vsplth_direct): New.
24301 (altivec_vspltw): Divide into a define_expand and a new
24302 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24303 little endian target.
24304 (altivec_vspltw_direct): New.
24305 (altivec_vspltsf): Divide into a define_expand and a new
24306 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24307 a little endian target.
24309 2014-01-30 Richard Biener <rguenther@suse.de>
24311 PR tree-optimization/59993
24312 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24313 can propagate form the earlier stmt and avoid the transform
24314 when the intermediate result is needed.
24316 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24318 * README.Portability: Fix typo.
24320 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24322 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24323 comparison_operator with ordered_comparison_operator.
24325 2014-01-30 Nick Clifton <nickc@redhat.com>
24327 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24328 Rename to mn10300_store_multiple_regs.
24329 * config/mn10300/mn10300.c: Likewise.
24330 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24331 store_multiple_regs.
24332 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24333 Call mn10300_store_multiple_regs.
24335 2014-01-30 Nick Clifton <nickc@redhat.com>
24336 DJ Delorie <dj@redhat.com>
24338 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24339 %fp 2 to keep registers after it properly word-aligned.
24340 (rl78_alloc_physical_registers_umul): Handle the case where both
24341 input operands are the same.
24343 2014-01-30 Richard Biener <rguenther@suse.de>
24345 PR tree-optimization/59903
24346 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24349 2014-01-30 Jason Merrill <jason@redhat.com>
24352 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24355 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24357 2014-01-30 Richard Biener <rguenther@suse.de>
24359 PR tree-optimization/59951
24360 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24362 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24365 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24366 SFmode to DFmode case.
24368 2014-01-29 DJ Delorie <dj@redhat.com>
24370 * config/msp430/msp430.opt (-minrt): New.
24371 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24373 (ENDFILE_SPEC): Likewise.
24375 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24377 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24378 (estimate_function_body_sizes): Use it.
24380 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24383 * dwarf2out.c (is_cxx_auto): New.
24384 (is_base_type): Use it.
24385 (gen_type_die_with_usage): Likewise.
24387 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24389 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24390 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24391 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24392 -maltivec=be with LE targets.
24393 (vsx_mergeh_<mode>): Likewise.
24394 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24395 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24396 (altivec_vmrghb): Replace with define_expand and new
24397 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24398 (altivec_vmrghb_direct): New define_insn.
24399 (altivec_vmrghh): Replace with define_expand and new
24400 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24401 (altivec_vmrghh_direct): New define_insn.
24402 (altivec_vmrghw): Replace with define_expand and new
24403 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24404 (altivec_vmrghw_direct): New define_insn.
24405 (*altivec_vmrghsf): Adjust for endianness.
24406 (altivec_vmrglb): Replace with define_expand and new
24407 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24408 (altivec_vmrglb_direct): New define_insn.
24409 (altivec_vmrglh): Replace with define_expand and new
24410 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24411 (altivec_vmrglh_direct): New define_insn.
24412 (altivec_vmrglw): Replace with define_expand and new
24413 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24414 (altivec_vmrglw_direct): New define_insn.
24415 (*altivec_vmrglsf): Adjust for endianness.
24416 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24417 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24418 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24419 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24420 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24421 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24422 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24423 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24425 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24427 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24428 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24431 2014-01-29 Richard Biener <rguenther@suse.de>
24433 PR tree-optimization/58742
24434 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24435 associate_pointerplus_align.
24436 (associate_pointerplus_diff): New function.
24437 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24438 and associate_pointerplus_diff.
24440 2014-01-29 Richard Biener <rguenther@suse.de>
24442 * lto-streamer.h (LTO_major_version): Bump to 3.
24443 (LTO_minor_version): Reset to 0.
24445 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24447 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24448 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24449 (arm_file_start): Generate correct asm header for armv7ve.
24450 * config/arm/bpabi.h: Add multilib support for armv7ve.
24451 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24452 and cortex-a15 to armv7ve.
24453 * config/arm/t-aprofile: Add multilib support for armv7ve.
24454 * doc/invoke.texi: Document -march=armv7ve.
24456 2014-01-29 Richard Biener <rguenther@suse.de>
24458 PR tree-optimization/58742
24459 * tree-ssa-forwprop.c (associate_plusminus): Return true
24460 if we changed sth, defer EH cleanup to ...
24461 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24462 (simplify_mult): New function.
24464 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24466 PR middle-end/59917
24467 PR tree-optimization/59920
24468 * tree.c (build_common_builtin_nodes): Remove
24469 __builtin_setjmp_dispatcher initialization.
24470 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24471 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24472 instead of gsi_after_labels + manually skipping debug stmts.
24473 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24474 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24475 * tree-inline.c (copy_edges_for_bb): Remove
24476 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24477 argument. Ignore computed_goto_p stmts. Don't call
24478 make_abnormal_goto_edges. If a call might need abnormal edges
24479 for non-local gotos, see if it already has an edge to
24480 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24481 with true argument, don't do anything then, otherwise add
24482 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24483 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24485 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24486 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24487 (lower_stmt): Don't set data->calls_builtin_setjmp.
24488 (lower_builtin_setjmp): Adjust comment.
24489 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24490 * tree-cfg.c (found_computed_goto): Remove.
24491 (factor_computed_gotos): Remove.
24492 (make_goto_expr_edges): Return bool, true for computed gotos.
24493 Don't call make_abnormal_goto_edges.
24494 (build_gimple_cfg): Don't set found_computed_goto, don't call
24495 factor_computed_gotos.
24496 (computed_goto_p): No longer static.
24497 (make_blocks): Don't set found_computed_goto.
24498 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24499 (make_edges): If make_goto_expr_edges returns true, push bb
24500 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24501 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24502 vector. Record mapping between bbs and OpenMP regions if there
24503 are any, adjust make_gimple_omp_edges caller. Call
24504 handle_abnormal_edges.
24505 (make_abnormal_goto_edges): Remove.
24506 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24507 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24508 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24509 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24510 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24511 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24512 filling *region also set *region_idx to (*region)->entry->index.
24515 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24516 For REGs set ORIGINAL_REGNO.
24518 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24520 * doc/md.texi: Mention that a target shouldn't implement
24521 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24524 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24526 PR tree-optimization/59594
24527 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24528 a copy of the datarefs vector rather than the vector itself.
24530 2014-01-28 Jason Merrill <jason@redhat.com>
24533 * dwarf2out.c (auto_die): New static.
24534 (gen_type_die_with_usage): Handle C++1y 'auto'.
24535 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24538 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24541 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24542 (SPEC_X32): Likewise.
24543 (SPEC_64): Likewise.
24544 * config/i386/i386.c (ix86_option_override_internal): Turn off
24545 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24547 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24548 * config/i386/i386.h (TARGET_16BIT): New macro.
24549 (TARGET_16BIT_P): Likewise.
24550 * config/i386/i386.opt: Add m16.
24551 * doc/invoke.texi: Document -m16.
24553 2014-01-28 Jakub Jelinek <jakub@redhat.com>
24555 PR preprocessor/59935
24556 * input.c (location_get_source_line): Bail out on when line number
24557 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24559 2014-01-28 Richard Biener <rguenther@suse.de>
24561 PR tree-optimization/58742
24562 * tree-ssa-forwprop.c (associate_plusminus): Handle
24563 pointer subtraction of the form (T)(P + A) - (T)P.
24565 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24567 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24570 2014-01-28 Richard Biener <rguenther@suse.de>
24573 2014-01-28 Richard Biener <rguenther@suse.de>
24575 PR rtl-optimization/45364
24576 PR rtl-optimization/59890
24577 * var-tracking.c (local_get_addr_clear_given_value): Handle
24578 already cleared slot.
24579 (val_reset): Handle not allocated local_get_addr_cache.
24580 (vt_find_locations): Use post-order on the inverted CFG.
24582 2014-01-28 Richard Biener <rguenther@suse.de>
24584 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
24586 2014-01-28 Richard Biener <rguenther@suse.de>
24588 PR rtl-optimization/45364
24589 PR rtl-optimization/59890
24590 * var-tracking.c (local_get_addr_clear_given_value): Handle
24591 already cleared slot.
24592 (val_reset): Handle not allocated local_get_addr_cache.
24593 (vt_find_locations): Use post-order on the inverted CFG.
24595 2014-01-28 Alan Modra <amodra@gmail.com>
24597 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
24598 * configure.ac <recursive call for build != host>: Define
24599 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
24600 and LD_FOR_BUILD too.
24601 * configure: Regenerate.
24603 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
24605 * config/i386/i386.c (get_builtin_code_for_version): Separate
24606 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
24607 Broadwell from Haswell.
24609 2014-01-27 Steve Ellcey <sellcey@mips.com>
24611 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24612 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
24613 * config/mips/mips.c (mips_option_override): Change setting
24615 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
24616 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
24617 Change from Mask to Var.
24619 2014-01-27 Jeff Law <law@redhat.com>
24621 * ipa-inline.c (inline_small_functions): Fix typo.
24623 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
24625 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
24626 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
24627 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
24628 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
24629 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
24630 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
24631 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
24632 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
24633 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
24634 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
24635 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
24636 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
24637 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
24638 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
24639 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
24640 (_mm512_storeu_epi64): Ditto.
24641 (_mm512_cmpge_epi32_mask): Ditto.
24642 (_mm512_cmpge_epu32_mask): Ditto.
24643 (_mm512_cmpge_epi64_mask): Ditto.
24644 (_mm512_cmpge_epu64_mask): Ditto.
24645 (_mm512_cmple_epi32_mask): Ditto.
24646 (_mm512_cmple_epu32_mask): Ditto.
24647 (_mm512_cmple_epi64_mask): Ditto.
24648 (_mm512_cmple_epu64_mask): Ditto.
24649 (_mm512_cmplt_epi32_mask): Ditto.
24650 (_mm512_cmplt_epu32_mask): Ditto.
24651 (_mm512_cmplt_epi64_mask): Ditto.
24652 (_mm512_cmplt_epu64_mask): Ditto.
24653 (_mm512_cmpneq_epi32_mask): Ditto.
24654 (_mm512_cmpneq_epu32_mask): Ditto.
24655 (_mm512_cmpneq_epi64_mask): Ditto.
24656 (_mm512_cmpneq_epu64_mask): Ditto.
24657 (_mm512_expand_pd): Ditto.
24658 (_mm512_expand_ps): Ditto.
24659 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
24660 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
24661 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
24662 * config/i386/i386.c (ix86_builtins): Add
24663 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
24664 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
24665 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
24666 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
24667 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
24668 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
24669 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
24670 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
24671 IX86_BUILTIN_PMOVUSQW512_MEM.
24672 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
24673 __builtin_ia32_pmovsqd512mem_mask,
24674 __builtin_ia32_pmovqd512mem_mask,
24675 __builtin_ia32_pmovusqw512mem_mask,
24676 __builtin_ia32_pmovsqw512mem_mask,
24677 __builtin_ia32_pmovqw512mem_mask,
24678 __builtin_ia32_pmovusdw512mem_mask,
24679 __builtin_ia32_pmovsdw512mem_mask,
24680 __builtin_ia32_pmovdw512mem_mask,
24681 __builtin_ia32_pmovqb512mem_mask,
24682 __builtin_ia32_pmovusqb512mem_mask,
24683 __builtin_ia32_pmovsqb512mem_mask,
24684 __builtin_ia32_pmovusdb512mem_mask,
24685 __builtin_ia32_pmovsdb512mem_mask,
24686 __builtin_ia32_pmovdb512mem_mask.
24687 (bdesc_args): Add __builtin_ia32_expanddf512,
24688 __builtin_ia32_expandsf512.
24689 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
24690 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
24691 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
24692 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
24693 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
24694 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
24695 (avx512f_<code>v8div16qi2_mask_store): This.
24696 (avx512f_expand<mode>): New.
24698 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
24700 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
24702 (_mm512_mask_prefetch_i64gather_pd): Ditto.
24703 (_mm512_prefetch_i32scatter_pd): Ditto.
24704 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
24705 (_mm512_prefetch_i64scatter_pd): Ditto.
24706 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
24707 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
24708 (_mm512_mask_prefetch_i64gather_ps): Ditto.
24709 (_mm512_prefetch_i32scatter_ps): Ditto.
24710 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
24711 (_mm512_prefetch_i64scatter_ps): Ditto.
24712 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
24713 * config/i386/i386-builtin-types.def: Define
24714 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
24715 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
24716 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
24717 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
24718 IX86_BUILTIN_SCATTERPFQPD.
24719 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
24720 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
24721 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
24722 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
24723 __builtin_ia32_scatterpfqps.
24724 (ix86_expand_builtin): Expand new built-ins.
24725 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
24726 fix memory access data type.
24727 (*avx512pf_gatherpf<mode>_mask): Ditto.
24728 (*avx512pf_gatherpf<mode>): Ditto.
24729 (avx512pf_scatterpf<mode>): Ditto.
24730 (*avx512pf_scatterpf<mode>_mask): Ditto.
24731 (*avx512pf_scatterpf<mode>): Ditto.
24732 (GATHER_SCATTER_SF_MEM_MODE): New.
24733 (avx512pf_gatherpf<mode>df): Ditto.
24734 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24735 (*avx512pf_scatterpf<mode>df): Ditto.
24737 2014-01-27 Jakub Jelinek <jakub@redhat.com>
24740 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
24741 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
24744 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24746 * common/config/arm/arm-common.c
24747 (arm_rewrite_mcpu): Handle multiple names.
24749 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24751 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24753 * gimple-builder.h (create_gimple_tmp): Delete.
24755 2014-01-27 Christian Bruel <christian.bruel@st.com>
24757 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
24760 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
24762 * config/pa/pa.md (call): Generate indirect long calls to non-local
24763 functions when outputing 32-bit code.
24764 (call_value): Likewise except for special call to buggy powf function.
24766 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
24767 portable runtime and PIC indirect calls.
24768 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
24769 and PIC call sequences. Use ldo instead of blr to set return register
24770 in PIC call sequence.
24772 2014-01-25 Walter Lee <walt@tilera.com>
24774 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
24775 avoid clobbering a live register.
24777 2014-01-25 Walter Lee <walt@tilera.com>
24779 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
24780 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
24781 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
24782 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
24784 2014-01-25 Walter Lee <walt@tilera.com>
24786 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
24787 arguments on even registers.
24788 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
24790 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
24791 (BIGGEST_ALIGNMENT): Ditto.
24792 (BIGGEST_FIELD_ALIGNMENT): Ditto.
24794 2014-01-25 Walter Lee <walt@tilera.com>
24796 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
24797 insns before bundling.
24798 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
24800 2014-01-25 Walter Lee <walt@tilera.com>
24802 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
24803 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
24804 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
24806 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24808 * config/mips/constraints.md (kl): Delete.
24809 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
24810 define expands, using...
24811 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
24812 instructions for MIPS16.
24813 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
24814 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
24816 2014-01-25 Walter Lee <walt@tilera.com>
24818 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
24822 2014-01-25 Walter Lee <walt@tilera.com>
24824 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
24825 (TARGET_EXPAND_TO_RTL_HOOK): Define.
24827 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24829 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
24832 2014-01-25 Jakub Jelinek <jakub@redhat.com>
24834 * print-rtl.c (in_call_function_usage): New var.
24835 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
24836 EXPR_LIST mode as mode and not as reg note name.
24838 PR middle-end/59561
24839 * cfgloopmanip.c (copy_loop_info): If
24840 loop->warned_aggressive_loop_optimizations, make sure
24841 the flag is set in target loop too.
24843 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
24845 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
24847 * builtins.def: Likewise.
24848 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
24849 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
24850 * ira.c (ira_setup_eliminable_regset): Likewise.
24851 * omp-low.c (gate_expand_omp): Likewise.
24852 (execute_lower_omp): Likewise.
24853 (diagnose_sb_0): Likewise.
24854 (gate_diagnose_omp_blocks): Likewise.
24855 (simd_clone_clauses_extract): Likewise.
24858 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24860 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
24861 correction for little endian...
24862 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
24865 2014-01-24 Jeff Law <law@redhat.com>
24867 PR tree-optimization/59919
24868 * tree-vrp.c (find_assert_locations_1): Do not register asserts
24869 for non-returning calls.
24871 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
24873 * common/config/aarch64/aarch64-common.c
24874 (aarch64_rewrite_mcpu): Handle multiple names.
24875 * config/aarch64/aarch64.h
24876 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24878 2014-01-24 Dodji Seketeli <dodji@redhat.com>
24880 * input.c (add_file_to_cache_tab): Handle the case where fopen
24883 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
24886 * config/i386/i386.md (pushsf splitter): Get stack adjustment
24887 from push operand if code of push isn't PRE_DEC.
24889 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
24892 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
24893 -mquad-memory-atomic. Update -mquad-memory documentation to say
24894 it is only used for non-atomic loads/stores.
24896 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
24897 -mquad-memory or -mquad-memory-atomic switches.
24899 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
24900 -mquad-memory-atomic to ISA 2.07 support.
24902 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
24903 to separate support of normal quad word memory operations (ldq, stq)
24904 from the atomic quad word memory operations.
24906 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
24907 support to separate non-atomic quad word operations from atomic
24908 quad word operations. Disable non-atomic quad word operations in
24909 little endian mode so that we don't have to swap words after the
24910 load and before the store.
24911 (quad_load_store_p): Add comment about atomic quad word support.
24912 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
24913 options printed with -mdebug=reg.
24915 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
24916 -mquad-memory-atomic as the test for whether we have quad word
24917 atomic instructions.
24918 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
24919 or -mp8-vector are used, allow byte/half-word atomic operations.
24921 * config/rs6000/sync.md (load_lockedti): Insure that the address
24922 is a proper indexed or indirect address for the lqarx instruction.
24923 On little endian systems, swap the hi/lo registers after the lqarx
24925 (load_lockedpti): Use indexed_or_indirect_operand predicate to
24926 insure the address is valid for the lqarx instruction.
24927 (store_conditionalti): Insure that the address is a proper indexed
24928 or indirect address for the stqcrx. instruction. On little endian
24929 systems, swap the hi/lo registers before doing the stqcrx.
24931 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
24932 insure the address is valid for the stqcrx. instruction.
24934 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
24935 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
24936 type of quad memory support is available.
24938 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
24940 PR regression/59915
24941 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
24942 there is a danger of looping.
24944 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
24946 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24947 force flag_ira_loop_pressure if set via command line.
24949 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
24951 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
24952 (ashr_simd): New builtin handling DI mode.
24953 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
24954 (aarch64_sshr_simddi): New match pattern.
24955 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
24956 (vshrd_n_s64): Likewise.
24957 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
24959 2014-01-23 Nick Clifton <nickc@redhat.com>
24961 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
24962 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
24963 favour of mcu specific scripts.
24964 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
24967 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
24968 Alex Velenko <Alex.Velenko@arm.com>
24970 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
24971 (vaddv_s16): Likewise.
24972 (vaddv_s32): Likewise.
24973 (vaddv_u8): Likewise.
24974 (vaddv_u16): Likewise.
24975 (vaddv_u32): Likewise.
24976 (vaddvq_s8): Likewise.
24977 (vaddvq_s16): Likewise.
24978 (vaddvq_s32): Likewise.
24979 (vaddvq_s64): Likewise.
24980 (vaddvq_u8): Likewise.
24981 (vaddvq_u16): Likewise.
24982 (vaddvq_u32): Likewise.
24983 (vaddvq_u64): Likewise.
24984 (vaddv_f32): Likewise.
24985 (vaddvq_f32): Likewise.
24986 (vaddvq_f64): Likewise.
24987 (vmaxv_f32): Likewise.
24988 (vmaxv_s8): Likewise.
24989 (vmaxv_s16): Likewise.
24990 (vmaxv_s32): Likewise.
24991 (vmaxv_u8): Likewise.
24992 (vmaxv_u16): Likewise.
24993 (vmaxv_u32): Likewise.
24994 (vmaxvq_f32): Likewise.
24995 (vmaxvq_f64): Likewise.
24996 (vmaxvq_s8): Likewise.
24997 (vmaxvq_s16): Likewise.
24998 (vmaxvq_s32): Likewise.
24999 (vmaxvq_u8): Likewise.
25000 (vmaxvq_u16): Likewise.
25001 (vmaxvq_u32): Likewise.
25002 (vmaxnmv_f32): Likewise.
25003 (vmaxnmvq_f32): Likewise.
25004 (vmaxnmvq_f64): Likewise.
25005 (vminv_f32): Likewise.
25006 (vminv_s8): Likewise.
25007 (vminv_s16): Likewise.
25008 (vminv_s32): Likewise.
25009 (vminv_u8): Likewise.
25010 (vminv_u16): Likewise.
25011 (vminv_u32): Likewise.
25012 (vminvq_f32): Likewise.
25013 (vminvq_f64): Likewise.
25014 (vminvq_s8): Likewise.
25015 (vminvq_s16): Likewise.
25016 (vminvq_s32): Likewise.
25017 (vminvq_u8): Likewise.
25018 (vminvq_u16): Likewise.
25019 (vminvq_u32): Likewise.
25020 (vminnmv_f32): Likewise.
25021 (vminnmvq_f32): Likewise.
25022 (vminnmvq_f64): Likewise.
25024 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25026 * config/aarch64/aarch64-simd.md
25027 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25028 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25029 (*aarch64_mul3_elt<mode>): Likewise.
25030 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25031 (*aarch64_mul3_elt_to_64v2df): Likewise.
25032 (*aarch64_mla_elt<mode>): Likewise.
25033 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25034 (*aarch64_mls_elt<mode>): Likewise.
25035 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25036 (*aarch64_fma4_elt<mode>): Likewise.
25037 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25038 (*aarch64_fma4_elt_to_64v2df): Likewise.
25039 (*aarch64_fnma4_elt<mode>): Likewise.
25040 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25041 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25042 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25043 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25044 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25045 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25046 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25047 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25048 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25050 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25052 * config/aarch64/aarch64-simd.md
25053 (aarch64_be_checked_get_lane<mode>): New define_expand.
25054 * config/aarch64/aarch64-simd-builtins.def
25055 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25056 New builtin definition.
25057 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25058 Use new safe be builtin.
25060 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25062 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25064 (aarch64_be_st1<mode>): Likewise.
25065 (aarch_ld1<VALL:mode>): Define_expand modified.
25066 (aarch_st1<VALL:mode>): Likewise.
25067 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25068 (UNSPEC_ST1): Likewise.
25070 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25072 * config/microblaze/microblaze.md: Add trap insn and attribute
25074 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25076 PR preprocessor/58580
25077 * input.h (location_get_source_line): Take an additional line_size
25079 (void diagnostics_file_cache_fini): Declare new function.
25080 * input.c (struct fcache): New type.
25081 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25082 New static constants.
25083 (diagnostic_file_cache_init, total_lines_num)
25084 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25085 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25086 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25087 (get_next_line, read_next_line, goto_next_line, read_line_num):
25088 New static function definitions.
25089 (diagnostic_file_cache_fini): New function.
25090 (location_get_source_line): Take an additional output line_len
25091 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25093 * diagnostic.c (diagnostic_finish): Call
25094 diagnostic_file_cache_fini.
25095 (adjust_line): Take an additional input parameter for the length
25096 of the line, rather than calculating it with strlen.
25097 (diagnostic_show_locus): Adjust the use of
25098 location_get_source_line and adjust_line with respect to their new
25099 signature. While displaying a line now, do not stop at the first
25100 null byte. Rather, display the zero byte as a space and keep
25101 going until we reach the size of the line.
25102 * Makefile.in: Add vec.o to OBJS-libcommon
25104 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25105 Ilya Tocar <ilya.tocar@intel.com>
25107 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25108 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25109 (__builtin_ia32_kmov16): Ditto.
25110 * config/i386/i386.md (UNSPEC_KMOV): New.
25113 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25115 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25116 (_mm512_storeu_si512): Ditto.
25118 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25121 * rtl.h (get_referenced_operands): Declare.
25122 * recog.c (get_referenced_operands): New function.
25123 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25124 operands have been referenced when recording LO_SUM references.
25126 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25128 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25130 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25132 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25133 Enable for generic and recent AMD targets.
25135 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25137 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25138 ARG_SIZE note when adjustment was eliminated.
25140 2014-01-22 Jeff Law <law@redhat.com>
25142 PR tree-optimization/59597
25143 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25144 in file. Accept new argument REGISTERING and use it to modify
25145 dump output appropriately.
25146 (register_jump_thread): Corresponding changes.
25147 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25148 thread paths involving joiner blocks. Add code to dump cancelled
25149 jump threading paths.
25151 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25153 PR rtl-optimization/59477
25154 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25155 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25157 2014-01-22 Tom Tromey <tromey@redhat.com>
25159 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25161 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25163 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25165 PR rtl-optimization/59896
25166 * lra-constraints.c (process_alt_operands): Check unused note for
25167 matched operands of insn with no output reloads.
25169 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25171 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25172 (mips_move_from_gpr_cost): Likewise.
25174 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25176 PR rtl-optimization/59858
25177 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25178 ira_class_hard_regs_num.
25179 (process_alt_operands): Increase reject for dying matched operand.
25181 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25184 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25185 smaller than size, perform several stores or loads and stores
25186 at dst + count - size to store or copy all of size bytes, rather
25187 than just last modesize bytes.
25189 2014-01-20 DJ Delorie <dj@redhat.com>
25191 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25192 that CLOBBERs are REGs before propogating their values.
25194 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25196 PR middle-end/59789
25197 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25198 (cgraph_inline_failed_type): New function.
25199 * cgraph.h (DEFCIFCODE): Add type.
25200 (cgraph_inline_failed_type_t): New enum.
25201 (cgraph_inline_failed_type): New prototype.
25202 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25203 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25204 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25205 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25206 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25207 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25208 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25209 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25210 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25211 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25212 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25213 OPTIMIZATION_MISMATCH.
25214 * tree-inline.c (expand_call_inline): Emit errors during
25215 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25217 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25220 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25221 mode attribute in insn output.
25223 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25225 * output.h (output_constant): Delete.
25226 * varasm.c (output_constant): Make private.
25228 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25230 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25232 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25234 PR middle-end/59860
25235 * tree.h (fold_builtin_strcat): New prototype.
25236 * builtins.c (fold_builtin_strcat): No longer static. Add len
25237 argument, if non-NULL, don't call c_strlen. Optimize
25238 directly into __builtin_memcpy instead of __builtin_strcpy.
25239 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25240 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25242 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25244 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25245 for SImode_address_operand operands, having only a REG argument.
25247 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25249 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25250 loader name using mbig-endian.
25251 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25253 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25255 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25256 (-mtune): Likewise.
25259 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25261 * config/aarch64/aarch64-protos.h
25262 (aarch64_cannot_change_mode_class_ptr): Declare.
25263 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25264 aarch64_cannot_change_mode_class_ptr): New.
25265 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25266 backend hook aarch64_cannot_change_mode_class.
25268 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25270 * common/config/aarch64/aarch64-common.c
25271 (aarch64_handle_option): Don't handle any option order logic here.
25272 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25273 selected_cpu, warn on architecture version mismatch.
25274 (aarch64_override_options): Fix parsing order for option strings.
25276 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25277 Iain Sandoe <iain@codesourcery.com>
25280 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25281 warning. Amend comment to reflect current functionality.
25283 2014-01-20 Richard Biener <rguenther@suse.de>
25285 PR middle-end/59860
25286 * builtins.c (fold_builtin_strcat): Remove case better handled
25287 by tree-ssa-strlen.c.
25289 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25291 * config/aarch64/aarch64.opt
25292 (mcpu, march, mtune): Make case-insensitive.
25294 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25297 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25298 if operands[1] is a REG or ZERO_EXTEND of a REG.
25300 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25302 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25304 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25306 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25307 long non-pic millicode calls.
25309 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25311 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25313 2014-01-19 Kito Cheng <kito@0xlab.org>
25315 * builtins.c (expand_movstr): Check movstr expand done or fail.
25317 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25318 H.J. Lu <hongjiu.lu@intel.com>
25321 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25322 to DImode for zero-extended addresses.
25324 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25326 PR rtl-optimization/57763
25327 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25328 on the new indirect jump_insn and increment LABEL_NUSES (label).
25330 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25334 * config.gcc (x86_archs): New variable.
25335 (x86_64_archs): Likewise.
25336 (x86_cpus): Likewise.
25337 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25338 --with-arch/--with-cpu= options.
25339 Support --with-arch=/--with-cpu={nehalem,westmere,
25340 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25342 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25344 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25345 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25347 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25349 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25351 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25354 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25355 clear cpp_get_options (parse_in)->warn_unused_macros for
25356 ix86_target_macros_internal with cpp_define.
25358 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25360 * jump.c (delete_related_insns): Keep (use (insn))s.
25361 * reorg.c (redundant_insn): Check for barriers too.
25363 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25365 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25367 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25369 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25370 call to $$dyncall when TARGET_LONG_CALLS is true.
25372 2014-01-17 Jeff Law <law@redhat.com>
25374 * ree.c (combine_set_extension): Temporarily disable test for
25375 changing number of hard registers.
25377 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25379 PR middle-end/58125
25380 * ipa-inline-analysis.c (inline_free_summary):
25381 Do not free summary of aliases.
25383 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25385 PR middle-end/59706
25386 * gimplify.c (gimplify_expr): Use create_tmp_var
25387 instead of create_tmp_var_raw. If cond doesn't have
25388 integral type, don't add the IFN_ANNOTATE builtin at all.
25390 2014-01-17 Martin Jambor <mjambor@suse.cz>
25393 * ipa-cp.c (prev_edge_clone): New variable.
25394 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25395 Also resize prev_edge_clone vector.
25396 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25397 (ipcp_edge_removal_hook): New function.
25398 (ipcp_driver): Register ipcp_edge_removal_hook.
25400 2014-01-17 Andrew Pinski <apinski@cavium.com>
25401 Steve Ellcey <sellcey@mips.com>
25404 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25407 2014-01-17 Jeff Law <law@redhat.com>
25409 PR middle-end/57904
25410 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25411 so that pass_ccp runs first.
25413 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25415 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25416 (ix86_adjust_cost): Use !TARGET_XXX.
25417 (do_reorder_for_imul): Likewise.
25418 (swap_top_of_ready_list): Likewise.
25419 (ix86_sched_reorder): Likewise.
25421 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25423 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25424 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25425 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25426 (intel_memset): New. Duplicate slm_memset.
25427 (intel_cost): New. Duplicate slm_cost.
25428 (m_INTEL): New macro.
25429 (processor_target_table): Add "intel".
25430 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25431 with PROCESSOR_INTEL for "intel".
25432 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25433 PROCESSOR_SILVERMONT.
25434 (ix86_issue_rate): Likewise.
25435 (ix86_adjust_cost): Likewise.
25436 (ia32_multipass_dfa_lookahead): Likewise.
25437 (swap_top_of_ready_list): Likewise.
25438 (ix86_sched_reorder): Likewise.
25439 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25440 instead of TARGET_OPT_AGU.
25441 * config/i386/i386.h (TARGET_INTEL): New.
25442 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25443 (processor_type): Add PROCESSOR_INTEL.
25444 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25445 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25447 2014-01-17 Marek Polacek <polacek@redhat.com>
25450 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25453 2014-01-17 Richard Biener <rguenther@suse.de>
25455 PR tree-optimization/46590
25456 * opts.c (default_options_table): Add entries for
25457 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25458 all enabled at -O1 but not for -Og.
25459 * common.opt (fbranch-count-reg): Remove Init(1).
25460 (fmove-loop-invariants): Likewise.
25461 (ftree-pta): Likewise.
25463 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25465 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25466 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25467 decls to at least the GCC 4.8 used alignments.
25470 * tree-nested.c (convert_nonlocal_reference_stmt,
25471 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25472 of GIMPLE_BIND stmts, adjust associated decls.
25474 2014-01-17 Richard Biener <rguenther@suse.de>
25476 PR tree-optimization/46590
25477 * vec.h (vec<>::bseach): New member function implementing
25478 binary search according to C89 bsearch.
25479 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25480 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25481 bitmap pointer again. Make accesses_in_loop a flat array.
25482 (mem_ref_obstack): New global.
25483 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25484 (mark_ref_stored): Likewise.
25485 (ref_indep_loop_p_2): Likewise.
25486 (set_ref_stored_in_loop): New helper function.
25487 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25488 (memref_free): Adjust.
25489 (record_mem_ref_loc): Simplify.
25490 (gather_mem_refs_stmt): Adjust.
25491 (sort_locs_in_loop_postorder_cmp): New function.
25492 (analyze_memory_references): Sort accesses_in_loop after
25493 loop postorder number.
25494 (find_ref_loc_in_loop_cmp): New function.
25495 (for_all_locs_in_loop): Find relevant cluster of locs in
25496 accesses_in_loop and iterate without recursion.
25497 (execute_sm): Avoid uninit warning.
25498 (struct ref_always_accessed): Simplify.
25499 (ref_always_accessed::operator ()): Likewise.
25500 (ref_always_accessed_p): Likewise.
25501 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25502 loop postorder numbers here.
25503 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25506 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25509 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25510 on decls for which assemble_alias has been called.
25512 2014-01-17 Nick Clifton <nickc@redhat.com>
25514 * config/msp430/msp430.opt: (mcpu): New option.
25515 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25516 (msp430_option_override): Parse target_cpu. If the MCU name
25517 matches a generic string, clear target_mcu.
25518 (msp430_attr): Allow numeric interrupt values up to 63.
25519 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25520 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25522 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25524 * config/msp430/msp430.md (popm): Use %J rather than %I.
25525 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25526 (addhi_cy_i): Use immediate_operand for operand 2.
25527 * doc/invoke.texi: Document -mcpu option.
25529 2014-01-17 Richard Biener <rguenther@suse.de>
25531 PR rtl-optimization/38518
25532 * df.h (df_analyze_loop): Declare.
25533 * df-core.c: Include cfgloop.h.
25534 (df_analyze_1): Split out main part of df_analyze.
25535 (df_analyze): Adjust.
25536 (loop_inverted_post_order_compute): New function.
25537 (loop_post_order_compute): Likewise.
25538 (df_analyze_loop): New function avoiding whole-function
25539 postorder computes.
25540 * loop-invariant.c (find_defs): Use df_analyze_loop.
25541 (find_invariants): Adjust.
25542 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25544 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25546 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25547 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25549 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25551 * ipa-ref.c (ipa_remove_stmt_references): Fix references
25552 traversal when removing references.
25554 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
25557 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25559 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
25561 PR middle-end/56791
25562 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25563 pushing a reload for an autoinc when we had previously reloaded an
25564 inner part of the address.
25566 2014-01-16 Jakub Jelinek <jakub@redhat.com>
25568 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25570 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25571 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25572 when not giving up or versioning for alias only because of
25574 (vect_analyze_data_ref_dependences): Set to true.
25575 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
25577 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
25578 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
25581 PR middle-end/58344
25582 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
25585 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
25586 operand 0 predicate for gathers, use a new pseudo as subtarget.
25588 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25590 PR middle-end/59609
25591 * lra-constraints.c (process_alt_operands): Add printing debug info.
25592 Check absence of input/output reloads for matched operands too.
25594 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25596 PR rtl-optimization/59835
25597 * ira.c (ira_init_register_move_cost): Increase cost for
25600 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
25602 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
25604 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
25607 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
25608 non-register objects. Use gen_(high/low)part more consistently.
25611 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
25614 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
25615 endian support, remove tests for WORDS_BIG_ENDIAN.
25616 (p8_mfvsrd_3_<mode>): Likewise.
25617 (reload_gpr_from_vsx<mode>): Likewise.
25618 (reload_gpr_from_vsxsf): Likewise.
25619 (p8_mfvsrd_4_disf): Likewise.
25621 2014-01-16 Richard Biener <rguenther@suse.de>
25623 PR rtl-optimization/46590
25624 * lcm.c (compute_antinout_edge): Use postorder iteration.
25625 (compute_laterin): Use inverted postorder iteration.
25627 2014-01-16 Nick Clifton <nickc@redhat.com>
25629 PR middle-end/28865
25630 * varasm.c (output_constant): Return the number of bytes actually
25632 (output_constructor_array_range): Update the field size with the
25633 number of bytes emitted by output_constant.
25634 (output_constructor_regular_field): Likewise. Also do not
25635 complain if the total number of bytes emitted is now greater
25636 than the expected fieldpos.
25637 * output.h (output_constant): Update prototype and descriptive comment.
25639 2014-01-16 Marek Polacek <polacek@redhat.com>
25641 PR middle-end/59827
25642 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
25643 it is error_mark_node.
25645 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
25647 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
25648 VALID_AVX256_REG_OR_OI_MODE.
25650 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
25652 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
25653 current procedure should be profiled.
25655 2014-01-15 Andrew Pinski <apinski@cavium.com>
25657 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
25658 of moving from/to the STACK_REG register class.
25660 2014-01-15 Richard Henderson <rth@redhat.com>
25663 * reginfo.c (global_regs_decl): Globalize.
25664 * rtl.h (global_regs_decl): Declare.
25665 * ira.c (do_reload): Diagnose frame_pointer_needed and it
25666 reserved via global_regs.
25668 2014-01-15 Teresa Johnson <tejohnson@google.com>
25670 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
25672 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25674 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
25675 and vmulosh rather than call gen_vec_widen_smult_*.
25676 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
25677 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
25678 (vec_widen_smult_even_v16qi): Likewise.
25679 (vec_widen_umult_even_v8hi): Likewise.
25680 (vec_widen_smult_even_v8hi): Likewise.
25681 (vec_widen_umult_odd_v16qi): Likewise.
25682 (vec_widen_smult_odd_v16qi): Likewise.
25683 (vec_widen_umult_odd_v8hi): Likewise.
25684 (vec_widen_smult_odd_v8hi): Likewise.
25685 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
25686 vmuloub rather than call gen_vec_widen_umult_*.
25687 (vec_widen_umult_lo_v16qi): Likewise.
25688 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
25689 vmulosb rather than call gen_vec_widen_smult_*.
25690 (vec_widen_smult_lo_v16qi): Likewise.
25691 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
25692 rather than call gen_vec_widen_umult_*.
25693 (vec_widen_umult_lo_v8hi): Likewise.
25694 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
25695 rather than call gen_vec_widen_smult_*.
25696 (vec_widen_smult_lo_v8hi): Likewise.
25698 2014-01-15 Jeff Law <law@redhat.com>
25700 PR tree-optimization/59747
25701 * ree.c (find_and_remove_re): Properly handle case where a second
25702 eliminated extension requires widening a copy created for elimination
25703 of a prior extension.
25704 (combine_set_extension): Ensure that the number of hard regs needed
25705 for a destination register does not change when we widen it.
25707 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
25709 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
25710 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
25711 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
25712 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
25713 (avr-*-rtems*): Likewise.
25714 (bfin*-rtems*): Likewise.
25715 (moxie-*-rtems*): Likewise.
25716 (h8300-*-rtems*): Likewise.
25717 (i[34567]86-*-rtems*): Likewise.
25718 (lm32-*-rtems*): Likewise.
25719 (m32r-*-rtems*): Likewise.
25720 (m68k-*-rtems*): Likewise.
25721 (microblaze*-*-rtems*): Likewise.
25722 (mips*-*-rtems*): Likewise.
25723 (powerpc-*-rtems*): Likewise.
25724 (sh-*-rtems*): Likewise.
25725 (sparc-*-rtems*): Likewise.
25726 (sparc64-*-rtems*): Likewise.
25727 (v850-*-rtems*): Likewise.
25728 (m32c-*-rtems*): Likewise.
25730 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
25732 PR rtl-optimization/59511
25733 * ira.c (ira_init_register_move_cost): Use memory costs for some
25734 cases of register move cost calculations.
25735 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
25736 instead of BB frequency.
25737 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
25738 * lra-assigns.c (find_hard_regno_for): Ditto.
25740 2014-01-15 Richard Biener <rguenther@suse.de>
25742 PR tree-optimization/59822
25743 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
25744 (vectorizable_load): Use it to hoist defs of uses of invariant
25745 loads out of the loop.
25747 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
25748 Kugan Vivekanandarajah <kuganv@linaro.org>
25751 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
25754 2014-01-15 Richard Biener <rguenther@suse.de>
25756 PR rtl-optimization/59802
25757 * lcm.c (compute_available): Use inverted postorder to seed
25758 the initial worklist.
25760 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25763 * config/s390/s390.c (s390_preferred_reload_class): Don't return
25764 ADDR_REGS for invalid symrefs in non-PIC code.
25766 2014-01-15 Jakub Jelinek <jakub@redhat.com>
25769 * builtins.c (determine_block_size): Initialize *probable_max_size
25770 even if len_rtx is CONST_INT.
25772 2014-01-14 Andrew Pinski <apinski@cavium.com>
25774 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
25775 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
25776 (cortexa53_tunings): Likewise.
25777 (aarch64_sched_issue_rate): New function.
25778 (TARGET_SCHED_ISSUE_RATE): Define.
25780 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25782 * ira-costs.c (find_costs_and_classes): Add missed
25783 ira_init_register_move_cost_if_necessary.
25785 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25788 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
25790 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
25793 * config/i386/i386.c (type_natural_mode): Add a bool parameter
25794 to indicate if type is used for function return value. Warn ABI
25795 change if the vector mode isn't available for function return value.
25796 (ix86_function_arg_advance): Pass false to type_natural_mode.
25797 (ix86_function_arg): Likewise.
25798 (ix86_gimplify_va_arg): Likewise.
25799 (function_arg_32): Don't warn ABI change.
25800 (ix86_function_value): Pass true to type_natural_mode.
25801 (ix86_return_in_memory): Likewise.
25802 (ix86_struct_value_rtx): Removed.
25803 (TARGET_STRUCT_VALUE_RTX): Likewise.
25805 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25807 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
25808 converting a conditional jump into a conditional return.
25810 2014-01-14 Richard Biener <rguenther@suse.de>
25812 PR tree-optimization/58921
25813 PR tree-optimization/59006
25814 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
25815 hoisting invariant stmts.
25816 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
25817 invariant loads on the preheader edge if possible.
25819 2014-01-14 Joey Ye <joey.ye@arm.com>
25821 * doc/plugin.texi (Building GCC plugins): Update to C++.
25823 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
25825 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
25826 (_mm_rcp28_round_ss): Ditto.
25827 (_mm_rsqrt28_round_sd): Ditto.
25828 (_mm_rsqrt28_round_ss): Ditto.
25829 (_mm_rcp28_sd): Ditto.
25830 (_mm_rcp28_ss): Ditto.
25831 (_mm_rsqrt28_sd): Ditto.
25832 (_mm_rsqrt28_ss): Ditto.
25833 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
25834 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
25835 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
25836 (IX86_BUILTIN_RCP28SD): Ditto.
25837 (IX86_BUILTIN_RCP28SS): Ditto.
25838 (IX86_BUILTIN_RSQRT28SD): Ditto.
25839 (IX86_BUILTIN_RSQRT28SS): Ditto.
25840 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
25841 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
25842 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
25843 (ix86_expand_special_args_builtin): Expand new FTYPE.
25844 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
25845 (srcp14<mode>): Make insn unary.
25846 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
25847 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
25848 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
25849 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
25850 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
25851 Fix rounding: make it SAE only.
25852 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
25854 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
25856 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
25857 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
25858 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
25859 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
25860 (round_saeonly_mask_scalar_operand4): Ditto.
25861 (round_saeonly_mask_scalar_op3): Ditto.
25862 (round_saeonly_mask_scalar_op4): Ditto.
25864 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25866 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25867 Implement -maltivec=be for vec_insert and vec_extract.
25869 2014-01-10 DJ Delorie <dj@redhat.com>
25871 * config/msp430/msp430.md (call_internal): Don't allow memory
25872 references with SP as the base register.
25873 (call_value_internal): Likewise.
25874 * config/msp430/constraints.md (Yc): New. For memory references
25875 that don't use SP as a base register.
25877 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
25878 "an integer without a # prefix"
25879 * config/msp430/msp430.md (epilogue_helper): Use it.
25881 2014-01-13 Jakub Jelinek <jakub@redhat.com>
25884 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
25885 AVX512F gather builtins.
25886 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
25887 on gather decls with INTEGER_TYPE masktype.
25888 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
25889 directly into the builtin rather than hoisting it before loop.
25891 PR tree-optimization/59387
25892 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
25893 (scev_const_prop): If folded_casts and type has undefined overflow,
25894 use force_gimple_operand instead of force_gimple_operand_gsi and
25895 for each added stmt if it is assign with
25896 arith_code_with_undefined_signed_overflow, call
25897 rewrite_to_defined_overflow.
25898 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
25899 gimple-fold.h instead.
25900 (arith_code_with_undefined_signed_overflow,
25901 rewrite_to_defined_overflow): Moved to ...
25902 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
25903 rewrite_to_defined_overflow): ... here. No longer static.
25904 Include gimplify-me.h.
25905 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
25906 rewrite_to_defined_overflow): New prototypes.
25908 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25910 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
25912 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
25914 * builtins.c (get_object_alignment_2): Minor tweak.
25915 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
25917 2014-01-13 Christian Bruel <christian.bruel@st.com>
25919 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
25920 optimized non constant lengths.
25922 2014-01-13 Jakub Jelinek <jakub@redhat.com>
25925 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
25926 load as __atomic_load_N if possible.
25928 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
25930 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
25932 (rs6000_expand_builtin): Adjust call.
25934 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
25937 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
25938 * config/rs6000/rs6000.c: Include target-globals.h.
25939 (rs6000_set_current_function): Instead of doing target_reinit
25940 unconditionally, use save_target_globals_default_opts and
25941 restore_target_globals.
25943 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
25945 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
25946 (rs6000_expand_builtin): Handle mffs and mtfsf.
25947 (rs6000_init_builtins): Define mffs and mtfsf.
25948 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
25949 (rs6000_mffs): New pattern.
25950 (rs6000_mtfsf): New pattern.
25952 2014-01-11 Bin Cheng <bin.cheng@arm.com>
25954 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
25955 Start narrowing with START. Apply candidate-use pair
25956 and check overall cost in narrowing.
25957 (iv_ca_prune): Pass new argument.
25959 2014-01-10 Jeff Law <law@redhat.com>
25961 PR middle-end/59743
25962 * ree.c (combine_reaching_defs): Ensure the defining statement
25963 occurs before the extension when optimizing extensions with
25964 different source and destination hard registers.
25966 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
25969 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
25970 vtables into the type inheritance graph.
25972 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25974 PR rtl-optimization/59754
25975 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
25976 modes in the REGNO != REGNO case.
25978 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25980 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
25982 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25984 PR tree-optimization/59745
25985 * tree-predcom.c (tree_predictive_commoning_loop): Call
25986 free_affine_expand_cache if giving up because components is NULL.
25988 * target-globals.c (save_target_globals): Allocate < 4KB structs using
25989 GC in payload of target_globals struct instead of allocating them on
25990 the heap and the larger structs separately using GC.
25991 * target-globals.h (struct target_globals): Make regs, hard_regs,
25992 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
25993 of GTY((skip)) and change type to void *.
25994 (reset_target_globals): Cast loads from those fields to corresponding
25997 2014-01-10 Steve Ellcey <sellcey@mips.com>
26000 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26001 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26002 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26004 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26007 * aarch64-modes.def (CC_Zmode): New flags mode.
26008 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26009 represents an equality.
26010 (aarch64_get_condition_code): Handle CC_Zmode.
26011 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26013 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26015 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26016 extraction in good case.
26018 2014-01-10 Richard Biener <rguenther@suse.de>
26020 PR tree-optimization/59374
26021 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26022 checking after SLP discovery. Mark stmts not participating
26023 in any SLP instance properly.
26025 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26027 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26028 when handling a SET rtx.
26030 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26032 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26033 (cortex-a57): Likewise.
26034 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26036 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26038 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26039 non-iwmmxt builtins.
26041 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26045 * ipa-devirt.c record_target_from_binfo): Take as argument
26046 stack of binfos and lookup matching one for virtual inheritance.
26047 (possible_polymorphic_call_targets_1): Update.
26049 2014-01-10 Huacai Chen <chenhc@lemote.com>
26051 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26052 kernel strings for Loongson-2E/2F/3A.
26054 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26056 PR middle-end/59670
26057 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26058 is_gimple_call before calling gimple_call_internal_p.
26060 2014-01-09 Steve Ellcey <sellcey@mips.com>
26062 * Makefile.in (TREE_FLOW_H): Remove.
26063 (TREE_SSA_H): Add file names from tree-flow.h.
26064 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26065 * tree.h: Remove tree-flow.h reference.
26066 * hash-table.h: Remove tree-flow.h reference.
26067 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26068 reference with tree-ssa-loop.h.
26070 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26072 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26073 default element-order behavior for -maltivec.
26074 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26075 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26076 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26077 when targeting big endian, at least for now.
26078 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26080 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26082 PR middle-end/47735
26083 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26084 var satisfies use_register_for_decl, just take into account type
26085 alignment, rather than decl alignment.
26087 PR tree-optimization/59622
26088 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26089 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26090 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26091 Don't devirtualize for inplace at all. For targets.length () == 1,
26092 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26094 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26096 * config/i386/i386.md (cpu): Remove the unused btver1.
26098 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26100 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26102 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26105 * tree-core.h (struct target_globals): New forward declaration.
26106 (struct tree_target_option): Add globals field.
26107 * tree.h (TREE_TARGET_GLOBALS): Define.
26108 (prepare_target_option_nodes_for_pch): New prototype.
26109 * target-globals.h (struct target_globals): Define even if
26110 !SWITCHABLE_TARGET.
26111 * tree.c (prepare_target_option_node_for_pch,
26112 prepare_target_option_nodes_for_pch): New functions.
26113 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26114 * config/i386/i386.c: Include target-globals.h.
26115 (ix86_set_current_function): Instead of doing target_reinit
26116 unconditionally, use save_target_globals_default_opts and
26117 restore_target_globals.
26119 2014-01-09 Richard Biener <rguenther@suse.de>
26121 PR tree-optimization/59715
26122 * tree-cfg.h (split_critical_edges): Declare.
26123 * tree-cfg.c (split_critical_edges): Export.
26124 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26126 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26128 * cfgexpand.c (expand_stack_vars): Optionally disable
26129 asan stack protection.
26130 (expand_used_vars): Likewise.
26131 (partition_stack_vars): Likewise.
26132 * asan.c (asan_emit_stack_protection): Optionally disable
26133 after return stack usage.
26134 (instrument_derefs): Optionally disable memory access instrumentation.
26135 (instrument_builtin_call): Likewise.
26136 (instrument_strlen_call): Likewise.
26137 (asan_protect_global): Optionally disable global variables protection.
26138 * doc/invoke.texi: Added doc for new options.
26139 * params.def: Added new options.
26140 * params.h: Likewise.
26142 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26144 PR rtl-optimization/59724
26145 * ifcvt.c (cond_exec_process_if_block): Don't call
26146 flow_find_head_matching_sequence with 0 longest_match.
26147 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26148 non-active insns if !stop_after.
26149 (try_head_merge_bb): Revert 2014-01-07 changes.
26151 2014-01-08 Jeff Law <law@redhat.com>
26153 * ree.c (get_sub_rtx): New function, extracted from...
26154 (merge_def_and_ext): Here.
26155 (combine_reaching_defs): Use get_sub_rtx.
26157 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26159 * cgraph.h (varpool_variable_node): Do not choke on null node.
26161 2014-01-08 Catherine Moore <clm@codesourcery.com>
26163 * config/mips/mips.md (simple_return): Attempt to use JRC
26165 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26167 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26169 PR rtl-optimization/59137
26170 * reorg.c (steal_delay_list_from_target): Call update_block for
26172 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26174 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26176 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26177 two duplicate entries.
26179 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26182 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26184 * config/mips/mips.c (mips_truncated_op_cost): New function.
26185 (mips_rtx_costs): Adjust test for BADDU.
26186 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26188 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26190 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26191 (*baddu_si): ...this new pattern.
26193 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26196 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26198 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26200 PR middle-end/57748
26201 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26203 (expand_expr, expand_normal): Adjust.
26204 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26205 inner_reference_p. Use inner_reference_p to expand inner references.
26206 (store_expr): Adjust.
26207 * cfgexpand.c (expand_call_stmt): Adjust.
26209 2014-01-08 Rong Xu <xur@google.com>
26211 * gcov-io.c (gcov_var): Move from gcov-io.h.
26212 (gcov_position): Ditto.
26213 (gcov_is_error): Ditto.
26214 (gcov_rewrite): Ditto.
26215 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26216 only part to libgcc/libgcov.h.
26218 2014-01-08 Marek Polacek <polacek@redhat.com>
26220 PR middle-end/59669
26221 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26223 2014-01-08 Marek Polacek <polacek@redhat.com>
26226 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26228 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26230 PR rtl-optimization/59649
26231 * stor-layout.c (get_mode_bounds): For BImode return
26232 0 and STORE_FLAG_VALUE.
26234 2014-01-08 Richard Biener <rguenther@suse.de>
26236 PR middle-end/59630
26237 * gimple.h (is_gimple_builtin_call): Remove.
26238 (gimple_builtin_call_types_compatible_p): New.
26239 (gimple_call_builtin_p): New overload.
26240 * gimple.c (is_gimple_builtin_call): Remove.
26241 (validate_call): Rename to ...
26242 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26243 check return types.
26244 (validate_type): New static function.
26245 (gimple_call_builtin_p): New overload and adjust.
26246 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26247 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26248 (gimple_fold_stmt_to_constant_1): Likewise.
26249 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26251 2014-01-08 Richard Biener <rguenther@suse.de>
26253 PR middle-end/59471
26254 * gimplify.c (gimplify_expr): Gimplify register-register type
26255 VIEW_CONVERT_EXPRs to separate stmts.
26257 2014-01-07 Jeff Law <law@redhat.com>
26259 PR middle-end/53623
26260 * ree.c (combine_set_extension): Handle case where source
26261 and destination registers in an extension insn are different.
26262 (combine_reaching_defs): Allow source and destination registers
26263 in extension to be different under limited circumstances.
26264 (add_removable_extension): Remove restriction that the
26265 source and destination registers in the extension are the same.
26266 (find_and_remove_re): Emit a copy from the extension's
26267 destination to its source after the defining insn if
26268 the source and destination registers are different.
26270 PR middle-end/59285
26271 * ifcvt.c (merge_if_block): If we are merging a block with more than
26272 one successor with a block with no successors, remove any BARRIER
26273 after the second block.
26275 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26277 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26279 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26282 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26283 for 14-bit register offsets when INT14_OK_STRICT is false.
26285 2014-01-07 Roland Stigge <stigge@antcom.de>
26286 Michael Meissner <meissner@linux.vnet.ibm.com>
26289 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26290 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26292 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26294 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26297 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26299 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26300 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26301 rtx is const0_rtx or not.
26303 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26306 * target-globals.c (save_target_globals): Remove this_fn_optab
26308 * toplev.c: Include optabs.h.
26309 (target_reinit): Temporarily restore the global options if another
26310 set of options are in force.
26312 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26314 PR rtl-optimization/58668
26315 * cfgcleanup.c (flow_find_cross_jump): Don't count
26316 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26317 to determine what is counted.
26318 (flow_find_head_matching_sequence): Use active_insn_p to determine
26320 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26322 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26323 determine what is counted.
26325 PR tree-optimization/59643
26326 * tree-predcom.c (split_data_refs_to_components): If one dr is
26327 read and one write, determine_offset fails and the write isn't
26328 in the bad component, just put the read into the bad component.
26330 2014-01-07 Mike Stump <mikestump@comcast.net>
26331 Jakub Jelinek <jakub@redhat.com>
26334 * tree-core.h (struct tree_optimization_option): Change optabs
26335 type from unsigned char * to void *.
26336 * optabs.c (init_tree_optimization_optabs): Adjust
26337 TREE_OPTIMIZATION_OPTABS initialization.
26339 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26342 * config/i386/i386.h (struct machine_function): Add
26343 no_drap_save_restore field.
26344 * config/i386/i386.c (ix86_save_reg): Use
26345 !cfun->machine->no_drap_save_restore instead of
26346 crtl->stack_realign_needed.
26347 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26348 this function clears frame_pointer_needed. Set
26349 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26350 and DRAP reg is needed.
26352 2014-01-06 Marek Polacek <polacek@redhat.com>
26355 * doc/implement-c.texi: Mention that other integer types are
26356 permitted as bit-field types in strictly conforming mode.
26358 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26360 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26361 is newly allocated.
26363 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26365 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26367 2014-01-06 Martin Jambor <mjambor@suse.cz>
26370 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26372 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26374 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26378 * var-tracking.c (add_stores): Preserve the value of the source even if
26379 we don't record the store.
26381 2014-01-06 Terry Guo <terry.guo@arm.com>
26383 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26385 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26388 * config/darwin.c (darwin_function_section): Adjust return values to
26389 correspond to optimisation changes made in r206070.
26391 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26393 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26394 from prefetch_block tune setting.
26395 (nocona_cost): Correct size of prefetch block to 64.
26397 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26399 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26400 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26401 used to save the static chain register in the computation of the offset
26402 from which the FP registers need to be restored.
26404 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26406 PR tree-optimization/59519
26407 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26408 ICE if get_current_def (current_new_name) is already non-NULL, as long
26409 as it is a phi result of some other phi in *new_exit_bb that has
26412 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26413 or vmovdqu* for misaligned_operand.
26414 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26415 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26416 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26417 aligned_mem for AVX512F masked aligned load and store builtins and for
26418 non-temporal moves.
26420 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26422 PR tree-optimization/59651
26423 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26424 Address range for negative step should be added by TYPE_SIZE_UNIT.
26426 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26428 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26429 overlapping registers also for registers other than the stack pointer.
26431 2014-01-03 Marek Polacek <polacek@redhat.com>
26434 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26437 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26440 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26443 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26444 (push splitter): Use <P:MODE_SIZE> instead of
26445 GET_MODE_SIZE (<P:MODE>mode).
26446 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26447 (mov -1, reg peephole2): Likewise.
26448 * config/i386/sse.md (*mov<mode>_internal,
26449 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26450 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26451 *<code><mode>3, *andnot<mode>3<mask_name>,
26452 <mask_codefor><code><mode>3<mask_name>): Likewise.
26453 * config/i386/subst.md (mask_mode512bit_condition,
26454 sd_mask_mode512bit_condition): Likewise.
26456 2014-01-02 Xinliang David Li <davidxl@google.com>
26458 PR tree-optimization/59303
26459 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26460 (dump_predicates): Better output format.
26461 (pred_equal_p): New function.
26462 (is_neq_relop_p): Ditto.
26463 (is_neq_zero_form_p): Ditto.
26464 (pred_expr_equal_p): Ditto.
26465 (pred_neg_p): Ditto.
26466 (simplify_pred): Ditto.
26467 (simplify_preds_2): Ditto.
26468 (simplify_preds_3): Ditto.
26469 (simplify_preds_4): Ditto.
26470 (simplify_preds): Ditto.
26471 (push_pred): Ditto.
26472 (push_to_worklist): Ditto.
26473 (get_pred_info_from_cmp): Ditto.
26474 (is_degenerated_phi): Ditto.
26475 (normalize_one_pred_1): Ditto.
26476 (normalize_one_pred): Ditto.
26477 (normalize_one_pred_chain): Ditto.
26478 (normalize_preds): Ditto.
26479 (normalize_cond_1): Remove function.
26480 (normalize_cond): Ditto.
26481 (is_gcond_subset_of): Ditto.
26482 (is_subset_of_any): Ditto.
26483 (is_or_set_subset_of): Ditto.
26484 (is_and_set_subset_of): Ditto.
26485 (is_norm_cond_subset_of): Ditto.
26486 (pred_chain_length_cmp): Ditto.
26487 (convert_control_dep_chain_into_preds): Type change.
26488 (find_predicates): Ditto.
26489 (find_def_preds): Ditto.
26490 (destroy_predicates_vecs): Ditto.
26491 (find_matching_predicates_in_rest_chains): Ditto.
26492 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26493 (is_pred_expr_subset): Ditto.
26494 (is_pred_chain_subset_of): Ditto.
26495 (is_included_in): Ditto.
26496 (is_superset_of): Ditto.
26498 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26500 Update copyright years.
26502 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26504 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26505 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26506 config/arc/arc.md, config/arc/arc.opt,
26507 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26508 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26509 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26510 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26511 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26512 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26513 vtable-verify.c, vtable-verify.h: Use the standard form for the
26516 2014-01-02 Tobias Burnus <burnus@net-b.de>
26518 * gcc.c (process_command): Update copyright notice dates.
26519 * gcov-dump.c: Ditto.
26521 * doc/cpp.texi: Bump @copying's copyright year.
26522 * doc/cppinternals.texi: Ditto.
26523 * doc/gcc.texi: Ditto.
26524 * doc/gccint.texi: Ditto.
26525 * doc/gcov.texi: Ditto.
26526 * doc/install.texi: Ditto.
26527 * doc/invoke.texi: Ditto.
26529 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26531 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26533 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26535 * config/i386/sse.md (*mov<mode>_internal): Guard
26536 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26538 PR rtl-optimization/59647
26539 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26540 new_rtx into UNSIGNED_FLOAT rtxes.
26542 Copyright (C) 2014 Free Software Foundation, Inc.
26544 Copying and distribution of this file, with or without modification,
26545 are permitted in any medium without royalty provided the copyright
26546 notice and this notice are preserved.