Convert PATTERN from a macro to a pair of inline functions
[official-gcc.git] / gcc / ChangeLog
blob74767ab175665bcf573a6736a6731e9967b6c47a
1 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
3         * rtl.h (PATTERN): Convert this macro into a pair of inline
4         functions, for now, requiring const_rtx and rtx.
6 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8         * target.def (unwind_emit): Strengthen param "insn" from rtx to
9         rtx_insn *.
10         (final_postscan_insn): Likewise.
11         (adjust_cost): Likewise.
12         (adjust_priority): Likewise.
13         (variable_issue): Likewise.
14         (macro_fusion_pair_p): Likewise.
15         (dfa_post_cycle_insn): Likewise.
16         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
17         (first_cycle_multipass_issue): Likewise.
18         (dfa_new_cycle): Likewise.
19         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
20         (speculate_insn): Likewise for param "insn".
21         (gen_spec_check): Likewise for params "insn" and "label".
22         (get_insn_spec_ds): Likewise for param "insn".
23         (get_insn_checked_ds): Likewise.
24         (dispatch_do): Likewise.
25         (dispatch): Likewise.
26         (cannot_copy_insn_p): Likewise.
27         (invalid_within_doloop): Likewise.
28         (legitimate_combined_insn): Likewise.
29         (needed): Likewise.
30         (after): Likewise.
32         * doc/tm.texi: Automatically updated to reflect changes to
33         target.def.
35         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
36         working with insn.
37         (schedule_block): Likewise.
38         (sched_init): Likewise.
39         (sched_speculate_insn): Strengthen param "insn" from rtx to
40         rtx_insn *.
41         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
42         working with insn.
43         * hooks.c (hook_bool_rtx_true): Rename to...
44         hook_bool_rtx_insn_true): ...this, and strengthen first param from
45         rtx to rtx_insn *.
46         (hook_constcharptr_const_rtx_null): Rename to...
47         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
48         first param from const_rtx to const rtx_insn *.
49         (hook_bool_rtx_int_false): Rename to...
50         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
51         param from rtx to rtx_insn *.
52         (hook_void_rtx_int): Rename to...
53         (hook_void_rtx_insn_int): ...this, and strengthen first param from
54         rtx to rtx_insn *.
56         * hooks.h (hook_bool_rtx_true): Rename to...
57         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
58         rtx to rtx_insn *.
59         (hook_bool_rtx_int_false): Rename to...
60         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
61         param from rtx to rtx_insn *.
62         (hook_void_rtx_int): Rename to...
63         (hook_void_rtx_insn_int): ...this, and strengthen first param from
64         rtx to rtx_insn *.
65         (hook_constcharptr_const_rtx_null): Rename to...
66         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
67         first param from const_rtx to const rtx_insn *.
69         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
70         and local "prev" from rtx to rtx_insn *.
72         * sched-int.h (sched_speculate_insn): Strengthen first param from
73         rtx to rtx_insn *.
75         * sel-sched.c (create_speculation_check): Likewise for local "label".
76         * targhooks.c (default_invalid_within_doloop): Strengthen param
77         "insn" from const_rtx to const rtx_insn *.
78         * targhooks.h (default_invalid_within_doloop): Strengthen param
79         from const_rtx to const rtx_insn *.
81         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
82         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
84         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
85         "insn".
86         (arc_invalid_within_doloop): Likewise, with const.
88         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
89         (arm_cannot_copy_insn_p): Likewise for param "insn".
90         (arm_unwind_emit): Likewise.
92         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
93         "dep_insn".
95         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
96         (c6x_variable_issue): Likewise.  Removed now-redundant checked
97         cast.
98         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
100         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
101         Likewise for param "insn".
102         (epiphany_mode_after): Likewise.
103         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
104         params "insn", "dep_insn".
105         (epiphany_mode_needed): Likewise for param "insn".
106         (epiphany_mode_after): Likewise.
108         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
109         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
110         (ix86_avx_u128_mode_needed): Likewise.
111         (ix86_i387_mode_needed): Likewise.
112         (ix86_mode_needed): Likewise.
113         (ix86_avx_u128_mode_after): Likewise.
114         (ix86_mode_after): Likewise.
115         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
116         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
117         (ix86_adjust_priority): Likewise for param "insn".
118         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
119         (do_dispatch): Likewise.
120         (has_dispatch): Likewise.
121         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
123         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
124         reflect renaming of default hook implementation from
125         hook_constcharptr_const_rtx_null to
126         hook_constcharptr_const_rtx_insn_null.
127         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
128         rtx to rtx_insn *.
129         (ia64_variable_issue): Likewise for param "insn".
130         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
131         (ia64_dfa_new_cycle): Likewise.
132         (ia64_get_insn_spec_ds): Likewise.
133         (ia64_get_insn_checked_ds): Likewise.
134         (ia64_speculate_insn): Likewise.
135         (ia64_gen_spec_check): Likewise for params "insn", "label".
136         (ia64_asm_unwind_emit): Likewise for param "insn".
138         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
140         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
141         "insn", "def_insn".
142         (m68k_sched_variable_issue): Likewise for param "insn".
144         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
145         "def_insn".
147         * config/microblaze/microblaze.c (microblaze_adjust_cost):
148         Likewise for params "insn", "dep".
150         * config/mips/mips.c (mips_adjust_cost): Likewise.
151         (mips_variable_issue): Likewise for param "insn".
152         (mips_final_postscan_insn): Likewise.
154         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
155         for params "insn", "dep".
157         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
158         "dep_insn".
159         (pa_adjust_priority): Likewise for param "insn".
161         * config/picochip/picochip.c (picochip_sched_adjust_cost):
162         Likewise for params "insn", "dep_insn".
164         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
165         param "insn".
166         (rs6000_variable_issue): Likewise.
167         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
168         (rs6000_debug_adjust_cost): Likewise.
169         (rs6000_adjust_priority): Likewise for param "insn".
170         (rs6000_use_sched_lookahead_guard): Likewise.
171         (get_next_active_insn): Likewise for return type and both params.
172         (redefine_groups): Likewise for params "prev_head_insn", "tail"
173         and locals "insn", "next_insn".
174         (pad_groups): Likewise.
176         * config/s390/s390.c (s390_adjust_priority): Likewise for param
177         "insn".
178         (s390_cannot_copy_insn_p): Likewise.
179         (s390_sched_variable_issue): Likewise for third param, eliminating
180         checked cast.
181         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
182         default hook implementation from hook_constcharptr_const_rtx_null
183         to hook_constcharptr_const_rtx_insn_null.
185         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
186         from rtx to rtx_insn *.
187         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
188         (sh_variable_issue): Likewise for param "insn".
189         (sh_dfa_new_cycle): Likewise.
190         (sh_mode_needed): Likewise.
191         (sh_mode_after): Likewise.
193         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
194         params "insn", "dep_insn".
195         (hypersparc_adjust_cost): Likewise.
196         (sparc_adjust_cost): Likewise.
198         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
199         param, eliminated checked cast.
200         (spu_sched_adjust_cost): Likewise for first and third params.
202         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
203         params "insn" and "dep_insn" from rtx to rtx_insn *.
205         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
207 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
209         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
210         (set_is_load_p): ...this, updating to work on a SET pattern rather
211         than an insn.
212         (is_store_insn): Rename to...
213         (set_is_store_p): ...this, updating to work on a SET pattern
214         rather than an insn.
215         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
216         top of function to where it is needed.  Rewrite the bogus
217         condition that checks for "insn" and "dep" being PARALLEL to
218         instead use single_set, introducing locals "insn_set" and
219         "dep_set".  Given that we only ever returned "cost" for a non-pair
220         of SETs, bail out early if we don't have a pair of SET.
221         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
222         use the new locals "insn_set" and "dep_set", and update calls to
223         is_load_insn and is_store_insn to be calls to set_is_load_p and
224         set_is_store_p.
226 2014-08-27  Guozhi Wei  <carrot@google.com>
228         PR target/62262
229         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
230         amount before using it.
232 2014-08-27  Richard Biener  <rguenther@suse.de>
234         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
235         get_maxval_strlen inside a more useful API.
236         (gimple_fold_builtin_with_strlen): Remove and fold into ...
237         (gimple_fold_builtin): ... caller.
238         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
239         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
240         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
241         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
242         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
243         gimple_fold_builtin_sprintf): Adjust to compute maxval
244         themselves.
246 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
248         PR other/62248
249         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
251 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
252             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
253             Anna Tikhonova  <anna.tikhonova@intel.com>
254             Ilya Tocar  <ilya.tocar@intel.com>
255             Andrey Turetskiy  <andrey.turetskiy@intel.com>
256             Ilya Verbin  <ilya.verbin@intel.com>
257             Kirill Yukhin  <kirill.yukhin@intel.com>
258             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
260         * config/i386/sse.md
261         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
262         Use `concat_tg_mode' attribute to determine asm register size.
264 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
265             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
266             Anna Tikhonova  <anna.tikhonova@intel.com>
267             Ilya Tocar  <ilya.tocar@intel.com>
268             Andrey Turetskiy  <andrey.turetskiy@intel.com>
269             Ilya Verbin  <ilya.verbin@intel.com>
270             Kirill Yukhin  <kirill.yukhin@intel.com>
271             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
273         * config/i386/sse.md
274         (define_mode_iterator VI48_AVX512VL): New.
275         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
276         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
277         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
278         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
279         with VI1): Change mode iterator.
280         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
281         with VI_ULOADSTORE_BW_AVX512VL): New.
282         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
283         with VI_ULOADSTORE_F_AVX512VL): Ditto.
284         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
285         with VI1): Change mode iterator.
286         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
287         with VI_ULOADSTORE_BW_AVX512VL): New.
288         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
289         with VI_ULOADSTORE_F_AVX512VL): Ditto.
290         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
291         with VI1): Change mode iterator.
292         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
293         with VI_ULOADSTORE_BW_AVX512VL): New.
294         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
295         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
296         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
297         (define_insn "<avx512>_storedqu<mode>_mask" with
298         VI48_AVX512VL): New.
299         (define_insn "<avx512>_storedqu<mode>_mask" with
300         VI12_AVX512VL): Ditto.
302 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
303             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
304             Anna Tikhonova  <anna.tikhonova@intel.com>
305             Ilya Tocar  <ilya.tocar@intel.com>
306             Andrey Turetskiy  <andrey.turetskiy@intel.com>
307             Ilya Verbin  <ilya.verbin@intel.com>
308             Kirill Yukhin  <kirill.yukhin@intel.com>
309             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
311         * config/i386/sse.md
312         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
313         (define_mode_iterator VI48_AVX512BW): New.
314         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
315         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
316         with VI48_AVX2_48_AVX512F): New.
317         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
318         with VI2_AVX512VL): Ditto.
320 2014-08-27  Richard Biener  <rguenther@suse.de>
322         PR middle-end/62239
323         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
324         (fold_builtin_3): Do not fold strcat_chk here.
325         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
326         from builtins.c.
327         (gimple_fold_builtin): Fold strcat_chk here.
329 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
331         * dwarf2out.h (dwarf2out_decl): Remove prototype.
332         * dwarf2out.c (dwarf2out_decl): Make static.
334 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
336         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
338 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
340         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
341         from rtx to rtx_insn *.
342         (cselib_lookup_from_insn): Likewise for final param.
343         (cselib_subst_to_values_from_insn): Likewise.
344         (cselib_add_permanent_equiv): Likewise.
346         * cselib.c (cselib_current_insn): Likewise for this variable.
347         (cselib_subst_to_values_from_insn): Likewise for param "insn".
348         (cselib_lookup_from_insn): Likewise.
349         (cselib_add_permanent_equiv): Likewise for param "insn" and local
350         "save_cselib_current_insn".
351         (cselib_process_insn): Replace use of NULL_RTX with NULL.
353         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
354         from rtx to rtx_insn *.
356 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
358         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
359         rtx_insn *.
361 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
363         * df.h (df_dump_insn_problem_function): Strengthen first param of
364         this callback from const_rtx to const rtx_insn *.
365         (struct df_insn_info): Strengthen field "insn" from rtx to
366         rtx_insn *.
367         (DF_REF_INSN): Eliminate this function, reinstating the older
368         macro definition.
369         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
370         (df_reg_defined): Likewise.
371         (df_find_use): Likewise.
372         (df_reg_used): Likewise.
373         (df_dump_insn_top): Strengthen param 1 from const_rtx to
374         const rtx_insn *.
375         (df_dump_insn_bottom): Likewise.
376         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
377         (df_insn_debug_regno): Likewise.
378         (debug_df_insn): Likewise.
379         (df_rd_simulate_one_insn): Likewise for param 2.
380         (df_word_lr_simulate_defs): Likewise for param 1.
381         (df_word_lr_simulate_uses): Likewise.
382         (df_md_simulate_one_insn): Likewise for param 2.
383         (df_simulate_find_noclobber_defs): Likewise for param 1.
384         (df_simulate_find_defs): Likewise.
385         (df_simulate_defs): Likewise.
386         (df_simulate_uses): Likewise.
387         (df_simulate_one_insn_backwards): Likewise for param 2.
388         (df_simulate_one_insn_forwards): Likewise.
389         (df_uses_create): Likewise for param 2.
390         (df_insn_create_insn_record): Likewise for param 1.
391         (df_insn_delete): Likewise.
392         (df_insn_rescan): Likewise.
393         (df_insn_rescan_debug_internal): Likewise.
394         (df_insn_change_bb): Likewise.
395         (df_notes_rescan): Likewise.
396         * rtl.h (remove_death): Likewise for param 2.
397         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
398         const rtx_insn *.
399         * sched-int.h (reemit_notes): Strengthen param from rtx to
400         rtx_insn *.
401         * valtrack.h (propagate_for_debug): Likewise for param 1.
403         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
404         local "tmp_rtx" from const_rtx to const rtx_insn *.
405         * combine.c (remove_death): Strengthen param "insn" from rtx to
406         rtx_insn *.
407         (move_deaths): Likewise for local "where_dead".
408         * cse.c (delete_trivially_dead_insns): Introduce local
409         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
410         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
411         rtx_insn *.
412         (df_reg_defined): Likewise.
413         (df_find_use): Likewise.
414         (df_reg_used): Likewise.
415         (df_dump_insn_problem_data): Strengthen param "insn" from
416         const_rtx to const rtx_insn *.
417         (df_dump_insn_top): Likewise.
418         (df_dump_insn_bottom): Likewise.
419         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
420         (df_insn_debug_regno): Likewise.
421         (debug_df_insn): Likewise.
422         (DF_REF_INSN): Delete.
423         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
424         from rtx to rtx_insn *.
425         (df_chain_insn_top_dump): Strengthen param "insn" from
426         const_rtx to const rtx_insn *.
427         (df_chain_insn_bottom_dump): Likewise.
428         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
429         rtx_insn *.
430         (df_word_lr_simulate_uses): Likewise.
431         (df_print_note): Likewise.
432         (df_remove_dead_and_unused_notes): Likewise.
433         (df_set_unused_notes_for_mw): Likewise.
434         (df_set_dead_notes_for_mw): Likewise.
435         (df_create_unused_note): Likewise.
436         (df_simulate_find_defs): Likewise.
437         (df_simulate_find_uses): Likewise.
438         (df_simulate_find_noclobber_defs): Likewise.
439         (df_simulate_defs): Likewise.
440         (df_simulate_uses): Likewise.
441         (df_simulate_one_insn_backwards): Likewise.
442         (df_simulate_one_insn_forwards): Likewise.
443         (df_md_simulate_one_insn): Likewise.
444         * df-scan.c (df_uses_create): Likewise.
445         (df_insn_create_insn_record): Likewise.
446         (df_insn_delete): Likewise.
447         (df_insn_rescan): Likewise.
448         (df_insn_rescan_debug_internal): Likewise.
449         (df_insn_change_bb): Likewise.
450         (df_notes_rescan): Likewise.
451         (df_refs_add_to_chains): Likewise.
452         (df_insn_refs_verify): Likewise.
453         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
454         when invoking df_insn_delete.
455         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
456         (set_unique_reg_note): Add checked cast.
457         * final.c (cleanup_subreg_operands): Likewise.
458         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
459         "insn" from rtx to rtx_insn *.
460         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
461         "last" from rtx to rtx_insn *.
462         * ira-emit.c (change_regs_in_insn): New function.
463         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
464         Invoke change_regs_in_insn rather than change_regs.
465         * ira.c (update_equiv_regs): Strengthen locals "insn",
466         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
467         for_each_rtx_in_insn rather than for_each_rtx.
468         * recog.c (confirm_change_group): Add checked casts.
469         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
470         Add checked cast.
471         (peep2_fill_buffer): Add checked cast.
472         * rtlanal.c (remove_note): Likewise.
473         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
474         locals "next" "end" from rtx to rtx_insn *.
476 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
478         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
479         to rtx_insn *.
480         (struct reg_use_data): Likewise for field "insn".
481         (insn_cost): Likewise for param.
482         (real_insn_for_shadow): Likewise for return type and param.
483         (increase_insn_priority): Likewise for param 1.
484         (debug_dependencies): Likewise for both params.
486         * haifa-sched.c (insn_delay): Likewise for param "insn".
487         (real_insn_for_shadow): Likewise for return type and param "insn".
488         (update_insn_after_change): Likewise for param "insn".
489         (recompute_todo_spec): Likewise for param "next" and locals "pro",
490         "other".
491         (insn_cost): Likewise for param "insn".
492         (increase_insn_priority): Likewise.
493         (calculate_reg_deaths): Likewise.
494         (setup_insn_reg_pressure_info): Likewise.
495         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
496         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
497         (model_recompute): Likewise.
498         (must_restore_pattern_p): Likewise for param "next".
499         (model_excess_cost): Likewise for param "insn".
500         (queue_remove): Likewise.
501         (adjust_priority): Likewise for param "prev".
502         (update_register_pressure): Likewise for param "insn".
503         (setup_insn_max_reg_pressure): Likewise for local "insn".
504         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
505         (model_add_to_schedule): Likewise.
506         (model_reset_queue_indices): Likewise for local "insn".
507         (unschedule_insns_until): Strengthen local "recompute_vec" from
508         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
509         "con" from rtx to rtx_insn *.
510         (restore_last_backtrack_point): Likewise for both locals "x". Add
511         checked casts.
512         (estimate_insn_tick): Likewise for param "insn".
513         (commit_schedule): Likewise for params "prev_head", "tail" and
514         local "x".
515         (verify_shadows): Likewise for locals "i1", "i2".
516         (dump_insn_stream): Likewise for params "head", "tail" and locals
517         "next_tail", "insn".
518         (schedule_block): Likewise for locals "insn", "x".  Add a checked
519         cast.
520         (fix_inter_tick): Likewise for params "head", "tail".
521         (create_check_block_twin): Likewise for local "jump".
522         (haifa_change_pattern): Likewise for param "insn".
523         (haifa_speculate_insn): Likewise.
524         (dump_new_block_header): Likewise for params "head", "tail".
525         (fix_jump_move): Likewise for param "jump".
526         (move_block_after_check): Likewise.
527         (sched_init_insn_luid): Likewise for param "insn".
528         (sched_init_luids): Likewise for local "insn".
529         (insn_luid): Likewise for param "insn".
530         (init_h_i_d): Likewise.
531         (haifa_init_h_i_d): Likewise for local "insn".
532         (haifa_init_insn): Likewise for param "insn".
533         * sched-deps.c (add_dependence): Likewise for local "real_pro",
534         "other".
535         (create_insn_reg_use): Likewise for param "insn".
536         (setup_insn_reg_uses): Likewise.  Add a checked cast.
537         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
538         "tail" from rtx to rtx_insn *.
539         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
540         "insn", "next_tail".
542 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
544         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
545         from rtx to rtx_insn *.
546         (model_add_to_schedule): Likewise for locals "start", "end",
547         "iter".
549 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
551         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
552         rtx_insn *.
553         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
554         "to" and locals "insn", "next", "copy".  Remove now-redundant
555         checked cast.
557 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
559         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
560         rtx_insn * and param 4 from rtx * to rtx_insn **.
561         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
562         param 2 from rtx * to rtx_insn **.
564         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
565         rtx_insn * and final param from rtx * to rtx_insn **.
567         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
568         from rtx to rtx_insn *.
569         (try_head_merge_bb): Likewise for both locals named "move_upto".
570         * df-problems.c (can_move_insns_across): Likewise for params
571         "from", "to", "across_from", "across_to" and locals "insn",
572         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
573         rtx_insn **.
574         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
575         from rtx to rtx_insn *.
576         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
577         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
578         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
579         rtx_insn *.
580         (noce_try_abs): Likewise.
581         (noce_get_condition): Likewise for param "jump".  Strengthen param
582         "earliest" from rtx * to rtx_insn **.
583         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
584         rtx_insn *.
585         (find_cond_trap): Likewise.
586         (dead_or_predicable): Likewise for local "earliest".
587         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
588         checked cast.
589         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
590         and local "prev".  Strengthen param "earliest" from rtx * to
591         rtx_insn **.
592         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
593         Strengthen param "earliest" from rtx * to rtx_insn **.
595 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
597         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
598         "to" and local "insn" from rtx to rtx_insn *.
600 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
602         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
603         from rtx to rtx_insn *.
604         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
605         (code_motion_path_driver): Likewise for local "last_insn".
606         (simplify_changed_insns): Likewise for local "insn".
608 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
610         * rtl.h (push_to_sequence): Strengthen param from rtx to
611         rtx_insn *.
612         (push_to_sequence2): Likewise for both params.
613         (delete_insns_since): Likewise for param.
614         (reorder_insns_nobb): Likewise for all three params.
615         (set_new_first_and_last_insn): Likewise for both params.
617         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
618         rtx_insn *.  Remove now-redundant cast.
619         (set_last_insn): Likewise.
621         * builtins.c (expand_builtin_return): Strengthen local
622         "call_fusage" from rtx to rtx_insn *.
623         * cfgrtl.c (create_basic_block_structure): Likewise for local
624         "after".
625         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
626         "first", "last" and local "insn".
627         (delete_insns_since): Likewise for param "from".
628         (reorder_insns_nobb): Likewise for params "from", "to", "after"
629         and local "x".
630         (push_to_sequence): Likewise for param "first" and local "last".
631         (push_to_sequence2): Likewise for params "first" and "last".
632         * lra.c (emit_add3_insn): Likewise for local "last".
633         (lra_emit_add): Likewise.
634         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
635         "last_insn".
636         (process_address_1): Likewise for locals "insn", last".
637         * modulo-sched.c (ps_first_note): Likewise for return type.
638         * optabs.c (expand_binop_directly): Likewise for param "last".
640 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
642         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
643         to rtx_insn*.
644         * emit-rtl.c (get_last_insn_anywhere): Likewise.
646 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
648         * function.h (struct sequence_stack): Strengthen fields "first"
649         and "last" from rtx to rtx_insn *.
650         (struct emit_status): Likewise for fields "x_first_insn" and
651         "x_last_insn".
653         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
654         (set_first_insn): Add checked cast.
655         (get_last_insn): Remove now-redundant checked cast.
656         (set_last_insn): Add checked cast.
658         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
659         "saved_first" and "saved_last" from rtx to rtx_insn *.
661 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
663         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
664         (unlink_insn_chain): Strengthen both params from rtx to
665         rtx_insn *.
667         * cfgrtl.c (cfg_layout_function_header): Likewise for this
668         variable.
669         (unlink_insn_chain): Likewise for params "first" and "last".
670         Remove now-redundant checked cast.
671         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
672         (fixup_reorder_chain): Strengthen local "insn" from rtx to
673         rtx_insn *.
674         * emit-rtl.c (link_insn_into_chain): Likewise for all three
675         params.
676         (add_insn): Likewise for param "insn" and local "prev".
677         (add_insn_after_nobb): Likewise for both params and local "next".
678         (add_insn_before_nobb): Likewise for both params and local "prev".
679         (add_insn_after): Rename param "after" to "uncast_after",
680         introducing local "after" with another checked cast.
681         (add_insn_before): Rename params "insn" and "before", giving them
682         "uncast_" prefixes, adding the old names back using checked casts.
683         (emit_note_after): Likewise for param "after".
684         (emit_note_before): Likewise for param "before".
685         (emit_label): Add a checked cast.
687 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
689         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
690         "insn" from rtx to rtx_insn *.
692         * cselib.c (cselib_record_sets_hook): Likewise.
694         * var-tracking.c (add_with_sets): Likewise, renaming back from
695         "uncast_insn" to "insn" and eliminating the checked cast from rtx
696         to rtx_insn *.
698 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
700         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
701         and "header_" from rtx to rtx_insn *.
702         (struct basic_block_d): Likewise for field "head_" within "x"
703         field of union basic_block_il_dependent.
704         (BB_HEAD): Drop function...
705         (SET_BB_HEAD): ...and this function in favor of...
706         (BB_HEAD): ...reinstate macro.
707         (BB_END): Drop function...
708         (SET_BB_END): ...and this function in favor of...
709         (BB_END): ...reinstate macro.
710         (BB_HEADER): Drop function...
711         (SET_BB_HEADER): ...and this function in favor of...
712         (BB_HEADER): ...reinstate macro.
714         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
715         (fix_crossing_unconditional_branches): Likewise.
716         * caller-save.c (save_call_clobbered_regs): Likewise.
717         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
718         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
719         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
720         (merge_blocks_move_successor_nojumps): Likewise.
721         (outgoing_edges_match): Update use of for_each_rtx to
722         for_each_rtx_in_insn.
723         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
724         (expand_gimple_cond): Likewise.
725         (expand_gimple_tailcall): Likewise.
726         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
727         SET_BB_END.
728         (construct_exit_block): Drop use of SET_BB_END.
729         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
730         rtx_insn *.
731         (delete_insn): Rename param "insn" to "uncast_insn", introducing
732         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
733         SET_BB_HEAD and SET_BB_END.
734         (create_basic_block_structure): Drop use of SET_BB_HEAD and
735         SET_BB_END.
736         (rtl_delete_block): Drop use of SET_BB_HEAD.
737         (rtl_split_block): Drop use of SET_BB_END.
738         (emit_nop_for_unique_locus_between): Likewise.
739         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
740         (block_label): Drop use of SET_BB_HEAD.
741         (fixup_abnormal_edges): Drop use of SET_BB_END.
742         (record_effective_endpoints): Drop use of SET_BB_HEADER.
743         (relink_block_chain): Likewise.
744         (fixup_reorder_chain): Drop use of SET_BB_END.
745         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
746         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
747         rtx_insn **.  Drop use of SET_BB_HEADER.
748         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
749         SET_BB_HEAD.
750         (BB_HEAD): Delete this function.
751         (SET_BB_HEAD): Likewise.
752         (BB_END): Likewise.
753         (SET_BB_END): Likewise.
754         (BB_HEADER): Likewise.
755         (SET_BB_HEADER): Likewise.
756         * emit-rtl.c (add_insn_after):  Rename param "insn" to
757         "uncast_insn", adding a new local "insn" and a checked cast to
758         rtx_insn *.  Drop use of SET_BB_END.
759         (remove_insn): Strengthen locals "next" and "prev" from rtx to
760         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
761         (reorder_insns): Drop use of SET_BB_END.
762         (emit_insn_after_1): Strengthen param "first" and locals "last",
763         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
764         (emit_pattern_after_noloc): Add checked cast.
765         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
766         (restore_other_notes): Likewise.
767         (move_insn): Likewise.
768         (sched_extend_bb): Likewise.
769         (fix_jump_move): Likewise.
770         * ifcvt.c (noce_process_if_block): Likewise.
771         (dead_or_predicable): Likewise.
772         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
773         * reg-stack.c (change_stack): Drop use of SET_BB_END.
774         * sel-sched-ir.c (sel_move_insn): Likewise.
775         * sel-sched.c (move_nop_to_previous_block): Likewise.
777         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
778         SET_BB_END.
779         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
781 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
783         * basic-block.h (create_basic_block_structure): Strengthen params
784         1 "head" and 2 "end" from rtx to rtx_insn *.
785         * cfgrtl.c (create_basic_block_structure): Likewise.
786         (rtl_create_basic_block): Update casts from void * to rtx to
787         rtx_insn *, so that we can pass them as rtx_insn * to
788         create_basic_block_structure.
789         * sel-sched-ir.c (sel_create_basic_block): Likewise.
791 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
793         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
794         rtx_insn **.
795         (check_for_inc_dec): Strengthen param "insn" from rtx to
796         rtx_insn *.
798         * cselib.h (cselib_process_insn): Likewise.
800         * cselib.c (cselib_record_sets): Likewise.
801         (cselib_process_insn): Likewise.
803         * dse.c (struct insn_info): Likewise for field "insn".
804         (check_for_inc_dec_1): Likewise for local "insn".
805         (check_for_inc_dec): Likewise for param "insn".
806         (scan_insn): Likewise.
807         (dse_step1): Likewise for local "insn".
809         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
810         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
812 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
814         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
815         from rtx to rtx_insn *.
816         (DEP_PRO): Delete this function and...
817         (SET_DEP_PRO): ...this function in favor of...
818         (DEP_PRO): ...reinstate this macro.
819         (DEP_CON): Delete this function and...
820         (SET_DEP_CON): ...this function in favor of...
821         (DEP_CON): ...reinstate this old macro.
822         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
823         (init_dep): Likewise.
824         (set_priorities): Likewise for both params.
825         (sd_copy_back_deps): Likewise for params 1 and 2.
827         * haifa-sched.c (priority): Likewise for param "insn" and local
828         "next".
829         (set_priorities): Likewise for params "head" and "tail" and local
830         "insn".
831         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
832         local "consumer".
833         (add_to_speculative_block): Add a checked cast.
834         (create_check_block_twin): Drop use of SET_DEP_CON.
835         (add_jump_dependencies): Strengthen params "insn" and "jump" from
836         rtx to rtx_insn *.
838         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
839         Drop use of SET_DEP_PRO
840         (init_dep): Strengthen params "pro" and "con" from rtx to
841         rtx_insn *.
842         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
843         use of SET_DEP_CON.
844         (DEP_PRO): Delete.
845         (DEP_CON): Delete.
846         (SET_DEP_PRO): Delete.
847         (SET_DEP_CON): Delete.
849 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
851         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
852         from rtx to rtx_insn *.
853         (VINSN_INSN_RTX): Eliminate rvalue function and...
854         (SET_VINSN_INSN): ...lvalue function in favor of...
855         (VINSN_INSN_RTX): reinstate this old macro.
857         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
858         in favor of VINSN_INSN_RTX.
859         (VINSN_INSN_RTX): Delete this function.
860         (SET_VINSN_INSN_RTX): Likewise.
862 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
864         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
865         (BND_TO): Delete this function and...
866         (SET_BND_TO): ...this functions in favor of...
867         (BND_TO): ...reinstating this macro.
868         (struct _fence): Strengthen field "executing_insns" from
869         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
870         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
871         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
872         and param "insn" from rtx to insn_t.
873         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
874         rtx_insn *.
876         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
877         vec<rtx_insn *> .
878         (rtx_vec_t): Likewise.
879         (struct sched_deps_info_def): Strengthen param of "start_insn"
880         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
881         "note_mem_dep" callback and first param of "note_dep" callback.
883         * haifa-sched.c (add_to_speculative_block): Strengthen param
884         "insn" from rtx to rtx_insn *.
885         (clear_priorities): Likewise.
886         (calc_priorities): Likewise for local "insn".
888         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
889         Remove redundant checked cast.
890         (haifa_note_mem_dep): Likewise for param "pending_insn".
891         (haifa_note_dep): Likewise for param "elem".
892         (note_mem_dep): Likewise for param "e".
893         (sched_analyze_1): Add checked casts.
894         (sched_analyze_2): Likewise.
896         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
897         from rtx to rtx_insn *.
898         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
899         from vec<rtx> * to vec<rtx_insn *> *.
901         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
902         scaffolding.
903         (flist_add): Strengthen param "executing_insns" from
904         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
905         (advance_deps_context): Remove now-redundant checked cast.
906         (init_fences): Replace uses of NULL_RTX with NULL.
907         (merge_fences): Strengthen params "last_scheduled_insn" and
908         "sched_next" from rtx to rtx_insn * and "executing_insns" from
909         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
910         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
911         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
912         an instruction, rather than doing double-duty as a pattern.
913         (return_nop_to_pool): Update for change of insn_t.
914         (deps_init_id): Remove now-redundant checked cast.
915         (struct sched_scan_info_def): Strengthen param of "init_insn"
916         callback from rtx to insn_t.
917         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
918         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
919         NULL.
920         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
921         "end" from rtx to rtx_insn *.
922         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
923         (rtx insn_rtx, bool force_unique_p)
924         (BND_TO): Delete function.
925         (SET_BND_TO): Delete function.
927         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
928         rtx to rtx_insn *.
929         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
930         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
931         rtx to rtx_insn *.
932         (undo_transformations): Likewise for param "insn".
933         (update_liveness_on_insn): Likewise.
934         (compute_live_below_insn): Likewise for param "insn" and local
935         "succ".
936         (update_data_sets): Likewise for param "insn".
937         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
938         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
939         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
940         rtx_insn *.
941         (move_cond_jump): Likewise for param "insn".
942         (move_cond_jump): Drop use of SET_BND_TO.
943         (compute_av_set_on_boundaries): Likewise.
944         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
945         (update_and_record_unavailable_insns): Strengthen local "bb_end"
946         from rtx to rtx_insn *.
947         (maybe_emit_renaming_copy): Likewise for param "insn".
948         (maybe_emit_speculative_check): Likewise.
949         (handle_emitting_transformations): Likewise.
950         (remove_insn_from_stream): Likewise.
951         (code_motion_process_successors): Strengthen local "succ" from rtx
952         to insn_t.
954 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
956         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
957         ilist_t, not _xlist_t;
958         (ILIST_INSN): Define in terms of new union field "insn".
959         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
960         _XLIST_NEXT.
961         (struct _list_node): Add new field "insn" to the union, of type
962         insn_t.
963         (ilist_add): Replace macro with an inline function, requiring an
964         insn_t.
965         (ilist_remove): Define this macro directly in terms of
966         _list_remove, rather than indirectly via _xlist_remove.
967         (ilist_clear): Likewise, in terms of _list_clear rather than
968         _xlist_clear.
969         (ilist_is_in_p): Replace macro with an inline function, requiring
970         an insn_t.
971         (_list_iter_cond_insn): New function.
972         (ilist_iter_remove): Define this macro directly in terms of
973         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
974         (ilist_iterator): Define directly in terms of _list_iterator
975         rather than indirectly through _xlist_iterator.
976         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
977         than in terms of _FOR_EACH_X.
978         (FOR_EACH_INSN_1): Likewise.
980 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
982         PR target/60606
983         PR target/61330
984         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
985         DECL_HARD_REGISTER and return for invalid register specifications.
986         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
987         DECL_HARD_REGISTER, call expand_one_error_var.
988         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
989         CC_REGNUM with non-MODE_CC modes.
990         (arm_regno_class): Return NO_REGS for PC_REGNUM.
992 2014-08-26  Marek Polacek  <polacek@redhat.com>
994         PR c/61271
995         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
997 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
999         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1000         qi cost; add di cost.
1001         (cortexa57_addrcost_table): Likewise.
1003 2014-08-26  Marek Polacek  <polacek@redhat.com>
1005         PR c/61271
1006         * expr.c (is_aligning_offset): Remove logical not.
1008 2014-08-26  Marek Polacek  <polacek@redhat.com>
1010         PR c/61271
1011         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1012         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1014 2014-08-26  Richard Biener  <rguenther@suse.de>
1016         PR tree-optimization/62175
1017         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1018         expand possibly trapping operations.
1020 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
1022         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1023         "insn" from rtx to rtx_insn *.
1024         (permute_load): Likewise for param "insn".
1025         (permute_store): Likewise.
1026         (handle_special_swappables): Likewise for local "insn".
1027         (replace_swap_with_copy): Likewise for locals "insn" and
1028         "new_insn".
1029         (rs6000_analyze_swaps): Likewise for local "insn".
1031 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1033         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1034         to rtx_insn *.
1036 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1038         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1039         "note_list" from rtx to rtx_insn *.
1040         (BB_NOTE_LIST): Replace this function and...
1041         (SET_BB_NOTE_LIST): ...this function with...
1042         (BB_NOTE_LIST): ...the former macro implementation.
1044         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1045         local "from_start" from rtx to rtx_insn *.  Strengthen param
1046         "to_endp" from rtx * to rtx_insn **.
1048         * haifa-sched.c (concat_note_lists): Likewise.
1049         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1050         BB_NOTE_LIST.
1051         (sel_restore_notes): Likewise.
1052         (move_bb_info): Likewise.
1053         (BB_NOTE_LIST): Delete this function.
1054         (SET_BB_NOTE_LIST): Delete this function.
1055         * sel-sched.c (create_block_for_bookkeeping): Eliminate
1056         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1058 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1060         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1061         from rtx * to rtx_insn **.
1062         (reorder2): Likewise.
1063         (dependencies_evaluation_hook): Strengthen params "head", "tail"
1064         from rtx to rtx_insn *.
1066         * doc/tm.texi: Update mechanically for above change to target.def.
1068         * sched-int.h (note_list): Strengthen this variable from rtx to
1069         rtx_insn *.
1070         (remove_notes): Likewise for both params.
1071         (restore_other_notes): Likewise for return type and first param.
1072         (struct ready_list): Strengthen field "vec" from rtx * to
1073         rtx_insn **.
1074         (struct dep_replacement): Strenghten field "insn" from rtx to
1075         rtx_insn *.
1076         (struct deps_desc): Likewise for fields "last_debug_insn",
1077         "last_args_size".
1078         (struct haifa_sched_info): Likewise for callback field
1079         "can_schedule_ready_p"'s param, for first param of "new_ready"
1080         callback field, for both params of "rank" callback field, for
1081         first field of "print_insn" callback field (with a const), for
1082         both params of "contributes_to_priority" callback, for param
1083         of "insn_finishes_block_p" callback, for fields "prev_head",
1084         "next_tail", "head", "tail", for first param of "add_remove_insn"
1085         callback, for first param of "begin_schedule_ready" callback, for
1086         both params of "begin_move_insn" callback, and for second param
1087         of "advance_target_bb" callback.
1088         (add_dependence): Likewise for params 1 and 2.
1089         (sched_analyze): Likewise for params 2 and 3.
1090         (deps_analyze_insn): Likewise for param 2.
1091         (ready_element): Likewise for return type.
1092         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1093         (try_ready): Strenghten param from rtx to rtx_insn *.
1094         (sched_emit_insn): Likewise for return type.
1095         (record_delay_slot_pair): Likewise for params 1 and 2.
1096         (add_delay_dependencies): Likewise for param.
1097         (contributes_to_priority): Likewise for both params.
1098         (find_modifiable_mems): Likewise.
1100         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
1101         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
1102         "first_older_only_insn" from rtx to rtx_insn *.
1103         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
1104         rtx_insn **.
1106         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1107         "last_scheduled_iter0" from rtx to rtx_insn *.
1108         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1109         (c6x_sched_reorder_1): Strengthen param "ready" and locals
1110         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
1111         "insn" from rtx to rtx_insn *.
1112         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1113         rtx_insn **.
1114         (c6x_sched_reorder2): Strengthen param "ready" and locals
1115         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1116         "insn" from rtx to rtx_insn *.
1117         (c6x_variable_issue):  Add a checked cast when assigning from insn
1118         to ss.last_scheduled_iter0.
1119         (split_delayed_branch): Strengthen param "insn" and local "i1"
1120         from rtx to rtx_insn *.
1121         (split_delayed_nonbranch): Likewise.
1122         (undo_split_delayed_nonbranch): Likewise for local "insn".
1123         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1124         "entry_after", "end_packet", "head_insn", "tail_insn",
1125         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1126         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1127         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
1128         but add a checked cast on loop->start_label.  Consolidate calls to
1129         avoid assigning result of gen_spkernel to "insn", now an
1130         rtx_insn *.
1132         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1133         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
1134         rtx to rtx_insn *.
1135         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1136         rtx_insn **.  Strengthen locals "top", "next" from rtx to
1137         rtx_insn *.
1138         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1139         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
1140         (add_parameter_dependencies): Strengthen params "call", "head" and
1141         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1142         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1143         (add_dependee_for_func_arg): Likewise for param "arg" and local
1144         "insn".
1145         (ix86_dependencies_evaluation_hook): Likewise for params "head",
1146         "tail" and locals "insn", "first_arg".
1148         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1149         for params "head", "tail" and locals "insn", "next", "next_tail".
1150         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1151         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1152         "insn", "lowest", "highest" from rtx to rtx_insn *.
1153         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1154         rtx_insn **.
1155         (ia64_sched_reorder2): Likewise.
1157         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1158         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
1159         from rtx * to rtx_insn **.
1160         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1161         rtx_insn **.
1162         (mep_print_sched_insn): Strengthen param "insn" from rtx to
1163         rtx_insn *.
1164         (mep_sched_reorder): Strengthen param "ready" from rtx * to
1165         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
1166         to rtx_insn *.
1168         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1169         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
1170         to rtx_insn *.
1171         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1172         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
1173         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1174         rtx_insn **.
1175         (vr4130_reorder): Likewise.
1176         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
1177         rtx to rtx_insn *.
1178         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1179         rtx_insn **.
1180         (mips_sched_reorder): Likewise.
1181         (mips_sched_reorder2): Likewise.
1183         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1185         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1186         Strengthen local "tmp" from rtx to rtx_insn *.
1187         (rs6000_sched_reorder2): Likewise.
1189         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1190         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1191         (s390_sched_reorder): Strengthen param "ready" from rtx * to
1192         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
1194         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1195         "tmp2" from rtx to rtx_insn *.
1196         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1197         Strengthen local "insn" from rtx to rtx_insn *.
1198         (ready_reorder): Strengthen param "ready" from rtx * to
1199         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1200         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
1201         (sh_reorder2): Likewise.
1203         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
1204         local "insn" from rtx to rtx_insn *.
1206         * haifa-sched.c (note_list): Strengthen this variable from rtx to
1207         rtx_insn *.
1208         (scheduled_insns): Strengthen this variable from vec<rtx> to
1209         vec<rtx_insn *>.
1210         (set_modulo_params): Likewise for locals "i1", "i2".
1211         (record_delay_slot_pair): Likewise for params "i1", "i2".
1212         (add_delay_dependencies): Likewise for param "insn".
1213         (cond_clobbered_p): Likewise.
1214         (recompute_todo_spec): Likewise for local "prev".
1215         (last_scheduled_insn): Likewise for this variable.
1216         (nonscheduled_insns_begin): Likewise.
1217         (model_set_excess_costs): Strengthen param "insns" from rtx * to
1218         rtx_insn **.
1219         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1220         rtx_insn *.
1221         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1222         Strengthen local "insn" from rtx to rtx_insn *.
1223         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1224         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1225         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1226         (ready_remove_first): Likewise for return type and local "t".
1227         (ready_element): Likewise for return type.
1228         (ready_remove): Likewise for return type and local "t".
1229         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1230         (check_clobbered_conditions): Strengthen local "x" from rtx to
1231         rtx_insn *, adding a checked cast.
1232         (schedule_insn): Likewise for param "insn".
1233         (remove_notes): Likewise for params "head", "tail" and locals
1234         "next_tail", "insn", "next".
1235         (struct haifa_saved_data): Likewise for fields
1236         "last_scheduled_insn", "nonscheduled_insns_begin".
1237         (save_backtrack_point): Update for change to field "vec" of
1238         struct ready_list.
1239         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1240         rtx_insn **.
1241         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
1242         from rtx to rtx_insn *
1243         (resolve_dependencies): Strengthen param "insn" from rtx to
1244         rtx_insn *
1245         (restore_other_notes): Likewise for return type, for param "head"
1246         and local "note_head".
1247         (undo_all_replacements): Likewise for local "insn".
1248         (first_nonscheduled_insn): Likewise for return type and local "insn".
1249         (queue_to_ready): Likewise for local "insn", adding checked casts.
1250         (early_queue_to_ready): Likewise for local "insn".
1251         (debug_ready_list_1): Strengthen local "p" from rtx * to
1252         rtx_insn **.
1253         (move_insn): Strengthen param "insn" and local "note" from rtx to
1254         rtx_insn *
1255         (insn_finishes_cycle_p): Likewise for param "insn".
1256         (max_issue): Likewise for local "insn".
1257         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
1258         to rtx_insn **.
1259         (commit_schedule): Strengthen param "prev_head" and local "insn"
1260         from rtx to rtx_insn *
1261         (prune_ready_list): Likewise for local "insn".
1262         (schedule_block): Likewise for locals "prev_head", "head", "tail",
1263         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1264         (set_priorities): Likewise for local "prev_head".
1265         (try_ready): Likewise for param "next".
1266         (fix_tick_ready): Likewise.
1267         (change_queue_index): Likewise.
1268         (sched_extend_ready_list): Update for change to field "vec" of
1269         struct ready_list.
1270         (generate_recovery_code): Strengthen param "insn" from rtx to
1271         rtx_insn *.
1272         (begin_speculative_block): Likewise.
1273         (create_check_block_twin): Likewise for param "insn" and locals
1274         "label", "check", "twin".  Introduce local "check_pat" to avoid
1275         "check" being used as a plain rtx before being used as an insn.
1276         (fix_recovery_deps): Add a checked cast to rtx_insn * when
1277         extracting elements from ready_list.
1278         (sched_remove_insn): Strengthen param "insn" from rtx to
1279         rtx_insn *.
1280         (sched_emit_insn): Likewise for return type.
1281         (ready_remove_first_dispatch): Likewise for return type and local
1282         "insn".
1284         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1286         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1287         const rtx_insn *.
1289         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1290         from rtx to rtx_insn *.
1291         (add_dependence_list): Likewise for param "insn".  Add a checked
1292         cast.
1293         (add_dependence_list_and_free): Strengthen param "insn" from rtx
1294         to rtx_insn *.  Strengthen param "list_p" from rtx * to
1295         rtx_insn **.
1296         (chain_to_prev_insn): Strengthen param "insn" and locals
1297         "prec_nonnote", "i" from rtx to rtx_insn *.
1298         (flush_pending_lists): Likewise for param "insn".
1299         (cur_insn): Likewise for this variable.
1300         (haifa_start_insn): Add a checked cast.
1301         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1302         (sched_analyze_reg): Likewise for param "insn".
1303         (sched_analyze_1): Likewise.
1304         (sched_analyze_2): Likewise.  Add checked casts.
1305         (sched_analyze_insn): Likewise.  Also for local "prev".
1306         (deps_analyze_insn): Likewise for param "insn".
1307         (sched_analyze): Likewise for params "head", "tail" and local "insn".
1308         (add_dependence_1): Likewise for params "insn", "elem".
1309         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1310         (parse_add_or_inc): Likewise for param "insn".
1311         (find_inc): Likewise for local "inc_cand".
1312         (find_modifiable_mems): Likewise for params "head", "tail" and
1313         locals "insn", "next_tail".
1315         * sched-ebb.c (init_ready_list): Likewise for local "insn".
1316         (begin_schedule_ready): Likewise for param "insn".
1317         (begin_move_insn): Likewise for params "insn" and "last".
1318         (ebb_print_insn): Strengthen param "insn" from const_rtx to
1319         const rtx_insn *.
1320         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1321         (ebb_contributes_to_priority): Likewise for params "next", "insn".
1322         (ebb_add_remove_insn): Likewise for param "insn".
1323         (advance_target_bb): Likewise.
1325         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1326         "insn".
1327         (check_live): Likewise for param "insn".
1328         (init_ready_list): Likewise for local "insn".
1329         (can_schedule_ready_p): Likewise for param "insn".
1330         (begin_schedule_ready): Likewise.
1331         (new_ready): Likewise for param "next".
1332         (rgn_print_insn): Likewise for param "insn".
1333         (rgn_rank): Likewise for params "insn1", "insn2".
1334         (contributes_to_priority): Likewise for params "next", "insn".
1335         (rgn_insn_finishes_block_p): Likewise for param "insn".
1336         (add_branch_dependences): Likewise for params "head", "tail" and
1337         locals "insn", "last".
1338         (rgn_add_remove_insn): Likewise for param "insn".
1339         (advance_target_bb): Likewise.
1341         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1342         const_rtx to const rtx_insn *.
1344         * sel-sched-dump.h (sel_print_insn): Likewise.
1346         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1347         (deps_init_id): Likewise.
1349         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1350         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1351         rtx_insn **.
1353 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1355         * output.h (final_start_function): Strengthen param 1 from rtx to
1356         rtx_insn *.
1358         * final.c (final_start_function): Likewise, renaming back from
1359         "uncast_first" to "first", and dropping the checked cast from rtx
1360         to rtx_insn *.
1362 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1364         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1365         * final.c (final): Likewise.  Rename param back from
1366         "uncast_first" to "first" and eliminate the checked cast from rtx
1367         to rtx_insn *.
1369 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1371         * output.h (shorten_branches): Strengthen param from rtx to
1372         rtx_insn *.
1374         * final.c (shorten_branches): Likewise, renaming param back from
1375         "uncast_first" to "first", and dropping the checked cast from rtx
1376         to rtx_insn *.
1378         * genattr.c (gen_attr): Likewise when writing out the prototype of
1379         shorten_branches.
1381 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1383         * sched-int.h (struct haifa_sched_info): Strengthen fields
1384         "prev_head" and "next_tail" from rtx to rtx_insn *.
1386 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1388         * rtl.h (rtx_jump_table_data::get_labels): New method.
1389         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1390         with use of the new rtx_jump_table_data::get_labels method.
1391         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1392         to rtx_jump_table_data *.  Simplify by using get_labels method.
1393         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1394         a dyn_cast, introducing local "table", using it to replace
1395         label-lookup logic with a get_labels method call.
1396         (patch_jump_insn): Simplify using get_labels method.
1397         * dwarf2cfi.c (create_trace_edges): Likewise.
1398         * rtlanal.c (label_is_jump_target_p): Likewise.
1400 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1402         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1403         to rtx_insn *.
1405         * emit-rtl.c (unshare_all_rtl_1): Likewise.
1406         (unshare_all_rtl_again): Likewise, also for local "p".
1408 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1410         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1411         to rtx_insn *.
1412         * cfgrtl.c (delete_insn_and_edges): Likewise.
1414 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1416         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1417         from rtx to rtx_insn *.
1419         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1421 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1423         * function.c (thread_prologue_and_epilogue_insns): Likewise for
1424         locals "returnjump", "epilogue_end", "insn", "next".
1426         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1427         "returnjump" from rtx * to rtx_insn **.
1428         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1430 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1432         * basic-block.h (struct edge_def). Strengthen "r" within
1433         union edge_def_insns from rtx to rtx_insn *.
1435         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1436         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
1437         rtx_insn *.
1438         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1439         from rtx to rtx_insn *.
1440         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1441         rtx_insn *.
1442         * postreload-gcse.c (reg_killed_on_edge): Likewise.
1443         (reg_used_on_edge): Likewise.
1444         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1445         (gt_pch_nx): New overload for rtx_insn *&.
1446         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1447         from rtx to rtx_insn *.
1449 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1451         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1452         from rtx to rtx_insn *.
1453         (BB_FOOTER): Replace function with access macro.
1454         (SET_BB_FOOTER): Delete.
1456         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1457         with BB_FOOTER.
1458         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1459         (emit_barrier_after_bb): Likewise.
1460         (record_effective_endpoints): Likewise.
1461         (relink_block_chain): Likewise.
1462         (fixup_fallthru_exit_predecessor): Likewise.
1463         (cfg_layout_duplicate_bb): Likewise.
1464         (cfg_layout_split_block): Likewise.
1465         (cfg_layout_delete_block): Likewise.
1466         (cfg_layout_merge_blocks): Likewise.
1467         (BB_FOOTER): Delete function.
1468         (SET_BB_FOOTER): Delete function.
1469         * combine.c (update_cfg_for_uncondjump): Replace uses of
1470         SET_BB_FOOTER with BB_FOOTER.
1472 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1474         * except.h (struct eh_landing_pad_d): Strengthen field
1475         "landing_pad" from rtx to rtx_code_label *.
1477         * except.c (sjlj_emit_dispatch_table): Likewise for param
1478         "dispatch_label"
1479         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1481 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1483         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1484         first param from rtx to rtx_insn *.
1485         * config/xtensa/xtensa.c (struct machine_function): Likewise for
1486         field "set_frame_ptr_insn".
1487         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1488         "csend" from rtx to rtx_code_label *.
1489         (xtensa_expand_atomic): Likewise for local "csloop".
1490         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1491         rtx_insn *.
1492         (xtensa_call_tls_desc): Likewise for return type and locals
1493         "call_insn", "insns".
1494         (xtensa_legitimize_tls_address): Likewise for local "insns".
1495         (xtensa_expand_prologue): Likewise for locals "insn", "first".
1497 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1499         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1500         first param from rtx to rtx_insn *.
1501         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1502         "insn".
1504 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1506         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1507         Strengthen param 1 from rtx to rtx_insn *.
1508         (tilepro_output_cbranch): Likewise.
1509         (tilepro_adjust_insn_length): Likewise.
1510         (tilepro_final_prescan_insn): Likewise for sole param.
1512         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1513         Likewise for local "last".
1514         (cbranch_predicted_p): Likewise for param "insn".
1515         (tilepro_output_simple_cbranch_with_opcode): Likewise.
1516         (tilepro_output_cbranch_with_opcode): Likewise.
1517         (tilepro_output_cbranch): Likewise.
1518         (frame_emit_load): Likewise for return type and locals "seq",
1519         "insn".
1520         (emit_sp_adjust): Likewise for return type and local "insn".
1521         (tilepro_expand_epilogue): Likewise for locals "last_insn",
1522         "insn".
1523         (tilepro_adjust_insn_length): Likewise for param "insn".
1524         (next_insn_to_bundle): Likewise for return type and params
1525         "r", "end".
1526         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1527         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1528         local "new_insns".
1529         (match_addli_pcrel): Likewise for param "insn".
1530         (replace_addli_pcrel): Likewise.
1531         (match_auli_pcrel): Likewise.
1532         (replace_auli_pcrel): Likewise.
1533         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1534         "next_insn".
1535         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1536         "queue", "next_queue", "prev".
1537         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1538         (tilepro_final_prescan_insn): Likewise for param "insn".
1540 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1542         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1543         Strengthen param 1 from rtx to rtx_insn *.
1544         (tilegx_output_cbranch): Likewise.
1545         (tilegx_adjust_insn_length): Likewise.
1546         (tilegx_final_prescan_insn): Likewise for sole param.
1548         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1549         or local "last".
1550         (cbranch_predicted_p): Likewise for param "insn".
1551         (tilegx_output_simple_cbranch_with_opcode): Likewise.
1552         (tilegx_output_cbranch_with_opcode): Likewise.
1553         (tilegx_output_cbranch): Likewise.
1554         (frame_emit_load): Likewise for return type.
1555         (set_frame_related_p): Likewise for locals "seq", "insn".
1556         (emit_sp_adjust): Likewise for return type, and for local "insn".
1557         Introduce local "pat" for use in place of "insn" where the latter
1558         isn't an instruction.
1559         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
1560         from rtx to rtx_insn *.
1561         (tilegx_adjust_insn_length): Likewise for param "insn".
1562         (next_insn_to_bundle): Likewise for return type and params "r" and
1563         "end".
1564         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
1565         "end".
1566         (replace_insns): Likewise for params "old_insn", "new_insns".
1567         (replace_mov_pcrel_step1): Likewise for param "insn" and local
1568         "new_insns".
1569         (replace_mov_pcrel_step2): Likewise.
1570         (replace_mov_pcrel_step3): Likewise.
1571         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
1572         "next_insn".
1573         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1574         "queue", "next_queue", "prev".
1575         (tilegx_output_mi_thunk): Likewise for local "insn".
1576         (tilegx_final_prescan_insn): Likewise for param "insn".
1578 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1580         * config/spu/spu.c (frame_emit_store): Strengthen return type from
1581         rtx to rtx_insn *.
1582         (frame_emit_load): Likewise.
1583         (frame_emit_add_imm): Likewise, also for local "insn".
1584         (spu_expand_prologue): Likewise for local "insn".
1585         (struct spu_bb_info): Likewise for field "prop_jump".
1586         (emit_nop_for_insn): Likewise for param "insn" and local
1587         "new_insn".
1588         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
1589         "hbr_insn".
1590         (spu_emit_branch_hint): Likewise for params "before", "branch" and
1591         locals "hint", "insn".
1592         (get_branch_target): Likewise for param "branch".
1593         (insn_clobbers_hbr): Likewise for param "insn".
1594         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
1595         locals "insn", "before_4", "before_16".
1596         (insert_hbrp): Likewise for local "insn".
1597         (spu_machine_dependent_reorg): Likewise for locals "branch",
1598         "insn", "next", "bbend".
1599         (uses_ls_unit): Likewise for param "insn".
1600         (get_pipe): Likewise.
1601         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
1602         introducing a checked cast.
1603         (spu_sched_adjust_cost): Likewise for params "insn" and
1604         "dep_insn".
1605         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
1606         (spu_sms_res_mii): Likewise.
1608 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1610         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
1611         from rtx to rtx_insn *.
1612         (output_cbranch): Likewise for param 6.
1613         (output_return): Likewise for param 1.
1614         (output_sibcall): Likewise.
1615         (output_v8plus_shift): Likewise.
1616         (output_v8plus_mult): Likewise.
1617         (output_v9branch): Likewise for param 7.
1618         (output_cbcond):  Likewise for param 3.
1620         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
1621         for local "insn".
1622         (sparc_legitimize_pic_address): Likewise.
1623         (sparc_emit_call_insn): Likewise.
1624         (emit_save_or_restore_regs): Likewise.
1625         (emit_window_save): Likewise for return type and local "insn".
1626         (sparc_expand_prologue): Likewise for local "insn".
1627         (sparc_flat_expand_prologue): Likewise.
1628         (output_return): Likewise for param "insn".
1629         (output_sibcall): Likewise for param "insn" and local "delay".
1630         (output_ubranch): Likewise for param "insn".
1631         (output_cbranch): Likewise.
1632         (output_cbcond): Likewise.
1633         (output_v9branch): Likewise.
1634         (output_v8plus_shift): Likewise.
1635         (sparc_output_mi_thunk): Likewise for local "insn".
1636         (get_some_local_dynamic_name): Likewise.
1637         (output_v8plus_mult): Likewise for param "insn".
1639 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1641         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
1642         from rtx to rtx_insn *.
1643         (output_branchy_insn): Likewise for param 3.
1644         (output_far_jump): Likewise for param 1.
1645         (final_prescan_insn): Likewise.
1646         (sh_insn_length_adjustment): Likewise for sole param.
1648         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
1649         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
1650         rtx_code_label *.
1651         (sh_emit_compare_and_set): Likewise for local "lab".
1652         (output_far_jump): Strengthen param "insn" and local "prev" from
1653         rtx to rtx_insn *.
1654         (output_branchy_insn): Likewise for param "insn" and local
1655         "next_insn".
1656         (output_ieee_ccmpeq): Likewise for param "insn".
1657         (struct label_ref_list_d): Strengthen field "label" from rtx to
1658         rtx_code_label *.
1659         (pool_node): Likewise.
1660         (pool_window_label): Likewise for this global.
1661         (add_constant): Likewise for return type and locals "lab", "new_rtx".
1662         (dump_table): Strengthen params "start", "barrier" and local
1663         "scan" from rtx to rtx_insn *.
1664         (broken_move): Likewise for param "insn".
1665         (untangle_mova): Likewise for params "first_mova" and "new_mova".
1666         Strengthen param "first_mova" from rtx * to rtx_insn **.
1667         (mova_p): Likewise for param "insn".
1668         (fixup_mova): Likewise for param "mova".
1669         (find_barrier): Likewise for return type, params "mova" and
1670         "from", and locals "barrier_before_mova", "found_barrier",
1671         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
1672         "label" from rtx to rtx_code_label *.
1673         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
1674         rtx to rtx_insn *.
1675         (sh_reorg): Likewise for locals "link", "scan", "barrier".
1676         (split_branches): Likewise for param "first" and local "insn".
1677         (final_prescan_insn): Likewise for param "insn".
1678         (sequence_insn_p): Likewise for locals "prev", "next".
1679         (sh_insn_length_adjustment): Likewise for param "insn".
1680         (sh_can_redirect_branch): Likewise for local "insn".
1681         (find_r0_life_regions): Likewise for locals "end", "insn".
1682         (sh_output_mi_thunk): Likewise for local "insns".
1684 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1686         * config/score/score.c (score_output_mi_thunk): Strengthen local
1687         "insn" from rtx to rtx_insn *.
1688         (score_prologue): Likewise.
1690 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1692         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
1693         1 from rtx to rtx_insn *.
1694         (s390_emit_jump): Likewise for return type.
1695         (s390_emit_call): Likewise.
1696         (s390_load_got): Likewise.
1698         * config/s390/s390.c (last_scheduled_insn): Likewise for this
1699         variable.
1700         (s390_match_ccmode): Likewise for param "insn".
1701         (s390_emit_jump): Likewise for return type.
1702         (s390_split_branches): Likewise for local "label".
1703         (struct constant): Strengthen field "label" from rtx to
1704         rtx_code_label *.
1705         (struct constant_pool): Likewise for field "label".  Strengthen
1706         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
1707         rtx_insn *.
1708         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
1709         insns.
1710         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
1711         (s390_end_pool): Likewise.
1712         (s390_dump_pool): Likewise for local "insn".
1713         (s390_mainpool_start): Likewise.
1714         (s390_chunkify_start): Likewise.
1715         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
1716         with insns.  Strengthen locals "label", "jump", "barrier", "next",
1717         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
1718         (s390_chunkify_finish): Strengthen local "insn" from rtx to
1719         rtx_insn *.
1720         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
1721         "jump", "label", "next_insn".
1722         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
1723         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
1724         "tbegin_insn".
1725         (s390_load_got): Likewise for return type and local "insns".
1726         (s390_save_gprs_to_fprs): Likewise for local "insn".
1727         (s390_restore_gprs_from_fprs): Likewise.
1728         (pass_s390_early_mach::execute): Likewise.
1729         (s390_emit_prologue): Likewise for local "insns".
1730         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
1731         rtx_code_label *.
1732         (s390_emit_call): Strengthen return type and local "insn" from
1733         rtx to rtx_insn *.
1734         (s390_emit_tpf_eh_return): Likewise for local "insn".
1735         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
1736         "next_insn", introducing locals "s_pat", "rpat" to allow this.
1737         (s390_fix_long_loop_prediction): Likewise for param "insn" and
1738         local "cur_insn".
1739         (s390_non_addr_reg_read_p): Likewise for param "insn".
1740         (find_cond_jump): Likewise for return type and param "insn".
1741         (s390_swap_cmp): Likewise for param "insn".
1742         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
1743         "prev_insn", "next_insn".
1744         (s390_reorg): Likewise for locals "insn", "target".
1745         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
1746         (s390_sched_variable_issue): For now, rename param "insn" to
1747         "uncast_insn", introducing a checked cast.
1748         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
1749         insn.
1750         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
1751         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
1753 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1755         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
1756         param from rtx to rtx_insn *.
1757         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
1759 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1761         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
1762         4 from rtx to rtx_insn *.
1763         (rs6000_final_prescan_insn): Likewise for first param.
1764         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
1765         local "insn".
1766         (rs6000_get_some_local_dynamic_name): Likewise.
1767         (output_cbranch): Likewise for param "insn".
1768         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
1769         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
1770         (rs6000_emit_allocate_stack): Likewise for local "insn".
1771         (load_cr_save): Likewise.
1772         (restore_saved_cr): Likewise.
1773         (restore_saved_lr): Likewise.
1774         (emit_cfa_restores): Likewise.
1775         (rs6000_output_function_epilogue): Likewise for locals "insn" and
1776         "deleted_debug_label".
1777         (rs6000_output_mi_thunk): Likewise for local "insn".
1778         (rs6000_final_prescan_insn): Likewise for param "insn".
1780 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1782         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
1783         Strengthen param "insn" from rtx to rtx_insn *.
1784         * config/picochip/picochip.c (picochip_current_prescan_insn):
1785         Likewise for this variable.
1786         (picochip_final_prescan_insn): Likewise for param "insn".
1788 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1790         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
1791         from rtx to rtx_insn *.
1792         (pa_output_indirect_call): Likewise.
1793         (pa_adjust_insn_length): Likewise.
1794         (pa_attr_length_millicode_call): Likewise.
1795         (pa_attr_length_call): Likewise.
1796         (pa_attr_length_indirect_call): Likewise.
1798         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
1799         "insn".
1800         (pa_attr_length_millicode_call): Likewise.
1801         (pa_attr_length_call): Likewise.
1802         (pa_output_call): Likewise.
1803         (pa_attr_length_indirect_call): Likewise.
1804         (pa_output_indirect_call): Likewise.
1806 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1808         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
1809         Strengthen first param from rtx to rtx_insn *.
1810         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
1811         param "insn".
1813 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1815         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
1816         type from rtx to rtx_insn *.
1817         (mips_expand_call): Likewise.
1818         (mips_adjust_insn_length): Likewise for first param.
1819         (mips_output_conditional_branch): Likewise.
1820         (mips_output_order_conditional_branch): Likewise.
1821         (mips_final_prescan_insn): Likewise.
1823         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
1824         rtx_insn * for the SEQUENCE case.
1825         (SEQ_END): Likewise.
1826         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
1827         (mips_emit_call_insn): Likewise, also for local "insn".
1828         (mips16_gp_pseudo_reg): Likewise for local "scan".
1829         (mips16_build_call_stub): Likewise for return type and for local
1830         "insn".  Introduce a new local "pattern" so that "insn" can indeed
1831         be an insn.
1832         (mips_expand_call): Strengthen return type and local "insn" from
1833         rtx to rtx_insn *.
1834         (mips_block_move_loop): Strengthen local "label" from rtx to
1835         rtx_code_label *.
1836         (mips_expand_synci_loop): Likewise for locals "label",
1837         "end_label".
1838         (mips_set_frame_expr): Strengthen local "insn" from rtx to
1839         rtx_insn *.
1840         (mips16e_collect_argument_saves): Likewise for locals "insn",
1841         "next".
1842         (mips_find_gp_ref): Likewise for param of callback for "pred"
1843         param, and for local "insn".
1844         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
1845         (mips_insn_has_flexible_gp_ref_p): Likewise.
1846         (mips_epilogue_emit_cfa_restores): Likewise for return type and
1847         local "insn".
1848         (mips_epilogue_set_cfa): Likewise for local "insn".
1849         (mips_expand_epilogue): Likewise.
1850         (mips_adjust_insn_length): Likewise for param "insn".
1851         (mips_output_conditional_branch): Likewise.
1852         (mips_output_order_conditional_branch): Likewise.
1853         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
1854         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
1855         "falu2_turn_enabled_insn".
1856         (mips_builtin_branch_and_move): Strengthen locals "true_label",
1857         "done_label" from rtx to rtx_code_label *.
1858         (struct mips16_constant): Likewise for field "label".
1859         (mips16_add_constant): Likewise for return type.
1860         (mips16_emit_constants_1): Strengthen return type and param "insn"
1861         from rtx to rtx_insn *.
1862         (mips16_emit_constants): Likewise for param "insn".
1863         (mips16_insn_length): Likewise.
1864         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
1865         to rtx_code_label *.
1866         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
1867         from rtx to rtx_insn *.
1868         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
1869         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
1870         (r10k_simplify_address): Strengthen param "insn" and local
1871         "def_insn" from rtx to rtx_insn *.
1872         (r10k_safe_address_p): Strengthen param "insn" from rtx to
1873         rtx_insn *.
1874         (r10k_needs_protection_p_1): Update target type of cast of data
1875         from to rtx to rtx_insn *.
1876         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
1877         rtx * to rtx_insn **.
1878         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
1879         rtx_insn *.
1880         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
1881         (mips_call_expr_from_insn): Likewise for param "insn".
1882         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
1883         (mips_find_pic_call_symbol): Likewise for param "insn".
1884         (mips_annotate_pic_calls): Likewise for local "insn".
1885         (mips_sim_insn): Likewise for this variable.
1886         (struct mips_sim): Likewise for field "insn" within elements of
1887         last_set array.
1888         (mips_sim_wait_reg): Likewise for param "insn".
1889         (mips_sim_wait_regs): Likewise.
1890         (mips_sim_wait_units): Likewise.
1891         (mips_sim_wait_insn): Likewise.
1892         (mips_sim_issue_insn): Likewise.
1893         (mips_sim_finish_insn): Likewise.
1894         (mips_seq_time): Likewise for param "seq" and local "insn".
1895         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
1896         locals "first", "second".
1897         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
1898         "last", "last2", "next".
1899         (mips_avoid_hazard): Likewise for params "after", "insn".
1900         (mips_reorg_process_insns): Likewise for locals "insn",
1901         "last_insn", "subinsn", "next_insn".
1902         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
1903         (mips16_split_long_branches): Likewise for locals "insn" "jump",
1904         "jump_sequence".
1905         (mips_output_mi_thunk): Likewise for local "insn".
1906         (mips_final_prescan_insn): Likewise for param "insn".
1908 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1910         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
1911         Strengthen return type and local "insns" from rtx to rtx_insn *.
1912         (microblaze_legitimize_tls_address): Likewise for local "insns".
1913         (microblaze_block_move_loop): Strengthen local "label" from rtx
1914         to rtx_code_label *.
1915         (microblaze_expand_prologue): Strengthen two locals named "insn"
1916         from rtx to rtx_insn *.
1917         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
1918         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
1919         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
1920         to rtx_code_label *.
1922 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1924         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
1925         param from rtx to rtx_insn *.
1926         (mep_reuse_lo): Likewise for third param.
1927         (mep_use_post_modify_p): Likewise for first param.
1928         (mep_core_address_length): Likewise.
1929         (mep_cop_address_length): Likewise.
1930         (mep_final_prescan_insn): Likewise.
1931         (mep_store_data_bypass_p): Likewise for both params.
1932         (mep_mul_hilo_bypass_p): Likewise.
1933         (mep_ipipe_ldc_p): Likewise for param.
1935         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
1936         (mep_rewrite_mult): Likewise.
1937         (mep_rewrite_mulsi3): Likewise.
1938         (mep_rewrite_maddsi3): Likewise.
1939         (mep_reuse_lo_p_1): Likewise.
1940         (mep_reuse_lo_p): Likewise.
1941         (mep_frame_expr): Likewise.
1942         (mep_make_parallel): Likewise for both params.
1943         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
1944         local "insn".
1945         (mep_use_post_modify_p): Likewise for param "insn".
1946         (mep_core_address_length): Likewise.
1947         (mep_cop_address_length): Likewise.
1948         (mep_reg_set_in_function): Likewise for local "insn".
1949         (mep_asm_without_operands_p): Likewise.
1950         (F): Likewise for return type and param "x".
1951         (add_constant): Likewise for local "insn".
1952         (maybe_dead_move): Likewise for return type and local "insn".
1953         (mep_expand_prologue): Likewise for local "insn".
1954         (mep_final_prescan_insn): Likewise for param "insn".
1955         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
1956         "next", "follow", "x".
1957         (mep_insert_repeat_label_last): Likewise for return type, param
1958         "last_insn", and locals "next", "prev".  Strengthen param "label"
1959         from rtx to rtx_code_label *.
1960         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
1961         rtx_insn *.
1962         (struct mep_doloop_end): Likewise for fields "insn" and
1963         "fallthrough".
1964         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
1965         Strengthen local "repeat_label" from rtx to rtx_code_label *.
1966         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
1967         rtx_insn *.
1968         (mep_invert_branch): Likewise for params "insn" and "after".
1969         (mep_reorg_erepeat): Likewise for param "insns" and locals
1970         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
1971         "l" from rtx to rtx_code_label *.
1972         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
1973         from rtx to rtx_insn *.
1974         (mep_reorg_addcombine): Likewise for param "insns" and locals
1975         "i", "n".
1976         (add_sp_insn_p): Likewise for param "insn".
1977         (mep_reorg_noframe): Likewise for param "insns" and locals
1978         "start_frame_insn", "end_frame_insn", "next".
1979         (mep_reorg): Likewise for local "insns".
1980         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
1981         cast.
1982         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
1983         (mep_mul_hilo_bypass_p): Likewise.
1984         (mep_ipipe_ldc_p): Likewise for param "insn".
1985         (mep_make_bundle): Likewise for return type, param "cop" and local
1986         "insn", splitting out the latter into a new local "seq" for when it
1987         is a SEQUENCE rather than an insn.
1988         (core_insn_p): Likewise for param "insn".
1989         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
1990         "last", "first", "note", "prev", "core_insn".
1992 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
1994         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
1995         rtx to rtx_insn *.
1996         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
1997         (m68k_final_prescan_insn): Likewise for first param.
1999         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2000         (m68k_set_frame_related): Likewise for param "insn".
2001         (output_btst): Likewise for param "insn".
2002         (m68k_final_prescan_insn): Likewise.
2003         (m68k_move_to_reg): Likewise for local "insn".
2004         (m68k_call_tls_get_addr): Likewise for local "insns".
2005         (m68k_call_m68k_read_tp): Likewise.
2006         (strict_low_part_peephole_ok): Likewise for param "first_insn".
2007         (m68k_output_mi_thunk): Likewise for local "insn".
2009 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2011         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2012         first param from rtx to rtx_insn *.
2013         (iq2000_adjust_insn_length): Likewise.
2014         (iq2000_output_conditional_branch): Likewise.
2015         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2016         "insn" and local "nop_insn".
2017         (iq2000_annotate_frame_insn): Likewise for param "insn".
2018         (iq2000_expand_prologue): Likewise for both locals "insn".
2019         (iq2000_adjust_insn_length): Likewise for param "insn".
2020         (iq2000_output_conditional_branch): Likewise.
2022 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2024         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2025         "insns" from rtx to rtx_insn *.
2026         (ia64_emit_cond_move): Likewise for locals "insn", "first".
2027         (struct spill_fill_data): Likewise for field "init_after" and for
2028         elements of array field "prev_insn".
2029         (spill_restore_mem): Likewise for locals "insn", "first".
2030         (do_spill): Likewise for local "insn".
2031         (do_restore): Likewise.
2032         (ia64_expand_prologue): Likewise.
2033         (ia64_expand_epilogue): Likewise.
2034         (emit_insn_group_barriers): Likewise for locals "insn",
2035         "last_label".
2036         (emit_all_insn_group_barriers): Likewise for locals "insn",
2037         "last".
2038         (dfa_stop_insn): Likewise for this global.
2039         (dfa_pre_cycle_insn): Likewise.
2040         (ia64_nop): Likewise.
2041         (final_emit_insn_group_barriers): Likewise for locals "insn",
2042         "last".
2043         (emit_predicate_relation_info): Likewise for locals "head", "n",
2044         "insn", "b", "a".
2045         (ia64_reorg): Likewise for local "insn".
2046         (ia64_output_mi_thunk): Likewise.
2047         (expand_vec_perm_interleave_2): Likewise for local "seq".
2049 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2051         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2052         param 1 "insn" from rtx to rtx_insn *.
2053         (ix86_use_lea_for_mov): Likewise.
2054         (ix86_avoid_lea_for_addr): Likewise.
2055         (ix86_split_lea_for_addr): Likewise.
2056         (ix86_lea_for_add_ok): Likewise.
2057         (ix86_output_call_insn): Likewise.
2059         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2060         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2061         (ix86_output_function_epilogue): Likewise for locals "insn",
2062         "deleted_debug_label".
2063         (legitimize_tls_address): Likewise for local "insn".
2064         (get_some_local_dynamic_name): Likewise.
2065         (increase_distance): Likewise for params "prev", "next".
2066         (distance_non_agu_define_in_bb): Likewise for params "insn",
2067         "start" and locals "prev", "next".
2068         (distance_non_agu_define): Likewise for param "insn".
2069         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2070         locals "next", "prev".
2071         (distance_agu_use): Likewise for param "insn".
2072         (ix86_lea_outperforms): Likewise.
2073         (ix86_ok_to_clobber_flags): Likewise.
2074         (ix86_avoid_lea_for_add): Likewise.
2075         (ix86_use_lea_for_mov): Likewise.
2076         (ix86_avoid_lea_for_addr): Likewise.
2077         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2078         (ix86_split_lea_for_addr): Likewise for param "insn".
2079         (ix86_lea_for_add_ok): Likewise for param "insn".
2080         (ix86_expand_carry_flag_compare): Likewise for local
2081         "compare_seq".
2082         (ix86_expand_int_movcc): Likewise.
2083         (ix86_output_call_insn): Likewise for param "insn".
2084         (ix86_output_call_insn): Likewise for local "i".
2085         (x86_output_mi_thunk): Introduce local "insn", using it in place
2086         of "tmp" when dealing with insns.
2087         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2088         "start".
2089         (ix86_pad_returns): Likewise for locals "ret", "prev".
2090         (ix86_count_insn_bb): Likewise for local "insn".
2091         (ix86_pad_short_function): Likewise for locals "ret", "insn".
2092         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2093         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2094         (expand_vec_perm_interleave2): Likewise for local "seq".
2095         (expand_vec_perm_vperm2f128_vblend): Likewise.
2096         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
2097         call to for_each_rtx with for_each_rtx_in_insn.
2099 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2101         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2102         "label" from rtx to rtx_code_label *.
2103         (ix86_expand_prologue): Likewise.
2104         (ix86_expand_split_stack_prologue): Likewise for locals "label",
2105         "varargs_label".
2106         (ix86_split_idivmod): Likewise for locals "end_label" and
2107         "qimode_label".
2108         (ix86_expand_branch): Likewise for local "label2".
2109         (ix86_expand_aligntest): Likewise for return type and local "label".
2110         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2111         "top_label".
2112         (expand_movmem_epilogue): Likewise for the various locals named
2113         "label".
2114         (expand_setmem_epilogue): Likewise.
2115         (expand_small_movmem_or_setmem): Likewise for local "label".
2116         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2117         Strengthen param "done_label" from rtx * to rtx_code_label **.
2118         Strengthen locals "loop_label" and "label" from rtx to
2119         rtx_code_label *.
2120         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2121         Likewise for locals "loop_label", "label".
2122         (ix86_expand_set_or_movmem): Likewise for locals "label",
2123         "jump_around_label", "hot_label".
2124         (ix86_expand_strlensi_unroll_1): Likewise for locals
2125         "align_2_label", align_3_label", "align_4_label", "end_0_label",
2126         "end_2_label".
2127         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2128         (void ix86_emit_i387_log1p): Likewise for locals "label1",
2129         "label2", "jump_label".
2130         (ix86_expand_sse_compare_and_jump): Likewise for return type and
2131         local "label".
2132         (ix86_expand_lfloorceil): Likewise for local "label".
2133         (ix86_expand_rint): Likewise.
2134         (ix86_expand_floorceildf_32): Likewise.
2135         (ix86_expand_floorceil): Likewise.
2136         (ix86_expand_rounddf_32): Likewise.
2137         (ix86_expand_trunc): Likewise.
2138         (ix86_expand_truncdf_32): Likewise.
2139         (ix86_expand_round): Likewise.
2141 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2143         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2144         first param from rtx to rtx_insn *.
2145         (h8300_insn_length_from_table): Likewise.
2146         * config/h8300/h8300.c (F): Likewise for return type and param
2147         "x".
2148         (Fpa): Add a checked cast to rtx_insn *.
2149         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2150         rtx_insn *.
2151         (final_prescan_insn): Likewise for param "insn".
2152         (h8300_binary_length): Likewise.
2153         (h8300_insn_length_from_table): Likewise.
2155 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2157         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2158         Strengthen first param "insn" from rtx to rtx_insn *.
2160         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2161         Likewise.
2162         (frame_insn): Likewise for return type.  Introduce local "insn"
2163         for use in place of local "x" for use as an rtx_insn *.
2164         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2165         (epiphany_expand_prologue): Likewise for local "insn".
2166         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2167         * config/epiphany/resolve-sw-modes.c
2168         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2169         "seq".
2171 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2173         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2174         param from rtx to rtx_insn *.
2175         (c6x_final_prescan_insn): Likewise for first param.
2177         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2178         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2179         (c6x_expand_compare): Strengthen local "insns" from rtx to
2180         rtx_insn *.
2181         (c6x_get_unit_specifier): Likewise for param "insn".
2182         (c6x_print_unit_specifier_field): Likewise.
2183         (c6x_final_prescan_insn): Likewise.
2184         (emit_add_sp_const): Likewise for local "insn".
2185         (c6x_expand_prologue): Likewise.
2187 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2189         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2190         param 1 from rtx to rtx_insn *.
2191         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2192         the various locals named "insn".
2193         (expand_epilogue_reg_restore): Likewise.
2194         (frame_related_constant_load): Likewise.
2195         (add_to_reg): Likewise.
2196         (emit_link_insn): Likewise.
2197         (do_link): Likewise.
2198         (expand_interrupt_handler_prologue): Likewise.
2199         (branch_dest): Likewise for param "branch".
2200         (asm_conditional_branch): Likewise for param "insn".
2201         (gen_one_bundle): Likewise for elements of param "slot" and local
2202         "t".
2203         (bfin_gen_bundles): Likewise for locals "insn", "next" and
2204         elements of local "slot".
2205         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2206         "queue", "next_queue", "prev".
2207         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2208         (add_sched_insns_for_speculation): Likewise for local "insn".
2210 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2212         * config/avr/avr-protos.h (output_movqi): Strengthen first param
2213         from rtx to rtx_insn *.
2214         (output_movhi): Likewise.
2215         (output_movsisf): Likewise.
2216         (avr_out_tstsi): Likewise.
2217         (avr_out_tsthi): Likewise.
2218         (avr_out_tstpsi): Likewise.
2219         (avr_out_compare): Likewise.
2220         (avr_out_compare64): Likewise.
2221         (avr_out_movpsi): Likewise.
2222         (ashlqi3_out): Likewise.
2223         (ashlhi3_out): Likewise.
2224         (ashlsi3_out): Likewise.
2225         (ashrqi3_out): Likewise.
2226         (ashrhi3_out): Likewise.
2227         (ashrsi3_out): Likewise.
2228         (lshrqi3_out): Likewise.
2229         (lshrhi3_out): Likewise.
2230         (lshrsi3_out): Likewise.
2231         (avr_out_ashlpsi3): Likewise.
2232         (avr_out_ashrpsi3): Likewise.
2233         (avr_out_lshrpsi3): Likewise.
2234         (avr_out_fract): Likewise.
2235         (avr_out_sbxx_branch): Likewise.
2236         (avr_out_round): Likewise.
2237         (avr_out_xload): Likewise.
2238         (avr_out_movmem): Likewise.
2239         (adjust_insn_length): Likewise.
2240         (avr_out_lpm): Likewise.
2241         (reg_unused_after): Likewise.
2242         (_reg_unused_after): Likewise.
2243         (avr_jump_mode): Likewise for second param.
2244         (jump_over_one_insn): Likewise for first param.
2245         (avr_final_prescan_insn): Likewise.
2246         (out_shift_with_cnt): Likewise for second param.
2248         * config/avr/avr.c (get_sequence_length): Likewise for param
2249         "insns" and local "insn".
2250         (emit_push_byte): Likewise for local "insn".
2251         (emit_push_sfr): Likewise.
2252         (avr_prologue_setup_frame): Likewise for locals "insn",
2253         "fp_plus_insns", "sp_plus_insns".
2254         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2255         "sp_plus_insns".
2256         (avr_jump_mode): Likewise for param "insn".
2257         (avr_final_prescan_insn): Likewise.
2258         (avr_find_unused_d_reg): Likewise.
2259         (avr_out_lpm_no_lpmx): Likewise.
2260         (avr_out_lpm): Likewise.
2261         (avr_out_xload): Likewise.
2262         (output_movqi): Likewise.
2263         (output_movhi): Likewise.
2264         (out_movqi_r_mr): Likewise.
2265         (out_movhi_r_mr): Likewise.
2266         (out_movsi_r_mr): Likewise.
2267         (out_movsi_mr_r): Likewise.
2268         (output_movsisf): Likewise.
2269         (avr_out_load_psi): Likewise.
2270         (avr_out_store_psi): Likewise.
2271         (avr_out_movpsi): Likewise.
2272         (out_movqi_mr_r): Likewise.
2273         (avr_out_movhi_mr_r_xmega): Likewise.
2274         (out_movhi_mr_r): Likewise.
2275         (compare_condition): Likewise for param "insn" and local "next".
2276         (compare_sign_p): Likewise for param "insn".
2277         (compare_diff_p): Likewise.
2278         (compare_eq_p): Likewise.
2279         (avr_out_compare): Likewise.
2280         (avr_out_compare64): Likewise.
2281         (avr_out_tsthi): Likewise.
2282         (avr_out_tstpsi): Likewise.
2283         (avr_out_tstsi): Likewise.
2284         (out_shift_with_cnt): Likewise.
2285         (ashlqi3_out): Likewise.
2286         (ashlhi3_out): Likewise.
2287         (avr_out_ashlpsi3): Likewise.
2288         (ashlsi3_out): Likewise.
2289         (ashrqi3_out): Likewise.
2290         (ashrhi3_out): Likewise.
2291         (avr_out_ashrpsi3): Likewise.
2292         (ashrsi3_out): Likewise.
2293         (lshrqi3_out): Likewise.
2294         (lshrhi3_out): Likewise.
2295         (avr_out_lshrpsi3): Likewise.
2296         (lshrsi3_out): Likewise.
2297         (avr_out_fract): Likewise.
2298         (avr_out_round): Likewise.
2299         (avr_adjust_insn_length): Likewise.
2300         (reg_unused_after): Likewise.
2301         (_reg_unused_after): Likewise.
2302         (avr_compare_pattern): Likewise.
2303         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2304         and locals "branch1", "branch2", "insn2", "jump".
2305         (avr_reorg): Likewise for local "insn".
2306         (avr_2word_insn_p): Likewise for param "insn".
2307         (jump_over_one_insn_p): Likewise.
2308         (avr_out_sbxx_branch): Likewise.
2309         (avr_out_movmem): Likewise.
2311 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2313         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2314         param from rtx to rtx_insn *.
2315         (thumb1_final_prescan_insn): Likewise.
2316         (thumb2_final_prescan_insn): Likewise.
2318         * config/arm/arm.c (emit_set_insn): Strengthen return type from
2319         rtx to rtx_insn *.
2320         (struct minipool_node): Likewise for field "insn".
2321         (dump_minipool): Likewise for param "scan".
2322         (create_fix_barrier): Likewise for local "from".  Strengthen local
2323         "label" from rtx to rtx_code_label *.
2324         (push_minipool_barrier): Strengthen param "insn" from rtx to
2325         rtx_insn *.
2326         (push_minipool_fix): Likewise.
2327         (note_invalid_constants): Likewise.
2328         (thumb2_reorg): Likewise for local "insn".
2329         (arm_reorg): Likewise.
2330         (thumb2_final_prescan_insn): Likewise for param
2331         "insn" and local "first_insn".
2332         (arm_final_prescan_insn): Likewise for param "insn" and locals
2333         "start_insn", "this_insn".
2334         (arm_debugger_arg_offset): Likewise for param "insn".
2335         (thumb1_emit_multi_reg_push): Likewise for return type and local
2336         "insn".
2337         (thumb1_final_prescan_insn): Likewise for param "insn".
2338         (thumb_far_jump_used_p): Likewise for local "insn".
2339         (thumb1_expand_prologue): Likewise.
2340         (arm_expand_epilogue_apcs_frame): Likewise.
2341         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2342         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2343         from rtx to rtx_code_label *.
2344         (arm_split_atomic_op): Likewise for local "label".
2345         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2347 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2349         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2350         first param from rtx to rtx_insn *.
2351         (arc_verify_short): Likewise.
2352         (arc_short_long): Likewise.
2353         (arc_need_delay): Likewise.
2355         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2356         "target_insn".
2357         (arc_ccfsm_advance): Likewise for param "insn" and locals
2358         "start_insn", "this_insn".
2359         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2360         (arc_ccfsm_post_advance): Likewise for param "insn".
2361         (arc_next_active_insn): Likewise for return type and param "insn".
2362         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
2363         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2364         (output_short_suffix): Likewise for local "insn".
2365         (arc_final_prescan_insn): Likewise for param "insn".  Remove
2366         now-redundant checked cast.
2367         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2368         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2369         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
2370         for use where lc_set became an insn.
2371         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2372         rtx to rtx_insn *.
2373         (arc_get_insn_variants): Likewise for local "prev".
2374         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2375         "next".
2376         (arc_predicate_delay_insns): Likewise for local "insn".
2377         (arc_pad_return): Likewise for local "prev".  For now, add a
2378         checked cast when extracting the insn from "final_sequence".
2379         (arc_short_long): Likewise for param "insn".
2380         (arc_need_delay): Likewise for param "insn" and local "next".
2381         (arc_label_align): Likewise for locals "prev", "next".
2383 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2385         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2386         "insn" from rtx to rtx_insn *.
2387         (alpha_gp_save_rtx): Likewise for local "seq".
2388         (alpha_instantiate_decls): Likewise for local "top".
2389         (get_some_local_dynamic_name): Likewise for local "insn".
2390         (alpha_does_function_need_gp): Likewise.
2391         (set_frame_related_p): Likewise for return type and for locals
2392         "seq" and "insn".
2393         (emit_frame_store_1): Likewise for local "insn".
2394         (alpha_expand_prologue): Likewise for locals "insn", "seq".
2395         (alpha_end_function): Likewise for local "insn".
2396         (alpha_output_mi_thunk_osf): Likewise.
2397         (alphaev4_insn_pipe): Likewise for param "insn".
2398         (alphaev5_insn_pipe): Likewise.
2399         (alphaev4_next_group): Likewise for return type and param 1
2400         "insn".
2401         (alphaev5_next_group): Likewise.
2402         (alpha_align_insns_1): Likewise for return type and param 1 of
2403         callback param "next_group", and for locals "i", "next", "prev",
2404         "where", "where2", "insn".
2406 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
2408         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2409         rather than modifying the stmt.
2411 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2413         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2414         cgraph_state conversion.
2416 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
2418         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2419         Strengthen local "insns" from rtx to rtx_insn *.
2420         (aarch64_set_frame_expr): Likewise for local "insn".
2421         (aarch64_save_or_restore_fprs): Likewise.
2422         (aarch64_save_or_restore_callee_save_registers): Likewise.
2423         (aarch64_expand_prologue): Likewise.
2424         (aarch64_expand_epilogue): Likewise.
2425         (aarch64_output_mi_thunk): Likewise.
2426         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2427         "label2" from rtx to rtx_code_label *.
2428         (aarch64_split_atomic_op): Likewise for local "label".
2430 2014-08-25  Martin Liska  <mliska@suse.cz>
2432         * cgraph.h (symtab_node):
2433         (bool needed_p (void)): created from decide_is_symbol_needed
2434         (bool referred_to_p (void)): created from referred_to_p
2435         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2436         * cgraph.h (cgraph_node):
2437         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2438         (void expand (void)): created from expand_function
2439         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2440         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2441         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2442         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2443         * cgraph.h (varpool_node):
2444         (static void add (tree decl): created from varpool_add_new_variable
2445         * cgraph.h (cgraph_edge):
2446         void remove (void);
2447         (void remove_caller (void)): created from cgraph_edge_remove_caller
2448         (void remove_callee (void)): created from cgraph_edge_remove_callee
2449         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2450           created from cgraph_set_call_stmt
2451         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2452         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2453         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2454           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2455         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2456           created from cgraph_speculative_call_info
2457         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2458           int freq_scale, bool update_original)): created from cgraph_clone_edge
2459         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2460         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2461         (bool recursive_p (void)): created from cgraph_edge_recursive_p
2462         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2463         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2464         (static void rebuild_references (void)): created from cgraph_rebuild_references
2465         * cgraph.h (symbol_table):
2466         (create_reference): renamed from add_reference
2467         (maybe_create_reference): renamed from maybe_add_reference
2468         (void register_symbol (symtab_node *node)): new function
2469         (void clear_asm_symbols (void)): new function
2470         (void unregister (symtab_node *node)): new function
2471         (void release_symbol (cgraph_node *node, int uid)): new function
2472         (cgraph_node * allocate_cgraph_symbol (void)): new function
2473         (void initialize (void)): created from cgraph_init
2474         (symtab_node *first_symbol (void)):new function
2475         (asm_node *first_asm_symbol (void)):new function
2476         (symtab_node *first_defined_symbol (void)):new function
2477         (varpool_node *first_variable (void)):new function
2478         (varpool_node *next_variable (varpool_node *node)):new function
2479         (varpool_node *first_static_initializer (void)):new function
2480         (varpool_node *next_static_initializer (varpool_node *node)):new function
2481         (varpool_node *first_defined_variable (void)):new function
2482         (varpool_node *next_defined_variable (varpool_node *node)):new function
2483         (cgraph_node *first_defined_function (void)):new function
2484         (cgraph_node *next_defined_function (cgraph_node *node)):new function
2485         (cgraph_node *first_function (void)):new function
2486         (cgraph_node *next_function (cgraph_node *node)):new function
2487         (cgraph_node *first_function_with_gimple_body (void)):new function
2488         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2489         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2490           created from symtab_remove_unreachable_nodes
2491         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2492         (void process_new_functions (void)): created from cgraph_process_new_functions
2493         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2494         (bool output_variables (void)): created from varpool_node::output_variables
2495         (void output_asm_statements (void)): created from output_asm_statements
2496         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2497         (void compile (void)): created from compile
2498         (void output_weakrefs (void)): created from output_weakrefs
2499         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2500         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2501           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2502         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2503         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2504           created from cgraph_next_function_with_gimple_body
2505         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2506           created from cgraph_remove_edge_removal_hook
2507         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2508           created from cgraph_add_node_removal_hook
2509         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2510           created from cgraph_remove_node_removal_hook
2511         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2512           created from varpool_add_node_removal_hook
2513         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2514           created from varpool_remove_node_removal_hook
2515         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2516           created from cgraph_add_function_insertion_hook
2517         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2518           created from cgraph_remove_function_insertion_hook
2519         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2520           created from varpool_add_variable_insertion_hook
2521         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2522           created from varpool_remove_variable_insertion_hook
2523         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2524           created from cgraph_add_edge_duplication_hook
2525         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2526           created from cgraph_remove_edge_duplication_hook
2527         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2528           created from cgraph_add_node_duplication_hook
2529         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2530           created from cgraph_remove_node_duplication_hook
2531         (void call_edge_removal_hooks (cgraph_edge *e)):
2532           created from cgraph_call_edge_removal_hooks
2533         (void call_cgraph_insertion_hooks (cgraph_node *node)):
2534           created from call_function_insertion_hooks 
2535         (void call_cgraph_removal_hooks (cgraph_node *node)):
2536           created from cgraph_call_node_removal_hooks 
2537         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2538           created from cgraph_node::call_duplication_hooks 
2539         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2540           created from cgraph_call_edge_duplication_hooks
2541         (void call_varpool_removal_hooks (varpool_node *node)):
2542           created from varpool_call_node_removal_hooks
2543         (void call_varpool_insertion_hooks (varpool_node *node)):
2544           created from varpool_call_variable_insertion_hooks
2545         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2546           created from insert_to_assembler_name_hash
2547         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2548           created from unlink_from_assembler_name_hash
2549         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2550           created from symtab_prevail_in_asm_name_hash
2551         (void symtab_initialize_asm_name_hash (void)):
2552           created from symtab_initialize_asm_name_hash
2553         (void change_decl_assembler_name (tree decl, tree name)):
2554           created from change_decl_assembler_name
2555         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
2556         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
2557           created from decl_assembler_name_hash
2558         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
2559           created from decl_assembler_name_equal
2560         (static hashval_t hash_node_by_assembler_name (const void *p)):
2561           created from hash_node_by_assembler_name
2562         (static int eq_assembler_name (const void *p1, const void *p2)):
2563           created from eq_assembler_name
2565 2014-08-25  Marek Polacek  <polacek@redhat.com>
2567         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
2569 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
2571         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
2572         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
2573         SWI1248_AVX512BW mode iterator.
2575 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
2577         PR target/62111
2578         * config/sh/predicates.md (general_extend_operand): Disable
2579         TRUNCATE before reload completes.
2581 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
2583         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
2585 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
2587         PR target/61996
2588         * config/sh/sh.opt (musermode): Allow negative form.
2589         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
2590         targets that don't support it.
2591         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
2592         Document -mno-usermode option.
2594 2014-08-24  Kito Cheng  <kito@0xlab.org>
2596         * system.h (CALLER_SAVE_PROFITABLE): Poison.
2597         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
2598         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
2599         * doc/tm.texi: Regenerate.
2601 2014-08-24  Kito Cheng  <kito@0xlab.org>
2603         * ira.c: Fix typo in comment.
2605 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
2607         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
2608         Deprecate c++1y. Change language to reflect greater confidence in C++14.
2610 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
2612         PR target/62038
2613         * config/pa/pa.c (pa_output_function_epilogue): Don't set
2614         last_address when the current function is a thunk.
2615         (pa_asm_output_mi_thunk): When we don't have named sections or they
2616         are not being used, check that thunk can reach the stub table with a
2617         short branch.
2619 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
2621         * web.c (union_match_dups): Strengthen param "insn" from rtx to
2622         rtx_insn *.
2623         (pass_web::execute): Likewise for local "insn".
2625 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
2627         * var-tracking.c (struct micro_operation_def): Strengthen field
2628         "insn" from rtx to rtx_insn *.
2629         (struct emit_note_data_def): Likewise.
2630         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
2631         (vt_stack_adjustments): Likewise for local "insn".
2632         (adjust_insn): Likewise for param "insn".
2633         (val_store): Likewise.
2634         (val_resolve): Likewise.
2635         (struct count_use_info): Likewise for field "insn".
2636         (log_op_type): Likewise for param "insn".
2637         (reverse_op): Likewise.
2638         (prepare_call_arguments): Likewise.
2639         (add_with_sets):  The initial param takes an insn, but we can't
2640         yet strengthen it from rtx to rtx_insn * since it's used as a
2641         cselib_record_sets_hook callback.  For now rename initial param
2642         from "insn" to "uncast_insn", and introduce a local "insn" of
2643         the stronger rtx_insn * type, with a checked cast.
2644         (compute_bb_dataflow): Strengthen local "insn" from rtx to
2645         rtx_insn *.
2646         (emit_note_insn_var_location): Likewise.
2647         (emit_notes_for_changes): Likewise.
2648         (emit_notes_for_differences): Likewise.
2649         (next_non_note_insn_var_location): Likewise for return type and
2650         for param "insn".
2651         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
2652         (vt_initialize): Likewise for local "insn".
2653         (delete_debug_insns): Likewise for locals "insn" and "next".
2655 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
2657         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
2658         rtx_insn *.
2659         (mark_constant_pool): Likewise for local "insn".
2661 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
2663         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
2664         rtx to rtx_insn *.
2665         (dead_debug_promote_uses): Likewise.
2666         (dead_debug_insert_temp): Likewise.
2668 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
2670         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
2671         from const_rtx to const rtx_insn *.
2672         (store_killed_after): Likewise.  Strengthen locals "last", "act"
2673         from rtx to rtx_insn *.
2674         (store_killed_before): Strengthen param "insn" from const_rtx to
2675         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
2676         (find_moveable_store): Strengthen param "insn" from rtx to
2677         rtx_insn *.
2678         (compute_store_table): Likewise for local "insn".
2679         (insert_insn_start_basic_block): Likewise for param "insn" and
2680         locals "prev", "before", "insn".
2681         (insert_store): For now, add a checked cast to rtx_insn * on the
2682         result of gen_move_insn.
2683         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
2684         to rtx_insn *.
2685         (replace_store_insn): Likewise.  For now, add a checked cast to
2686         rtx_insn * on the result of gen_move_insn.
2688 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
2690         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
2691         rtx_insn *.
2692         (expand_sjlj_dispatch_table): Likewise.
2694 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
2696         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
2697         "insn" from rtx to rtx_insn *.
2699 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
2701         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
2702         "insn" from rtx to rtx_insn *.
2703         (dup_block_and_redirect): Likewise for param 3 "before".
2705         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
2706         from rtx to rtx_insn *.
2707         (move_insn_for_shrink_wrap): Likewise.
2708         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
2709         (dup_block_and_redirect): Likewise for param "before" and local
2710         "insn".
2711         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
2712         "end".
2713         (convert_to_simple_return): Likewise for local "start".
2715         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
2716         Strengthen local "insn" from rtx to rtx_insn *, for use when
2717         invoking requires_stack_frame_p.
2719 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
2721         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
2722         rtx_insn *.
2723         (speculate_expr): Likewise for locals "orig_insn_rtx",
2724         "spec_insn_rtx".
2725         (eq_transformed_insns): Likewise for locals "i1", "i2".
2726         (check_for_new_jump): Likewise for return type and local "end".
2727         (find_new_jump): Likewise for return type and local "jump".
2728         (sel_split_edge): Likewise for local "jump".
2729         (sel_create_recovery_block): Likewise.
2730         (sel_redirect_edge_and_branch_force): Likewise.
2731         (sel_redirect_edge_and_branch): Likewise.
2733 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
2735         * sel-sched.c (substitute_reg_in_expr): Strengthen local
2736         "new_insn" from rtx to rtx_insn *.
2737         (create_insn_rtx_with_rhs): Likewise for return type and for local
2738         "insn_rtx".
2739         (create_insn_rtx_with_lhs): Likewise.
2740         (create_speculation_check): Likewise for local "insn_rtx".
2741         (implicit_clobber_conflict_p): Likewise for local "insn".
2742         (get_expr_cost): Likewise.
2743         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
2744         (move_cond_jump): Likewise for locals "next", "prev", "link",
2745         "head", "from", "to".
2747 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
2749         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
2750         "next" from rtx to rtx_insn *.
2751         (find_conditional_protection): Likewise for local "next".
2752         (is_conditionally_protected): Likewise for local "insn1".
2753         (is_pfree): Likewise for locals "insn1", "insn2".
2755 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
2757         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
2758         from rtx to rtx_insn *.
2760         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
2761         locals "insn1", "insn2" from rtx to rtx_insn *.
2762         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
2763         locals "insn", "prev", "last_jump", "next_tail".
2764         (schedule_ebb): Likewise for params "head", "tail".
2765         (schedule_ebbs): Likewise for locals "tail", "head".
2767         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
2768         to rtx_insn on "last_insn" in one of the invocations of
2769         schedule_ebb.
2771 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
2773         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
2774         "elem", "insn" from rtx to rtx_insn *.
2775         (change_spec_dep_to_hard): Likewise.
2776         (get_back_and_forw_lists): Likewise for local "con".
2777         (sd_add_dep): Likewise for locals "elem", "insn".
2778         (sd_resolve_dep): Likewise for locals "pro", "con".
2779         (sd_unresolve_dep): Likewise.
2780         (sd_delete_dep): Likewise.
2781         (chain_to_prev_insn): Likewise for local "pro".
2782         (find_inc): Likewise for locals "pro", "con".
2784 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
2786         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
2787         to rtx_insn *.
2788         (reg_set_between_p): Strengthen local "insn" from const_rtx to
2789         const rtx_insn *.
2790         (modified_between_p): Strengthen local "insn" from rtx to
2791         rtx_insn *.
2792         (remove_reg_equal_equiv_notes_for_regno): Likewise.
2793         (keep_with_call_p): Strengthen local "i2" from const_rtx to
2794         const rtx_insn *.
2796 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
2798         * resource.c (next_insn_no_annul): Strengthen local "next" from
2799         rtx to rtx_insn *.
2800         (mark_referenced_resources): Likewise for local "insn".
2802 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
2804         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
2805         to rtx_insn *.
2806         (find_reloads): Likewise for param 1.
2807         (subst_reloads): Likewise for sole param.
2808         (find_equiv_reg): Likwise for param 2.
2809         (regno_clobbered_p): Likwise for param 2.
2810         (reload): Likewise for param 1.
2812         * caller-save.c (save_call_clobbered_regs): Strengthen local
2813         "insn" from rtx to rtx_insn *.
2814         (insert_one_insn): Likewise for local "insn".
2816         * reload.c (this_insn): Likewise for this global.
2817         (find_reloads): Likewise for param "insn".
2818         (find_reloads_toplev): Likewise.
2819         (find_reloads_address): Likewise.
2820         (subst_reg_equivs): Likewise.
2821         (update_auto_inc_notes): Likewise.
2822         (find_reloads_address_1): Likewise.
2823         (find_reloads_subreg_address): Likewise.
2824         (subst_reloads): Likewise.
2825         (find_equiv_reg): Likewise, also for local "p".
2826         (regno_clobbered_p): Likewise for param "insn".
2828         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
2829         array.
2830         (spill_reg_store): Likewise for the elements of this array.
2831         (remove_init_insns): Likewise for local "equiv_insn".
2832         (will_delete_init_insn_p): Likewise for param "insn".
2833         (reload): Likewise for param ""first" and local "insn".
2834         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
2835         rtx_insn *.
2836         (calculate_elim_costs_all_insns): Likewise.
2837         (delete_caller_save_insns): Likewise.
2838         (spill_failure): Likewise for param "insn".
2839         (delete_dead_insn): Likewise.
2840         (set_label_offsets): Likewise.
2841         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
2842         "prev_insn".
2843         (elimination_costs_in_insn): Likewise for param "insn".
2844         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
2845         when referring to an insn.
2846         (set_initial_label_offsets): Likewise.
2847         (set_offsets_for_label): Strengthen param "insn" from rtx to
2848         rtx_insn *.
2849         (init_eliminable_invariants): Likewise for param "first" and local
2850         "insn".
2851         (fixup_eh_region_note): Likewise for param "insn".
2852         (reload_as_needed): Likewise for locals "prev", "insn",
2853         "old_next", "old_prev", "next".
2854         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
2855         "last".
2856         (reload_inheritance_insn): Strengthen elements of this array from
2857         rtx to rtx_insn *.
2858         (failed_reload): Likewise for param "insn".
2859         (choose_reload_regs): Likewise for local "insn".  Replace use of
2860         NULL_RTX with NULL when referring to an insn.
2861         (input_reload_insns): Strengthen elements of this array from rtx
2862         to rtx_insn *.
2863         (other_input_address_reload_insns): Likewise for this global.
2864         (other_input_reload_insns): Likewise for this global.
2865         (input_address_reload_insns): Likwise for the elements of this
2866         array.
2867         (inpaddr_address_reload_insns): Likwise for the elements of this
2868         array.
2869         (output_reload_insns): Likewise for the elements of this array.
2870         (output_address_reload_insns): Likewise for the elements of this
2871         array.
2872         (outaddr_address_reload_insns): Likewise for the elements of this
2873         array.
2874         (operand_reload_insns): Likewise for this global.
2875         (other_operand_reload_insns): Likewise for this global.
2876         (other_output_reload_insns): Likewise for the elements of this
2877         array.
2878         (new_spill_reg_store): Likewise for the elements of this
2879         array.
2880         (emit_input_reload_insns): Likewise for locals "insn", "temp".
2881         Strengthen local "where" from rtx * to rtx_insn **.
2882         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
2883         from rtx to rtx_insn *.
2884         (do_input_reload): Likewise for local "insn".
2885         (do_output_reload): Likewise for local "insn".
2886         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
2887         (emit_insn_if_valid_for_reload): Likewise for return type and local
2888         "last".  Add checked cast to rtx_insn when returning "insn" since
2889         this has been through emit_insn.
2890         (gen_reload): Strengthen return type and locals "last", "insn", "set"
2891         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
2892         returning "insn" since it's been through
2893         emit_insn_if_valid_for_reload at this point.
2894         (delete_output_reload): Strengthen param "insn" and locals
2895         "output_reload_insn", "i2" from rtx to rtx_insn *.
2896         (delete_address_reloads): Likewise for params "dead_insn",
2897         "current_insn" and locals "prev", "next".
2898         (delete_address_reloads_1): Likewise for params "dead_insn",
2899         "current_insn" and locals "prev", "i2".
2900         (inc_for_reload): Likewise for locals "last", "add_insn".
2901         (add_auto_inc_notes): Strengthen param "insn" from rtx to
2902         rtx_insn *.
2904         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
2905         param of this duplicate of the prototype from reload.h
2907 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
2909         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
2910         rtx to rtx_insn *.
2911         (regstat_bb_compute_calls_crossed): Likewise.
2913 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
2915         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
2916         to rtx_insn *.
2917         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
2918         with an insn.
2919         (regrename_analyze): Strengthen local "insn" from rtx to
2920         rtx_insn *.
2921         (scan_rtx_reg): Likewise for param "insn".
2922         (scan_rtx_address): Likewise.
2923         (scan_rtx): Likewise.
2924         (restore_operands): Likewise.
2925         (record_out_operands): Likewise.
2926         (build_def_use): Likewise for local "insn".  Replace use of
2927         NULL_RTX with NULL when dealing with an insn.
2929 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
2931         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
2932         * reginfo.c (reg_scan): Likewise, also for local "insn".
2933         (reg_scan_mark_refs): Likewise for param "insn".
2934         (init_subregs_of_mode): Likewise for local "insn".
2936 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
2938         * regcprop.c (struct queued_debug_insn_change): Strengthen field
2939         "insn" from rtx to rtx_insn *.
2940         (replace_oldest_value_reg): Likewise for param "insn".
2941         (replace_oldest_value_addr): Likewise.
2942         (replace_oldest_value_mem): Likewise.
2943         (apply_debug_insn_changes): Likewise for local "last_insn".
2944         (copyprop_hardreg_forward_1): Likewise for local "insn".
2946 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
2948         * reg-stack.c (next_flags_user): Strengthen return type and param
2949         "insn" from rtx to rtx_insn *.
2950         (straighten_stack): Likewise for param "insn".
2951         (check_asm_stack_operands): Likewise.
2952         (remove_regno_note): Likewise.
2953         (emit_pop_insn): Likewise for return type, param "insn", local
2954         "pop_insn".
2955         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
2956         "limit" from rtx to rtx_insn *.
2957         (swap_to_top): Likewise for param "insn".
2958         (move_for_stack_reg): Likewise.
2959         (move_nan_for_stack_reg): Likewise.
2960         (swap_rtx_condition): Likewise.
2961         (compare_for_stack_reg): Likewise.
2962         (subst_all_stack_regs_in_debug_insn): Likewise.
2963         (subst_stack_regs_pat): Likewise, and local "insn2".
2964         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
2965         rtx_insn *.
2966         (subst_stack_regs): Likewise.
2967         (change_stack): Likewise.
2968         (convert_regs_1): Likewise for locals "insn", "next".
2970 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
2972         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
2973         rtx_insn *.
2974         (combine_set_extension): Likewise for param "curr_insn".
2975         (transform_ifelse): Likewise for param "def_insn".
2976         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
2977         from vec<rtx> * to vec<rtx_insn *> *.
2978         (is_cond_copy_insn): Likewise for param "insn".
2979         (struct ext_state): Strengthen the four vec fields from vec<rtx>
2980         to vec<rtx_insn *>.
2981         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
2982         local "def_insn" from rtx to rtx_insn *.
2983         (get_sub_rtx): Likewise for param "def_insn".
2984         (merge_def_and_ext): Likewise.
2985         (combine_reaching_defs): Likewise.
2986         (add_removable_extension): Likewise for param "insn".
2987         (find_removable_extensions): Likewise for local "insn".
2988         (find_and_remove_re): Likewise for locals "curr_insn" and
2989         "def_insn".  Strengthen locals "reinsn_del_list" and
2990         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
2992 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
2994         * recog.c (split_insn): Strengthen param "insn" and locals
2995         "first", "last" from rtx to rtx_insn *.
2996         (split_all_insns): Likewise for locals "insn", "next".
2997         (split_all_insns_noflow): Likewise.
2999 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3001         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3002         const rtx_insn *.
3003         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3004         (debug_rtx_find): Likewise for param 1 "x".
3006         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3007         const_rtx to const rtx_insn *.  Likewise for local "insn".
3008         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3009         (debug_rtx_find): Likewise for param 1 "x".
3010         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3011         from const_rtx to const rtx_insn * within the appropriate cases of
3012         the switch statement.
3014         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3015         Strengthen local "insns" from rtx to rtx_insn * since this is
3016         passed to a call to debug_rtx_list.
3018 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3020         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3021         to rtx_insn *.
3023         * function.c (stack_protect_epilogue): Add checked cast to
3024         rtx_insn for now when invoking predict_insn_def.
3026         * predict.c (predict_insn): Strengthen param "insn" from rtx to
3027         rtx_insn *.
3028         (predict_insn_def): Likewise.
3029         (rtl_predict_edge): Likewise for local "last_insn".
3030         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3031         const rtx_insn *.
3032         (combine_predictions_for_insn): Strengthen param "insn" from rtx
3033         to rtx_insn *.
3034         (bb_estimate_probability_locally): Likewise for local "last_insn".
3035         (expensive_function_p): Likewise for local "insn".
3037         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3038         local "jmp", since this is used when invoking predict_insn_def.
3040 2014-08-22  Marek Polacek  <polacek@redhat.com>
3042         PR c++/62199
3043         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3045 2014-08-22  Marek Polacek  <polacek@redhat.com>
3047         PR c/61271
3048         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3049         a comparison in parens.
3050         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3051         in parens.
3053 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3055         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3056         rtx_insn *.
3058         * cprop.c (fis_get_condition): Likewise.
3060         * postreload.c (reload_cse_regs): Likewise for param "first".
3061         (reload_cse_simplify): Likewise for param "insn".
3062         (reload_cse_regs_1): Likewise for local "insn".
3063         (reload_cse_simplify_set): Likewise for param "insn".
3064         (reload_cse_simplify_operands): Likewise.
3065         (struct reg_use): Likewise for field "insn".
3066         (reload_combine_purge_insn_uses): Likewise for param "insn".
3067         (fixup_debug_insns): Likewise for params "from", "to" and local
3068         "insn".
3069         (try_replace_in_use): Likewise for local "use_insn".
3070         (reload_combine_recognize_const_pattern): Likewise for param
3071         "insn" and locals "add_moved_after_insn", "use_insn".
3072         (reload_combine_recognize_pattern): Likewise for param "insn" and
3073         local "prev".
3074         (reload_combine): Likewise for locals "insn", "prev".
3075         (reload_combine_note_use): Likewise for param "insn".
3076         (move2add_use_add2_insn): Likewise.
3077         (move2add_use_add3_insn): Likewise.
3078         (reload_cse_move2add): Likewise, also for local "next".
3079         (move2add_note_store): Likewise for local "insn".
3081 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3083         * postreload-gcse.c (struct occr): Strengthen field "insn" from
3084         rtx to rtx_insn *.
3085         (struct unoccr): Likewise.
3086         (struct modifies_mem): Likewise.
3087         (alloc_mem): Likewise for local "insn".
3088         (insert_expr_in_table): Likewise for param "insn".
3089         (dump_expr_hash_table_entry): Likewise for local "insn".
3090         (oprs_unchanged_p): Likewise for param "insn".
3091         (load_killed_in_block_p): Likewise for local "setter".
3092         (record_last_reg_set_info): Likewise for param "insn".
3093         (record_last_reg_set_info_regno): Likewise.
3094         (record_last_mem_set_info): Likewise.
3095         (record_last_set_info): Likewise for local "last_set_insn".
3096         (record_opr_changes): Likewise for param "insn".
3097         (hash_scan_set): Likewise.
3098         (compute_hash_table): Likewise for local "insn".
3099         (get_avail_load_store_reg): Likewise for param "insn".
3100         (eliminate_partially_redundant_load): Likewise, also for locals
3101         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
3102         RTX for insns.
3103         (eliminate_partially_redundant_loads): Likewise for local "insn".
3105 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3107         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3108         rtx to rtx_insn *.
3109         (expand_binop): Likewise for locals "entry_last", "last", "insns"
3110         (expand_twoval_unop): Likewise for locals entry_last", "last".
3111         (expand_twoval_binop): Likewise.
3112         (expand_twoval_binop_libfunc): Likewise for local "insns".
3113         (widen_leading): Likewise for local "last".
3114         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
3115         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3116         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3117         (expand_parity): Likewise for locals "last" and "seq".
3118         (expand_ffs): Likewise for local "seq".  Strengthen local
3119         "nonzero_label" from rtx to rtx_code_label *.
3120         (expand_absneg_bit): Strengthen local "insns" from rtx to
3121         rtx_insn *.
3122         (expand_unop_direct): Likewise for local "last".
3123         (expand_unop): Likewise for locals "last", "insns".
3124         (expand_abs_nojump): Likewise for local "last".
3125         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3126         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3127         rtx_insn *.
3128         (expand_copysign_absneg): Strengthen local "label" from rtx to
3129         rtx_code_label *.
3130         (expand_copysign_bit): Strengthen local "insns" from rtx to
3131         rtx_insn *.
3132         (struct no_conflict_data): Likewise for fields "first", "insn".
3133         (emit_libcall_block_1): Likewise for param "insns" and locals
3134         "next", "last", "insn".
3135         (emit_libcall_block): For now, add a checked cast to rtx_insn *
3136         on "insns" when invoking emit_libcall_block_1.  Ultimately we
3137         want to strengthen insns itself.
3138         (prepare_cmp_insn): Strengthen local "last" from rtx to
3139         rtx_insn *.
3140         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3141         (prepare_float_lib_cmp): Likewise for local "insns".
3142         (emit_conditional_move): Likewise for local "last".
3143         (emit_conditional_add): Likewise.
3144         (have_sub2_insn): Likewise for local "seq".
3145         (expand_float): Likewise for local "insns".  Strengthen locals
3146         "label", "neglabel" from rtx to rtx_code_label *.
3147         (expand_fix): Likewise for locals "last", "insn", "insns" (to
3148         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3149         (expand_fixed_convert): Likewise for local "insns" (to
3150         rtx_insn *).
3151         (expand_sfix_optab): Likewise for local "last".
3152         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3153         to rtx_code_label *.
3154         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3155         from rtx to rtx_insn *.
3156         (expand_atomic_fetch_op): Likewise for local "insn".
3157         (maybe_legitimize_operand_same_code): Likewise for local "last".
3158         (maybe_legitimize_operands): Likewise.
3160 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3162         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3163         "insn" from rtx to rtx_insn *.
3164         (ps_rtl_insn): Likewise for return type.
3165         (doloop_register_get): Likewise for params "head", "tail" and
3166         locals "insn", "first_insn_not_to_check".
3167         (schedule_reg_move): Likewise for local "this_insn".
3168         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3169         of gen_move_insn for now.
3170         (reset_sched_times): Strengthen local "insn" from rtx to
3171         rtx_insn *.
3172         (permute_partial_schedule): Likewise.
3173         (duplicate_insns_of_cycles): Likewise for local "u_insn".
3174         (dump_insn_location): Likewise for param "insn".
3175         (loop_canon_p): Likewise for local "insn".
3176         (sms_schedule): Likewise.
3177         (print_partial_schedule): Likewise.
3178         (ps_has_conflicts): Likewise.
3180 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3182         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3183         "tailp" from rtx * to rtx_insn **.
3185         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3186         from rtx to rtx_insn *.
3187         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3188         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
3189         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3190         rtx to rtx_insn *.
3191         * modulo-sched.c (const_iteration_count): Strengthen return type
3192         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
3193         use of NULL_RTX with NULL when working with insns.
3194         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3195         to rtx_insn *.
3196         (sms_schedule): Likewise.
3197         * sched-rgn.c (init_ready_list): Likewise, also for locals
3198         "src_head" and "src_next_tail".
3199         (compute_block_dependences): Likewise.
3200         (free_block_dependencies): Likewise.
3201         (debug_rgn_dependencies): Likewise.
3202         (free_rgn_deps): Likewise.
3203         (compute_priorities): Likewise.
3204         (schedule_region): Likewise.
3205         * sel-sched.c (find_ebb_boundaries): Likewise.
3207         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3208         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3210 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3212         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3213         from rtx to rtx_insn *.
3214         (new_seginfo): Likewise for param "insn".
3215         (create_pre_exit): Likewise for locals "last_insn",
3216         "before_return_copy", "return_copy".
3217         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3218         "mode_set".
3220 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3222         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3223         from rtx to rtx_insn *.
3224         (lra_push_insn): Likewise for 1st param.
3225         (lra_push_insn_and_update_insn_regno_info): Likewise.
3226         (lra_pop_insn): Likewise for return type.
3227         (lra_invalidate_insn_data): Likewise for 1st param.
3228         (lra_set_insn_deleted): Likewise.
3229         (lra_delete_dead_insn): Likewise.
3230         (lra_process_new_insns): Likewise for first 3 params.
3231         (lra_set_insn_recog_data): Likewise for 1st param.
3232         (lra_update_insn_recog_data): Likewise.
3233         (lra_set_used_insn_alternative): Likewise.
3234         (lra_invalidate_insn_regno_info): Likewise.
3235         (lra_update_insn_regno_info): Likewise.
3236         (lra_former_scratch_operand_p): Likewise.
3237         (lra_eliminate_regs_1): Likewise.
3238         (lra_get_insn_recog_data): Likewise.
3240         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3241         rtx to rtx_insn *.
3243         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3244         "mv1" and "mv2".
3245         (substitute_within_insn): New.
3246         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3247         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
3248         Replace call to "substitute" with call to substitute_within_insn.
3250         * lra-constraints.c (curr_insn): Strengthen from rtx to
3251         rtx_insn *.
3252         (get_equiv_with_elimination): Likewise for param "insn".
3253         (match_reload): Strengthen params "before" and "after" from rtx *
3254         to rtx_insn **.
3255         (emit_spill_move): Likewise for return type.  Add a checked cast
3256         to rtx_insn * on result of gen_move_insn for now.
3257         (check_and_process_move): Likewise for local "before".  Replace
3258         NULL_RTX with NULL when referring to insns.
3259         (process_addr_reg): Strengthen params "before" and "after" from
3260         rtx * to rtx_insn **.
3261         (insert_move_for_subreg): Likewise.
3262         (simplify_operand_subreg): Strengthen locals "before" and "after"
3263         from rtx to rtx_insn *.
3264         (process_address_1): Strengthen params "before" and "after" from
3265         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
3266         rtx to rtx_insn *.
3267         (process_address): Strengthen params "before" and "after" from
3268         rtx * to rtx_insn **.
3269         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3270         (curr_insn_transform): Strengthen locals "before" and "after"
3271         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
3272         to insns.
3273         (loc_equivalence_callback): Update cast of "data", changing
3274         resulting type from rtx to rtx_insn *.
3275         (substitute_pseudo_within_insn): New.
3276         (inherit_reload_reg): Strengthen param "insn" from rtx to
3277         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
3278         NULL when referring to insns.  Add a checked cast to rtx_insn *
3279         when using usage_insn to invoke lra_update_insn_regno_info.
3280         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3281         likewise for locals "restore", "save".  Add checked casts to
3282         rtx_insn * when using usage_insn to invoke
3283         lra_update_insn_regno_info and lra_process_new_insns.  Replace
3284         NULL_RTX with NULL when referring to insns.
3285         (split_if_necessary): Strengthen param "insn" from rtx to
3286         rtx_insn *.
3287         (update_ebb_live_info): Likewise for params "head", "tail" and local
3288         "prev_insn".
3289         (get_last_insertion_point): Likewise for return type and local "insn".
3290         (get_live_on_other_edges): Likewise for local "last".
3291         (inherit_in_ebb): Likewise for params "head", "tail" and locals
3292         "prev_insn", "next_insn", "restore".
3293         (remove_inheritance_pseudos): Likewise for local "prev_insn".
3294         (undo_optional_reloads): Likewise for local "insn".
3296         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3297         "insn".
3298         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3299         insns.
3300         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3301         rtx_insn *.
3302         (spill_pseudos): Likewise for local "insn".
3303         (init_elimination): Likewise.
3304         (process_insn_for_elimination): Likewise for param "insn".
3306         * lra-lives.c (curr_insn): Likewise.;
3308         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3309         (remove_pseudos): Likewise for param "insn".
3310         (spill_pseudos): Likewise for local "insn".
3311         (lra_final_code_change): Likewise for locals "insn", "curr".
3313         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3314         (lra_set_insn_deleted): Likewise.
3315         (lra_delete_dead_insn): Likewise, and for local "prev".
3316         (new_insn_reg): Likewise for param "insn".
3317         (lra_set_insn_recog_data): Likewise.
3318         (lra_update_insn_recog_data): Likewise.
3319         (lra_set_used_insn_alternative): Likewise.
3320         (get_insn_freq): Likewise.
3321         (invalidate_insn_data_regno_info): Likewise.
3322         (lra_invalidate_insn_regno_info): Likewise.
3323         (lra_update_insn_regno_info): Likewise.
3324         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3325         vec<rtx_insn *>.
3326         (lra_push_insn_1): Strengthen param "insn" from rtx to
3327         rtx_insn *.
3328         (lra_push_insn): Likewise.
3329         (lra_push_insn_and_update_insn_regno_info): Likewise.
3330         (lra_pop_insn): Likewise for return type and local "insn".
3331         (push_insns): Likewise for params "from", "to", and local "insn".
3332         (setup_sp_offset): Likewise for params "from", "last" and locals
3333         "before", "insn".
3334         (lra_process_new_insns): Likewise for params "insn", "before",
3335         "after" and local "last".
3336         (struct sloc): Likewise for field "insn".
3337         (lra_former_scratch_operand_p): Likewise for param "insn".
3338         (remove_scratches): Likewise for locals "insn", "last".
3339         (check_rtl): Likewise for local "insn".
3340         (add_auto_inc_notes): Likewise for param "insn".
3341         (update_inc_notes): Likewise for local "insn".
3342         (lra): Replace NULL_RTX with NULL when referring to insn.
3344 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3346         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3347         to rtx_insn *.
3348         (resolve_reg_notes): Likewise.
3349         (resolve_simple_move): Likewise for return type, param "insn", and
3350         locals "insns", "minsn".
3351         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3352         (resolve_use): Likewise.
3353         (resolve_debug): Likewise.
3354         (find_decomposable_shift_zext): Likewise.
3355         (resolve_shift_zext): Likewise for return type, param "insn", and
3356         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
3357         (decompose_multiword_subregs): Likewise for local "insn",
3358         "orig_insn", "decomposed_shift", "end".
3360 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3362         * basic-block.h (basic_block split_edge_and_insert): Strengthen
3363         param "insns" from rtx to rtx_insn *.
3365         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3366         rtx to rtx_insn *.
3367         (struct iv_to_split): Likewise.
3368         (loop_exit_at_end_p): Likewise for local "insn".
3369         (split_edge_and_insert): Likewise for param "insns".
3370         (compare_and_jump_seq): Likewise for return type, param "cinsn",
3371         and locals "seq", "jump".
3372         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3373         "branch_code"; update invocations of compare_and_jump_seq to
3374         eliminate NULL_RTX in favor of NULL.
3375         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3376         rtx to rtx_insn *.
3377         (reset_debug_uses_in_loop): Likewise.
3378         (analyze_insn_to_expand_var): Likewise for param "insn".
3379         (analyze_iv_to_split_insn): Likewise.
3380         (analyze_insns_in_loop): Likewise for local "insn".
3381         (insert_base_initialization): Likewise for param
3382         "insn" and local "seq".
3383         (split_iv): Likewise for param "insn" and local "seq".
3384         (expand_var_during_unrolling): Likewise for param "insn".
3385         (insert_var_expansion_initialization): Likewise for local "seq".
3386         (combine_var_copies_in_loop_exit): Likewise.
3387         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3388         "insn".
3389         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3390         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3391         "next".
3393 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3395         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3396         rtx_insn *.
3397         (iv_analyze_result): Likewise.
3398         (iv_analyze_expr): Likewise.
3399         (biv_p): Likewise.
3401         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3402         local "def_insn" from rtx to rtx_insn *.
3403         (get_biv_step_1): Likewise for local "insn".
3404         (iv_analyze_expr): Likewise for param "insn".
3405         (iv_analyze_def): Likewise for local "insn".
3406         (iv_analyze_op): Likewise for param "insn".
3407         (iv_analyze): Likewise.
3408         (iv_analyze_result): Likewise.
3409         (biv_p): Likewise.
3410         (suitable_set_for_replacement): Likewise.
3411         (simplify_using_initial_values): Likewise for local "insn".
3412         (iv_number_of_iterations): Likewise for param "insn".
3413         (check_simple_exit): Add checked cast to rtx_insn when invoking
3414         iv_number_of_iterations for now (until get_condition is
3415         strengthened).
3417         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3418         "insn" from rtx to rtx_insn *.
3419         (analyze_insns_in_loop): Likewise for local "insn".
3421 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3423         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3424         to rtx_insn *.
3425         (struct invariant): Likewise.
3426         (hash_invariant_expr_1): Likewise for param "insn".
3427         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3428         (find_exits): Likewise for local "insn".
3429         (create_new_invariant): Likewise for param "insn".
3430         (check_dependencies): Likewise.
3431         (find_invariant_insn): Likewise.
3432         (record_uses): Likewise.
3433         (find_invariants_insn): Likewise.
3434         (find_invariants_bb): Likewise for local "insn".
3435         (get_pressure_class_and_nregs): Likewise for param "insn".
3436         (calculate_loop_reg_pressure): Likewise for local "insn".
3438 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3440         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3441         to rtx_insn *.
3442         (add_test): Likewise for locals "seq", "jump".
3443         (doloop_modify): Likewise for locals "sequence", "jump_insn".
3445 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3447         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3448         rtx_insn *.
3449         (rebuild_jump_labels_chain): Likewise for param "chain".
3451         * cfgexpand.c (pass_expand::execute): Add checked cast to
3452         rtx_insn * when calling rebuild_jump_labels_chain in region where
3453         we know e->insns.r is non-NULL.
3455         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3456         rtx_insn *.
3457         (rebuild_jump_labels): Likewise.
3458         (rebuild_jump_labels_chain): Likewise for param "chain".
3459         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3460         (init_label_info): Likewise for param "f".
3461         (maybe_propagate_label_ref): Likewise for params "jump_insn",
3462         "prev_nonjump_insn".
3463         (mark_all_labels): Likewise for param "f" and locals "insn",
3464         "prev_nonjump_insn".
3466 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3468         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3469         from rtx to rtx_insn *insn.
3470         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3471         (ira_add_allocno_copy): Likewise.
3472         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3473         rtx to rtx_insn *.
3474         (ira_create_copy): Likewise.
3475         (ira_add_allocno_copy): Likewise.
3476         (create_bb_allocnos): Likewise for local "insn".
3477         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3478         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3479         process_regs_for_copy for rtx_insn * param.
3480         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3481         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
3482         process_regs_for_copy for rtx_insn * param.
3483         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3484         * ira-costs.c (record_reg_classes): Likewise for param "insn".
3485         (record_operand_costs): Likewise.
3486         (scan_one_insn): Likewise for return type, and for param "insn".
3487         (process_bb_for_costs): Likewise for local "insn".
3488         (process_bb_node_for_hard_reg_moves): Likewise.
3489         * ira-emit.c (struct move): Likewise for field "insn".
3490         (create_move): Eliminate use of NULL_RTX when dealing with an
3491         rtx_insn *.
3492         (emit_move_list): Strengthen return type and locals "result",
3493         "insn" from rtx to rtx_insn *insn.
3494         (emit_moves): Likewise for locals "insns", "tmp".
3495         (ira_emit): Likewise for local "insn".
3496         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3497         "insn".
3498         (find_call_crossed_cheap_reg): Likewise.
3499         (process_bb_node_lives): Likewise for local "insn".
3500         * ira.c (decrease_live_ranges_number): Likewise.
3501         (compute_regs_asm_clobbered): Likewise.
3502         (build_insn_chain): Likewise.
3503         (find_moveable_pseudos): Likewise, also locals "def_insn",
3504         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
3505         to rtx_insn **.  Add a checked cast when assigning from
3506         "closest_use" into closest_uses array in a region where we know
3507         it's a non-NULL insn.
3508         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3509         to rtx_insn *.
3510         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3511         "last_interesting_insn", "uin".
3512         (move_unallocated_pseudos): Likewise for locals "def_insn",
3513         "move_insn", "newinsn".
3515 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3517         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3518         Strengthen locals "done_label", "do_error" from rtx to
3519         rtx_code_label *.
3520         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3521         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
3522         rtx_code_label *.
3523         (ubsan_expand_si_overflow_neg_check): Likewise for locals
3524         "done_label", "do_error" to rtx_code_label * and local  "last" to
3525         rtx_insn *.
3526         (ubsan_expand_si_overflow_mul_check): Likewise for locals
3527         "done_label", "do_error", "large_op0", "small_op0_large_op1",
3528         "one_small_one_large", "both_ops_large", "after_hipart_neg",
3529         "after_lopart_neg", "do_overflow", "hipart_different"  to
3530         rtx_code_label * and local  "last" to rtx_insn *.
3532 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3534         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3535         "insn" and "move_insn" from rtx to rtx_insn *.
3537 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3539         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3540         rtx_insn *.
3541         (cheap_bb_rtx_cost_p): Likewise.
3542         (first_active_insn): Likewise for return type and local "insn".
3543         (last_active_insn):  Likewise for return type and locals "insn",
3544         "head".
3545         (struct noce_if_info): Likewise for fields "jump", "insn_a",
3546         "insn_b".
3547         (end_ifcvt_sequence): Likewise for return type and locals "insn",
3548         "seq".
3549         (noce_try_move): Likewise for local "seq".
3550         (noce_try_store_flag): Likewise.
3551         (noce_try_store_flag_constants): Likewise.
3552         (noce_try_addcc): Likewise.
3553         (noce_try_store_flag_mask): Likewise.
3554         (noce_try_cmove): Likewise.
3555         (noce_try_minmax): Likewise.
3556         (noce_try_abs): Likewise.
3557         (noce_try_sign_mask): Likewise.
3558         (noce_try_bitop): Likewise.
3559         (noce_can_store_speculate_p): Likewise for local "insn".
3560         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
3561         seq".
3562         (check_cond_move_block): Likewise for local "insn".
3563         (cond_move_convert_if_block): Likewise.
3564         (cond_move_process_if_block): Likewise for locals "seq",
3565         "loc_insn".
3566         (noce_find_if_block): Likewise for local "jump".
3567         (merge_if_block): Likewise for local "last".
3568         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
3569         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
3570         (block_has_only_trap): Likewise for return type and local "trap".
3571         (find_if_case_1): Likewise for local "jump".
3572         (dead_or_predicable): Likewise for locals "head", "end", "jump",
3573         "insn".
3575 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3577         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
3578         "last_insn", "loop_end" from rtx to rtx_insn *.
3580         * hw-doloop.c (scan_loop): Likewise for local "insn".
3581         (discover_loop): Likewise for param "tail_insn".
3582         (discover_loops): Likewise for local "tail".
3584         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
3585         cast to rtx_insn * when assigning from an rtx local to a
3586         hwloop_info's "last_insn" field.
3588 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3590         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
3591         (add_delay_dependencies): Strengthen local "pro" from rtx to
3592         rtx_insn *.
3593         (recompute_todo_spec): Likewise.
3594         (dep_cost_1): Likewise for locals "insn", "used".
3595         (schedule_insn): Likewise for local "dbg".
3596         (schedule_insn): Likewise for locals "pro", "next".
3597         (unschedule_insns_until): Likewise for local "con".
3598         (restore_pattern): Likewise for local "next".
3599         (estimate_insn_tick): Likewise for local "pro".
3600         (resolve_dependencies): Likewise for local "next".
3601         (fix_inter_tick): Likewise.
3602         (fix_tick_ready): Likewise for local "pro".
3603         (add_to_speculative_block): Likewise for locals "check", "twin",
3604         "pro".
3605         (sched_extend_bb): Likewise for locals "end", "insn".
3606         (init_before_recovery): Likewise for local "x".
3607         (sched_create_recovery_block): Likewise for local "barrier".
3608         (create_check_block_twin): Likewise for local "pro".
3609         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
3610         "consumer".
3611         (unlink_bb_notes): Update for change to type of bb_header.
3612         Strengthen locals "prev", "label", "note", "next" from rtx to
3613         rtx_insn *.
3614         (clear_priorities): Likewise for local "pro".
3616 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3618         * gcse.c (struct occr): Strengthen field "insn" from rtx to
3619         rtx_insn *.
3620         (test_insn): Likewise for this global.
3621         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
3622         const rtx_insn *.
3623         (oprs_anticipatable_p): Likewise.
3624         (oprs_available_p): Likewise.
3625         (insert_expr_in_table): Strengthen param "insn" from  rtx to
3626         rtx_insn *.
3627         (hash_scan_set): Likewise.
3628         (hash_scan_clobber): Likewise.
3629         (hash_scan_call): Likewise.
3630         (hash_scan_insn): Likewise.
3631         (compute_hash_table_work): Likewise for local "insn".
3632         (process_insert_insn): Likewise for return type and local "pat".
3633         (insert_insn_end_basic_block): Likewise for locals "new_insn",
3634         "pat", "pat_end", "maybe_cc0_setter".
3635         (pre_edge_insert): Likewise for local "insn".
3636         (pre_insert_copy_insn): Likewise for param "insn".
3637         (pre_insert_copies): Likewise for local "insn".
3638         (struct set_data): Likewise for field "insn".
3639         (single_set_gcse): Likewise for param "insn".
3640         (gcse_emit_move_after): Likewise.
3641         (pre_delete): Likewise for local "insn".
3642         (update_bb_reg_pressure): Likewise for param "from" and local
3643         "insn".
3644         (should_hoist_expr_to_dom): Likewise for param "from".
3645         (hoist_code): Likewise for local "insn".
3646         (get_pressure_class_and_nregs): Likewise for param "insn".
3647         (calculate_bb_reg_pressure): Likewise for local "insn".
3648         (compute_ld_motion_mems): Likewise.
3650 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3652         * genpeep.c (main): Rename param back from "uncast_ins1" to
3653         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
3654         checked cast.
3656         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
3658 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
3660         PR target/62195
3661         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
3662         documentation to state it is only for VSX operations.
3664         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
3665         constraint only active if VSX.
3667         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
3668         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
3669         (lfiwzx): Likewise.
3671 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3673         * fwprop.c (single_def_use_dom_walker::before_dom_children):
3674         Strengthen local "insn" from rtx to rtx_insn *.
3675         (use_killed_between): Likewise for param "target_insn".
3676         (all_uses_available_at): Likewise for param "target_insn" and
3677         local "next".
3678         (update_df_init): Likewise for params "def_insn", "insn".
3679         (update_df): Likewise for param "insn".
3680         (try_fwprop_subst): Likewise for param "def_insn" and local
3681         "insn".
3682         (free_load_extend): Likewise for param "insn".
3683         (forward_propagate_subreg): Likewise for param "def_insn" and
3684         local "use_insn".
3685         (forward_propagate_asm): Likewise for param "def_insn" and local
3686         "use_insn".
3687         (forward_propagate_and_simplify): Likewise for param "def_insn"
3688         and local "use_insn".
3689         (forward_propagate_into): Likewise for locals "def_insn" and
3690         "use_insn".
3692 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3694         * function.c (emit_initial_value_sets): Strengthen local "seq"
3695         from rtx to rtx_insn *.
3696         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
3697         local "seq".
3698         (instantiate_virtual_regs): Likewise for local "insn".
3699         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
3700         (reorder_blocks_1): Likewise for param "insns" and local "insn".
3701         (expand_function_end): Likewise for locals "insn" and "seq".
3702         (epilogue_done): Likewise for local "insn".
3703         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
3704         "last", "trial".
3705         (reposition_prologue_and_epilogue_notes): Likewise for locals
3706         "insn", "last", "note", "first".
3707         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
3708         (pass_match_asm_constraints::execute): Likewise for local "insn".
3710 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3712         * output.h (final_scan_insn): Strengthen return type from rtx to
3713         rtx_insn *.
3714         (final_forward_branch_p): Likewise for param.
3715         (current_output_insn): Likewise for this global.
3717         * final.c (rtx debug_insn): Likewise for this variable.
3718         (current_output_insn): Likewise.
3719         (get_attr_length_1): Rename param "insn" to "uncast_insn",
3720         adding "insn" back in as an rtx_insn * with a checked cast, so
3721         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
3722         first param.
3723         (compute_alignments): Strengthen local "label" from rtx to
3724         rtx_insn *.
3725         (shorten_branches): Rename param from "first" to "uncast_first",
3726         introducing a new local rtx_insn * "first" using a checked cast to
3727         effectively strengthen "first" from rtx to rtx_insn * without
3728         affecting the type signature.  Strengthen locals "insn", "seq",
3729         "next", "label" from rtx to rtx_insn *.
3730         (change_scope): Strengthen param "orig_insn" and local "insn" from
3731         rtx to rtx_insn *.
3732         (final_start_function): Rename param from "first" to "uncast_first",
3733         introducing a new local rtx_insn * "first" using a checked cast to
3734         effectively strengthen "first" from rtx to rtx_insn * without
3735         affecting the type signature.  Strengthen local "insn" from rtx to
3736         rtx_insn *.
3737         (dump_basic_block_info): Strengthen param "insn" from rtx to
3738         rtx_insn *.
3739         (final): Rename param from "first" to "uncast_first",
3740         introducing a new local rtx_insn * "first" using a checked cast to
3741         effectively strengthen "first" from rtx to rtx_insn * without
3742         affecting the type signature.  Strengthen locals "insn", "next"
3743         from rtx to rtx_insn *.
3744         (output_alternate_entry_point): Strengthen param "insn" from rtx to
3745         rtx_insn *.
3746         (call_from_call_insn): Strengthen param "insn" from rtx to
3747         rtx_call_insn *.
3748         (final_scan_insn): Rename param from "insn" to "uncast_insn",
3749         introducing a new local rtx_insn * "insn" using a checked cast to
3750         effectively strengthen "insn" from rtx to rtx_insn * without
3751         affecting the type signature.  Strengthen return type and locals
3752         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
3753         now-redundant checked cast to rtx_insn * from both invocations of
3754         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
3755         introducing a local "call_insn" for use when invoking
3756         call_from_call_insn.
3757         (notice_source_line): Strengthen param "insn" from rtx to
3758         rtx_insn *.
3759         (leaf_function_p): Likewise for local "insn".
3760         (final_forward_branch_p): Likewise.
3761         (leaf_renumber_regs): Likewise for param "first".
3762         (rest_of_clean_state): Likewise for locals "insn" and "next".
3763         (self_recursive_call_p): Likewise for param "insn".
3764         (collect_fn_hard_reg_usage): Likewise for local "insn".
3765         (get_call_fndecl): Likewise for param "insn".
3766         (get_call_cgraph_rtl_info): Likewise.
3767         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
3768         introducing a new local rtx_insn * "insn" using a checked cast to
3769         effectively strengthen "insn" from rtx to rtx_insn * without
3770         affecting the type signature.
3772         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
3773         cast when assigning from param "insn" to current_output_insn.
3774         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
3775         so that we can assign it back to current_output_insn.
3777 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3779         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
3780         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
3781         atmxt540s and atmxt540sreva devices.
3782         * config/avr/avr-tables.opt: Regenerate.
3783         * config/avr/t-multilib: Regenerate.
3784         * doc/avr-mmcu.texi: Regenerate.
3786 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3788         * expr.c (convert_move): Strengthen local "insns" from rtx to
3789         rtx_insn *.
3790         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
3791         "top_label" from rtx to rtx_code_label *.
3792         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
3793         rtx_insn *.
3794         (emit_single_push_insn): Likewise for locals "prev", "last".
3795         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
3796         to rtx_code_label *.
3797         (store_constructor): Likewise for locals "loop_start", "loop_end".
3798         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
3799         rtx_insn *.
3800         (expand_expr_real_2): Likewise.
3801         (expand_expr_real_1): Strengthen local "label" from rtx to
3802         rtx_code_label *.
3804 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3806         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
3807         from rtx to rtx_insn *.
3808         (store_bit_field_1): Likewise.
3809         (extract_bit_field_1): Likewise.
3810         (expand_mult_const): Likewise for local "insns".
3811         (expmed_mult_highpart): Strengthen local "label" from rtx to
3812         rtx_code_label *.
3813         (expand_smod_pow2): Likewise.
3814         (expand_sdiv_pow2): Likewise.
3815         (expand_divmod): Strengthen locals "last", "insn" from rtx to
3816         rtx_insn *.  Strengthen locals "label", "label1", "label2",
3817         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
3818         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
3819         (emit_store_flag): Likewise.
3820         (emit_store_flag_force): Strengthen local "label" from rtx to
3821         rtx_code_label *.
3822         (do_cmp_and_jump): Likewise for param "label".
3824 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3826         * explow.c (force_reg): Strengthen local "insn" from rtx to
3827         rtx_insn *.
3828         (adjust_stack_1): Likewise.
3829         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
3830         "final_label", "available_label", "space_available" from rtx to
3831         rtx_code_label *.
3832         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
3833         (anti_adjust_stack_and_probe): Likewise.
3835 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3837         * except.h (sjlj_emit_function_exit_after): Strengthen param
3838         "after" from rtx to rtx_insn *.  This is only called with
3839         result of get_last_insn (in function.c) so type-change should be
3840         self-contained.
3842         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
3843         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
3844         to rtx_insn *.  These fields are only used from except.c so this
3845         type-change should be self-contained to this patch.
3847         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
3848         local "last" from rtx to rtx_insn *.
3849         (dw2_build_landing_pads): Likewise for local "seq".
3850         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
3851         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
3852         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
3853         rtx to rtx_insn *.
3854         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
3855         to rtx_insn *.
3856         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
3857         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
3858         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
3859         referring to an insn.  Strengthen local "dispatch_label" from
3860         rtx to rtx_code_label *.
3861         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
3862         rtx_insn *.
3863         (expand_eh_return): Strengthen local "around_label" from
3864         rtx to rtx_code_label *.
3865         (convert_to_eh_region_ranges): Strengthen locals "iter",
3866         "last_action_insn", "first_no_action_insn",
3867         "first_no_action_insn_before_switch",
3868         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
3870 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3872         * dwarf2out.c (last_var_location_insn): Strengthen this variable
3873         from rtx to rtx_insn *.
3874         (cached_next_real_insn): Likewise.
3875         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
3876         working with insns.
3877         (dwarf2out_var_location): Strengthen locals "next_real",
3878         "next_note", "expected_next_loc_note", "last_start", "insn" from
3879         rtx to rtx_insn *.
3881 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3883         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
3884         from rtx to rtx_insn *.
3885         (create_pseudo_cfg): Likewise for local "insn".
3887 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3889         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
3890         from rtx to rtx_insn *.
3891         (df_bb_regno_last_def_find): Likewise.
3893         * df-problems.c (df_rd_bb_local_compute): Likewise.
3894         (df_lr_bb_local_compute): Likewise.
3895         (df_live_bb_local_compute): Likewise.
3896         (df_chain_remove_problem): Likewise.
3897         (df_chain_create_bb): Likewise.
3898         (df_word_lr_bb_local_compute): Likewise.
3899         (df_remove_dead_eq_notes): Likewise for param "insn".
3900         (df_note_bb_compute): Likewise for local "insn".
3901         (simulate_backwards_to_point): Likewise.
3902         (df_md_bb_local_compute): Likewise.
3904         * df-scan.c (df_scan_free_bb_info): Likewise.
3905         (df_scan_start_dump): Likewise.
3906         (df_scan_start_block): Likewise.
3907         (df_install_ref_incremental): Likewise for local "insn".
3908         (df_insn_rescan_all): Likewise.
3909         (df_reorganize_refs_by_reg_by_insn): Likewise.
3910         (df_reorganize_refs_by_insn_bb): Likewise.
3911         (df_recompute_luids): Likewise.
3912         (df_bb_refs_record): Likewise.
3913         (df_update_entry_exit_and_calls): Likewise.
3914         (df_bb_verify): Likewise.
3916 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3918         * ddg.h (struct ddg_node): Strengthen fields "insn" and
3919         "first_note" from rtx to rtx_insn *.
3920         (get_node_of_insn): Likewise for param 2 "insn".
3921         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
3923         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
3924         rtx_insn *.
3925         (mem_write_insn_p): Likewise.
3926         (mem_access_insn_p): Likewise.
3927         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
3928         (def_has_ccmode_p): Likewise for param "insn".
3929         (add_cross_iteration_register_deps): Likewise for locals
3930         "def_insn" and "use_insn".
3931         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
3932         (build_intra_loop_deps): Likewise for local "src_insn".
3933         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
3934         to rtx_insn *.
3935         (get_node_of_insn): Likewise for param "insn".
3937 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3939         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
3940         (deletable_insn_p): Strengthen param "insn" from rtx to
3941         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
3942         find_call_stack_args, since this is guarded by CALL_P (insn).
3943         (marked_insn_p): Strengthen param "insn" from rtx to
3944         rtx_insn *.
3945         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
3946         invoking find_call_stack_args, since this is guarded by
3947         CALL_P (insn).
3948         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
3949         rtx_insn *; we know this is an insn since this was called by
3950         mark_nonreg_stores.
3951         (mark_nonreg_stores_2): Likewise.
3952         (mark_nonreg_stores): Strengthen param "insn" from rtx to
3953         rtx_insn *.
3954         (find_call_stack_args): Strengthen param "call_insn" from rtx to
3955         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
3956         to rtx_insn *.
3957         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
3958         from rtx to rtx_insn *.
3959         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
3960         "next", "ref_insn".
3961         (delete_unmarked_insns): Likewise for locals "insn", "next".
3962         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
3963         (mark_reg_dependencies): Likewise for param "insn".
3964         (rest_of_handle_ud_dce): Likewise for local "insn".
3965         (word_dce_process_block): Likewise.
3966         (dce_process_block): Likewise.
3968 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3970         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
3971         from rtx to rtx_insn *.
3972         (struct change_cc_mode_args): Likewise for field "insn".
3973         (this_insn): Strengthen from rtx to rtx_insn *.
3974         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
3975         with insn.
3976         (validate_canon_reg): Strengthen param "insn" from rtx to
3977         rtx_insn *.
3978         (canon_reg): Likewise.
3979         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
3980         dealing with insn.
3981         (record_jump_equiv): Strengthen param "insn" from rtx to
3982         rtx_insn *.
3983         (try_back_substitute_reg): Likewise, also for locals "prev",
3984         "bb_head".
3985         (find_sets_in_insn): Likewise for param "insn".
3986         (canonicalize_insn): Likewise.
3987         (cse_insn): Likewise.  Add a checked cast.
3988         (invalidate_from_clobbers): Likewise for param "insn".
3989         (invalidate_from_sets_and_clobbers): Likewise.
3990         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
3991         dealing with insn.
3992         (cse_prescan_path): Strengthen local "insn" from rtx to
3993         rtx_insn *.
3994         (cse_extended_basic_block): Likewise for locals "insn" and
3995         "prev_insn".
3996         (cse_main): Likewise for param "f".
3997         (check_for_label_ref): Likewise for local "insn".
3998         (set_live_p): Likewise for second param ("insn").
3999         (insn_live_p): Likewise for first param ("insn") and for local
4000         "next".
4001         (cse_change_cc_mode_insn): Likewise for first param "insn".
4002         (cse_change_cc_mode_insns): Likewise for first and second params
4003         "start" and "end".
4004         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4005         and "end".
4006         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4007         "cc_src_insn".
4009 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4010             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4011             Anna Tikhonova  <anna.tikhonova@intel.com>
4012             Ilya Tocar  <ilya.tocar@intel.com>
4013             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4014             Ilya Verbin  <ilya.verbin@intel.com>
4015             Kirill Yukhin  <kirill.yukhin@intel.com>
4016             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4018         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4019         New.
4020         * config/i386/sse.md
4021         (define_mode_iterator VI248_AVX2): Delete.
4022         (define_mode_iterator VI2_AVX2_AVX512BW): New.
4023         (define_mode_iterator VI48_AVX2): Ditto.
4024         (define_insn <shift_insn><mode>3): Delete.
4025         (define_insn "<shift_insn><mode>3<mask_name>" with
4026         VI2_AVX2_AVX512BW): New.
4027         (define_insn "<shift_insn><mode>3<mask_name>" with
4028         VI48_AVX2): Ditto.
4030 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4031             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4032             Anna Tikhonova  <anna.tikhonova@intel.com>
4033             Ilya Tocar  <ilya.tocar@intel.com>
4034             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4035             Ilya Verbin  <ilya.verbin@intel.com>
4036             Kirill Yukhin  <kirill.yukhin@intel.com>
4037             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4039         * config/i386/sse.md
4040         (define_mode_iterator VI4F_BRCST32x2): New.
4041         (define_mode_attr 64x2_mode): Ditto.
4042         (define_mode_attr 32x2mode): Ditto.
4043         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4044         with VI4F_BRCST32x2): Ditto.
4045         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4046         with V16FI mode iterator): Ditto.
4047         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4048         with V16FI): Ditto.
4049         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4050         with VI8F_BRCST64x2): Ditto.
4052 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4053             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4054             Anna Tikhonova  <anna.tikhonova@intel.com>
4055             Ilya Tocar  <ilya.tocar@intel.com>
4056             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4057             Ilya Verbin  <ilya.verbin@intel.com>
4058             Kirill Yukhin  <kirill.yukhin@intel.com>
4059             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4061         * config/i386/sse.md
4062         (define_mode_iterator VI8_AVX512VL): New.
4063         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4065 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4067         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4068         (define_mode_iterator V48_AVX512VL): New.
4069         (define_mode_iterator V12_AVX512VL): Ditto.
4070         (define_insn <avx512>_load<mode>_mask): Split into two similar
4071         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4072         Refactor output template.
4073         (define_insn "<avx512>_store<mode>_mask"): Ditto.
4075 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4077         * cprop.c (struct occr): Strengthen field "insn" from rtx to
4078         rtx_insn *.
4079         (reg_available_p): Likewise for param "insn".
4080         (insert_set_in_table): Likewise.
4081         (hash_scan_set): Likewise.
4082         (hash_scan_insn): Likewise.
4083         (make_set_regs_unavailable): Likewise.
4084         (compute_hash_table_work): Likewise for local "insn".
4085         (reg_not_set_p): Strengthen param "insn" from const_rtx to
4086         const rtx_insn *.
4087         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4088         (try_replace_reg): Likewise.
4089         (find_avail_set): Likewise.
4090         (cprop_jump): Likewise for params "setcc", "jump".
4091         (constprop_register): Likewise for param "insn".
4092         (cprop_insn): Likewise.
4093         (do_local_cprop): Likewise.
4094         (local_cprop_pass): Likewise for local "insn".
4095         (bypass_block): Likewise for params "setcc" and "jump".
4096         (bypass_conditional_jumps): Likewise for locals "setcc" and
4097         "insn".
4098         (one_cprop_pass): Likewise for local "insn".
4100 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4102         * compare-elim.c (struct comparison_use): Strengthen field "insn"
4103         from rtx to rtx_insn *.
4104         (struct comparison): Likewise, also for field "prev_clobber".
4105         (conforming_compare): Likewise for param "insn".
4106         (arithmetic_flags_clobber_p): Likewise.
4107         (find_flags_uses_in_insn): Likewise.
4108         (find_comparison_dom_walker::before_dom_children): Likewise for
4109         locals "insn", "next", "last_clobber".
4110         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4112 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4114         * combine-stack-adj.c (struct csa_reflist): Strengthen field
4115         "insn" from rtx to rtx_insn *.
4116         (single_set_for_csa): Likewise for param "insn".
4117         (record_one_stack_ref): Likewise.
4118         (try_apply_stack_adjustment): Likewise.
4119         (struct record_stack_refs_data): Likewise for field "insn".
4120         (maybe_move_args_size_note): Likewise for params "last" and "insn".
4121         (prev_active_insn_bb): Likewise for return type and param "insn".
4122         (next_active_insn_bb): Likewise.
4123         (force_move_args_size_note): Likewise for params "prev" and "last"
4124         and locals "test", "next_candidate", "prev_candidate".
4125         (combine_stack_adjustments_for_block): Strengthen locals
4126         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4127         rtx_insn *.
4129 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4131         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4132         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4133         (subst_insn): Likewise for this variable.
4134         (added_links_insn): Likewise.
4135         (struct insn_link): Likewise for field "insn".
4136         (alloc_insn_link): Likewise for param "insn".
4137         (struct undobuf): Likewise for field "other_insn".
4138         (find_single_use): Likewise for param "insn" and local "next".
4139         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4140         (delete_noop_moves): Likewise for locals "insn", "next".
4141         (create_log_links): Likewise for locals "insn", "use_insn".
4142         Strengthen local "next_use" from rtx * to rtx_insn **.
4143         (insn_a_feeds_b): Likewise for params "a", "b".
4144         (combine_instructions): Likewise for param "f" and locals "insn",
4145         "next", "prev", "first", "last_combined_insn", "link", "link1",
4146         "temp".  Replace use of NULL_RTX with NULL when referring to
4147         insns.
4148         (setup_incoming_promotions): Likewise for param "first"
4149         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4150         (can_combine_p): Likewise for params "insn", "i3", "pred",
4151         "pred2", "succ", "succ2" and for local "p".
4152         (combinable_i3pat): Likewise for param "i3".
4153         (cant_combine_insn_p): Likewise for param "insn".
4154         (likely_spilled_retval_p): Likewise.
4155         (adjust_for_new_dest): Likewise.
4156         (update_cfg_for_uncondjump): Likewise, also for local "insn".
4157         (try_combine): Likewise for return type and for params "i3", "i2",
4158         "i1", "i0", "last_combined_insn", and for locals "insn",
4159         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4160         "i0_insn".  Eliminate local "tem" in favor of new locals
4161         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
4162         checked cast for now to rtx_insn * on the return type of
4163         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
4164         insns.
4165         (find_split_point): Strengthen param "insn" from rtx to
4166         rtx_insn *.
4167         (simplify_set): Likewise for local "other_insn".
4168         (recog_for_combine): Likewise for param "insn".
4169         (record_value_for_reg): Likewise.
4170         (record_dead_and_set_regs_1): Likewise for local
4171         "record_dead_insn".
4172         (record_dead_and_set_regs): Likewise for param "insn".
4173         (record_promoted_value): Likewise.
4174         (check_promoted_subreg): Likewise.
4175         (get_last_value_validate): Likewise.
4176         (reg_dead_at_p): Likewise.
4177         (move_deaths): Likewise for param "to_insn".
4178         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4179         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
4180         in favor of new locals "tem_note" and "tem_insn", the latter being
4181         an rtx_insn *.
4182         (distribute_links): Strengthen locals "place", "insn" from rtx to
4183         rtx_insn *.
4185 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4187         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4188         than a const_rtx.
4189         (can_delete_label_p): Require a const rtx_code_label * rather than
4190         a const_rtx.
4191         (delete_insn): Add checked cast to rtx_code_label * when we know
4192         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
4193         rtx to rtx_insn *.
4194         (delete_insn_chain): Strengthen locals "prev" and "current" from
4195         rtx to rtx_insn *.  Add a checked cast when assigning from
4196         "finish" (strengthening the params will come later).  Add a
4197         checked cast to rtx_note * in region where we know
4198         NOTE_P (current).
4199         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4200         rtx_insn *.
4201         (compute_bb_for_insn): Likewise.
4202         (free_bb_for_insn): Likewise for local "insn".
4203         (compute_bb_for_insn): Likewise.
4204         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4205         local "insn" from rtx to rtx_insn *
4206         (flow_active_insn_p): Require a const rtx_insn * rather than a
4207         const_rtx.
4208         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4209         rtx_insn *.
4210         (can_fallthru): Likewise for locals "insn" and "insn2".
4211         (bb_note): Likewise for local "note".
4212         (first_insn_after_basic_block_note): Likewise for local "note" and
4213         for return type.
4214         (rtl_split_block): Likewise for locals "insn" and "next".
4215         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4216         "end".
4217         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4218         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4219         "prev", "tmp".
4220         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4221         them), "kill_from", "barrier", "new_insn".
4222         (patch_jump_insn): Likewise for params "insn", "old_label".
4223         (redirect_branch_edge): Likewise for locals "old_label", "insn".
4224         (force_nonfallthru_and_redirect): Likewise for locals "insn",
4225         "old_label", "new_label".
4226         (rtl_tidy_fallthru_edge): Likewise for local "q".
4227         (rtl_split_edge): Likewise for locals "before", "last".
4228         (commit_one_edge_insertion): Likewise for locals "before",
4229         "after", "insns", "tmp", "last", adding a checked cast where
4230         currently necessary.
4231         (commit_edge_insertions): Likewise.
4232         (rtl_dump_bb): Likewise for locals "insn", "last".
4233         (print_rtl_with_bb): Likewise for local "x".
4234         (rtl_verify_bb_insns): Likewise for local "x".
4235         (rtl_verify_bb_pointers): Likewise for local "insn".
4236         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4237         "head", "end".
4238         (rtl_verify_fallthru): Likewise for local "insn".
4239         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4240         (purge_dead_edges): Likewise for local "insn".
4241         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4242         (skip_insns_after_block): Likewise for return type and for locals
4243         "insn", "last_insn", "next_head", "prev".
4244         (record_effective_endpoints): Likewise for locals "next_insn",
4245         "insn", "end".
4246         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4247         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4248         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4249         (duplicate_insn_chain): For now, add checked cast from rtx to
4250         rtx_insn * when returning insn.
4251         (cfg_layout_duplicate_bb): Likewise for local "insn".
4252         (cfg_layout_delete_block): Likewise for locals "insn", "next",
4253         "prev", "remaints".
4254         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4255         (rtl_block_empty_p): Likewise.
4256         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4257         "split_point", "last".
4258         (rtl_block_ends_with_call_p): Likewise for local "insn".
4259         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4260         const rtx_insn *.
4261         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4262         "split_at_insn" from rtx to rtx_insn *.
4263         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4264         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4265         to const rtx_insn *.
4266         (rtl_account_profile_record): Likewise.
4268 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4270         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4271         rtx to rtx_insn *.
4272         (average_num_loop_insns): Likewise.
4273         (init_set_costs): Likewise for local "seq".
4274         (seq_cost): Likewise for param "seq", from const_rtx to const
4275         rtx_insn *.
4277 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4279         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4280         rtx to rtx_insn *.
4282 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4284         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4285         "f1" and "f2" from rtx * to rtx_insn **.
4286         (flow_find_head_matching_sequence): Likewise.
4288         * cfgcleanup.c (try_simplify_condjump): Strengthen local
4289         "cbranch_insn" from rtx to rtx_insn *.
4290         (thread_jump): Likewise for local "insn".
4291         (try_forward_edges): Likewise for local "last".
4292         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4293         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4294         "real_b_end".
4295         (can_replace_by): Likewise for params "i1", "i2".
4296         (old_insns_match_p): Likewise.
4297         (merge_notes): Likewise.
4298         (walk_to_nondebug_insn): Likewise for param "i1".
4299         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4300         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
4301         "afterlast1", "afterlast2" from rtx to rtx_insn *.
4302         (flow_find_head_matching_sequence): Strengthen params "f1" and
4303         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
4304         "last1", "last2", "beforelast1", "beforelast2" from rtx to
4305         rtx_insn *.
4306         (outgoing_edges_match): Likewise for locals "last1", "last2".
4307         (try_crossjump_to_edge): Likewise for local "insn".
4308         Replace call to for_each_rtx with for_each_rtx_in_insn.
4310         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4311         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4312         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
4313         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4314         (try_optimize_cfg): Strengthen local "last" from rtx to
4315         rtx_insn *.
4316         (delete_dead_jumptables): Likewise for locals "insn", "next",
4317         "label".
4319         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4320         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4321         "rtx else_first_tail", to reflect the basic-block.h changes above.
4323 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4325         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4326         rtx_insn *.
4327         (purge_dead_tablejump_edges): Likewise.
4328         (find_bb_boundaries): Likewise for locals "insn", "end",
4329         "flow_transfer_insn".
4331 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4333         * caller-save.c (save_call_clobbered_regs): Strengthen locals
4334         "ins" and "prev" from rtx to rtx_insn *.
4336 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4338         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4339         rtx_insn *.
4340         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4341         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4342         "scan_start".
4343         (load_register_parameters): Likewise for local "before_arg".
4344         (check_sibcall_argument_overlap): Likewise for param "insn".
4345         (expand_call): Likewise for locals "normal_call_insns",
4346         "tail_call_insns", "insns", "before_call", "after_args",
4347         "before_arg", "last", "prev".  Strengthen one of the "last" from
4348         rtx to rtx_call_insn *.
4349         (fixup_tail_calls): Strengthen local "insn" from rtx to
4350         rtx_insn *.
4351         (emit_library_call_value_1): Likewise for locals "before_call" and
4352         "last".
4354 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4356         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4357         and "last" from rtx to rtx_insn *.
4358         (expand_builtin_nonlocal_goto): Likewise for local "insn".
4359         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4360         rtx_call_insn *.
4361         (expand_errno_check): Strengthen local "lab" from rtx to
4362         rtx_code_label *.
4363         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4364         rtx_insn *.
4365         (expand_builtin_mathfn_2): Likewise.
4366         (expand_builtin_mathfn_ternary): Likewise.
4367         (expand_builtin_mathfn_3): Likewise.
4368         (expand_builtin_interclass_mathfn): Likewise for local "last".
4369         (expand_builtin_int_roundingfn): Likewise for local "insns".
4370         (expand_builtin_int_roundingfn_2): Likewise.
4371         (expand_builtin_strlen): Likewise for local "before_strlen".
4372         (expand_builtin_strncmp): Likewise for local "seq".
4373         (expand_builtin_signbit): Likewise for local "last".
4374         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4375         from rtx to rtx_code_label *.
4376         (expand_stack_restore):  Strengthen local "prev" from rtx to
4377         rtx_insn *.
4379 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4381         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4382         to rtx_insn *.
4383         (struct btr_def_s): Likewise.
4384         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4385         const rtx_insn *.
4386         (add_btr_def): Likewise.
4387         (new_btr_user): Likewise.
4388         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4389         rtx to rtx_insn *.
4390         (link_btr_uses): Likewise.
4391         (move_btr_def): Likewise for locals "insp", "old_insn",
4392         "new_insn".  Add checked cast to rtx_insn * for now on result of
4393         gen_move_insn.
4394         (can_move_up): Strengthen param "insn" from const_rtx to
4395         const rtx_insn *.
4397 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4399         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4400         rtx_insn *.
4401         (get_uncond_jump_length): Likewise for locals "label", "jump".
4402         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4403         "jump", "insn".
4404         (add_labels_and_missing_jumps): Likewise for local "new_jump".
4405         (fix_up_fall_thru_edges): Likewise for local "old_jump".
4406         (find_jump_block): Likewise for local "insn".
4407         (fix_crossing_conditional_branches): Likewise for locals
4408         "old_jump", "new_jump".
4409         (fix_crossing_unconditional_branches): Likewise for locals
4410         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4411         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4413 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4415         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4416         rtx to rtx_insn *.
4417         (struct mem_insn): Likewise for field "insn".
4418         (reg_next_use): Strengthen from rtx * to rtx_insn **.
4419         (reg_next_inc_use): Likewise.
4420         (reg_next_def): Likewise.
4421         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4422         from rtx to rtx_insn *.
4423         (move_insn_before): Likewise for param "next_insn" and local "insns".
4424         (attempt_change): Likewise for local "mov_insn".
4425         (try_merge): Likewise for param "last_insn".
4426         (get_next_ref): Likewise for return type and local "insn".
4427         Strengthen param "next_array" from rtx * to rtx_insn **.
4428         (parse_add_or_inc): Strengthen param "insn" from rtx to
4429         rtx_insn *.
4430         (find_inc): Likewise for locals "insn" and "other_insn" (three of
4431         the latter).
4432         (merge_in_block): Likewise for locals "insn", "curr",
4433         "other_insn".
4434         (pass_inc_dec::execute): Update allocations of the arrays to
4435         reflect the stronger types.
4437 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4439         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4440         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
4441         from rtx to rtx_code_label *.
4443 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4445         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4446         to rtx_insn *.
4448 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
4450         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4451         generated a warning and prevented bootstrapping the compiler.
4453 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4455         * rtl.h (delete_related_insns): Strengthen return type from rtx to
4456         rtx_insn *.
4458         * jump.c (delete_related_insns): Likewise, also for locals "next"
4459         and "prev".
4461 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4463         * genautomata.c (output_internal_insn_latency_func): When writing
4464         the function "internal_insn_latency" to insn-automata.c,
4465         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4466         allowing the optional guard function of (define_bypass) clauses to
4467         expect a pair of rtx_insn *, rather than a pair of rtx.
4468         (output_insn_latency_func): When writing the function
4469         "insn_latency", add an "uncast_" prefix to params "insn" and
4470         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4471         using checked casts from the params, thus enabling the above
4472         change to the generated "internal_insn_latency" function.
4474 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
4476         PR tree-optimization/62091
4477         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4478         handle correctly arrays.
4479         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4480         inheritance binfos.
4481         (record_known_type): Walk into inner type.
4482         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4483         condition on no type changes.
4485 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4487         * genattrtab.c (write_attr_get): Within the generated get_attr_
4488         functions, rename param "insn" to "uncast_insn" and reintroduce
4489         "insn" as an local rtx_insn * using a checked cast, so that "insn"
4490         is an rtx_insn * within insn-attrtab.c
4492 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4494         * output.h (peephole): Strengthen return type from rtx to
4495         rtx_insn *.
4496         * rtl.h (delete_for_peephole): Likewise for both params.
4497         * genpeep.c (main): In generated "peephole" function, strengthen
4498         return type and local "insn" from rtx to rtx_insn *.  For now,
4499         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4500         rtx_insn *, with a checked cast.
4501         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4502         locals "insn", "next", "prev" from rtx to rtx_insn *.
4504 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
4506         PR tree-optimization/62112
4507         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4508         * gimple-iterator.h (gsi_replace): Return bool.
4509         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4510         moved from ref_may_alias_global_p.
4511         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4512         New overloads.
4513         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4514         (stmt_kills_ref_p_1): Rename...
4515         (stmt_kills_ref_p): ... to this.
4516         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4517         stmt_kills_ref_p): Declare.
4518         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4519         Move the self-assignment case...
4520         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4522 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4524         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4526         * emit-rtl.c (try_split): Likewise, also for locals "before" and
4527         "after".  For now, don't strengthen param "trial", which requires
4528         adding checked casts when returning it.
4530 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4532         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4533         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
4534         "var_location" hook from rtx to rtx_insn *.
4535         (debug_nothing_rtx): Delete in favor of...
4536         (debug_nothing_rtx_code_label): New prototype.
4537         (debug_nothing_rtx_rtx): Delete unused prototype.
4538         (debug_nothing_rtx_insn): New prototype.
4540         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4541         invoking debug_hooks->var_location (in two places, one in a NOTE
4542         case of a switch statement, the other guarded by a CALL_P
4543         conditional.  Add checked cast to rtx_code_label * when invoking
4544         debug_hooks->label (within CODE_LABEL case of switch statement).
4546         * dbxout.c (dbx_debug_hooks): Update "label" hook from
4547         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
4548         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4549         (xcoff_debug_hooks): Likewise.
4550         * debug.c (do_nothing_debug_hooks): Likewise.
4551         (debug_nothing_rtx): Delete in favor of...
4552         (debug_nothing_rtx_insn): New function.
4553         (debug_nothing_rtx_rtx): Delete unused function.
4554         (debug_nothing_rtx_code_label): New function.
4555         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
4556         debug_nothing_rtx to debug_nothing_rtx_code_label.
4557         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
4558         to rtx_insn *.
4559         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
4560         debug_nothing_rtx to debug_nothing_rtx_insn.
4561         (sdbout_label): Strengthen param "insn" from rtx to
4562         rtx_code_label *.
4563         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
4564         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
4565         "var_location" hook from debug_nothing_rtx to
4566         debug_nothing_rtx_insn.
4568 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4570         * recog.h (insn_output_fn): Update this function typedef to match
4571         the changes below to the generated output functions, strengthening
4572         the 2nd param from rtx to rtx_insn *.
4574         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
4575         insn when invoking an output function, to match the new signature
4576         of insn_output_fn with a stronger second param.
4578         * genconditions.c (write_header): In the generated code for
4579         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
4580         to match the other changes in this patch.
4582         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
4583         the generated "gen_" functions from rtx to rtx_insn * within their
4584         implementations.
4586         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
4587         the subfunctions within the generated "recog_", "split", "peephole2"
4588         function trees from rtx to rtx_insn *.  For now, the top-level
4589         generated functions ("recog", "split", "peephole2") continue to
4590         take a plain rtx for "insn", to avoid introducing dependencies on
4591         other patches.  Rename this 2nd param from "insn" to
4592         "uncast_insn", and reintroduce "insn" as a local variable of type
4593         rtx_insn *, initialized at the top of the generated function with
4594         a checked cast on "uncast_insn".
4595         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
4596         the generated "gen_" functions from rtx to rtx_insn * within their
4597         prototypes.
4599         * genoutput.c (process_template): Strengthen the 2nd param within
4600         the generated "output_" functions "insn" from rtx to rtx_insn *.
4602 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
4604         * tree-profile.c (tree_profiling): Skip external functions
4605         when doing coverage instrumentation.
4606         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
4608 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4610         * config/rs6000/altivec.h (vec_cpsgn): New #define.
4611         (vec_mergee): Likewise.
4612         (vec_mergeo): Likewise.
4613         (vec_cntlz): Likewise.
4614         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
4615         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
4616         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
4617         VMRGEW, and VMRGOW.
4618         * doc/extend.texi: Document various forms of vec_cpsgn,
4619         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
4620         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
4621         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
4622         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
4623         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
4625 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4627         * config/rs6000/rs6000.c (context.h): New include.
4628         (tree-pass.h): Likewise.
4629         (make_pass_analyze_swaps): New decl.
4630         (rs6000_option_override): Register pass_analyze_swaps.
4631         (swap_web_entry): New subsclass of web_entry_base (df.h).
4632         (special_handling_values): New enum.
4633         (union_defs): New function.
4634         (union_uses): Likewise.
4635         (insn_is_load_p): Likewise.
4636         (insn_is_store_p): Likewise.
4637         (insn_is_swap_p): Likewise.
4638         (rtx_is_swappable_p): Likewise.
4639         (insn_is_swappable_p): Likewise.
4640         (chain_purpose): New enum.
4641         (chain_contains_only_swaps): New function.
4642         (mark_swaps_for_removal): Likewise.
4643         (swap_const_vector_halves): Likewise.
4644         (adjust_subreg_index): Likewise.
4645         (permute_load): Likewise.
4646         (permute_store): Likewise.
4647         (handle_special_swappables): Likewise.
4648         (replace_swap_with_copy): Likewise.
4649         (dump_swap_insn_table): Likewise.
4650         (rs6000_analyze_swaps): Likewise.
4651         (pass_data_analyze_swaps): New pass_data.
4652         (pass_analyze_swaps): New rtl_opt_pass.
4653         (make_pass_analyze_swaps): New function.
4654         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
4656 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4658         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
4659         type from rtx to rtx_insn *.
4660         (create_copy_of_insn_rtx): Likewise.
4661         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
4662         (create_copy_of_insn_rtx): Likewise, also for local "res".
4664 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4666         * rtl.h (find_first_parameter_load): Strengthen return type from
4667         rtx to rtx_insn *.
4668         * rtlanal.c (find_first_parameter_load): Strengthen return type
4669         from rtx to rtx_insn *.  Add checked cast for now, to postpone
4670         strengthening the params.
4672 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4674         PR fortran/44054
4675         * diagnostic.c: Set default caret.
4676         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
4677         line is needed.
4678         * diagnostic.h (struct diagnostic_context):
4680 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4682         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
4683         (sel_bb_head): Strengthen return type insn_t (currently just an
4684         rtx) to rtx_insn *.
4685         (sel_bb_end): Likewise.
4687         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
4688         (sel_bb_head): Strengthen return type and local "head" from
4689         insn_t (currently just an rtx) to rtx_insn *.
4690         (sel_bb_end): Likewise for return type.
4691         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
4692         working with insn.
4694 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
4696         * basic-block.h (get_last_bb_insn): Strengthen return type from
4697         rtx to rtx_insn *.
4698         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
4699         end".
4701 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4703         PR fortran/44054
4704         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
4705          to here ...
4706         (diagnostic_report_diagnostic): ... from here.
4707         * toplev.c (general_init): Move code to c-family.
4709 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4711         * df.h (web_entry_base): Replace existing struct web_entry with a
4712         new class web_entry_base with only the predecessor member.
4713         (unionfind_root): Remove declaration and move to class member.
4714         (unionfind_union): Remove declaration and move to friend
4715         function.
4716         (union_defs): Remove declaration.
4717         * web.c (web_entry_base::unionfind_root): Modify to be member
4718         function and adjust accessors.
4719         (unionfind_union): Modify to be friend function and adjust
4720         accessors.
4721         (web_entry): New subclass of web_entry_base containing the reg
4722         member.
4723         (union_match_dups): Modify for struct -> class changes.
4724         (union_defs): Likewise.
4725         (entry_register): Likewise.
4726         (pass_web::execute): Likewise.
4728 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
4730         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
4731         builtin define __VEC_ELEMENT_REG_ORDER__.
4733 2014-08-20  Martin Jambor  <mjambor@suse.cz>
4734             Wei Mi  <wmi@google.com>
4736         PR ipa/60449
4737         PR middle-end/61776
4738         * tree-ssa-operands.c (update_stmt_operands): Remove
4739         MODIFIED_NORETURN_CALLS.
4740         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
4741         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
4742         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
4743         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
4744         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
4745         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
4746         (gimple_call_set_ctrl_altering): New func.
4747         (gimple_call_ctrl_altering_p): Ditto.
4748         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
4749         (make_blocks): Use gimple_call_initialize_ctrl_altering.
4750         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
4751         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
4752         remove MODIFIED_NORETURN_CALLS.
4754 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
4756         * coverage.c (coverage_compute_profile_id): Return non-0;
4757         also handle symbols with unique name.
4758         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
4760 2014-08-20  Steve Ellcey  <sellcey@mips.com>
4762         PR middle-end/49191
4763         * doc/sourcebuild.texi (non_strict_align): New.
4765 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
4767         * cgraphunit.c (ipa_passes, compile): Reshedule
4768         symtab_remove_unreachable_nodes passes; update comments.
4769         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
4770         TODO_remove_functions before the pass; the functions ought to be
4771         already removed.
4772         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
4773         TODO_remove_functions.
4774         * passes.c (pass_data_early_local_passes): Do not schedule function
4775         removal.
4776         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
4778 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4780         PR c/59304
4781         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
4782         before setting the option.
4783         * diagnostic.c (diagnostic_classify_diagnostic): Record
4784         command-line status.
4786 2014-08-20  Richard Biener  <rguenther@suse.de>
4788         PR lto/62190
4789         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
4790         to build uint{16,32,64}_type_node.
4792 2014-08-20  Terry Guo  <terry.guo@arm.com>
4794         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
4795         with immediate_operand.
4797 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
4799         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
4800         "insn" from an as_a to a safe_as_a, for the case when "insn" is
4801         NULL.
4803 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4805         PR preprocessor/51303
4806         * incpath.c (remove_duplicates): Use cpp_warning.
4808 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4810         PR c/60975
4811         PR c/53063
4812         * doc/options.texi (CPP): Document it.
4813         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
4814         * optc-gen.awk: Handle CPP.
4815         * opth-gen.awk: Likewise.
4817 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
4819         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
4820         rtx_insn *.
4821         (duplicate_insn_chain): Likewise.
4822         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
4823         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
4824         checked cast for now (until we can strengthen the params in the
4825         same way).
4826         (duplicate_insn_chain): Likewise.
4828 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
4830         * rtl.h (next_cc0_user): Strengthen return type from rtx to
4831         rtx_insn *.
4832         (prev_cc0_setter): Likewise.
4834         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
4835         rtx_insn *, adding checked casts for now as necessary.
4836         (prev_cc0_setter): Likewise.
4838 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
4840         * expr.h (emit_move_insn): Strengthen return type from rtx to
4841         rtx_insn *.
4842         (emit_move_insn_1): Likewise.
4843         (emit_move_complex_push): Likewise.
4844         (emit_move_complex_parts): Likewise.
4846         * expr.c (emit_move_via_integer): Strengthen return type from rtx
4847         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
4848         with insns.
4849         (emit_move_complex_push): Strengthen return type from rtx to
4850         rtx_insn *.
4851         (emit_move_complex): Likewise, also for local "ret".
4852         (emit_move_ccmode): Likewise.
4853         (emit_move_multi_word): Likewise for return type and locals
4854         "last_insn", "seq".
4855         (emit_move_insn_1): Likewise for return type and locals "result",
4856         "ret".
4857         (emit_move_insn): Likewise for return type and local "last_insn".
4858         (compress_float_constant): Likewise.
4860 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
4862         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
4863         from rtx to rtx_insn *.
4865         * rtl.h (emit_insn_before): Likewise.
4866         (emit_insn_before_noloc): Likewise.
4867         (emit_insn_before_setloc): Likewise.
4868         (emit_jump_insn_before): Likewise.
4869         (emit_jump_insn_before_noloc): Likewise.
4870         (emit_jump_insn_before_setloc): Likewise.
4871         (emit_call_insn_before): Likewise.
4872         (emit_call_insn_before_noloc): Likewise.
4873         (emit_call_insn_before_setloc): Likewise.
4874         (emit_debug_insn_before): Likewise.
4875         (emit_debug_insn_before_noloc): Likewise.
4876         (emit_debug_insn_before_setloc): Likewise.
4877         (emit_label_before): Likewise.
4878         (emit_insn_after): Likewise.
4879         (emit_insn_after_noloc): Likewise.
4880         (emit_insn_after_setloc): Likewise.
4881         (emit_jump_insn_after): Likewise.
4882         (emit_jump_insn_after_noloc): Likewise.
4883         (emit_jump_insn_after_setloc): Likewise.
4884         (emit_call_insn_after): Likewise.
4885         (emit_call_insn_after_noloc): Likewise.
4886         (emit_call_insn_after_setloc): Likewise.
4887         (emit_debug_insn_after): Likewise.
4888         (emit_debug_insn_after_noloc): Likewise.
4889         (emit_debug_insn_after_setloc): Likewise.
4890         (emit_label_after): Likewise.
4891         (emit_insn): Likewise.
4892         (emit_debug_insn): Likewise.
4893         (emit_jump_insn): Likewise.
4894         (emit_call_insn): Likewise.
4895         (emit_label): Likewise.
4896         (gen_clobber): Likewise.
4897         (emit_clobber): Likewise.
4898         (gen_use): Likewise.
4899         (emit_use): Likewise.
4900         (emit): Likewise.
4902         (emit_barrier_before): Strengthen return type from rtx to
4903         rtx_barrier *.
4904         (emit_barrier_after): Likewise.
4905         (emit_barrier): Likewise.
4907         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
4908         from rtx to rtx_insn *.  Add checked casts for now when converting
4909         "last" from rtx to rtx_insn *.
4910         (emit_insn_before_noloc): Likewise for return type.
4911         (emit_jump_insn_before_noloc): Likewise.
4912         (emit_call_insn_before_noloc): Likewise.
4913         (emit_debug_insn_before_noloc): Likewise.
4914         (emit_barrier_before): Strengthen return type and local "insn"
4915         from rtx to rtx_barrier *.
4916         (emit_label_before): Strengthen return type from rtx to
4917         rtx_insn *.  Add checked cast for now when returning param
4918         (emit_pattern_after_noloc): Strengthen return type from rtx to
4919         rtx_insn *.  Add checked casts for now when converting "last" from
4920         rtx to rtx_insn *.
4921         (emit_insn_after_noloc): Strengthen return type from rtx to
4922         rtx_insn *.
4923         (emit_jump_insn_after_noloc): Likewise.
4924         (emit_call_insn_after_noloc): Likewise.
4925         (emit_debug_insn_after_noloc): Likewise.
4926         (emit_barrier_after): Strengthen return type from rtx to
4927         rtx_barrier *.
4928         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
4929         Add checked cast for now when converting "label" from rtx to
4930         rtx_insn *.
4931         (emit_pattern_after_setloc): Strengthen return type from rtx to
4932         rtx_insn *.  Add checked casts for now when converting "last" from
4933         rtx to rtx_insn *.
4934         (emit_pattern_after): Strengthen return type from rtx to
4935         rtx_insn *.
4936         (emit_insn_after_setloc): Likewise.
4937         (emit_insn_after): Likewise.
4938         (emit_jump_insn_after_setloc): Likewise.
4939         (emit_jump_insn_after): Likewise.
4940         (emit_call_insn_after_setloc): Likewise.
4941         (emit_call_insn_after): Likewise.
4942         (emit_debug_insn_after_setloc): Likewise.
4943         (emit_debug_insn_after): Likewise.
4944         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
4945         when converting "last" from rtx to rtx_insn *.
4946         (emit_pattern_before): Strengthen return type from rtx to
4947         rtx_insn *.
4948         (emit_insn_before_setloc): Likewise.
4949         (emit_insn_before): Likewise.
4950         (emit_jump_insn_before_setloc): Likewise.
4951         (emit_jump_insn_before): Likewise.
4952         (emit_call_insn_before_setloc): Likewise.
4953         (emit_call_insn_before): Likewise.
4954         (emit_debug_insn_before_setloc): Likewise.
4955         (emit_debug_insn_before): Likewise.
4956         (emit_insn): Strengthen return type and locals "last", "insn",
4957         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
4958         within cases where we know we have an insn.
4959         (emit_debug_insn): Likewise.
4960         (emit_jump_insn): Likewise.
4961         (emit_call_insn): Strengthen return type and local "insn" from rtx
4962         to rtx_insn *.
4963         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
4964         a checked cast to rtx_insn * for now on "label".
4965         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
4966         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
4967         (emit_use): Likewise.
4968         (gen_use): Likewise, also for local "seq".
4969         (emit): Likewise for return type and local "insn".
4970         (rtx_insn): Likewise for return type and local "new_rtx".
4972         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
4973         from rtx to rtx_barrier *.
4975         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
4976         changed return type from rtx to rtx_insn *, we must update
4977         "emit_fn" type, and this in turn means updating...
4978         (frame_insn): ...this.  Strengthen return type from rtx to
4979         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
4981 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
4983         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
4984         rtx to rtx_jump_table_data *.  Also for local.
4985         * rtl.h (emit_jump_table_data): Likewise.
4987 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
4989         * basic-block.h (create_basic_block_structure): Strengthen third
4990         param "bb_note" from rtx to rtx_note *.
4991         * rtl.h (emit_note_before): Strengthen return type from rtx to
4992         rtx_note *.
4993         (emit_note_after): Likewise.
4994         (emit_note): Likewise.
4995         (emit_note_copy): Likewise.  Also, strengthen param similarly.
4996         * function.h (struct rtl_data): Strengthen field
4997         "x_stack_check_probe_note" from rtx to rtx_note *.
4999         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5000         from rtx to rtx_note *.
5001         * cfgrtl.c (create_basic_block_structure): Strengthen third param
5002         "bb_note" from rtx to rtx_note *.
5003         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
5004         when calling emit_note_copy.
5005         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5006         rtx_note *.
5007         (emit_note_after): Likewise.
5008         (emit_note_before): Likewise.
5009         (emit_note_copy): Likewise.  Also, strengthen param similarly.
5010         (emit_note): Likewise.
5011         * except.c (emit_note_eh_region_end): Likewise for return type.
5012         Strengthen local "next" from rtx to rtx_insn *.
5013         (convert_to_eh_region_ranges): Strengthen local "note"
5014         from rtx to rtx_note *.
5015         * final.c (change_scope): Likewise.
5016         (reemit_insn_block_notes): Likewise, for both locals named "note".
5017         Also, strengthen local "insn" from rtx to rtx_insn *.
5018         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5019         rtx to rtx_note *.
5020         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5021         strengthen local "seq" from rtx to rtx_insn *.
5022         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5023         to rtx_note *.
5024         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5025         vec<rtx_note *>.
5026         (get_bb_note_from_pool): Strengthen return type from rtx to
5027         rtx_note *.
5028         (sel_create_basic_block): Strengthen local "new_bb_note" from
5029         insn_t to rtx_note *.
5030         * var-tracking.c (emit_note_insn_var_location): Strengthen local
5031         "note" from rtx to rtx_note *.
5032         (emit_notes_in_bb): Likewise.
5034 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5036         * function.h (struct rtl_data): Strengthen field
5037         "x_parm_birth_insn" from rtx to rtx_insn *.
5038         * function.c (struct assign_parm_data_all): Strengthen fields
5039         "first_conversion_insn" and "last_conversion_insn" from rtx to
5040         rtx_insn *.
5042 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5044         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5045         to rtx_insn *; also for local "var_end_seq".
5046         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5047         (maybe_cleanup_end_of_block): Likewise for param "last" and local
5048         "insn".
5049         (expand_gimple_cond): Likewise for locals "last2" and "last".
5050         (mark_transaction_restart_calls): Likewise for local "insn".
5051         (expand_gimple_stmt): Likewise for return type and locals "last"
5052         and "insn".
5053         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5054         (avoid_complex_debug_insns): Likewise for param "insn".
5055         (expand_debug_locations): Likewise for locals "insn", "last",
5056         "prev_insn" and "insn2".
5057         (expand_gimple_basic_block): Likewise for local "last".
5058         (construct_exit_block): Likewise for locals "head", "end",
5059         "orig_end".
5060         (pass_expand::execute): Likewise for locals "var_seq",
5061         "var_ret_seq", "next".
5063 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5065         * asan.h (asan_emit_stack_protection): Strengthen return type from
5066         rtx to rtx_insn *.
5067         * asan.c (asan_emit_stack_protection): Likewise.  Add local
5068         "insns" to hold the return value.
5070 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5072         * basic-block.h (bb_note): Strengthen return type from rtx to
5073         rtx_note *.
5074         * sched-int.h (bb_note): Likewise.
5075         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
5077 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5079         * rtl.h (make_insn_raw): Strengthen return type from rtx to
5080         rtx_insn *.
5082         * emit-rtl.c (make_insn_raw): Strengthen return type and local
5083         "insn" from rtx to rtx_insn *.
5084         (make_debug_insn_raw): Strengthen return type from rtx to
5085         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5086         (make_jump_insn_raw):  Strengthen return type from rtx to
5087         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5088         (make_call_insn_raw):  Strengthen return type from rtx to
5089         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5090         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5091         callback from rtx to rtx_insn *; likewise for local "insn" and
5092         "next", adding a checked cast to rtx_insn in the relevant cases of
5093         the switch statement.
5094         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5095         callback from rtx to rtx_insn *.
5096         (emit_pattern_after_setloc): Likewise.
5097         (emit_pattern_after): Likewise.
5098         (emit_pattern_before_setloc): Likewise.
5099         (emit_pattern_before): Likewise.
5101 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5103         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5104         rtx_call_insn *.
5105         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5106         accepting an rtx_insn *.
5107         (last_call_insn): Strengthen return type from rtx to
5108         rtx_call_insn *.
5110 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5112         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5113         "insns" from rtx to rtx_insn *.
5114         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5115         locals "insn" and "prev".
5117 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5119         * rtl.h (tablejump_p): Strengthen third param from rtx * to
5120         rtx_jump_table_data **.
5122         * cfgbuild.c (make_edges): Introduce local "table", using it in
5123         place of "tmp" for jump table data.
5124         (find_bb_boundaries): Strengthen local "table" from rtx to
5125         rtx_jump_table_data *.
5126         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5127         (outgoing_edges_match): Likewise for locals "table1" and "table2".
5128         (try_crossjump_to_edge): Likewise.
5129         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5130         "table".
5131         (patch_jump_insn): Introduce local "table", using it in place of
5132         "tmp" for jump table data.
5133         (force_nonfallthru_and_redirect): Introduce local "table", so that
5134         call to tablejump_p can receive an rtx_jump_table_data **.  Update
5135         logic around the call to overwrite "note" appropriately if
5136         tablejump_p returns non-zero.
5137         (get_last_bb_insn): Introduce local "table", using it in place of
5138         "tmp" for jump table data.
5139         * dwarf2cfi.c (create_trace_edges): Likewise.
5141         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5142         from rtx to rtx_jump_table_data *.
5143         (create_fix_barrier): Strengthen local "tmp" from rtx to
5144         rtx_jump_table_data *.
5145         (arm_reorg): Likewise for local "table".
5147         * config/s390/s390.c (s390_chunkify_start): Likewise.
5149         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5151         * jump.c (delete_related_insns): Strengthen local "lab_next" from
5152         rtx to rtx_jump_table_data *.
5154         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5155         rtx_jump_table_data **.  Add a checked cast when writing through
5156         the pointer: we know there that local "table" is non-NULL and that
5157         JUMP_TABLE_DATA_P (table) holds.
5158         (label_is_jump_target_p): Introduce local "table", using it in
5159         place of "tmp" for jump table data.
5161 2014-08-19  Marek Polacek  <polacek@redhat.com>
5163         PR c++/62153
5164         * doc/invoke.texi: Document -Wbool-compare.
5166 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5168         * rtl.h (entry_of_function): Strengthen return type from rtx to
5169         rtx_insn *.
5170         * cfgrtl.c (entry_of_function): Likewise.
5172 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5174         * emit-rtl.h (get_insns): Strengthen return type from rtx to
5175         rtx_insn *, adding a checked cast for now.
5176         (get_last_insn): Likewise.
5178 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5180         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5181         rtx_code_label *.
5183         * emit-rtl.c (gen_label_rtx): Likewise.
5185 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5187         * rtl.h (previous_insn): Strengthen return type from rtx to
5188         rtx_insn *.
5189         (next_insn): Likewise.
5190         (prev_nonnote_insn): Likewise.
5191         (prev_nonnote_insn_bb): Likewise.
5192         (next_nonnote_insn): Likewise.
5193         (next_nonnote_insn_bb): Likewise.
5194         (prev_nondebug_insn): Likewise.
5195         (next_nondebug_insn): Likewise.
5196         (prev_nonnote_nondebug_insn): Likewise.
5197         (next_nonnote_nondebug_insn): Likewise.
5198         (prev_real_insn): Likewise.
5199         (next_real_insn): Likewise.
5200         (prev_active_insn): Likewise.
5201         (next_active_insn): Likewise.
5203         * emit-rtl.c (next_insn): Strengthen return type from rtx to
5204         rtx_insn *, adding a checked cast.
5205         (previous_insn): Likewise.
5206         (next_nonnote_insn): Likewise.
5207         (next_nonnote_insn_bb): Likewise.
5208         (prev_nonnote_insn): Likewise.
5209         (prev_nonnote_insn_bb): Likewise.
5210         (next_nondebug_insn): Likewise.
5211         (prev_nondebug_insn): Likewise.
5212         (next_nonnote_nondebug_insn): Likewise.
5213         (prev_nonnote_nondebug_insn): Likewise.
5214         (next_real_insn): Likewise.
5215         (prev_real_insn): Likewise.
5216         (next_active_insn): Likewise.
5217         (prev_active_insn): Likewise.
5219         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5220         param "stepfunc" so that it returns an rtx_insn * rather than an
5221         rtx, to track the change to prev_nonnote_insn_bb, which is the
5222         only function this is called with.
5223         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5225 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
5227         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5228         assert.
5230 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5232         * coretypes.h (class rtx_debug_insn): Add forward declaration.
5233         (class rtx_nonjump_insn): Likewise.
5234         (class rtx_jump_insn): Likewise.
5235         (class rtx_call_insn): Likewise.
5236         (class rtx_jump_table_data): Likewise.
5237         (class rtx_barrier): Likewise.
5238         (class rtx_code_label): Likewise.
5239         (class rtx_note): Likewise.
5241         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5242         adding the invariant DEBUG_INSN_P (X).
5243         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5244         the invariant NONJUMP_INSN_P (X).
5245         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5246         the invariant JUMP_P (X).
5247         (class rtx_call_insn): New, a subclass of rtx_insn, adding
5248         the invariant CALL_P (X).
5249         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5250         invariant JUMP_TABLE_DATA_P (X).
5251         (class rtx_barrier): New, a subclass of rtx_insn, adding the
5252         invariant BARRIER_P (X).
5253         (class rtx_code_label): New, a subclass of rtx_insn, adding
5254         the invariant LABEL_P (X).
5255         (class rtx_note): New, a subclass of rtx_insn, adding
5256         the invariant NOTE_P(X).
5257         (is_a_helper <rtx_debug_insn *>::test): New.
5258         (is_a_helper <rtx_nonjump_insn *>::test): New.
5259         (is_a_helper <rtx_jump_insn *>::test): New.
5260         (is_a_helper <rtx_call_insn *>::test): New.
5261         (is_a_helper <rtx_jump_table_data *>::test): New functions,
5262         overloaded for both rtx and rtx_insn *.
5263         (is_a_helper <rtx_barrier *>::test): New.
5264         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5265         for both rtx and rtx_insn *.
5266         (is_a_helper <rtx_note *>::test): New.
5268 2014-08-19  Marek Polacek  <polacek@redhat.com>
5270         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5271         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5272         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5273         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5275 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5277         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5278         rtx_insn *.  To help with transition, for now, convert from an
5279         access macro into a pair of functions: BND_TO, returning an
5280         rtx_insn *, and...
5281         (SET_BND_TO): New function, for use where BND_TO is used as an
5282         lvalue.
5284         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5285         SET_BND_TO.
5286         (BND_TO): New function, adding a checked cast.
5287         (SET_BND_TO): New function.
5289         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5290         SET_BND_TO.
5291         (compute_av_set_on_boundaries): Likewise.
5293 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
5295         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5296         destination if it is used in source.
5297         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5298         (*popcount<mode>2_falsedep_1): Likewise.
5300 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
5302         PR other/62168
5303         * configure.ac: Set install_gold_as_default to no first.
5304         * configure: Regenerated.
5306 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5308         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5309         "note_list" field will eventually be an rtx_insn *.  To help with
5310         transition, for now, convert from an access macro into a pair of
5311         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5312         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5313         used as an lvalue.
5315         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5316         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5318         * sel-sched-ir.c (init_bb): Likewise.
5319         (sel_restore_notes): Likewise.
5320         (move_bb_info): Likewise.
5321         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5322         (SET_BB_NOTE_LIST): New function.
5324 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5326         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5327         field will eventually be an rtx_insn *.  To help with transition,
5328         for now, convert from an access macro into a pair of functions:
5329         VINSN_INSN_RTX, returning an rtx_insn *, and...
5330         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5331         is used as an lvalue.
5333         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5334         SET_VINSN_INSN_RTX where it's used as an lvalue.
5335         (VINSN_INSN_RTX): New function.
5336         (SET_VINSN_INSN_RTX): New function.
5338 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5340         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5341         eventually be rtx_insn *, but to help with transition, for now,
5342         convert from an access macro into a pair of functions: DEP_PRO
5343         returning an rtx_insn * and...
5344         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5345         lvalue, returning an rtx&.
5346         (DEP_CON): Analogous changes to DEP_PRO above.
5347         (SET_DEP_CON): Likewise.
5349         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5350         an lvalue to SET_DEP_CON.
5351         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5352         (sd_copy_back_deps): Likewise for DEP_CON.
5353         (DEP_PRO): New function, adding a checked cast for now.
5354         (DEP_CON): Likewise.
5355         (SET_DEP_PRO): New function.
5356         (SET_DEP_CON): Likewise.
5358 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
5360         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5361         (extra_options): Add i386/cygwin.opt.
5362         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5363         (CPP_SPEC): Accept -pthread.
5364         (LINK_SPEC): Ditto.
5365         (GOMP_SELF_SPECS): Update comment.
5366         * config/i386/cygwin.opt: New file for -pthread flag.
5368 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5370         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5371         * df.h (DF_REF_INSN): Convert from a macro to a function, so
5372         that we can return an rtx_insn *.
5374 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
5376         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5377         when building executables, not DLLs.  Add --large-address-aware
5378         under the same conditions.
5379         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5380         when building executables, not DLLs.  Add --large-address-aware
5381         under the same conditions when using -m32.
5383         * config/i386/cygwin-stdint.h: Throughout, make type
5384         definitions dependent on target architecture, not host.
5386 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5388         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
5389         the return type from rtx to rtx_insn *,  which will enable various
5390         conversions in followup patches.  For now this is is done by a
5391         checked cast.
5392         (NEXT_INSN): Likewise.
5393         (SET_PREV_INSN): Convert to an inline function.  This is intended
5394         for use as an lvalue, and so returns an rtx& to allow in-place
5395         modification.
5396         (SET_NEXT_INSN): Likewise.
5398 2014-07-08  Mark Wielaard  <mjw@redhat.com>
5400         PR debug/59051
5401         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5403 2014-08-19  Marek Polacek  <polacek@redhat.com>
5405         PR c/61271
5406         * cgraphunit.c (handle_alias_pairs): Fix condition.
5408 2014-08-19  Richard Biener  <rguenther@suse.de>
5410         * gimple-fold.c (fold_gimple_assign): Properly build a
5411         null-pointer constant when devirtualizing addresses.
5413 2014-07-07  Mark Wielaard  <mjw@redhat.com>
5415         * dwarf2out.c (decl_quals): New function.
5416         (modified_type_die): Take one cv_quals argument instead of two,
5417         one for const and one for volatile.
5418         (add_type_attribute): Likewise.
5419         (generic_parameter_die): Call add_type_attribute with one modifier
5420         argument.
5421         (base_type_for_mode): Likewise.
5422         (add_bounds_info): Likewise.
5423         (add_subscript_info): Likewise.
5424         (gen_array_type_die): Likewise.
5425         (gen_descr_array_type_die): Likewise.
5426         (gen_entry_point_die): Likewise.
5427         (gen_enumeration_type_die): Likewise.
5428         (gen_formal_parameter_die): Likewise.
5429         (gen_subprogram_die): Likewise.
5430         (gen_variable_die): Likewise.
5431         (gen_const_die): Likewise.
5432         (gen_field_die): Likewise.
5433         (gen_pointer_type_die): Likewise.
5434         (gen_reference_type_die): Likewise.
5435         (gen_ptr_to_mbr_type_die): Likewise.
5436         (gen_inheritance_die): Likewise.
5437         (gen_subroutine_type_die): Likewise.
5438         (gen_typedef_die): Likewise.
5439         (force_type_die): Likewise.
5441 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5443         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5444         if unset.
5445         * configure: Regenerate.
5447 2014-08-19  Richard Biener  <rguenther@suse.de>
5449         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5450         DECL_EXTERNALs in BLOCKs as non-references.
5451         * tree-streamer-out.c (streamer_write_chain): Likewise.
5453 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5454             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5455             Anna Tikhonova  <anna.tikhonova@intel.com>
5456             Ilya Tocar  <ilya.tocar@intel.com>
5457             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5458             Ilya Verbin  <ilya.verbin@intel.com>
5459             Kirill Yukhin  <kirill.yukhin@intel.com>
5460             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5462         * config/i386/sse.md
5463         (define_mode_iterator VI48_AVX512F): Delete.
5464         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5465         (define_mode_iterator VI2_AVX512VL): Ditto.
5466         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5467         Delete.
5468         (define_insn
5469         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5470         New.
5471         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5472         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5473         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5474         with VI48_AVX512F_AVX512VL): New.
5475         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5476         with VI2_AVX512VL): Ditto.
5478 2014-08-19  Marek Polacek  <polacek@redhat.com>
5480         * doc/invoke.texi: Document -Wc99-c11-compat.
5482 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5484         * rtl.h (PREV_INSN): Split macro in two: the existing one,
5485         for rvalues, and...
5486         (SET_PREV_INSN): New macro, for use as an lvalue.
5487         (NEXT_INSN, SET_NEXT_INSN): Likewise.
5489         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5490         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5491         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5492         (fixup_abnormal_edges): Likewise.
5493         (unlink_insn_chain): Likewise.
5494         (fixup_reorder_chain): Likewise.
5495         (cfg_layout_delete_block): Likewise.
5496         (cfg_layout_merge_blocks): Likewise.
5497         * combine.c (update_cfg_for_uncondjump): Likewise.
5498         * emit-rtl.c (link_insn_into_chain): Likewise.
5499         (remove_insn): Likewise.
5500         (delete_insns_since): Likewise.
5501         (reorder_insns_nobb): Likewise.
5502         (emit_insn_after_1): Likewise.
5503         * final.c (rest_of_clean_state): Likewise.
5504         (final_scan_insn): Likewise.
5505         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5506         * haifa-sched.c (concat_note_lists): Likewise.
5507         (remove_notes): Likewise.
5508         (restore_other_notes): Likewise.
5509         (move_insn): Likewise.
5510         (unlink_bb_notes): Likewise.
5511         (restore_bb_notes): Likewise.
5512         * jump.c (delete_for_peephole): Likewise.
5513         * optabs.c (emit_libcall_block_1): Likewise.
5514         * reorg.c (emit_delay_sequence): Likewise.
5515         (fill_simple_delay_slots): Likewise.
5516         * sel-sched-ir.c (sel_move_insn): Likewise.
5517         (sel_remove_insn): Likewise.
5518         (get_bb_note_from_pool): Likewise.
5519         * sel-sched.c (move_nop_to_previous_block): Likewise.
5521         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5522         * config/c6x/c6x.c (gen_one_bundle): Likewise.
5523         (c6x_gen_bundles): Likewise.
5524         (hwloop_optimize): Likewise.
5525         * config/frv/frv.c (frv_function_prologue): Likewise.
5526         (frv_register_nop): Likewise.
5527         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5528         (ia64_reorg): Likewise.
5529         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5530         (mep_make_bundle): Likewise.
5531         (mep_bundle_insns): Likewise.
5532         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5533         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5534         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5536 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
5538         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
5539         return type from rtx to rtx_insn *.
5540         (BB_END): Likewise.
5541         (BB_HEADER): Likewise.
5542         (BB_FOOTER): Likewise.
5543         (SET_BB_HEAD): Convert to a function.
5544         (SET_BB_END): Likewise.
5545         (SET_BB_HEADER): Likewise.
5546         (SET_BB_FOOTER): Likewise.
5548         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5549         Strengthen the return type from rtx to rtx_insn *.  For now, this
5550         is done by adding a checked cast, but this will eventually
5551         become a field lookup.
5552         (BB_END): Likewise.
5553         (BB_HEADER): Likewise.
5554         (BB_FOOTER): Likewise.
5555         (SET_BB_HEAD): New function, from macro of same name.  This is
5556         intended for use as an lvalue, and so returns an rtx& to allow
5557         in-place modification.
5558         (SET_BB_END): Likewise.
5559         (SET_BB_HEADER): Likewise.
5560         (SET_BB_FOOTER): Likewise.
5562 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
5564         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
5565         for rvalues, and...
5566         (SET_BB_HEAD): New macro, for use as a lvalue.
5567         (BB_END, SET_BB_END): Likewise.
5568         (BB_HEADER, SET_BB_HEADER): Likewise.
5569         (BB_FOOTER, SET_BB_FOOTER): Likewise.
5571         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
5572         of BB_* macros into SET_BB_* macros.
5573         (fix_crossing_unconditional_branches): Likewise.
5574         * caller-save.c (save_call_clobbered_regs): Likewise.
5575         (insert_one_insn): Likewise.
5576         * cfgbuild.c (find_bb_boundaries): Likewise.
5577         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5578         (outgoing_edges_match): Likewise.
5579         (try_optimize_cfg): Likewise.
5580         * cfgexpand.c (expand_gimple_cond): Likewise.
5581         (expand_gimple_tailcall): Likewise.
5582         (expand_gimple_basic_block): Likewise.
5583         (construct_exit_block): Likewise.
5584         * cfgrtl.c (delete_insn): Likewise.
5585         (create_basic_block_structure): Likewise.
5586         (rtl_delete_block): Likewise.
5587         (rtl_split_block): Likewise.
5588         (emit_nop_for_unique_locus_between): Likewise.
5589         (rtl_merge_blocks): Likewise.
5590         (block_label): Likewise.
5591         (try_redirect_by_replacing_jump): Likewise.
5592         (emit_barrier_after_bb): Likewise.
5593         (fixup_abnormal_edges): Likewise.
5594         (record_effective_endpoints): Likewise.
5595         (relink_block_chain): Likewise.
5596         (fixup_reorder_chain): Likewise.
5597         (fixup_fallthru_exit_predecessor): Likewise.
5598         (cfg_layout_duplicate_bb): Likewise.
5599         (cfg_layout_split_block): Likewise.
5600         (cfg_layout_delete_block): Likewise.
5601         (cfg_layout_merge_blocks): Likewise.
5602         * combine.c (update_cfg_for_uncondjump): Likewise.
5603         * emit-rtl.c (add_insn_after): Likewise.
5604         (remove_insn): Likewise.
5605         (reorder_insns): Likewise.
5606         (emit_insn_after_1): Likewise.
5607         * haifa-sched.c (get_ebb_head_tail): Likewise.
5608         (restore_other_notes): Likewise.
5609         (move_insn): Likewise.
5610         (sched_extend_bb): Likewise.
5611         (fix_jump_move): Likewise.
5612         * ifcvt.c (noce_process_if_block): Likewise.
5613         (dead_or_predicable): Likewise.
5614         * ira.c (update_equiv_regs): Likewise.
5615         * reg-stack.c (change_stack): Likewise.
5616         * sel-sched-ir.c (sel_move_insn): Likewise.
5617         * sel-sched.c (move_nop_to_previous_block): Likewise.
5619         * config/c6x/c6x.c (hwloop_optimize): Likewise.
5620         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5622 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
5624         * rtl.h (for_each_rtx_in_insn): New function.
5625         * rtlanal.c (for_each_rtx_in_insn): Likewise.
5627 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
5629         * coretypes.h (class rtx_insn): Add forward declaration.
5631         * rtl.h: Include is-a.h.
5632         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
5633         workaround to ensure gengtype knows inheritance is occurring,
5634         whilst continuing to use the pre-existing special-casing for
5635         rtx_def.
5636         (class rtx_insn): New subclass of rtx_def, adding the
5637         invariant that we're dealing with something we can sanely use
5638         INSN_UID, NEXT_INSN, PREV_INSN on.
5639         (is_a_helper <rtx_insn *>::test): New.
5640         (is_a_helper <const rtx_insn *>::test): New.
5642 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
5644         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
5646 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
5648         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
5649         comdats as extern.
5651 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
5653         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
5654         to BUILT_IN_UNREACHABLE.
5656 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
5658         PR target/62011
5659         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
5660         New tune flag.
5661         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
5662         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
5663         (ffs<mode>2): Do not expand with tzcnt for
5664         TARGET_AVOID_FALSE_DEP_FOR_BMI.
5665         (ffssi2_no_cmove): Ditto.
5666         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
5667         (ctz<mode>2): New expander.
5668         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
5669         (*ctz<mode>2_falsedep): New insn.
5670         (*ctz<mode>2): Rename from ctz<mode>2.
5671         (clz<mode>2_lzcnt): New expander.
5672         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
5673         (*clz<mode>2_lzcnt_falsedep): New insn.
5674         (*clz<mode>2): Rename from ctz<mode>2.
5675         (popcount<mode>2): New expander.
5676         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
5677         (*popcount<mode>2_falsedep): New insn.
5678         (*popcount<mode>2): Rename from ctz<mode>2.
5679         (*popcount<mode>2_cmp): Remove.
5680         (*popcountsi2_cmp_zext): Ditto.
5682 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
5684         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
5685         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
5686         * config/microblaze/microblaze.h
5687         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
5689 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
5691         PR other/62168
5692         * configure.ac: Set install_gold_as_default to no for
5693          --enable-gold=no.
5694          * configure: Regenerated.
5696 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
5698         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
5699         * config.in: Add undef of HAVE_isl.
5700         * configure: Regenerate.
5701         * configure.ac: Add definition of HAVE_isl.
5702         * graphite-blocking.c: Add checking of HAVE_isl.
5703         * graphite-dependences.c: Likewise.
5704         * graphite-interchange.c: Likewise.
5705         * graphite-isl-ast-to-gimple.c: Likewise.
5706         * graphite-optimize-isl.c: Likewise.
5707         * graphite-poly.c: Likewise.
5708         * graphite-scop-detection.c: Likewise.
5709         * graphite-sese-to-poly.c: Likewise.
5710         * graphite.c: Likewise.
5711         * toplev.c: Replace the checking of HAVE_cloog with the checking
5712         of HAVE_isl.
5714 2014-08-18  Richard Biener  <rguenther@suse.de>
5716         PR tree-optimization/62090
5717         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
5718         (fold_builtin_3): Do not fold snprintf.
5719         (fold_builtin_4): Likewise.
5720         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
5721         moved from builtins.c.
5722         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
5723         (gimple_fold_builtin): Do not fold sprintf here.
5725 2014-08-18  Richard Biener  <rguenther@suse.de>
5727         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
5728         code to ...
5729         (maybe_canonicalize_mem_ref_addr): ... this function.
5730         (fold_stmt_1): Apply it here before all simplification.
5732 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
5734         PR ipa/61800
5735         * cgraph.h (cgraph_node::create_indirect_edge): Add
5736         compute_indirect_info param.
5737         * cgraph.c (cgraph_node::create_indirect_edge): Compute
5738         indirect_info only when it is required.
5739         * cgraphclones.c (cgraph_clone_edge): Do not recompute
5740         indirect_info fore cloned indirect edge.
5742 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5743             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5744             Anna Tikhonova  <anna.tikhonova@intel.com>
5745             Ilya Tocar  <ilya.tocar@intel.com>
5746             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5747             Ilya Verbin  <ilya.verbin@intel.com>
5748             Kirill Yukhin  <kirill.yukhin@intel.com>
5749             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5751         * config/i386/sse.md
5752         (define_mode_iterator VI8_AVX2_AVX512BW): New.
5753         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
5755 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5756             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5757             Anna Tikhonova  <anna.tikhonova@intel.com>
5758             Ilya Tocar  <ilya.tocar@intel.com>
5759             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5760             Ilya Verbin  <ilya.verbin@intel.com>
5761             Kirill Yukhin  <kirill.yukhin@intel.com>
5762             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5764         * config/i386/sse.md
5765         (define_mode_iterator VF1_AVX512VL): New.
5766         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
5767         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
5768         New.
5770 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5771             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5772             Anna Tikhonova  <anna.tikhonova@intel.com>
5773             Ilya Tocar  <ilya.tocar@intel.com>
5774             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5775             Ilya Verbin  <ilya.verbin@intel.com>
5776             Kirill Yukhin  <kirill.yukhin@intel.com>
5777             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5779         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
5780         * config/i386/i386.md
5781         (define_code_iterator any_float): New.
5782         (define_code_attr floatsuffix): New.
5783         * config/i386/sse.md
5784         (define_mode_iterator VF1_128_256VL): New.
5785         (define_mode_iterator VF2_512_256VL): New.
5786         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
5787         TARGET check.
5788         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
5789         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
5790         New.
5791         (define_mode_attr qq2pssuff): New.
5792         (define_mode_attr sselongvecmode): New.
5793         (define_mode_attr sselongvecmodelower): New.
5794         (define_mode_attr sseintvecmode3): New.
5795         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
5796         New.
5797         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
5798         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
5799         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
5800         (define_insn "ufloatv2siv2df2<mask_name>"): New.
5802 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5803             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5804             Anna Tikhonova  <anna.tikhonova@intel.com>
5805             Ilya Tocar  <ilya.tocar@intel.com>
5806             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5807             Ilya Verbin  <ilya.verbin@intel.com>
5808             Kirill Yukhin  <kirill.yukhin@intel.com>
5809             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5811         * config/i386/sse.md
5812         (define_mode_iterator VF2_AVX512VL): New.
5813         (define_mode_attr sseintvecmode2): New.
5814         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
5815         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
5816         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
5817         (define_insn
5818         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
5819         Ditto.
5820         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5821         Ditto.
5822         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5823         Ditto.
5825 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5826             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5827             Anna Tikhonova  <anna.tikhonova@intel.com>
5828             Ilya Tocar  <ilya.tocar@intel.com>
5829             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5830             Ilya Verbin  <ilya.verbin@intel.com>
5831             Kirill Yukhin  <kirill.yukhin@intel.com>
5832             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5834         * config/i386/i386.md
5835         (define_insn "*movoi_internal_avx"): Add evex version.
5836         (define_insn "*movti_internal"): Ditto.
5838 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5839             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5840             Anna Tikhonova  <anna.tikhonova@intel.com>
5841             Ilya Tocar  <ilya.tocar@intel.com>
5842             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5843             Ilya Verbin  <ilya.verbin@intel.com>
5844             Kirill Yukhin  <kirill.yukhin@intel.com>
5845             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5847         * config/i386/i386.md
5848         (define_attr "isa"): Add avx512dq, noavx512dq.
5849         (define_attr "enabled"): Ditto.
5850         * config/i386/sse.md
5851         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
5853 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5854             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5855             Anna Tikhonova  <anna.tikhonova@intel.com>
5856             Ilya Tocar  <ilya.tocar@intel.com>
5857             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5858             Ilya Verbin  <ilya.verbin@intel.com>
5859             Kirill Yukhin  <kirill.yukhin@intel.com>
5860             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5862         * config/i386/i386.c
5863         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
5864         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
5865         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
5866         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
5867         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
5868         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
5869         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
5870         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
5871         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
5872         * config/i386/sse.md
5873         (define_mode_iterator VMOVE): Allow V4TI mode.
5874         (define_mode_iterator V_AVX512VL): New.
5875         (define_mode_iterator V): New handling for AVX512VL.
5876         (define_insn "avx512f_load<mode>_mask"): Delete.
5877         (define_insn "<avx512>_load<mode>_mask"): New.
5878         (define_insn "avx512f_store<mode>_mask"): Delete.
5879         (define_insn "<avx512>_store<mode>_mask"): New.
5882 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
5884         PR sanitizer/62089
5885         * asan.c (instrument_derefs): Fix bitfield check.
5887 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
5889         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
5890         * config/rs6000/htm.md (ttest): Remove clobber.
5891         * config/rs6000/predicates.md (any_mask_operand): New predicate.
5892         (and_operand): Reformat.
5893         (and_2rld_operand): New predicate.
5894         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
5895         parameter.
5896         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
5897         parameter.  Handle AND directly.
5898         (rs6000_split_logical_di): Remove last parameter.
5899         (rs6000_split_logical): Remove last parameter.  Remove obsolete
5900         comment.
5901         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
5902         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
5903         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
5904         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
5905         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
5906         and 5 anonymous splitters):  Delete.
5907         (and<mode>3): New expander.
5908         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
5909         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
5910         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
5911         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
5912         (floatdisf2_internal1): Remove clobbers.
5913         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
5914         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
5915         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
5916         (and<mode>3 for BOOL_128): Remove clobber.
5917         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
5918         rs6000_split_logical.
5919         (*bool<mode>3_internal for BOOL_128): Adjust call of
5920         rs6000_split_logical.
5921         (*boolc<mode>3_internal1 for BOOL_128,
5922         *boolc<mode>3_internal2 for BOOL_128,
5923         *boolcc<mode>3_internal1 for BOOL_128,
5924         *boolcc<mode>3_internal2 for BOOL_128,
5925         *eqv<mode>3_internal1 for BOOL_128,
5926         *eqv<mode>3_internal2 for BOOL_128,
5927         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
5928         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
5929         clobber.
5930         (*vec_reload_and_reg_<mptrsize>): Delete.
5932 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
5934         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
5935         and split, *boolccsi3_internal3 and split): Delete.
5936         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
5937         *boolccdi3_internal3 and split): Delete.
5938         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
5939         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
5941 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
5943         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
5944         and split, *boolcsi3_internal3 and split): Delete.
5945         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
5946         *boolcdi3_internal3 and split): Delete.
5947         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
5949 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
5951         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
5952         <'u'>: Also support printing the low-order 16 bits.
5953         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
5954         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
5955         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
5956         *booldi3_internal3 and split): Delete.
5957         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
5958         *bool<mode>3_dot2): New.
5959         (two anonymous define_splits for non_logical_cint_operand): Merge.
5961 2014-08-17  Marek Polacek  <polacek@redhat.com>
5962             Manuel López-Ibáñez  <manu@gcc.gnu.org>
5964         PR c/62059
5965         * diagnostic.c (adjust_line): Add gcc_checking_assert.
5966         (diagnostic_show_locus): Don't print caret diagnostic
5967         if a column is larger than the line_width.
5969 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
5971         * common.opt: Make the ISL AST generator to be the main code generator
5972         of Graphite.
5974 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
5976         * wide-int.h (generic_wide_int): Declare as class instead of struct.
5978 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
5980         PR target/61641
5981         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
5982         Declare.
5983         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
5984         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
5985         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
5986         Define.
5987         * config/pa/pa.md (begin_brtab): Delete insn.
5988         (end_brtab): Likewise.
5990 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5992         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
5994 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
5996         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
5997         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
5998         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
5999         (get_dynamic_type): Remove.
6000         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6001         (clear_speculation): Bring to ipa-deivrt.h
6002         (get_class_context): Rename to ...
6003         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6004         (contains_type_p): Update.
6005         (get_dynamic_type): Rename to ...
6006         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6007         (possible_polymorphic_call_targets): UPdate.
6008         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6009         * ipa-prop.c (ipa_analyze_call_uses): Update.
6011 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
6013         * doc/invoke.texi (SH options): Document missing processor variant
6014         options.  Remove references to Hitachi.  Undocument deprecated mspace
6015         option.
6017 2014-08-15  Jason Merrill  <jason@redhat.com>
6019         * tree.c (type_hash_canon): Uncomment assert.
6021 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6023         * input.h (in_system_header_at): Add comment.
6025 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6027         PR fortran/44054
6028         * diagnostic.c (build_message_string): Make it extern.
6029         * diagnostic.h (build_message_string): Make it extern.
6031 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
6033         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6034         load/store from/to non-floating class pseudo.
6036 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6038         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6040 2014-08-15  Richard Biener  <rguenther@suse.de>
6042         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6043         (get_constraint_for_ssa_var): Remove dead code.
6044         (get_constraint_for_1): Adjust.
6045         (find_what_var_points_to): Likewise.
6046         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
6048 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
6050         PR target/61878
6051         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6052         (_mm512_mask_cmpge_epu32_mask): Ditto.
6053         (_mm512_cmpge_epu32_mask): Ditto.
6054         (_mm512_mask_cmpge_epi64_mask): Ditto.
6055         (_mm512_cmpge_epi64_mask): Ditto.
6056         (_mm512_mask_cmpge_epu64_mask): Ditto.
6057         (_mm512_cmpge_epu64_mask): Ditto.
6058         (_mm512_mask_cmple_epi32_mask): Ditto.
6059         (_mm512_cmple_epi32_mask): Ditto.
6060         (_mm512_mask_cmple_epu32_mask): Ditto.
6061         (_mm512_cmple_epu32_mask): Ditto.
6062         (_mm512_mask_cmple_epi64_mask): Ditto.
6063         (_mm512_cmple_epi64_mask): Ditto.
6064         (_mm512_mask_cmple_epu64_mask): Ditto.
6065         (_mm512_cmple_epu64_mask): Ditto.
6066         (_mm512_mask_cmplt_epi32_mask): Ditto.
6067         (_mm512_cmplt_epi32_mask): Ditto.
6068         (_mm512_mask_cmplt_epu32_mask): Ditto.
6069         (_mm512_cmplt_epu32_mask): Ditto.
6070         (_mm512_mask_cmplt_epi64_mask): Ditto.
6071         (_mm512_cmplt_epi64_mask): Ditto.
6072         (_mm512_mask_cmplt_epu64_mask): Ditto.
6073         (_mm512_cmplt_epu64_mask): Ditto.
6074         (_mm512_mask_cmpneq_epi32_mask): Ditto.
6075         (_mm512_mask_cmpneq_epu32_mask): Ditto.
6076         (_mm512_cmpneq_epu32_mask): Ditto.
6077         (_mm512_mask_cmpneq_epi64_mask): Ditto.
6078         (_mm512_cmpneq_epi64_mask): Ditto.
6079         (_mm512_mask_cmpneq_epu64_mask): Ditto.
6080         (_mm512_cmpneq_epu64_mask): Ditto.
6081         (_mm512_castpd_ps): Ditto.
6082         (_mm512_castpd_si512): Ditto.
6083         (_mm512_castps_pd): Ditto.
6084         (_mm512_castps_si512): Ditto.
6085         (_mm512_castsi512_ps): Ditto.
6086         (_mm512_castsi512_pd): Ditto.
6087         (_mm512_castpd512_pd128): Ditto.
6088         (_mm512_castps512_ps128): Ditto.
6089         (_mm512_castsi512_si128): Ditto.
6090         (_mm512_castpd512_pd256): Ditto.
6091         (_mm512_castps512_ps256): Ditto.
6092         (_mm512_castsi512_si256): Ditto.
6093         (_mm512_castpd128_pd512): Ditto.
6094         (_mm512_castps128_ps512): Ditto.
6095         (_mm512_castsi128_si512): Ditto.
6096         (_mm512_castpd256_pd512): Ditto.
6097         (_mm512_castps256_ps512): Ditto.
6098         (_mm512_castsi256_si512): Ditto.
6099         (_mm512_cmpeq_epu32_mask): Ditto.
6100         (_mm512_mask_cmpeq_epu32_mask): Ditto.
6101         (_mm512_mask_cmpeq_epu64_mask): Ditto.
6102         (_mm512_cmpeq_epu64_mask): Ditto.
6103         (_mm512_cmpgt_epu32_mask): Ditto.
6104         (_mm512_mask_cmpgt_epu32_mask): Ditto.
6105         (_mm512_mask_cmpgt_epu64_mask): Ditto.
6106         (_mm512_cmpgt_epu64_mask): Ditto.
6107         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6108         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6109         * config/i386/i386.c (enum ix86_builtins): Add
6110         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6111         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6112         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6113         (bdesc_args): Add __builtin_ia32_si512_256si,
6114         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6115         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6116         __builtin_ia32_pd512_pd.
6117         (ix86_expand_args_builtin): Handle new FTYPEs.
6118         * config/i386/sse.md (castmode): Add 512-bit modes.
6119         (AVX512MODE2P): New.
6120         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6121         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6123 2014-08-15  Richard Biener  <rguenther@suse.de>
6125         * fold-const.c (tree_swap_operands_p): Put all constants
6126         last, also strip sign-changing NOPs when considering further
6127         canonicalization.  Canonicalize also when optimizing for size.
6129 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6131         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6132         one_match > zero_match case to just before simple_sequence.
6134 2014-08-15  Richard Biener  <rguenther@suse.de>
6136         * data-streamer.h (streamer_string_index, string_for_index):
6137         Remove.
6138         * data-streamer-out.c (streamer_string_index): Make static.
6139         * data-streamer-in.c (string_for_index): Likewise.
6140         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6141         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6143 2014-08-15  Richard Biener  <rguenther@suse.de>
6145         PR tree-optimization/62031
6146         * tree-data-ref.c (dr_analyze_indices): Do not set
6147         DR_UNCONSTRAINED_BASE.
6148         (dr_may_alias_p): All indirect accesses have to go the
6149         formerly DR_UNCONSTRAINED_BASE path.
6150         * tree-data-ref.h (struct indices): Remove
6151         unconstrained_base member.
6152         (DR_UNCONSTRAINED_BASE): Remove.
6154 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
6156         PR middle-end/62092
6157         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6158         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6159         in OMP_CLAUSE_MAP in some outer target region.
6161 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
6163         * tree-ssa-loop-ivopts.c (ivopts_data): New field
6164         name_expansion_cache.
6165         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6166         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6167         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6168         (difference_cannot_overflow_p): New parameter.  Use affine
6169         expansion for equality check.
6170         (iv_elimination_compare_lt): Pass new argument.
6172 2014-08-14  DJ Delorie  <dj@redhat.com>
6174         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6175         variables to the accumulator.
6177         * config/rl78/predicates.md (rl78_near_mem_operand): New.
6178         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6179         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6180         with far-far moves.
6182         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6183         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6184         (umulqihi3_virt): Likewise.
6185         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6186         (umulqihi3_real): Likewise.
6188         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6190 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
6192         PR tree-optimization/62091
6193         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6194         function_entry_reached.
6195         (walk_aliased_vdefs): Clear it here.
6196         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6198 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
6200         * ipa-utils.h (compare_virtual_tables): Declare.
6201         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6203 2014-08-14  Marek Polacek  <polacek@redhat.com>
6205         DR 458
6206         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6207         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6209 2014-08-14  Tom de Vries  <tom@codesourcery.com>
6211         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6213 2014-08-14  Tom de Vries  <tom@codesourcery.com>
6215         PR rtl-optimization/62004
6216         PR rtl-optimization/62030
6217         * ifcvt.c (rtx_interchangeable_p): New function.
6218         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6219         * emit-rtl.h (mem_attrs_eq_p): Declare.
6221 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
6223         * graphite-scop-detection.c:
6224         Add inclusion of cp-tree.h.
6225         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6226         in case they are pointers to object types
6228 2014-08-14  Richard Biener  <rguenther@suse.de>
6230         * BASE-VER: Change to 5.0.0
6232 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6233             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6234             Anna Tikhonova  <anna.tikhonova@intel.com>
6235             Ilya Tocar  <ilya.tocar@intel.com>
6236             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6237             Ilya Verbin  <ilya.verbin@intel.com>
6238             Kirill Yukhin  <kirill.yukhin@intel.com>
6239             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6241         * config/i386/sse.md (define_mode_attr avx512): New.
6242         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6243         V4DI modes.
6244         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6245         (define_mode_attr ssse3_avx2): Ditto.
6246         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6247         (define_mode_attr avx2_avx512bw): New.
6248         (define_mode_attr ssedoublemodelower): New.
6249         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6250         V32HI, V64QI modes.
6251         (define_mode_attr ssebytemode): Allow V8DI modes.
6252         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6253         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6254         (define_mode_attr ssePSmode2): New.
6255         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6256         V16HI, V32HI modes.
6257         (define_mode_attr dbpsadbwmode): New.
6258         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6259         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6260         (vi8_sse4_1_avx2_avx512): New.
6261         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6262         mode attribute.
6263         (define_mode_attr blendbits): Move before its immediate use.
6265 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6266             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6267             Anna Tikhonova  <anna.tikhonova@intel.com>
6268             Ilya Tocar  <ilya.tocar@intel.com>
6269             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6270             Ilya Verbin  <ilya.verbin@intel.com>
6271             Kirill Yukhin  <kirill.yukhin@intel.com>
6272             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6274         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6275         * config/i386/subst.md
6276         (define_mode_iterator SUBST_V): Update.
6277         (define_mode_iterator SUBST_A): Ditto.
6278         (define_subst_attr "mask_operand7"): New.
6279         (define_subst_attr "mask_operand10"): New.
6280         (define_subst_attr "mask_operand_arg34") : New.
6281         (define_subst_attr "mask_expand_op3"): New.
6282         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6283         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6284         (define_subst_attr "mask_avx512vl_condition"): New.
6285         (define_subst_attr "round_mask_operand4"): Ditto.
6286         (define_subst_attr "round_mask_scalar_op3"): Delete.
6287         (define_subst_attr "round_mask_op4"): New.
6288         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6289         V16SImode.
6290         (define_subst_attr "round_modev8sf_condition"): New.
6291         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6292         <MODE>mode.
6293         (define_subst_attr "round_saeonly_mask_operand4"): New.
6294         (define_subst_attr "round_saeonly_mask_op4"): New.
6295         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6296         V8DImode, V16SImode.
6297         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6298         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6299         (define_subst_attr "mask_expand4_args"): New.
6300         (define_subst "mask_expand4"): New.
6302 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6303             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6304             Anna Tikhonova  <anna.tikhonova@intel.com>
6305             Ilya Tocar  <ilya.tocar@intel.com>
6306             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6307             Ilya Verbin  <ilya.verbin@intel.com>
6308             Kirill Yukhin  <kirill.yukhin@intel.com>
6309             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6311         * config/i386/i386.md
6312         (define_attr "isa"): Add avx512bw,noavx512bw.
6313         (define_attr "enabled"): Ditto.
6314         (define_split): Add 32/64-bit mask logic.
6315         (define_insn "*k<logic>qi"): New.
6316         (define_insn "*k<logic>hi"): New.
6317         (define_insn "*anddi_1"): Add mask version.
6318         (define_insn "*andsi_1"): Ditto.
6319         (define_insn "*<code><mode>_1"): Ditto.
6320         (define_insn "*<code>hi_1"): Ditto.
6321         (define_insn "kxnor<mode>"): New.
6322         (define_insn "kunpcksi"): New.
6323         (define_insn "kunpckdi"): New.
6324         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6325         (define_insn "*one_cmplhi2_1"): Ditto.
6327 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6328             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6329             Anna Tikhonova  <anna.tikhonova@intel.com>
6330             Ilya Tocar  <ilya.tocar@intel.com>
6331             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6332             Ilya Verbin  <ilya.verbin@intel.com>
6333             Kirill Yukhin  <kirill.yukhin@intel.com>
6334             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6336         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6337         V32HImode.
6339 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6340             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6341             Anna Tikhonova  <anna.tikhonova@intel.com>
6342             Ilya Tocar  <ilya.tocar@intel.com>
6343             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6344             Ilya Verbin  <ilya.verbin@intel.com>
6345             Kirill Yukhin  <kirill.yukhin@intel.com>
6346             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6348         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
6349         registers.
6350         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6351         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6352         xmm/ymm16+ when availble.
6353         * config/i386/i386.h
6354         (HARD_REGNO_NREGS): Add mask regs.
6355         (VALID_AVX512F_REG_MODE): Ditto.
6356         (VALID_AVX512F_REG_MODE) : Define.
6357         (VALID_MASK_AVX512BW_MODE): Ditto.
6358         (reg_class) (MASK_REG_P(X)): Define.
6359         * config/i386/i386.md: Do not split long moves with mask register,
6360         use kmovb if avx512bw is availible.
6361         (movdi_internal): Handle mask registers.
6363 2014-08-14  Richard Biener  <rguenther@suse.de>
6365         PR tree-optimization/62081
6366         * tree-ssa-loop.c (pass_fix_loops): New pass.
6367         (pass_tree_loop::gate):  Do not fixup loops here.
6368         * tree-pass.h (make_pass_fix_loops): Declare.
6369         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6371 2014-08-14  Richard Biener  <rguenther@suse.de>
6373         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6374         (type_hash_canon): ... this and avoid 2nd lookup for the add.
6376 2014-08-14  Richard Biener  <rguenther@suse.de>
6378         PR tree-optimization/62090
6379         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6380         (fold_builtin_2): Do not fold sprintf.
6381         (fold_builtin_3): Likewise.
6382         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6383         moved from builtins.c.
6384         (gimple_fold_builtin): Fold sprintf.
6386 2014-08-14  Richard Biener  <rguenther@suse.de>
6388         PR rtl-optimization/62079
6389         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6390         run cleanup_cfg.
6392 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
6394         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6395         current_function_decl.
6397 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
6399         * cgraph.c (cgraph_node::function_symbol): Fix wrong
6400         cgraph_function_node to cgraph_node::function_symbol
6401         refactoring.
6403 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
6405         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6406         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6408 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
6410         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6411         warning.
6413 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
6415         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6416         generator.
6418 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
6420         PR target/62025
6421         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6422         any registers that are used in mem_insn.
6424 2014-08-12  Steve Ellcey  <sellcey@mips.com>
6426         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler. 
6428 2014-08-12  Steve Ellcey  <sellcey@mips.com>
6430         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6431         (MULTILIB_DIRNAMES): Ditto.
6432         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6433         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6434         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6435         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6436         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6437         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6439 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6441         PR target/61413
6442         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6443         of __ARM_SIZEOF_WCHAR_T.
6445 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6447         PR target/62098
6448         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6449         Remove unnecessary attributes.
6451 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
6453         * internal-fn.c (init_internal_fns): Fix off-by-one.
6455 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6456             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6457             Anna Tikhonova  <anna.tikhonova@intel.com>
6458             Ilya Tocar  <ilya.tocar@intel.com>
6459             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6460             Ilya Verbin  <ilya.verbin@intel.com>
6461             Kirill Yukhin  <kirill.yukhin@intel.com>
6462             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6464         * config/i386/i386.c (standard_sse_constant_opcode): Use
6465         vpxord/vpternlog if avx512 is availible.
6467 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6469         PR middle-end/62103
6470         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6471         bitfields, that is when size doesn't match the size of type or the
6472         size of the constructor.
6474 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6476         * config/rs6000/constraints.md (wh constraint): New constraint,
6477         for FP registers if direct move is available.
6478         (wi constraint): New constraint, for VSX/FP registers that can
6479         handle 64-bit integers.
6480         (wj constraint): New constraint for VSX/FP registers that can
6481         handle 64-bit integers for direct moves.
6482         (wk constraint): New constraint for VSX/FP registers that can
6483         handle 64-bit doubles for direct moves.
6484         (wy constraint): Make documentation match implementation.
6486         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6487         scalar_in_vmx_p field to simplify tests of whether SFmode or
6488         DFmode can go in the Altivec registers.
6489         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6490         (rs6000_setup_reg_addr_masks): Likewise.
6491         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6492         field, and wh/wi/wj/wk constraints.
6493         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6494         the wh/wi/wj/wk constraints.
6495         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6496         upper registers, prefer VSX registers unless the operation is a
6497         memory operation with REG+OFFSET addressing.
6499         * config/rs6000/vsx.md (VSr mode attribute): Add support for
6500         DImode.  Change SFmode to use ww constraint instead of d to allow
6501         SF registers in the upper registers.
6502         (VSr2): Likewise.
6503         (VSr3): Likewise.
6504         (VSr5): Fix thinko in comment.
6505         (VSa): New mode attribute that is an alternative to wa, that
6506         returns the VSX register class that a mode can go in, but may not
6507         be the preferred register class.
6508         (VS_64dm): New mode attribute for appropriate register classes for
6509         referencing 64-bit elements of vectors for direct moves and normal
6510         moves.
6511         (VS_64reg): Likewise.
6512         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6513         register allocator to only registers the data type can handle.
6514         (vsx_le_perm_load_<mode>): Likewise.
6515         (vsx_le_perm_store_<mode>): Likewise.
6516         (vsx_xxpermdi2_le_<mode>): Likewise.
6517         (vsx_xxpermdi4_le_<mode>): Likewise.
6518         (vsx_lxvd2x2_le_<mode>): Likewise.
6519         (vsx_lxvd2x4_le_<mode>): Likewise.
6520         (vsx_stxvd2x2_le_<mode>): Likewise.
6521         (vsx_add<mode>3): Likewise.
6522         (vsx_sub<mode>3): Likewise.
6523         (vsx_mul<mode>3): Likewise.
6524         (vsx_div<mode>3): Likewise.
6525         (vsx_tdiv<mode>3_internal): Likewise.
6526         (vsx_fre<mode>2): Likewise.
6527         (vsx_neg<mode>2): Likewise.
6528         (vsx_abs<mode>2): Likewise.
6529         (vsx_nabs<mode>2): Likewise.
6530         (vsx_smax<mode>3): Likewise.
6531         (vsx_smin<mode>3): Likewise.
6532         (vsx_sqrt<mode>2): Likewise.
6533         (vsx_rsqrte<mode>2): Likewise.
6534         (vsx_tsqrt<mode>2_internal): Likewise.
6535         (vsx_fms<mode>4): Likewise.
6536         (vsx_nfma<mode>4): Likewise.
6537         (vsx_eq<mode>): Likewise.
6538         (vsx_gt<mode>): Likewise.
6539         (vsx_ge<mode>): Likewise.
6540         (vsx_eq<mode>_p): Likewise.
6541         (vsx_gt<mode>_p): Likewise.
6542         (vsx_ge<mode>_p): Likewise.
6543         (vsx_xxsel<mode>): Likewise.
6544         (vsx_xxsel<mode>_uns): Likewise.
6545         (vsx_copysign<mode>3): Likewise.
6546         (vsx_float<VSi><mode>2): Likewise.
6547         (vsx_floatuns<VSi><mode>2): Likewise.
6548         (vsx_fix_trunc<mode><VSi>2): Likewise.
6549         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6550         (vsx_x<VSv>r<VSs>i): Likewise.
6551         (vsx_x<VSv>r<VSs>ic): Likewise.
6552         (vsx_btrunc<mode>2): Likewise.
6553         (vsx_b2trunc<mode>2): Likewise.
6554         (vsx_floor<mode>2): Likewise.
6555         (vsx_ceil<mode>2): Likewise.
6556         (vsx_<VS_spdp_insn>): Likewise.
6557         (vsx_xscvspdp): Likewise.
6558         (vsx_xvcvspuxds): Likewise.
6559         (vsx_float_fix_<mode>2): Likewise.
6560         (vsx_set_<mode>): Likewise.
6561         (vsx_extract_<mode>_internal1): Likewise.
6562         (vsx_extract_<mode>_internal2): Likewise.
6563         (vsx_extract_<mode>_load): Likewise.
6564         (vsx_extract_<mode>_store): Likewise.
6565         (vsx_splat_<mode>): Likewise.
6566         (vsx_xxspltw_<mode>): Likewise.
6567         (vsx_xxspltw_<mode>_direct): Likewise.
6568         (vsx_xxmrghw_<mode>): Likewise.
6569         (vsx_xxmrglw_<mode>): Likewise.
6570         (vsx_xxsldwi_<mode>): Likewise.
6571         (vsx_xscvdpspn): Tighten constraints to only use register classes
6572         the types use.
6573         (vsx_xscvspdpn): Likewise.
6574         (vsx_xscvdpspn_scalar): Likewise.
6576         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
6577         wj, and wk constraints.
6578         (GPR_REG_CLASS_P): New helper macro for register classes targeting
6579         general purpose registers.
6581         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
6582         direct moves.
6583         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
6584         DImode instead of wm.  Use wk constraint for direct move of DFmode
6585         instead of wm.
6586         (extendsidi2_lfiwax): Likewise.
6587         (lfiwax): Likewise.
6588         (lfiwzx): Likewise.
6589         (movdi_internal64): Likewise.
6591         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
6592         wk constraints. Make the wy constraint documentation match them
6593         implementation.
6595 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
6597         Replacement of isl_int by isl_val
6598         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
6599         (compute_bounds_for_param): use isl_val instead of isl_int
6600         (compute_bounds_for_loop): likewise
6601         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
6602         (build_linearized_memory_access): use isl_val instead of isl_int
6603         (pdr_stride_in_loop): likewise
6604         * graphite-optimize-isl.c:
6605         (getPrevectorMap): use isl_val instead of isl_int
6606         * graphite-poly.c:
6607         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
6608         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
6609         (extern the_isl_ctx): declare
6610         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
6611         (extract_affine_gmp): likewise
6612         (wrap): likewise
6613         (build_loop_iteration_domains): likewise
6614         (add_param_constraints): likewise
6616 2014-08-11  Richard Biener  <rguenther@suse.de>
6618         PR tree-optimization/62075
6619         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
6620         handle uses in patterns.
6622 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6623             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6624             Anna Tikhonova  <anna.tikhonova@intel.com>
6625             Ilya Tocar  <ilya.tocar@intel.com>
6626             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6627             Ilya Verbin  <ilya.verbin@intel.com>
6628             Kirill Yukhin  <kirill.yukhin@intel.com>
6629             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6631         * common/config/i386/i386-common.c
6632         (OPTION_MASK_ISA_AVX512VL_SET): Define.
6633         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
6634         (ix86_handle_option): Handle OPT_mavx512vl.
6635         * config/i386/cpuid.h (bit_AVX512VL): Define.
6636         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
6637         set -mavx512vl accordingly.
6638         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6639         OPTION_MASK_ISA_AVX512VL.
6640         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
6641         (ix86_option_override_internal): Define PTA_AVX512VL, handle
6642         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
6643         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
6644         * config/i386/i386.h (TARGET_AVX512VL): Define.
6645         (TARGET_AVX512VL_P(x)): Ditto.
6646         * config/i386/i386.opt: Add mavx512vl.
6648 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
6650         PR tree-optimization/62073
6651         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
6652         a basic block.
6654 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6655             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6656             Anna Tikhonova  <anna.tikhonova@intel.com>
6657             Ilya Tocar  <ilya.tocar@intel.com>
6658             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6659             Ilya Verbin  <ilya.verbin@intel.com>
6660             Kirill Yukhin  <kirill.yukhin@intel.com>
6661             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6663         * common/config/i386/i386-common.c
6664         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
6665         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
6666         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
6667         (ix86_handle_option): Handle OPT_mavx512bw.
6668         * config/i386/cpuid.h (bit_AVX512BW): Define.
6669         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
6670         set -mavx512bw accordingly.
6671         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6672         OPTION_MASK_ISA_AVX512BW.
6673         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
6674         (ix86_option_override_internal): Define PTA_AVX512BW, handle
6675         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
6676         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
6677         * config/i386/i386.h (TARGET_AVX512BW): Define.
6678         (TARGET_AVX512BW_P(x)): Ditto.
6679         * config/i386/i386.opt: Add mavx512bw.
6681 2014-08-11  Richard Biener  <rguenther@suse.de>
6683         PR tree-optimization/62070
6684         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
6685         Remove SSA checking.
6687 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
6689         * asan.c (asan_check_flags): New enum.
6690         (build_check_stmt_with_calls): Removed function.
6691         (build_check_stmt): Split inlining logic to
6692         asan_expand_check_ifn.
6693         (instrument_derefs): Rename parameter.
6694         (instrument_mem_region_access): Rename parameter.
6695         (instrument_strlen_call): Likewise.
6696         (asan_expand_check_ifn): New function.
6697         (asan_instrument): Remove old code.
6698         (pass_sanopt::execute): Change handling of
6699         asan-instrumentation-with-call-threshold.
6700         (asan_clear_shadow): Fix formatting.
6701         (asan_function_start): Likewise.
6702         (asan_emit_stack_protection): Likewise.
6703         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
6704         Update description.
6705         * internal-fn.c (expand_ASAN_CHECK): New function.
6706         * internal-fn.def (ASAN_CHECK): New internal function.
6707         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
6708         Update description.
6709         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
6710         * tree.c: Small comment fix.
6712 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
6714         * gimple.c (gimple_call_fnspec): Support internal functions.
6715         (gimple_call_return_flags): Use const.
6716         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
6717         * internal-fn.def: Add fnspec information.
6718         * internal-fn.h (internal_fn_fnspec): New function.
6719         (init_internal_fns): Declare new function.
6720         * internal-fn.c (internal_fn_fnspec_array): New global variable.
6721         (init_internal_fns): New function.
6722         * tree-core.h: Update macro call.
6723         * tree.c (build_common_builtin_nodes): Initialize internal fns.
6725 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
6727         * lto-streamer.h (struct output_block::symbol): Change from
6728         struct symtab_node to plain symtab_node.
6729         (referenced_from_this_partition_p): Change first parameter
6730         from struct symtab_node to plain symtab_node.
6732 2014-08-10  Marek Polacek  <polacek@redhat.com>
6734         PR c/51849
6735         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
6737 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
6739         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
6740         DECL correctly; do not give up on types in static storage.
6742 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
6744         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
6746 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
6748         * graphite-isl-ast-to-gimple.c:
6749         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
6751         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
6753 2014-08-08  Guozhi Wei  <carrot@google.com>
6755         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
6757 2014-08-08  Cary Coutant  <ccoutant@google.com>
6759         * dwarf2out.c (get_skeleton_type_unit): Remove.
6760         (output_skeleton_debug_sections): Remove skeleton type units.
6761         (output_comdat_type_unit): Likewise.
6762         (dwarf2out_finish): Likewise.
6764 2014-08-07  Yi Yang  <ahyangyi@google.com>
6766         * predict.c (expr_expected_value_1): Remove the redundant assignment.
6768 2014-08-08  Richard Biener  <rguenther@suse.de>
6770         * lto-streamer.h (struct lto_input_block): Make it a class
6771         with a constructor.
6772         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
6773         (struct lto_function_header, struct lto_simple_header,
6774         struct lto_simple_header_with_strings,
6775         struct lto_decl_header, struct lto_function_header): Make
6776         a simple inheritance hieararchy.  Remove unused fields.
6777         (struct lto_asm_header): Remove.
6778         * lto-streamer-out.c (produce_asm): Adjust.
6779         (lto_output_toplevel_asms): Likewise.
6780         (produce_asm_for_decls): Likewise.
6781         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
6782         * data-streamer-in.c (string_for_index): Likewise.
6783         * ipa-inline-analysis.c (inline_read_section): Likewise.
6784         * ipa-prop.c (ipa_prop_read_section): Likewise.
6785         (read_replacements_section): Likewise.
6786         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
6787         * lto-section-in.c (lto_create_simple_input_block): Likewise.
6788         (lto_destroy_simple_input_block): Likewise.
6789         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
6790         (lto_input_toplevel_asms): Likewise.
6792 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6793             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6794             Anna Tikhonova  <anna.tikhonova@intel.com>
6795             Ilya Tocar  <ilya.tocar@intel.com>
6796             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6797             Ilya Verbin  <ilya.verbin@intel.com>
6798             Kirill Yukhin  <kirill.yukhin@intel.com>
6799             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6801         * common/config/i386/i386-common.c
6802         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
6803         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
6804         (ix86_handle_option): Handle OPT_mavx512dq.
6805         * config/i386/cpuid.h (bit_AVX512DQ): Define.
6806         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
6807         set -mavx512dq accordingly.
6808         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6809         OPTION_MASK_ISA_AVX512DQ.
6810         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
6811         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
6812         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
6813         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
6814         * config/i386/i386.h (TARGET_AVX512DQ): Define.
6815         (TARGET_AVX512DQ_P(x)): Ditto.
6816         * config/i386/i386.opt: Add mavx512dq.
6818 2014-08-08  Richard Biener  <rguenther@suse.de>
6820         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
6821         target_percent, target_percent_s): Export.
6822         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
6823         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
6824         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
6825         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
6826         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
6827         Move to gimple-fold.c.
6828         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
6829         strcat and strcpy.
6830         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
6831         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
6832         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
6833         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
6834         (rewrite_call_expr_array): Remove.
6835         (fold_builtin_sprintf_chk): Likewise.
6836         (fold_builtin_snprintf_chk): Likewise.
6837         (fold_builtin_varargs): Remove handling of sprintf_chk,
6838         vsprintf_chk, snprintf_chk and vsnprintf_chk.
6839         (gimple_fold_builtin_sprintf_chk): Remove.
6840         (gimple_fold_builtin_snprintf_chk): Likewise.
6841         (gimple_fold_builtin_varargs): Likewise.
6842         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
6843         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
6844         * gimple.c (gimple_seq_add_seq_without_update): New function.
6845         * gimple.h (gimple_seq_add_seq_without_update): Declare.
6846         * gimple-fold.c: Include output.h.
6847         (gsi_replace_with_seq_vops): New function, split out from ...
6848         (gimplify_and_update_call_from_tree): ... here.
6849         (replace_call_with_value): New function.
6850         (replace_call_with_call_and_fold): Likewise.
6851         (var_decl_component_p): Moved from builtins.c.
6852         (gimple_fold_builtin_memory_op): Moved from builtins.c
6853         fold_builtin_memory_op and rewritten to GIMPLE.
6854         (gimple_fold_builtin_memset): Likewise.
6855         (gimple_fold_builtin_strcpy): Likewise.
6856         (gimple_fold_builtin_strncpy): Likewise.
6857         (gimple_fold_builtin_strcat): Likewise.
6858         (gimple_fold_builtin_fputs): Likewise.
6859         (gimple_fold_builtin_memory_chk): Likewise.
6860         (gimple_fold_builtin_stxcpy_chk): Likewise.
6861         (gimple_fold_builtin_stxncpy_chk): Likewise.
6862         (gimple_fold_builtin_snprintf_chk): Likewise.
6863         (gimple_fold_builtin_sprintf_chk): Likewise.
6864         (gimple_fold_builtin_strlen): New function.
6865         (gimple_fold_builtin_with_strlen): New function split out from
6866         gimple_fold_builtin.
6867         (gimple_fold_builtin): Change signature and handle
6868         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
6869         here.  Call gimple_fold_builtin_with_strlen.
6870         (gimple_fold_call): Adjust.
6872 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
6874         * calls.c (precompute_arguments): Check
6875          promoted_for_signed_and_unsigned_p and set the promoted mode.
6876         (promoted_for_signed_and_unsigned_p): New function.
6877         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
6878         and set the promoted mode.
6879         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
6880         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
6881         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
6884 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
6886         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
6887         instead of SUBREG_PROMOTED_UNSIGNED_SET.
6888         (expand_call): Likewise.
6889         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
6890         to get promoted mode.
6891         * combine.c (record_promoted_value): Skip > 0 comparison with
6892         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
6893         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
6894         of SUBREG_PROMOTED_UNSIGNED_P.
6895         (convert_modes): Likewise.
6896         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
6897         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
6898         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
6899         SUBREG_PROMOTED_UNSIGNED_SET.
6900         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
6901         instead of SUBREG_PROMOTED_UNSIGNED_SET.
6902         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
6903         SUBREG_PROMOTED_SET.
6904         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
6905         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
6906         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
6907         of SUBREG_PROMOTED_UNSIGNED_P.
6908         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
6909         (SUBREG_PROMOTED_SET): New define.
6910         (SUBREG_PROMOTED_GET): Likewise.
6911         (SUBREG_PROMOTED_SIGN): Likewise.
6912         (SUBREG_PROMOTED_SIGNED_P): Likewise.
6913         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
6914         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
6915         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
6916         instead of SUBREG_PROMOTED_UNSIGNED_GET.
6917         (nonzero_bits1): Skip > 0 comparison with the results as
6918         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
6919         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
6920         of !SUBREG_PROMOTED_UNSIGNED_P.
6921         * simplify-rtx.c (simplify_unary_operation_1): Use new
6922         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
6923         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
6924         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
6925         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
6927 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
6929         * ipa-devirt.c: Include gimple-pretty-print.h
6930         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
6931         further tests.
6932         (decl_maybe_in_construction_p): Fix conditional on cdtor check
6933         (get_polymorphic_call_info): Fix return value
6934         (type_change_info): New sturcture based on ipa-prop
6935         variant.
6936         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
6937         based on ipa-prop variant.
6938         (extr_type_from_vtbl_ptr_store): New function
6939         based on ipa-prop variant.
6940         (record_known_type): New function.
6941         (check_stmt_for_type_change): New function.
6942         (get_dynamic_type): New function.
6943         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
6944         * tree-ssa-pre.c: ipa-utils.h
6945         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
6946         machinery; sanity check with ipa-prop devirtualization.
6947         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
6948         polymorphic flag.
6950 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
6952         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
6953         * alias.c, cfgexpand.c, cgraphbuild.c,
6954         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
6955         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
6956         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
6957         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
6958         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
6959         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6960         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
6961         dse.c, except.c, gengtype.c, gimple-expr.c,
6962         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
6963         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
6964         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
6965         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
6966         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
6967         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
6968         pointer-set.h.
6969         * pointer-set.c: Remove file.
6970         * pointer-set.h: Remove file.
6972 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6974         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
6975         * config/arm/types.md (f_sels, f_seld): Delete.
6977 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6979         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
6980         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
6981         (aarch64_movdi_<mode>high): Likewise.
6982         (aarch64_mov<mode>high_di): Likewise.
6983         (aarch64_movdi_<mode>low): Likewise.
6984         (aarch64_mov<mode>low_di): Likewise.
6985         (aarch64_movtilow_tilow): Likewise.
6986         Add comment explaining usage of fp,simd attributes and of
6987         TARGET_FLOAT and TARGET_SIMD.
6989 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
6990             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6992         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
6993         Use MOVN when one of the half-words is 0xffff.
6995 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
6997         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
6999 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
7001         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
7002         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7003         (rfs_str): String corresponding to RFS_* constants.
7004         (rank_for_schedule_stats_t): New typedef.
7005         (rank_for_schedule_stats): New static variable.
7006         (rfs_result): New static function.
7007         (rank_for_schedule): Track statistics for deciding heuristics.
7008         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7009         static functions.
7010         (ready_sort): Use them for debug printouts.
7011         (schedule_block): Init statistics state.  Print statistics on
7012         rank_for_schedule decisions.
7014 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
7016         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7018 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
7020         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7021         constraint.
7023 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
7025         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7026         function to not conflict.
7027         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7028         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7029         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7030         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7031         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7032         of pointer_map.
7034 2014-08-07  Marek Polacek  <polacek@redhat.com>
7036         * fold-const.c (fold_binary_loc): Add folding of
7037         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7039 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
7041         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7042         instead of type size.
7043         (ASM_FINISH_DECLARE_OBJECT): Likewise.
7045 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
7047         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7048         (*thumb1_movqi_insn): Likewise.
7049         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7051 2014-08-07  Tom de Vries  <tom@codesourcery.com>
7053         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7054         (glibc_2_11_or_earlier): Remove effective-target keywords.
7056 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
7058         * config/arm/arm.c (bdesc_2arg): Fix typo.
7059         (arm_atomic_assign_expand_fenv): Remove The default implementation.
7061 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7063         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7065 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
7067         PR debug/61923
7068         * haifa-sched.c (advance_one_cycle): Fix dump.
7069         (schedule_block): Don't advance cycle if we are already at the
7070         beginning of the cycle.
7072 2014-08-06  Martin Jambor  <mjambor@suse.cz>
7074         PR ipa/61393
7075         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7077 2014-08-06  Richard Biener  <rguenther@suse.de>
7079         PR lto/62034
7080         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7081         SCCs here.
7082         (lto_input_tree): Pop SCCs here.
7084 2014-08-06  Richard Biener  <rguenther@suse.de>
7086         PR tree-optimization/61320
7087         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7088         handle misaligned loads.
7090 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
7092         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7093         (aarch64_expand_vec_perm_const): Check for dup before zip.
7095 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7097         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7098         CONST_INT_P instead of GET_CODE and compare.
7099         (aarch64_select_cc_mode): Likewise.
7100         (aarch64_print_operand): Likewise.
7101         (aarch64_rtx_costs): Likewise.
7102         (aarch64_simd_valid_immediate): Likewise.
7103         (aarch64_simd_check_vect_par_cnst_half): Likewise.
7104         (aarch64_simd_emit_pair_result_insn): Likewise.
7106 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
7108         * gdbhooks.py (find_gcc_source_dir): New helper function.
7109         (class PassNames): New class, locating and parsing passes.def.
7110         (class BreakOnPass): New command "break-on-pass".
7112 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
7114         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7115         getting olde.
7117 2014-08-05  Richard Biener  <rguenther@suse.de>
7119         PR rtl-optimization/61672
7120         * emit-rtl.h (mem_attrs_eq_p): Declare.
7121         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
7122         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7123         * cfgcleanup.c (merge_memattrs): Likewise.
7124         Include emit-rtl.h.
7126 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7128         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7129         rather than singleton vectors.
7130         (vqdmlsls_lane_s32): Likewise.
7132 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7134         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7135         Use VSDQ_HSI mode iterator.
7136         (aarch64_sqrdmulh_laneq<mode>): Likewise.
7137         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7138         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7139         Use BUILTIN_VDQHS macro.
7140         (sqrdmulh_laneq): Likewise.
7141         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7142         (vqdmlals_laneq_s32): Likewise.
7143         (vqdmlslh_laneq_s16): Likewise.
7144         (vqdmlsls_laneq_s32): Likewise.
7145         (vqdmulhh_laneq_s16): Likewise.
7146         (vqdmulhs_laneq_s32): Likewise.
7147         (vqrdmulhh_laneq_s16): Likewise.
7148         (vqrdmulhs_laneq_s32): Likewise.
7150 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7152         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7153         (vmuld_laneq_f64): Likewise.
7154         (vmuls_laneq_f32): Likewise.
7155         (vmul_n_f64): Likewise.
7156         (vmuld_lane_f64): Reimplement in C.
7157         (vmuls_lane_f32): Likewise.
7159 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7161         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7162         to reservation.
7163         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7165 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7167         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7168         (rbitsi2): Likewise.
7169         (*arm_rev): Set predicable and predicable_short_it attributes.
7171 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7173         * convert.c (convert_to_integer): Guard transformation to lrint by
7174         -fno-math-errno.
7176 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
7178         * config/aarch64/aarch64-builtins.c
7179         (aarch64_simd_builtin_type_mode): Delete.
7180         (v8qi_UP): Remap to V8QImode.
7181         (v4hi_UP): Remap to V4HImode.
7182         (v2si_UP): Remap to V2SImode.
7183         (v2sf_UP): Remap to V2SFmode.
7184         (v1df_UP): Remap to V1DFmode.
7185         (di_UP): Remap to DImode.
7186         (df_UP): Remap to DFmode.
7187         (v16qi_UP):V16QImode.
7188         (v8hi_UP): Remap to V8HImode.
7189         (v4si_UP): Remap to V4SImode.
7190         (v4sf_UP): Remap to V4SFmode.
7191         (v2di_UP): Remap to V2DImode.
7192         (v2df_UP): Remap to V2DFmode.
7193         (ti_UP): Remap to TImode.
7194         (ei_UP): Remap to EImode.
7195         (oi_UP): Remap to OImode.
7196         (ci_UP): Map to CImode.
7197         (xi_UP): Remap to XImode.
7198         (si_UP): Remap to SImode.
7199         (sf_UP): Remap to SFmode.
7200         (hi_UP): Remap to HImode.
7201         (qi_UP): Remap to QImode.
7202         (aarch64_simd_builtin_datum): Make mode a machine_mode.
7203         (VAR1): Build builtin name.
7204         (aarch64_init_simd_builtins): Remove dead code.
7206 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
7208         * graphite-isl-ast-to-gimple.c:
7209         (set_options): New function.
7210         (scop_to_isl_ast): Add calling of set_options.
7212 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
7214         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7215         (analyze_iv_to_split_insn): Don't initialize them.
7216         (get_ivts_expr): Removed.
7217         (allocate_basic_variable, insert_base_initialization): Use
7218         SET_SRC instead of *get_ivts_expr.
7219         (split_iv): Use &SET_SRC instead of get_ivts_expr.
7221 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
7223         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7224         (translate_isl_ast_for_loop): Add checking of the
7225         flag_loop_parallelize_all.
7226         (ast_build_before_for): New function.
7227         (scop_to_isl_ast): Add checking of the
7228         flag_loop_parallelize_all.
7229         * graphite-dependences.c: Move the defenition of the
7230         scop_get_dependences from graphite-optimize-isl.c to this file.
7231         (apply_schedule_on_deps): Add checking of the ux's emptiness.
7232         (carries_deps): Add checking of the x's value.
7233         * graphite-optimize-isl.c: Move the defenition of the
7234         scop_get_dependences to graphite-dependences.c.
7235         * graphite-poly.h: Add declarations of scop_get_dependences
7236         and carries_deps.
7238 2014-08-04  Rohit  <rohitarulraj@freescale.com>
7240         PR target/60102
7241         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7242         names.
7243         (alt_reg_names): Likewise.
7244         (rs6000_dwarf_register_span): For SPE high registers, replace
7245         dwarf register numbers with GCC hard register numbers.
7246         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7247         (rs6000_dbx_register_number): For SPE high registers, return dwarf
7248         register number for the corresponding GCC hard register number.
7249         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7250         newly added GCC hard register numbers for SPE high registers.
7251         (DWARF_FRAME_REGISTERS):  Likewise.
7252         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7253         (DWARF_FRAME_REGNUM): Likewise.
7254         (FIXED_REGISTERS): Likewise.
7255         (CALL_USED_REGISTERS): Likewise.
7256         (CALL_REALLY_USED_REGISTERS): Likewise.
7257         (REG_ALLOC_ORDER): Likewise.
7258         (enum reg_class): Likewise.
7259         (REG_CLASS_NAMES): Likewise.
7260         (REG_CLASS_CONTENTS): Likewise.
7261         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7263 2014-08-04  Richard Biener  <rguenther@suse.de>
7265         * gimple-fold.h (gimple_fold_builtin): Remove.
7266         * gimple-fold.c (gimple_fold_builtin): Make static.
7267         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7268         fold_stmt, not gimple_fold_builtin.
7270 2014-08-04  Martin Liska <mliska@suse.cz>
7272         * cgraph.h (csi_end_p): Removed.
7273         (csi_next): Likewise.
7274         (csi_node): Likewise.
7275         (csi_start): Likewise.
7276         (cgraph_node_in_set_p): Likewise.
7277         (cgraph_node_set_size): Likewise.
7278         (vsi_end_p): Likewise.
7279         (vsi_next): Likewise.
7280         (vsi_node): Likewise.
7281         (vsi_start): Likewise.
7282         (varpool_node_set_size): Likewise.
7283         (cgraph_node_set_nonempty_p): Likewise.
7284         (varpool_node_set_nonempty_p): Likewise.
7285         * cgraphunit.c (cgraph_process_new_functions): vec replaces
7286         cgraph_node_set.
7287         * ipa-inline-transform.c: Likewise.
7288         * ipa-utils.c (cgraph_node_set_new): Removed.
7289         (cgraph_node_set_add): Likewise.
7290         (cgraph_node_set_remove): Likewise.
7291         (cgraph_node_set_find): Likewise.
7292         (dump_cgraph_node_set): Likewise.
7293         (debug_cgraph_node_set): Likewise.
7294         (free_cgraph_node_set): Likewise.
7295         (varpool_node_set_new): Likewise.
7296         (varpool_node_set_add): Likewise.
7297         (varpool_node_set_remove): Likewise.
7298         (varpool_node_set_find): Likewise.
7299         (dump_varpool_node_set): Likewise.
7300         (free_varpool_node_set): Likewise.
7301         (debug_varpool_node_set): Likewise.
7302         * tree-emutls.c (struct tls_var_data):
7303         (emutls_index): Removed.
7304         (emutls_decl): Likewise.
7305         (gen_emutls_addr): Function implementation uses newly added
7306         hash_map<varpool_node *, tls_var_data>.
7307         (clear_access_vars): Likewise.
7308         (create_emultls_var): Likewise.
7309         (ipa_lower_emutls): Likewise.
7310         (reset_access): New function.
7312 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
7314         * config/i386/i386.c (ix86_option_override_internal): Add
7315         PTA_RDRND and PTA_MOVBE for bdver4.
7317 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7318             James Greenhalgh  <james.greenhalgh@arm.com>
7320         * doc/md.texi (clrsb): Document.
7321         (clz): Change reference to x into operand 1.
7322         (ctz): Likewise.
7323         (popcount): Likewise.
7325 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7327         PR target/61713
7328         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7329         move to subtarget in serial version if result is ignored.
7331 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7332             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7334         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7335         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
7336         (sched_analyze_insn): Update use of try_group_insn to
7337         sched_macro_fuse_insns.
7338         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7339         arguments that are not conditional jumps.
7341 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
7343         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7344         family information. Handle BTVER2 cpu with cpuid family value.
7346 2014-08-04  Tom de Vries  <tom@codesourcery.com>
7348         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7349         (glibc_2_11_or_earlier): Document effective-target keywords.
7351 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
7353         * ipa-devirt.c (odr_type_warn_count): Add type.
7354         (possible_polymorphic_call_targets): Set it.
7355         (ipa_devirt): Use it.
7357 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
7359         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7360         Document.
7361         * ipa-devirt.c: Include hash-map.h
7362         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7363         (clear_speculation): Break out of ...
7364         (get_class_context): ... here; speed up handling obviously useless
7365         speculations.
7366         (odr_type_warn_count, decl_warn_count): New structures.
7367         (final_warning_record): New structure.
7368         (final_warning_records): New static variable.
7369         (possible_polymorphic_call_targets): Cleanup handling of
7370         speculative info; do not build speculation when user do not care;
7371         record info about warnings when asked for.
7372         (add_decl_warning): New function.
7373         (type_warning_cmp): New function.
7374         (decl_warning_cmp): New function.
7375         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7376         (gate): Enable pass when warnings are requested.
7377         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7378         options.
7380 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
7382         * hash-map.h (default_hashmap_traits::mark_key_deleted):
7383         Fix cast.
7384         (hash_map::remove): New method.
7385         (hash_map::traverse): New method.
7386         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7387         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7388         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7389         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7390         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7391         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7392         pointer_map.
7394 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
7396         * hash-set.h: new File.
7397         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7398         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7399         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7400         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7401         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7402         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7403         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7404         varpool.c: Use hash_set instead of pointer_set.
7406 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
7408         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7410 2014-08-01  Jiong Wang <jiong.wang@arm.com>
7412         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7413         for frame access when strict_p is false.
7415 2014-08-01  Renlin Li <renlin.li@arm.com>
7416 2014-08-01  Jiong Wang <jiong.wang@arm.com>
7418         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7419         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7420         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7421         Declaration.
7422         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7423         predicate.
7424         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7425         aarch64_mem_pair_offset.
7427 2014-08-01  Jiong Wang <jiong.wang@arm.com>
7429         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7430         offset.
7431         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7432         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7434 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
7436         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7438 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
7440         PR regression/61510
7441         * cgraphunit.c (analyze_functions): Use get_create rather than get
7442         for decls which are clones of abstract functions.
7444 2014-08-01  Martin Liska  <mliska@suse.cz>
7446         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7447         * ipa-prop.h (count_formal_params): Global function created from static.
7448         * ipa-prop.c (count_formal_params): Likewise.
7449         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7450         profiles for semantically equivalent functions.
7451         * passes.c (do_per_function): If we load body of a function
7452         during WPA, this condition should behave same.
7453         * varpool.c (ctor_for_folding): More tolerant assert for variable
7454         aliases created during WPA.
7456 2014-08-01  Martin Liska  <mliska@suse.cz>
7458         * doc/invoke.texi (Options That Control Optimization): Documentation
7459         for -foptimize-strlen introduced. Optimization levels default options
7460         fixed.
7462 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
7464         * opts.c (common_handle_option): Handle -fsanitize=alignment.
7465         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7466         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7467         type to bool.
7468         * stor-layout.h (min_align_of_type): New prototype.
7469         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7470         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
7471         check.
7472         * ubsan.c: Include builtins.h.
7473         (ubsan_expand_bounds_ifn): Change return type to bool,
7474         always return true.
7475         (ubsan_expand_null_ifn): Change return type to bool, change
7476         argument to gimple_stmt_iterator *.  Handle both null and alignment
7477         sanitization, take type from ckind argument's type rather than
7478         first argument.
7479         (instrument_member_call): Removed.
7480         (instrument_mem_ref): Remove t argument, add mem and base arguments.
7481         Handle both null and alignment sanitization, don't say whole
7482         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
7483         call instead of 2 argument.
7484         (instrument_null): Adjust instrument_mem_ref caller.  Don't
7485         instrument calls here.
7486         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7487         like SANITIZE_NULL.
7488         * stor-layout.c (min_align_of_type): New function.
7489         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7490         Or it into SANITIZE_UNDEFINED.
7491         * doc/invoke.texi (-fsanitize=alignment): Document.
7493 2014-07-31  Andi Kleen  <ak@linux.intel.com>
7495         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7497 2014-07-31  Andi Kleen  <ak@linux.intel.com>
7499         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7500         inchash.
7501         (vn_reference_compute_hash): Dito.
7502         (vn_nary_op_compute_hash): Dito.
7503         (vn_phi_compute_hash): Dito.
7504         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7506 2014-07-31  Andi Kleen  <ak@linux.intel.com>
7508         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7509         Rename to inchash:add_expr_commutative. Convert to inchash.
7510         (iterative_hash_hashable_expr): Rename to
7511         inchash:add_hashable_expr. Convert to inchash.
7512         (avail_expr_hash): Dito.
7514 2014-07-31  Andi Kleen  <ak@linux.intel.com>
7516         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7517         Convert to inchash.
7519 2014-07-31  Andi Kleen  <ak@linux.intel.com>
7521         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7523 2014-07-31  Andi Kleen  <ak@linux.intel.com>
7525         * Makefile.in (OBJS): Add rtlhash.o
7526         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7527         (loc_checksum): Dito.
7528         (loc_checksum_ordered): Dito.
7529         (hash_loc_operands): Dito.
7530         (hash_locs): Dito.
7531         (hash_loc_list): Dito.
7532         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7533         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7534         * rtlhash.c: New file.
7535         * rtlhash.h: New file.
7537 2014-07-31  Andi Kleen  <ak@linux.intel.com>
7539         * inchash.h (inchash): Change inchash class to namespace.
7540         (class hash): ... Rename from inchash.
7541         (add_object): Move from macro to class template.
7542         * lto-streamer-out.c (hash_tree): Change inchash
7543         to inchash::hash.
7544         * tree.c (build_type_attribute_qual_variant): Dito.
7545         (type_hash_list): Dito.
7546         (attribute_hash_list): Dito.
7547         (iterative_hstate_expr): Rename to inchash::add_expr
7548         (build_range_type_1): Change inchash to inchash::hash
7549         and use hash::add_expr.
7550         (build_array_type_1): Dito.
7551         (build_function_type): Dito
7552         (build_method_type_directly): Dito.
7553         (build_offset_type): Dito.
7554         (build_complex_type): Dito.
7555         (make_vector_type): Dito.
7556         * tree.h (iterative_hash_expr): Dito.
7558 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
7560         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
7562 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
7564         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
7565         correct alphabetical position.
7566         (vpaddd_f64): Rewrite using builtins.
7567         (vpaddd_s64): Move to correct alphabetical position.
7568         (vpaddd_u64): New.
7570 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
7572         PR target/61844
7573         * config/sh/sh.c (sh_legitimate_address_p,
7574         sh_legitimize_reload_address): Handle reg+reg address modes when
7575         ALLOW_INDEXED_ADDRESS is false.
7576         * config/sh/predicates.md (general_movsrc_operand,
7577         general_movdst_operand): Likewise.
7579 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
7581         * config/aarch64/aarch64-builtins.c
7582         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
7583         BYTES_BIG_ENDIAN.
7585 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
7587         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
7588         the generated mask based on BYTES_BIG_ENDIAN.
7589         (aarch64_simd_check_vect_par_cnst_half): New.
7590         * config/aarch64/aarch64-protos.h
7591         (aarch64_simd_check_vect_par_cnst_half): New.
7592         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
7593         the check out to aarch64_simd_check_vect_par_cnst_half.
7594         (vect_par_cnst_lo_half): Likewise.
7595         * config/aarch64/aarch64-simd.md
7596         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
7597         (move_hi_quad_<mode>): Always generate a low mask.
7599 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7601         * doc/invoke.texi (AVR Options): Add documentation about
7602         __AVR_DEVICE_NAME__ built-in macro.
7604 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
7606         PR target/61948
7607         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
7608         constraints are satisfied.
7609         (<shift>di3_neon): Likewise.
7611 2014-07-31  Richard Biener  <rguenther@suse.de>
7613         PR tree-optimization/61964
7614         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
7615         by structural equality.
7617 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
7619         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
7620         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
7621         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
7622         New enums.
7623         * gcc.c (sanitize_spec_function): Support new option.
7624         (SANITIZER_SPEC): Remove now redundant check.
7625         * opts.c (common_handle_option): Support new option.
7626         (finish_options): Check for incompatibilities.
7627         * toplev.c (process_options): Split userspace-specific checks.
7629 2014-07-31  Richard Biener  <rguenther@suse.de>
7631         * lto-streamer.h (struct output_block): Remove global.
7632         (struct data_in): Remove labels, num_named_labels and
7633         num_unnamed_labels.
7634         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
7635         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
7637 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
7639         PR c++/60517
7640         * common.opt (-Wreturn-local-addr): Moved from c.opt.
7641         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
7642         (isolate_path): New argument to avoid inserting a trap.
7643         (find_implicit_erroneous_behaviour): Handle returning the address
7644         of a local variable.
7645         (find_explicit_erroneous_behaviour): Likewise.
7647 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
7649         PR lto/61868
7650         * toplev.c (init_random_seed): Move piece of code never called to
7651         set_random_seed.
7652         (set_random_seed): see above.
7654 2014-07-31  Tom de Vries  <tom@codesourcery.com>
7656         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
7658 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
7660         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
7661         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
7663 2014-07-31  Richard Biener  <rguenther@suse.de>
7665         * data-streamer.h (streamer_write_data_stream): Declare here,
7666         renamed from ...
7667         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
7668         * lto-cgraph.c (lto_output_node): Adjust.
7669         (lto_output_varpool_node): Likewise.
7670         * data-streamer-out.c (streamer_string_index): Likewise.
7671         (streamer_write_data_stream, lto_append_block): Move from ...
7672         * lto-section-out.c (lto_output_data_stream,
7673         lto_append_block): ... here.
7675 2014-07-30  Mike Stump  <mikestump@comcast.net>
7677         * configure.ac: Also check for popen.
7678         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
7679         * configure: Regenerate.
7680         * config.in:  Regenerate.
7682 2014-07-30  Martin Jambor  <mjambor@suse.cz>
7684         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
7685         parameter to gimple.
7687 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7689         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
7690         address as second parameter to __tpf_eh_return routine.
7692 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
7694         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
7695         Thumb2.
7697 2014-07-30  Tom Tromey  <tromey@redhat.com>
7699         PR c/59855
7700         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
7701         * doc/extend.texi (Type Attributes): Document designated_init
7702         attribute.
7704 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
7706         * graphite-isl-ast-to-gimple.c:
7707         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
7708         (gcc_expression_from_isl_expression): Pass type to
7709         gcc_expression_from_isl_ast_expr_id.
7711 2014-07-30  Richard Biener  <rguenther@suse.de>
7713         * lto-streamer.h (lto_write_data): New function.
7714         * langhooks.c (lhd_append_data): Do not free block.
7715         * lto-section-out.c (lto_write_data): New function writing
7716         raw data to the current section.
7717         (lto_write_stream): Adjust for langhook semantic change.
7718         (lto_destroy_simple_output_block): Write header directly.
7719         * lto-opts.c (lto_write_options): Write options directly.
7720         * lto-streamer-out.c (produce_asm): Write heaeder directly.
7721         (lto_output_toplevel_asms): Likewise.
7722         (copy_function_or_variable): Copy data directly.
7723         (write_global_references): Output index table directly.
7724         (lto_output_decl_state_refs): Likewise.
7725         (write_symbol): Write data directly.
7726         (produce_symtab): Adjust.
7727         (produce_asm_for_decls): Output header and refs directly.
7729 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
7731         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
7732         to speculative_targets
7733         (get_class_context): Fix handling of contextes without outer type;
7734         avoid matching non-polymorphic types in LTO.
7735         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
7736         parameter to speculative_targetsp; handle speculation.
7737         (dump_possible_polymorphic_call_targets): Update dumping.
7739 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
7741         * common.opt (Wodr): Enable by default.
7743 2014-07-29  Olivier Hainque  <hainque@adacore.com>
7745         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
7747 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
7749         PR bootstrap/61914
7750         * gengtype.c (strtoken): New function.
7751         (create_user_defined_type): Replace strtok with strtoken.
7753 2014-07-29  Nathan Sidwell  <nathan@acm.org>
7755         * gcov-io.c (gcov_var): Make hidden.
7756         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
7757         (gcov_do_dump): Declare.
7758         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
7760 2014-07-29  Martin Jambor  <mjambor@suse.cz>
7762         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
7763         parameter to gimple.
7764         (sra_modify_assign): Likewise.
7766 2014-07-29  Richard Biener  <rguenther@suse.de>
7768         PR middle-end/52478
7769         * expr.c (expand_expr_real_2): Revert last change.
7771 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
7773         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
7774         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
7775         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
7776         call.
7777         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
7778         (contains_type_p): Forward declare.
7779         (polymorphic_call_target_hasher::hash): Hash speculative info.
7780         (polymorphic_call_target_hasher::equal): Compare speculative info.
7781         (get_class_context): Handle speuclation.
7782         (contains_type_p): Update.
7783         (get_polymorphic_call_info_for_decl): Update.
7784         (walk_ssa_copies): Break out from ...
7785         (get_polymorphic_call_info): ... here; set speculative context
7786         before giving up.
7787         * ipa-prop.c (ipa_write_indirect_edge_info,
7788         ipa_read_indirect_edge_info): Stream speculative context.
7789         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
7790         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
7791         SPECULATIVE_MAYBE_DERIVED_TYPE).
7792         (possible_polymorphic_call_targets overriders): Update.
7793         (dump_possible_polymorphic_call_targets overriders): Update.
7794         (dump_possible_polymorphic_call_target_p overriders): Update.
7796 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
7798         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
7799         ipa-devirt path; fix thinko there.
7801 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
7803         * config/i386/i386.c (ix86_return_in_memory): Replace one
7804         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
7806 2014-07-28  Marek Polacek  <polacek@redhat.com>
7808         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
7810 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
7812         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
7813         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
7814         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
7815         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7816         (USE_LD_AS_NEEDED): Likewise.
7817         (ASM_APP_ON): Likewise.
7818         (ASM_APP_OFF): Likewise.
7819         (TARGET_POSIX_IO): Likewise.
7820         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
7821         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7822         (USE_LD_AS_NEEDED): Likewise.
7823         (ASM_APP_ON): Likewise.
7824         (ASM_APP_OFF): Likewise.
7825         (TARGET_POSIX_IO): Likewise.
7827 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
7829         PR middle-end/61734
7830         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
7831         operators other than the equality operators.
7833 2014-07-28  Richard Biener  <rguenther@suse.de>
7835         PR middle-end/52478
7836         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
7837         sure to register SImode ones, not only >= word_mode ones.
7838         * expr.c (expand_expr_real_2): When expanding -ftrapv
7839         binops do not use OPTAB_LIB_WIDEN.
7841 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
7843         PR middle-end/61919
7844         * tree-outof-ssa.c (insert_partition_copy_on_edge)
7845         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
7846         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
7847         inserting them in the insn stream.
7849 2014-07-28  Marek Polacek  <polacek@redhat.com>
7851         PR middle-end/61913
7852         * common.opt (Wodr): Add Var.
7854 2014-07-28  Richard Biener  <rguenther@suse.de>
7856         PR tree-optimization/61921
7857         * tree-ssa-structalias.c (create_variable_info_for_1): Check
7858         if there is a varpool node before dereferencing it.
7860 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
7862         * graphite-sese-to-poly.c:
7863         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
7864         id of the pbb), which contains pointer to the pbb1.
7866         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
7868 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
7870         * graphite-isl-ast-to-gimple.c:
7871         (graphite_create_new_guard): New function.
7872         (translate_isl_ast_node_if): New function.
7873         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
7875         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
7877 2014-07-27  Anthony Green  <green@moxielogic.com>
7879         * config.gcc: Add moxie-*-moxiebox* configuration.
7880         * config/moxie/moxiebox.h: New file.
7882 2014-07-26  Andrew Pinski  <apinski@cavium.com>
7884         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
7885         from the read only register.
7887 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
7889         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
7890         as the allocation class if it isn't likely to be spilled.
7892 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
7894         * rtl.h (tls_referenced_p): Declare.
7895         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
7896         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
7897         (mips_cannot_force_const_mem): Use tls_referenced_p.
7898         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
7899         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
7900         instead of pa_tls_referenced_p.
7901         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
7902         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
7903         (pa_legitimate_constant_p): Likewise.
7904         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
7905         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
7906         (rs6000_cannot_force_const_mem, rs6000_emit_move)
7907         (rs6000_address_for_altivec): Use tls_referenced_p instead of
7908         rs6000_tls_referenced_p.
7909         (rs6000_tls_symbol_ref_1): Delete.
7911 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
7913         PR target/44551
7914         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7915         Optimize inverse of a VEC_CONCAT.
7917 2014-07-25  Xinliang David Li  <davidxl@google.com>
7919         * params.def: New parameter.
7920         * coverage.c (get_coverage_counts): Check new flag.
7921         (coverage_compute_profile_id): Check new flag.
7922         (coverage_begin_function): Check new flag.
7923         (coverage_end_function): Check new flag.
7924         * value-prof.c (coverage_node_map_initialized_p): New function.
7925         (init_node_map): Populate map with all functions.
7926         * doc/invoke.texi: Document new parameter.
7928 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
7929             Richard Biener <rguenther@suse.de>
7931         * lto-streamer-out.c (struct sccs): Turn to ...
7932         (class DFS): ... this one; refactor the DFS walk so it can
7933         be re-done on per-SCC basis.
7934         (DFS::DFS): New constructor.
7935         (DFS::~DFS): New destructor.
7936         (hash_tree): Add new MAP argument holding in-SCC hash values;
7937         remove POINTER_TYPE hashing hack.
7938         (scc_entry_compare): Rename to ...
7939         (DFS::scc_entry_compare): ... this one.
7940         (hash_scc): Rename to ...
7941         (DFS::hash_scc): ... this one; pass output_block instead
7942         of streamer_cache; work harder to get unique and stable SCC
7943         hashes.
7944         (DFS_write_tree): Rename to ...
7945         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
7946         (lto_output_tree): Update.
7948 2014-07-25  Andi Kleen  <ak@linux.intel.com>
7950         * lto-streamer-out.c (hash_tree): Convert to inchash.
7952 2014-07-25  Andi Kleen  <ak@linux.intel.com>
7954         * tree.c (build_type_attribute_qual_variant): Use inchash.
7955         (type_hash_list): Dito.
7956         (attribute_hash_list): Dito
7957         (iterative_hstate_expr): Dito.
7958         (iterative_hash_expr): Dito.
7959         (build_range_type_1): Dito.
7960         (build_array_type_1): Dito.
7961         (build_function_type): Dito.
7962         (build_method_type_directly): Dito.
7963         (build_offset_type): Dito.
7964         (build_complex_type): Dito.
7965         (make_vector_type): Dito.
7966         * tree.h (iterative_hash_expr): Add compat wrapper.
7967         (iterative_hstate_expr): Add.
7969 2014-07-25  Andi Kleen  <ak@linux.intel.com>
7971         * Makefile.in (OBJS): Add inchash.o.
7972         (PLUGIN_HEADERS): Add inchash.h.
7973         * ipa-devirt.c: Include inchash.h.
7974         * lto-streamer-out.c: Dito.
7975         * tree-ssa-dom.c: Dito.
7976         * tree-ssa-pre.c: Dito.
7977         * tree-ssa-sccvn.c: Dito.
7978         * tree-ssa-tail-merge.c: Dito.
7979         * asan.c: Dito.
7980         * tree.c (iterative_hash_hashval_t): Move to ...
7981         (iterative_hash_host_wide_int): Move to ...
7982         * inchash.c: Here. New file.
7983         * tree.h (iterative_hash_hashval_t): Move to ...
7984         (iterative_hash_host_wide_int): Move to ...
7985         * inchash.h: Here. New file.
7987 2014-07-25  Richard Biener  <rguenther@suse.de>
7989         PR middle-end/61762
7990         PR middle-end/61894
7991         * fold-const.c (native_encode_int): Add and handle offset
7992         parameter to do partial encodings of expr.
7993         (native_encode_fixed): Likewise.
7994         (native_encode_real): Likewise.
7995         (native_encode_complex): Likewise.
7996         (native_encode_vector): Likewise.
7997         (native_encode_string): Likewise.
7998         (native_encode_expr): Likewise.
7999         * fold-const.c (native_encode_expr): Add offset parameter
8000         defaulting to -1.
8001         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8002         (fold_ctor_reference): Handle all reads from tcc_constant
8003         ctors.
8005 2014-07-25  Richard Biener  <rguenther@suse.de>
8007         * tree-inline.c (estimate_move_cost): Mark speed_p argument
8008         as possibly unused.
8010 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8012         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8014 2014-07-24  Kyle McMartin  <kyle@redhat.com>
8016         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8018 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8020         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8021         Add prototype.
8022         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8023         function.
8024         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8025         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8026         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8028 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8030         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8031         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8032         aggregate types.  Instead, *all* aggregate types, except for single-
8033         element or homogeneous float/vector aggregates, are quadword-aligned
8034         if required by their type alignment.  Issue -Wpsabi note when a type
8035         is now treated differently than before.
8037 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8039         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8040         does not fit fully into floating-point registers, and there is still
8041         space in the register parameter area, use GPRs to pass those parts
8042         of the argument.  Issue -Wpsabi note if any parameter is now treated
8043         differently than before.
8044         (rs6000_arg_partial_bytes): Update.
8046 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
8048         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8050 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
8052         * rtl.h (target_rtl): Remove lang_dependent_initialized.
8053         * toplev.c (initialize_rtl): Don't use it.  Move previously
8054         "language-dependent" calls to...
8055         (backend_init): ...here.
8056         (lang_dependent_init_target): Don't set lang_dependent_initialized.
8057         Assert that RTL initialization hasn't happend yet.
8059 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
8061         PR rtl-optimization/61629
8062         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8063         they have already been initialized.
8065 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
8067         PR middle-end/61268
8068         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8069         DECL_INCOMING_RTL and entry_parm.
8070         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8071         * calls.c (load_register_parameters): Likewise argument values.
8072         (emit_library_call_value_1, store_one_arg): Likewise argument
8073         save areas.
8074         * config/i386/i386.c (assign_386_stack_local): Likewise the local
8075         stack slot.
8076         * explow.c (validize_mem): Modify the argument in-place.
8078 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
8080         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8081         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8083 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
8085         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8086         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8088 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
8090         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8091         (aarch64_save_callee_saves): New parameter "skip_wb".
8092         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8094 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
8096         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8097         "wb_candidate2".
8098         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8100 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
8102         * graphite-isl-ast-to-gimple.c:
8103         (graphite_create_new_loop): Add calling of isl_id_free to properly
8104         decrement reference counts.
8106         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8108 2014-07-24  Martin Liska  <mliska@suse.cz>
8109         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8110         function used.
8111         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8112         (rs6000_code_end): Likewise.
8114 2014-07-24  Martin Liska  <mliska@suse.cz>
8116         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8117         symtab_node funtion used.
8118         (rs6000_xcoff_declare_object_name): Likewise.
8120 2014-07-24  Martin Liska  <mliska@suse.cz>
8122         * cgraphunit.c (compile): Correct function used.
8124 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
8126         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8127         as non-indexable.
8129 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
8131         PR lto/61802
8132         * varasm.c (bss_initializer_p): Handle offlined ctors.
8133         (align_variable, get_variable_align): Likewise.
8134         (make_decl_one_only): Likewise.
8135         (default_binds_local_p_1): Likewise.
8136         (decl_binds_to_current_def_p): Likewise.
8137         (get_variable_section): Get constructor if it is offlined.
8138         (assemble_variable_contents): Sanity check that the caller
8139         streamed in the ctor in LTO.
8141 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
8143         * graphite-isl-ast-to-gimple.c:
8144         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8145         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8146         isl_ast_op_pdiv_r to the different case.
8148         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8150 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8152         PR middle-end/61876
8153         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8154         when flag_errno_math is on.
8156 2014-07-24  Martin Liska  <mliska@suse.cz>
8158         * cgraph.h (varpool_node):
8159         (availability get_availability (void)):
8160         created from cgraph_variable_initializer_availability
8161         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8162         created from: cgraph_variable_initializer_availability
8163         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8164         (void finalize_named_section_flags (void)):
8165         created from varpool_finalize_named_section_flags
8166         (bool assemble_decl (void)): created from varpool_assemble_decl
8167         (void analyze (void)): created from varpool_analyze_node
8168         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8169         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8170         (void remove_initializer (void)): created from varpool_remove_initializer
8171         (tree get_constructor (void)): created from varpool_get_constructor
8172         (bool externally_visible_p (void)): created from varpool_externally_visible_p
8173         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8174         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8175         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8176         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8177         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8178         (static bool output_variables (void)): created from varpool_output_variables
8179         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8180         created from varpool_extra_name_alias
8181         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8182         (static void dump_varpool (FILE *f)): created from dump_varpool
8183         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8184         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8185         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8186         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8187         (void assemble_aliases (void)): created from assemble_aliases
8189 2014-07-24  Martin Liska  <mliska@suse.cz>
8191         * cgraph.h (symtab_node):
8192         (void register_symbol (void)): created from symtab_register_node
8193         (void remove (void)): created from symtab_remove_node
8194         (void dump (FILE *f)): created from dump_symtab_node
8195         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8196         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8197         (struct ipa_ref *add_reference (symtab_node *referred_node,
8198         enum ipa_ref_use use_type)): created from add_reference 
8199         (struct ipa_ref *add_reference (symtab_node *referred_node,
8200         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8201         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8202         gimple stmt)): created from maybe_add_reference
8203         (bool semantically_equivalent_p (symtab_node *target)): created from
8204         symtab_semantically_equivalent_p
8205         (void remove_from_same_comdat_group (void)): created from
8206         remove_from_same_comdat_group
8207         (void add_to_same_comdat_group (symtab_node *old_node)): created from
8208         symtab_add_to_same_comdat_group
8209         (void dissolve_same_comdat_group_list (void)): created from
8210         symtab_dissolve_same_comdat_group_list
8211         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8212         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8213         created from symtab_alias_ultimate_target
8214         (inline symtab_node *next_defined_symbol (void)): created from
8215         symtab_next_defined_symbol
8216         (bool resolve_alias (symtab_node *target)): created from
8217         symtab_resolve_alias
8218         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8219         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8220         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8221         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8222         (void set_section (const char *section)): created from set_section_1 
8223         (enum availability get_availability (void)): created from symtab_node_availability
8224         (void make_decl_local (void)): created from symtab_make_decl_local
8225         (bool real_symbol_p (void)): created from symtab_read_node
8226         (can_be_discarded_p (void)): created from symtab_can_be_discarded
8227         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8228         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8229         symtab_in_same_comdat_p;
8230         (bool address_taken_from_non_vtable_p (void)): created from
8231         address_taken_from_non_vtable_p
8232         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8233         (static void dump_table (FILE *)): created from dump_symtab
8234         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8235         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8236         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8237         symtab_used_from_object_file_p 
8238         (void dump_base (FILE *)): created from dump_symtab_base
8239         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8240         (void unregister (void)): created from symtab_unregister_node
8241         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8242         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8243         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8244         symtab_nonoverwritable_alias_1
8245         * cgraph.h (cgraph_node):
8246         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8247         created from cgraph_remove_node_and_inline_clones
8248         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8249         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8250         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8251         (cgraph_node *function_symbol (enum availability *avail = NULL)):
8252         created from cgraph_function_node
8253         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8254         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8255         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8256         created from cgraph_create_clone 
8257         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8258         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8259         created from cgraph_create_virtual_clone
8260         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8261         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8262         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8263         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8264         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8265         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8266         created from cgraph_function_version_info
8267         (struct cgraph_function_version_info *insert_new_function_version (void)):
8268         created from insert_new_cgraph_node_version
8269         (struct cgraph_function_version_info *function_version (void)): created from
8270         get_cgraph_node_version
8271         (void analyze (void)): created from analyze_function
8272         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8273         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8274         tree real_alias) cgraph_add_thunk
8275         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8276         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8277         created from cgraph_function_or_thunk_node
8278         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8279         created from expand_thunk
8280         (void reset (void)): created from cgraph_reset_node
8281         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8282         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8283         (void remove (void)): created from cgraph_remove_node
8284         (void dump (FILE *f)): created from dump_cgraph_node
8285         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8286         (bool get_body (void)): created from cgraph_get_body
8287         (void release_body (void)): created from cgraph_release_function_body
8288         (void unnest (void)): created from cgraph_unnest_node
8289         (void make_local (void)): created from cgraph_make_node_local
8290         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8291         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8292         gcov_type count, int freq)): created from cgraph_create_edge
8293         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8294         gcov_type count, int freq)): created from cgraph_create_indirect_edge
8295         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8296         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8297         created from cgraph_create_edge_including_clones
8298         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8299         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8300         (void remove_callers (void)): created from cgraph_node_remove_callers
8301         (void remove_callees (void)): created from cgraph_node_remove_callees
8302         (enum availability get_availability (void)): created from cgraph_function_body_availability
8303         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8304         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8305         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8306         (void call_duplication_hooks (cgraph_node *node2)): created from
8307         cgraph_call_node_duplication_hooks
8308         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8309         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8310         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8311         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8312         (void call_function_insertion_hooks (void)):
8313         created from cgraph_call_function_insertion_hooks
8314         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8315         (bool local_p (void)): created from cgraph_local_node
8316         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8317         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8318         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8319         (inline bool only_called_directly_or_aliased_p (void)):
8320         created from cgraph_only_called_directly_or_aliased_p
8321         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8322         created from cgraph_will_be_removed_from_program_if_no_direct_calls
8323         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8324         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8325         (bool can_remove_if_no_direct_calls_p (void)):
8326         created from cgraph_can_remove_if_no_direct_calls_p
8327         (inline bool has_gimple_body_p (void)):
8328         created from cgraph_function_with_gimple_body_p
8329         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8330         (static void dump_cgraph (FILE *f)): created from dump_cgraph
8331         (static inline void debug_cgraph (void)): created from debug_cgraph
8332         (static void record_function_versions (tree decl1, tree decl2)):
8333         created from record_function_versions
8334         (static void delete_function_version (tree decl)):
8335         created from delete_function_version
8336         (static void add_new_function (tree fndecl, bool lowered)):
8337         created from cgraph_add_new_function
8338         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8339         (static cgraph_node * create (tree decl)): created from cgraph_create_node
8340         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8341         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8342         (static cgraph_node *get_for_asmname (tree asmname)):
8343         created from cgraph_node_for_asm
8344         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8345         created from cgraph_same_body_alias 
8346         (static bool used_from_object_file_p_worker (cgraph_node *node,
8347         void *): new function
8348         (static bool non_local_p (cgraph_node *node, void *)):
8349         created from cgraph_non_local_node_p_1
8350         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8351         created from verify_cgraph
8352         (static bool make_local (cgraph_node *node, void *)):
8353         created from cgraph_make_node_local
8354         (static cgraph_node *create_alias (tree alias, tree target)):
8355         created from cgraph_create_function_alias
8356         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8357         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8358         created from cgraph_create_edge_1
8359         * cgraph.h (varpool_node):
8360         (void remove (void)): created from varpool_remove_node
8361         (void dump (FILE *f)): created from dump_varpool_node
8363 2014-07-24  Richard Biener  <rguenther@suse.de>
8365         PR ipa/61823
8366         * tree-ssa-structalias.c (create_variable_info_for_1):
8367         Use varpool_get_constructor.
8368         (create_variable_info_for): Likewise.
8370 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
8372         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8373         subtract outgoing area size when restoring stack_pointer_rtx.
8375 2014-07-24  Nick Clifton  <nickc@redhat.com>
8377         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8378         that operations are taking place in parallel.
8379         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8381 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
8383         * omp-low.c (extract_omp_for_data): Add missing break statement.
8385 2014-07-24  Richard Biener  <rguenther@suse.de>
8387         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8388         * tree-inline.c (estimate_move_cost): Add speed_p parameter
8389         and adjust MOVE_RATIO query accordingly.
8390         (estimate_num_insns): Adjust callers.
8391         * ipa-prop.c (ipa_populate_param_decls): Likewise.
8392         * ipa-cp.c (gather_context_independent_values,
8393         estimate_local_effects): Likewise.
8394         * ipa-split.c (consider_split): Likewise.
8396 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
8398         * config/i386/driver-i386.c: Remove names of unused arguments and
8399         unnecessary unused attributes.
8400         * config/i386/host-mingw32.c: Likewise.
8401         * config/i386/i386.c: Likewise.
8402         * config/i386/winnt-stubs.c: Likewise.
8403         * config/i386/winnt.c: Likewise.
8405 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8407         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8408         (aarch64_gen_loadwb_pair): New helper function.
8409         (aarch64_expand_epilogue): Simplify code using new helper functions.
8410         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8412 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8414         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8415         (aarch64_gen_storewb_pair): New helper function.
8416         (aarch64_expand_prologue): Simplify code using new helper functions.
8417         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8419 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8421         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8422         Rename to aarch64_save_callee_saves, remove restore code.
8423         (aarch64_restore_callee_saves): New function.
8425 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8427         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8428         (aarch64_save_callee_saves): New function to handle reg save
8429         for both core and vectore regs.
8431 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8433         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8434         (aarch64_gen_store_pair): New helper function.
8435         (aarch64_save_or_restore_callee_save_registers)
8436         (aarch64_save_or_restore_fprs): Use new helper functions.
8438 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8440         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8441         (aarch64_save_or_restore_callee_save_registers)
8442         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8444 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8446         * config/aarch64/aarch64.c
8447         (aarch64_save_or_restore_callee_save_registers)
8448         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8450 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8452         * config/aarch64/aarch64.c
8453         (aarch64_save_or_restore_callee_save_registers)
8454         (aarch64_save_or_restore_fprs): Remove 'increment'.
8456 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8458         * config/aarch64/aarch64.c
8459         (aarch64_save_or_restore_callee_save_registers)
8460         (aarch64_save_or_restore_fprs): Use register offset in
8461         cfun->machine->frame.reg_offset.
8463 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8465         * config/aarch64/aarch64.c
8466         (aarch64_save_or_restore_callee_save_registers)
8467         (aarch64_save_or_restore_fprs): Remove base_rtx.
8469 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8471         * config/aarch64/aarch64.c
8472         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8473         to 'start_offset'.  Remove local variable 'start_offset'.
8475 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8477         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8478         type to HOST_WIDE_INT.
8480 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8482         * config/aarch64/aarch64.c (aarch64_expand_prologue)
8483         (aarch64_save_or_restore_fprs)
8484         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8486 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8488         * config/arm/t-rtems-eabi: Add
8489         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8490         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8491         mbig-endian/mthumb/march=armv7-r, and
8492         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8493         multilibs.
8495 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8496             Chris Johns <chrisj@rtems.org>
8497             Joel Sherrill <joel.sherrill@oarcorp.com>
8499         * config.gcc: Add nios2-*-rtems*.
8500         * config/nios2/rtems.h: New file.
8501         * gcc/config/nios2/t-rtems: New file.
8503 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
8505         PR target/61396
8506         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8507         constant numbers, not general constants.
8508         (rs6000_expand_vector_init): Ditto.
8510 2014-07-23  Nathan Sidwell  <nathan@acm.org>
8512         * gcov-tool.c (gcov_list): Declare here.
8513         (set_gcov_list): Remove.
8514         (gcov_output_files): Set gcov_list directly.
8516 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
8518         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8520 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
8522         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8523         callee-saved registers are available for padding purpose
8524         and r3 is not mandatory, then prefer use those callee-saved
8525         instead of r3.
8527 2014-07-23  Richard Biener  <rguenther@suse.de>
8529         * params.def (PARAM_MAX_COMBINE_INSNS): New.
8530         * combine.c: Include statistics.h and params.h.
8531         (combine_instructions): Guard three and four insn combines
8532         with max-combine-insns value.  Record statistics for combines
8533         performed.
8534         * doc/invoke.texi (max-combine-insns): Document new param.
8536 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
8538         * graphite-isl-ast-to-gimple.c:
8539         (translate_isl_ast_node_block): New function.
8540         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8542         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8543         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8545 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
8547         * graphite-isl-ast-to-gimple.c:
8548         (get_max_schedule_dimensions): New function.
8549         (extend_schedule): Likewise.
8550         (generate_isl_schedule): Add calling of extend_schedule and
8551         get_max_schedule_dimensions.
8553 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8555         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
8556         (case UNSPEC): Handle UNSPEC_RBIT.
8558 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8560         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
8561         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
8563 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8565         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
8567 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
8569         * graphite-isl-ast-to-gimple.c:
8570         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
8571         (ivs_params_clear):
8572         (build_iv_mapping): New function.
8573         (translate_isl_ast_node_user): Likewise.
8574         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
8576         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
8577         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
8578         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
8580 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
8582         PR target/55701
8583         * config/arm/arm.md (setmem): New pattern.
8584         * config/arm/arm-protos.h (struct tune_params): New fields.
8585         (arm_gen_setmem): New prototype.
8586         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
8587         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8588         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8589         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
8590         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
8591         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
8592         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
8593         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8594         (arm_const_inline_cost): New function.
8595         (arm_block_set_max_insns): New function.
8596         (arm_block_set_non_vect_profit_p): New function.
8597         (arm_block_set_vect_profit_p): New function.
8598         (arm_block_set_unaligned_vect): New function.
8599         (arm_block_set_aligned_vect): New function.
8600         (arm_block_set_unaligned_non_vect): New function.
8601         (arm_block_set_aligned_non_vect): New function.
8602         (arm_block_set_vect, arm_gen_setmem): New functions.
8604 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
8606         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
8608 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
8610         PR target/61855
8611         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
8612         out of #ifdef __OPTIMIZE__.
8614 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
8616         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
8617         different trapping status if -fnon-call-exceptions is enabled.
8619 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
8621         * expr.c (store_field): Handle VOIDmode for calls that return values
8622         in multiple locations.
8624 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8626         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
8627         (altivec_vsldoi_<mode>): Likewise.
8629 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
8631         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
8632         to the number of characters in the line.
8634 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
8636         * graphite-isl-ast-to-gimple.c: Add using of
8637         build_nonstandard_integer_type instead of int128_integer_type_node.
8639 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
8641         * toplev.c (output_stack_usage): Adjust the location of the warning.
8643 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
8645         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
8646         (*membar_storeload): Disable for LEON3.
8648 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8650         PR rtl-optimization/61461
8651         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
8653 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
8655         PR target/61794
8656         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
8657         Fix instruction constraint.
8658         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8660 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
8662         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
8664 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
8666         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
8667         GNU coding standards.
8668         (nds32_register_move_cost): Likewise.
8669         (nds32_memory_move_cost): Likewise.
8670         (nds32_address_cost): Likewise.
8672 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8674         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
8676 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
8678         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
8679         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
8680         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
8681         (HAVE_sync_compare_and_swapqi): Define.
8682         (HAVE_sync_compare_and_swaphi): Likewise.
8683         (HAVE_sync_compare_and_swapsi): Likewise.
8685 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
8687         * config/mips/p5600.md: Add missing cpu tests.
8689 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8691         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
8692         (vmla_f64): Likewise.
8693         (vfms_f64): Likewise.
8694         (vmls_f64): Likewise.
8696 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8698         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
8699         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
8701 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8703         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
8704         (vmlal_high_lane_s32): Likewise.
8705         (vmlal_high_lane_u16): Likewise.
8706         (vmlal_high_lane_u32): Likewise.
8707         (vmlsl_high_lane_s16): Likewise.
8708         (vmlsl_high_lane_s32): Likewise.
8709         (vmlsl_high_lane_u16): Likewise.
8710         (vmlsl_high_lane_u32): Likewise.
8712 2014-07-17  Terry Guo  <terry.guo@arm.com>
8714         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
8715         (alus_reg): Renamed to alus_sreg.
8716         * config/arm/arm-fixed.md: Change type of non-dsp instructions
8717         from alu_reg to alu_sreg.  Change type of dsp instructions from
8718         alu_reg to alu_dsp_reg.
8719         * config/arm/thumb1.md: Likewise.
8720         * config/arm/thumb2.md: Likewise.
8721         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
8722         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
8723         with alu_sreg and alus_sreg.
8724         * config/arm/arm1026ejs.md (alu_op): Likewise.
8725         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
8726         * config/arm/arm926ejs.md (9_alu_op): Likewise.
8727         * config/arm/fa526.md (526_alu_op): Likewise.
8728         * config/arm/fa606te.md (606te_alu_op): Likewise.
8729         * config/arm/fa626te.md (626te_alu_op): Likewise.
8730         * config/arm/fa726te.md (726te_alu_op): Likewise.
8731         * config/arm/fmp626.md (mp626_alu_op): Likewise.
8732         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
8733         alu_sreg, alu_dsp_reg and alus_sreg.
8734         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
8735         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8736         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8737         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
8738         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
8739         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8740         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8741         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8742         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
8743         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
8744         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
8745         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
8746         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
8747         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
8748         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
8749         alus_reg to alus_sreg.
8751 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
8753         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
8754         infinity format.
8756 2014-07-17  Richard Biener  <rguenther@suse.de>
8758         PR rtl-optimization/61801
8759         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
8760         don't set reg_pending_barrier if it appears in a debug-insn.
8762 2014-07-16  DJ Delorie  <dj@redhat.com>
8764         * config/rx/rx.c (rx_option_override): Fix alignment values.
8765         (rx_align_for_label): Likewise.
8767 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
8769         PR target/61737.
8770         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
8771         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8772         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
8773         functions.
8774         (cris_print_index, cris_print_operand, cris_constant_index_p)
8775         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
8776         (cris_address_cost): Ditto last CONSTANT_P.
8777         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
8778         callers changed.  Yield cris_offsettable_symbol for non-PIC
8779         constant symbolic expressions including labels.  Yield cris_unspec
8780         for all unspecs.
8781         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
8782         target to pic_offset_table_rtx for calls that will likely go
8783         through PLT, const0_rtx when they can't.  All callers changed.
8784         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
8785         symbolic expressions to be PICified.  Remove second, redundant,
8786         assert on can_create_pseudo_p returning non-zero.  Use
8787         replace_equiv_address_nv, not replace_equiv_address, for final
8788         operand update.
8789         * config/cris/cris.md ("movsi"): Move variable t to pattern
8790         toplevel. Adjust assert for new cris_symbol_type member.  Use
8791         CONSTANT_P instead of CONSTANT_ADDRESS_P.
8792         ("*movsi_internal") <case 9>: Make check for valid unspec operands
8793         for lapc stricter.
8794         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
8795         ("call", "call_value"): Use second incoming operand as a marker
8796         for pic-offset-table-register being used.
8797         ("*expanded_call_non_v32", "*expanded_call_v32")
8798         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
8799         second incoming operand to CALL, match cris_call_type_marker.
8800         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
8801         ("*expanded_call_side"): Ditto.  Fix typo in comment.
8802         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
8803         CONSTANT_P.
8804         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
8805         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
8806         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
8807         users changed.  Add members cris_offsettable_symbol and cris_unspec.
8808         (cris_symbol_type): Rename from cris_pic_symbol_type.
8809         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
8810         just CONSTANT_P.
8811         * config/cris/cris-protos.h (cris_symbol_type_of,
8812         cris_expand_pic_call_address): Adjust prototypes.
8813         (cris_legitimate_constant_p): New prototype.
8815         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
8816         an existing tmake_file.  Don't add t-slibgcc and t-linux.
8818 2014-07-17  Jason Merrill  <jason@redhat.com>
8820         PR c++/61623
8821         * symtab.c (symtab_remove_from_same_comdat_group): Also
8822         set_comdat_group to NULL_TREE.
8823         (verify_symtab): Fix diagnostic.
8825 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
8827         PR target/61662
8828         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
8830 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
8832         Support location tracking for built-in macro tokens
8833         * input.h (is_location_from_builtin_token): New function declaration.
8834         * input.c (is_location_from_builtin_token): New function definition.
8835         * toplev.c (general_init): Tell libcpp what the pre-defined
8836         spelling location for built-in tokens is.
8838 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
8840         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
8841         on the FUNCTION_DECL.
8843 2014-07-16  Richard Biener  <rguenther@suse.de>
8845         PR other/61782
8846         * doc/extend.texi (always_inline): Clarify.
8848 2014-07-15  Eric Christopher  <echristo@gmail.com>
8850         * doc/invoke.texi (Link Options): Document -z option.
8852 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
8854         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
8855         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8857 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
8859         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
8861 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
8863         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
8864         varpool_assemble_decl.
8865         * varpool.c (varpool_assemble_decl): Assert that node->definition is
8866         true.
8868 2014-07-15  Michael Matz  <matz@suse.de>
8870         PR rtl-optimization/61772
8871         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
8873 2014-07-15  Richard Biener  <rguenther@suse.de>
8875         * opts.c (default_options_table): Disable bit-ccp at -Og.
8877 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
8879         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
8881 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
8883         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
8884         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
8885         call langhook for unknown declaration.
8886         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
8887         * tree.h (DECL_ARGUMENTS): Update.
8888         * print-tree.c (print_node): Update.
8889         * tree-core.h (tree_decl_non_common): Remove arguments.
8890         (tree_function_decl): Add arguments.
8892 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
8894         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
8896 2014-07-14  Richard Biener  <rguenther@suse.de>
8898         PR tree-optimization/61779
8899         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
8900         simplifying a condition.
8902 2014-07-14  Richard Biener  <rguenther@suse.de>
8904         * builtins.c (c_strlen): Make only_value == 2 really only
8905         affect warning generation.
8907 2014-07-14  Richard Biener  <rguenther@suse.de>
8909         PR tree-optimization/61757
8910         PR tree-optimization/61783
8911         PR tree-optimization/61787
8912         * tree-ssa-dom.c (record_equality): Revert canonicalization
8913         change and add comment.
8914         (propagate_rhs_into_lhs): Revert previous fix, removing
8915         loop depth restriction again.
8917 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8919         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
8920         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8921         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8922         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
8923         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8924         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8925         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8927 2014-07-14  Richard Biener  <rguenther@suse.de>
8929         * cgraph.h (decl_in_symtab_p): Make inline.
8931 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
8933         PR middle-end/61294
8934         * doc/invoke.texi (-Wmemset-transposed-args): Document.
8936         PR target/61656
8937         * config/i386/i386.c (classify_argument): Don't merge classes above
8938         number of words.
8940 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
8942         * cgraph.h (symtab_node): Add nonzero_address.
8943         (decl_in_symtab_p): Break out from ...
8944         (symtab_get_node): ... here.
8945         * fold-const.c: Include cgraph.h
8946         (tree_single_nonzero_warnv_p): Use symtab to determine
8947         if symbol is non-zero.
8948         * symtab.c (symtab_node::nonzero_address): New method.
8950 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
8952         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
8953         forgotten in previous commit.
8955 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
8957         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
8958         on builtin types.
8959         * ipa-devirt.c: Include stor-layout.h and intl.h
8960         (odr_subtypes_equivalent_p): New function.
8961         (warn_odr): New function.
8962         (warn_type_mismatch): New function.
8963         (odr_types_equivalent_p): New function.
8964         (add_type_duplicate): Use it.
8965         * common.opt (Wodr): New flag.
8966         * doc/invoke.texi (Wodr): Document new warning.
8968 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
8970         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
8971         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
8972         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
8973         (varpool_get_constructor): Push CTORS_IN timevar.
8974         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
8976 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
8978         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
8979         Remove VOID_FTYPE_PUSHORT.
8980         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
8981         Change code to USHORT_FTYPE_VOID.
8982         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
8983         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
8984         (ix86_atomic_assign_expand_fenv): Update for
8985         __builtin_ia32_fnstsw changes.
8986         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
8987         (fnstsw): Change operand 0 to nonimmediate operand.
8989 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
8991         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
8992         (varpool_get_constructor): New function.
8993         (varpool_ctor_useable_for_folding_p): Break out from ...
8994         (ctor_for_folding): ... here; use varpool_get_constructor.
8995         (varpool_assemble_decl): Likewise.
8996         * lto-streamer.h (struct output_block): Turn cgraph_node
8997         to symbol filed.
8998         (lto_input_variable_constructor): Declare.
8999         * ipa-visibility.c (function_and_variable_visibility): Use
9000         varpool_get_constructor.
9001         * cgraph.h (varpool_get_constructor): Declare.
9002         (varpool_ctor_useable_for_folding_p): New function.
9003         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9004         parameter; return error_mark_node for non-trivial constructors.
9005         (lto_write_tree_1, DFS_write_tree): Update use of
9006         get_symbol_initial_value.
9007         (output_function): Update initialization of symbol.
9008         (output_constructor): New function.
9009         (copy_function): Rename to ..
9010         (copy_function_or_variable): ... this one; handle vars too.
9011         (lto_output): Output variable sections.
9012         * lto-streamer-in.c (input_constructor): New function.
9013         (lto_read_body): Rename from ...
9014         (lto_read_body_or_constructor): ... this one; handle vars too.
9015         (lto_input_variable_constructor): New function.
9016         * ipa-prop.c (ipa_prop_write_jump_functions,
9017         ipa_prop_write_all_agg_replacement): Update.
9018         * lto-cgraph.c (compute_ltrans_boundary): Use it.
9019         (output_cgraph_opt_summary): Set symbol to NULL.
9021 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
9023         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9024         non-polymorphic types.
9025         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9026         * ipa-devirt.c (types_same_for_odr): Do not explode when one
9027         of types is not polymorphic.
9029 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
9031         * lra-constraints.c (remove_inheritance_pseudos): Process
9032         destination pseudo too.
9034 2014-07-11  Rong Xu  <xur@google.com>
9036         * gcov-tool.c (gcov_output_files): Fix build error introduced in
9037         commit r212448.
9039 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
9041         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9042         * config/avr/avr-devices.c (AVR_MCU): Same.
9043         (avr_mcu_types): add text start value to end of device list.
9044         * config/avr/avr-mcus.def: Add text section start for all devices.
9045         (ata5782): Add new avr5 device.
9046         (ata5831): Same.
9047         * config/avr/avr-tables.opt: Regenerate.
9048         * config/avr/avr.h: Add declaration for text section start handler.
9049         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9050         SPEC functions.
9051         (LINK_SPEC): Include text section start handler to linker spec.
9052         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9053         pass -Ttext option to linker if the text section start for the device
9054         is not zero.
9055         * config/avr/t-multilib: Regenerate.
9056         * doc/avr-mmcu.texi: Regenerate.
9058 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
9060         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9061         * config/rs6000/aix52.h (LINK_SPEC): Same.
9062         * config/rs6000/aix53.h (LINK_SPEC): Same.
9063         * config/rs6000/aix61.h (LINK_SPEC): Same.
9064         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9066 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
9068         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9069         (graphite_verify): New function.
9070         (ivs_params_clear): New function.
9071         (gcc_expression_from_isl_ast_expr_id): New function.
9072         (gcc_expression_from_isl_expr_int): New function.
9073         (binary_op_to_tree): New function.
9074         (ternary_op_to_tree): New function.
9075         (unary_op_to_tree): New function.
9076         (nary_op_to_tree): New function.
9077         (gcc_expression_from_isl_expr_op): New function.
9078         (gcc_expression_from_isl_expression): New function.
9079         (graphite_create_new_loop): New function.
9080         (translate_isl_ast_for_loop): New function.
9081         (get_upper_bound): New function.
9082         (graphite_create_new_loop_guard): New function.
9083         (translate_isl_ast_node_for): New function.
9084         (translate_isl_ast): New function.
9085         (add_parameters_to_ivs_params): New function.
9086         (scop_to_isl_ast): New parameter ip.
9087         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9089 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
9091         * config/xtensa/predicates.md (call expander): Update for
9092         DECL_SECTION_NAME being string.
9094 2014-07-11  Richard Biener  <rguenther@suse.de>
9096         PR middle-end/61473
9097         * builtins.c (fold_builtin_memory_op): Inline memory moves that
9098         can be implemented with a single load followed by a single store.
9099         (c_strlen): Only warn when only_value is not 2.
9101 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
9103         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9105 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
9107         PR target/61561
9108         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9109         (*movhi_bytes): Likewise.
9110         (*arm_movqi_insn): Likewise.
9112 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
9114         PR target/56858
9115         * config/alpha/alpha.c: Include tree-pass.h, context.h
9116         and pass_manager.h.
9117         (pass_data_handle_trap_shadows): New pass.
9118         (pass_handle_trap_shadows::gate): New pass gate function.
9119         (make_pass_handle_trap_shadows): New function.
9120         (rest_of_handle_trap_shadows): Ditto.
9122         (alpha_align_insns_1): Rename from alpha_align_insns.
9123         (pass_data_align_insns): New pass.
9124         (pass_align_insns::gate): New pass gate function.
9125         (make_pass_aling_insns): New function.
9126         (rest_of_align_insns): Ditto.
9127         (alpha_align_insns): Ditto.
9129         (alpha_option_override): Declare handle_trap_shadows info
9130         and align_insns_info.  Register handle_trap_shadows and align_insns
9131         passes here.
9132         (alpha_reorg): Do not call alpha_trap_shadows and
9133         alpha_align_insn from here.
9135         (alpha_pad_function_end): Do not skip BARRIERs.
9137 2014-07-10  Rong Xu  <xur@google.com>
9139         Add gcov-tool: an offline gcda profile processing tool support.
9140         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9141         (gcov_is_error): Ditto.
9142         (gcov_read_string): Ditto.
9143         (gcov_read_sync): Ditto.
9144         * gcov-io.h: Move counter defines to gcov-counter.def.
9145         * gcov-dump.c (tag_counters): Use gcov-counter.def.
9146         * coverage.c: Ditto.
9147         * gcov-tool.c: Offline gcda profile processing tool.
9148         (unlink_gcda_file): Remove one gcda file.
9149         (unlink_profile_dir): Remove gcda files from the profile path.
9150         (gcov_output_files): Output gcda files to an output dir.
9151         (profile_merge): Merge two profiles in directory.
9152         (print_merge_usage_message): Print merge usage.
9153         (merge_usage): Print merge usage and exit.
9154         (do_merge): Driver for profile merge sub-command.
9155         (profile_rewrite): Rewrite profile.
9156         (print_rewrite_usage_message): Print rewrite usage.
9157         (rewrite_usage): Print rewrite usage and exit.
9158         (do_rewrite): Driver for profile rewrite sub-command.
9159         (print_usage): Print gcov-info usage and exit.
9160         (print_version): Print gcov-info version.
9161         (process_args): Process arguments.
9162         (main): Main routine for gcov-tool.
9163         * Makefile.in: Build and install gcov-tool.
9164         * gcov-counter.def: New file split from gcov-io.h.
9165         * doc/gcc.texi: Include gcov-tool.texi.
9166         * doc/gcov-tool.texi: Document for gcov-tool.
9168 2014-07-10  Richard Biener  <rguenther@suse.de>
9170         PR tree-optimization/61757
9171         * tree-ssa-dom.c (loop_depth_of_name): Restore.
9172         (propagate_rhs_into_lhs): Revert part of last change.
9174 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
9176         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9177         FUNCTION_DECLs.
9179 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
9181         PR middle-end/53590
9182         * function.c (allocate_struct_function): Revert r188667 change.
9184         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9186 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
9188         * doc/install.texi: Remove links to defunct package providers for
9189         Solaris.
9191 2014-07-09  Tom de Vries  <tom@codesourcery.com>
9193         * final.c (get_call_fndecl): Declare.
9194         (self_recursive_call_p): New function.
9195         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9197 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
9199         * ipa-devirt.c (record_node): Walk through aliases.
9201 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
9203         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9205 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
9207         Revert:
9208         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9210 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
9212         * ipa-visibility.c (function_and_variable_visibility): Remove
9213         temporary hack disabling local aliases on AIX.
9215 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
9217         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9218         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9220 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
9222         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9223         * rs6000/rs6000.c: Inline output of .set instruction.
9224         (declare_alias_data): New struct.
9225         (rs6000_declare_alias): New function.
9226         (rs6000_xcoff_declare_function_name): Use it.
9227         (rs6000_xcoff_declare_object_name): New function.
9228         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9229         (ASM_OUTPUT_DEF): Turn to empty definition.
9231 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
9233         PR bootstrap/61679
9234         * hash-table.h: use hash_table::value_type instead of
9235         Descriptor::value_type in the return types of several methods.
9237 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
9239         * tree-pass.h (pass_data): Remove has_execute member.
9240         * passes.c (execute_one_pass): Don't check pass->has_execute.
9241         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9242         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9243         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9244         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9245         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9246         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9247         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9248         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9249         gimple-low.c, gimple-ssa-isolate-paths.c,
9250         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9251         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9252         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9253         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9254         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9255         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9256         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9257         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9258         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9259         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9260         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9261         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9262         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9263         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9264         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9265         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9266         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9267         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9268         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9269         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9270         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9271         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9272         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9273         web.c: Remove initializer for pass_data::has_execute.
9275 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
9277         * graphite-htab.h: Use hash_map instead of hash_table.
9278         * graphite-clast-to-gimple.c: Adjust.
9279         * passes.c: Use hash_map instead of hash_table.
9280         * sese.c: Likewise.
9281         * sese.h: Remove now unused code.
9283 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
9285         PR target/61599
9286         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9287         than zero.
9289 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
9291         PR rtl-optimization/61673
9292         * combine.c (simplify_comparison): Test just mode's sign bit
9293         in tmode rather than the sign bit and any bits above it.
9295 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
9297         * graphite-isl-ast-to-gimple.c (generate_isl_context):
9298         Add __isl_give to the declaration.
9299         (generate_isl_schedule): Likewise.
9300         (scop_to_isl_ast): Likewise.
9302 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9304         * config/arm/arm.c (cortexa5_extra_costs): New table.
9305         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9307 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
9309         PR tree-optimization/61725
9310         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9311         range, use range_includes_zerop_p instead of integer_zerop on
9312         vr0->min, only use log2 of max if min is not negative.
9314 2014-07-08  Richard Biener  <rguenther@suse.de>
9316         * tree-ssa-dom.h (loop_depth_of_name): Remove.
9317         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9318         restriction on loop depth difference.
9319         (record_equality): Likewise.
9320         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
9321         (loop_depth_of_name): Remove.
9322         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9323         restriction on loop depth difference.
9324         (init_copy_prop): Likewise.
9326 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
9328         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9329         parameter.
9330         (walk_aliased_vdefs): Likewise.
9331         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9332         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9333         (detect_type_change_from_memory_writes): Check if entry was reached.
9335 2014-07-08  Richard Biener  <rguenther@suse.de>
9337         PR tree-optimization/61681
9338         * tree-ssa-structalias.c (find_what_var_points_to): Expand
9339         NONLOCAL inside ESCAPED.
9341 2014-07-08  Richard Biener  <rguenther@suse.de>
9343         PR tree-optimization/61680
9344         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9345         Handle properly all read-write dependences with group accesses.
9347 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
9349         PR tree-optimization/61576
9350         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9351         block containing reduction statement is predecessor of phi basi block.
9353 2014-07-08  Marek Polacek  <polacek@redhat.com>
9355         PR c/60226
9356         * fold-const.c (round_up_loc): Change the parameter type.
9357         Remove assert.
9358         * fold-const.h (round_up_loc): Adjust declaration.
9359         * stor-layout.c (finalize_record_size): Check for too large types.
9361 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
9363         * symtab.c: Include calls.h.
9364         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9366 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
9368         * config/rs6000/rs6000.c (output_vec_const_move): Handle
9369         little-endian code generation.
9370         * config/rs6000/spe.md (spe_evmergehi): Rename to...
9371         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
9372         (spe_evmergehilo): Rename to...
9373         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
9374         (spe_evmergelo): Rename to...
9375         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
9376         (spe_evmergelohi): Rename to...
9377         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
9378         (spe_evmergehi, spe_evmergehilo): New expanders.
9379         (spe_evmergelo, spe_evmergelohi): Likewise.
9380         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9381         (*frob_tf_ti): Likewise.
9382         (*frob_<mode>_di_2): Likewise.
9383         (*frob_tf_di_8_2): Likewise.
9384         (*frob_di_<mode>): Likewise.
9385         (*frob_ti_tf): Likewise.
9386         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9387         (*frob_ti_<mode>_8_2): Likewise.
9388         (*frob_ti_tf_2): Likewise.
9389         (mov_si<mode>_e500_subreg0): Rename to...
9390         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
9391         endianness only.
9392         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9393         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9394         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
9395         the big endianness only.
9396         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9397         (*mov_si<mode>_e500_subreg0_2): Rename to...
9398         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
9399         big big endianness only.
9400         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9401         (*mov_si<mode>_e500_subreg4): Rename to...
9402         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
9403         endianness only.
9404         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9405         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9406         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
9407         the big endianness only.
9408         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9409         pattern.
9410         (*mov_si<mode>_e500_subreg4_2): Rename to...
9411         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
9412         endianness only.
9413         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9414         (*mov_sitf_e500_subreg8): Rename to...
9415         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
9416         endianness only.
9417         (*mov_sitf_e500_subreg8_le): New instruction pattern.
9418         (*mov_sitf_e500_subreg8_2): Rename to...
9419         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
9420         endianness only.
9421         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9422         (*mov_sitf_e500_subreg12): Rename to...
9423         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
9424         endianness only.
9425         (*mov_sitf_e500_subreg12_le): New instruction pattern.
9426         (*mov_sitf_e500_subreg12_2): Rename to...
9427         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
9428         endianness only.
9429         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9431 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
9433         * asan.c (instrument_strlen_call): Do not instrument first byte
9434         in strlen if already instrumented.
9436 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9438         * config/arm/arm.opt (mwords-little-endian): Delete.
9439         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9440         of TARGET_LITTLE_WORDS.
9441         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9442         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9443         warning.
9444         * doc/invoke.texi: Remove references to -mwords-little-endian.
9446 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
9448         * expmed.c (struct init_expmed_rtl): Change all fields but
9449         pow2 and cint from struct rtx_def to rtx.
9450         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9451         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
9452         at the end again.
9454 2014-07-06  Marek Polacek  <polacek@redhat.com>
9456         PR c/6940
9457         * doc/invoke.texi: Document -Wsizeof-array-argument.
9459 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
9461         * wide-int.h (wide_int_storage): Change declaration from struct
9462         to class.
9464 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
9466         * cgraph.c (cgraph_create_indirect_edge): Update call of
9467         get_polymorphic_call_info.
9468         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9469         (possible_polymorphic_call_targets): Add parameter call.
9470         (decl_maybe_in_construction_p): New predicate.
9471         (get_polymorphic_call_info): Add parameter call;
9472         use decl_maybe_in_construction_p.
9473         * gimple-fold.c (fold_gimple_assign): Update use of
9474         possible_polymorphic_call_targets.
9475         (gimple_fold_call): Likewise.
9476         * ipa-prop.c: Inlcude calls.h
9477         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9478         (param_type_may_change_p): New predicate.
9479         (detect_type_change_from_memory_writes): Break out from ...
9480         (detect_type_change): ... this one; use param_type_may_change_p.
9481         (detect_type_change_ssa): Use param_type_may_change_p.
9482         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9484 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
9486         PR target/49423
9487         * config/arm/arm-protos.h (arm_legitimate_address_p,
9488         arm_is_constant_pool_ref): Add prototypes.
9489         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9490         (arm_is_constant_pool_ref) New function.
9491         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9492         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9493         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9494         operand. Remove pool_range and neg_pool_range attributes.
9495         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9496         pool_range and neg_pool_range attributes.
9497         * config/arm/constraints.md (Uh): New constraint.
9498         (Uq): Don't allow constant pool references.
9500 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
9502         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9503         (move_lo_quad_internal_be_<mode>): Likewise.
9504         (move_lo_quad_<mode>): Convert to define_expand.
9505         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9506         (aarch64_simd_move_hi_quad_be_<mode>): New.
9507         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9508         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9509         (aarch64_combinez_be<mode>): New.
9510         (aarch64_combine<mode>): Convert to define_expand.
9511         (aarch64_combine_internal<mode>): New.
9512         (aarch64_simd_combine<mode>): Remove bogus RTL description.
9514 2014-07-04  Tom de Vries  <tom@codesourcery.com>
9516         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9517         combination of earlyclobber and read/write modifiers.
9519 2014-07-04  Tom de Vries  <tom@codesourcery.com>
9521         * config/aarch64/aarch64-simd.md
9522         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9524 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
9526         PR target/61714
9527         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9529 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
9531         PR middle-end/61654
9532         * cgraphunit.c (expand_thunk): Call free_dominance_info.
9534         PR tree-optimization/61684
9535         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9536         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
9538 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
9539             Kito Cheng  <kito@0xlab.org>
9540             Monk Chiang  <sh.chiang04@gmail.com>
9542         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
9543         (nds32_symbol_load_store_p): Move to ...
9544         (nds32_fp_as_gp_check_available): Move to ...
9545         * config/nds32/nds32-fp-as-gp.c: ... here.
9546         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9547         extern declaration.
9549 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
9550             Kito Cheng  <kito@0xlab.org>
9551             Monk Chiang  <sh.chiang04@gmail.com>
9553         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
9554         (nds32_expand_store_multiple): Move to ...
9555         (nds32_expand_movmemqi): Move to ...
9556         * config/nds32/nds32-memory-manipulation.c: ... here.
9558 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
9559             Kito Cheng  <kito@0xlab.org>
9560             Monk Chiang  <sh.chiang04@gmail.com>
9562         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
9563         (nds32_output_casesi_pc_relative): Move to ...
9564         (nds32_output_casesi): Move to ...
9565         (nds32_mem_format): Move to ...
9566         (nds32_output_16bit_store): Move to ...
9567         (nds32_output_16bit_load): Move to ...
9568         (nds32_output_32bit_store): Move to ...
9569         (nds32_output_32bit_load): Move to ...
9570         (nds32_output_32bit_load_s): Move to ...
9571         (nds32_output_stack_push): Move to ...
9572         (nds32_output_stack_pop): Move to ...
9573         * config/nds32/nds32-md-auxiliary.c: ... here.
9575 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
9576             Ling-Hua Tseng  <uranus@tinlans.org>
9578         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
9579         the purpose of this file.
9581 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
9582             Kito Cheng  <kito@0xlab.org>
9583             Monk Chiang  <sh.chiang04@gmail.com>
9585         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
9586         (nds32_address_cost): Move implementation to ...
9587         * config/nds32/nds32-cost.c: ... here.
9588         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
9589         (nds32_address_cost_impl): Declare.
9591 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
9592             Kito Cheng  <kito@0xlab.org>
9593             Monk Chiang  <sh.chiang04@gmail.com>
9595         * config/nds32/nds32.c
9596         (nds32_consecutive_registers_load_store_p): Move to ...
9597         (nds32_valid_multiple_load_store): Move to ...
9598         (nds32_valid_stack_push_pop): Move to ...
9599         (nds32_can_use_bclr_p): Move to ...
9600         (nds32_can_use_bset_p): Move to ...
9601         (nds32_can_use_btgl_p): Move to ...
9602         (nds32_can_use_bitci_p): Move to ...
9603         * config/nds32/nds32-predicates.c: ... here.
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
9610         (nds32_expand_builtin_null_ftype_reg): Move to ...
9611         (nds32_expand_builtin_reg_ftype_imm): Move to ...
9612         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
9613         (nds32_init_builtins): Move implementation to ...
9614         (nds32_expand_builtin): Move implementation to ...
9615         * config/nds32/nds32-intrinsic.c: ... here.
9616         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
9617         (nds32_expand_builtin_impl): Declare.
9619 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
9620             Kito Cheng  <kito@0xlab.org>
9621             Monk Chiang  <sh.chiang04@gmail.com>
9623         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
9624         (nds32_emit_section_tail_template): Move to ...
9625         (nds32_emit_isr_jmptbl_section): Move to ...
9626         (nds32_emit_isr_vector_section): Move to ...
9627         (nds32_emit_isr_reset_conten): Move to ...
9628         (nds32_check_isr_attrs_conflict): Move to ...
9629         (nds32_construct_isr_vectors_information): Move to ...
9630         (nds32_asm_file_start): Move implementation to ...
9631         (nds32_asm_file_end): Move implementation to ...
9632         * config/nds32/nds32-isr.c: ... here.
9633         * config/nds32/nds32-protos.h
9634         (nds32_check_isr_attrs_conflict): Declare.
9635         (nds32_construct_isr_vectors_information): Declare.
9636         (nds32_asm_file_start_for_isr): Declare.
9637         (nds32_asm_file_end_for_isr): Declare.
9639 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
9640             Kito Cheng  <kito@0xlab.org>
9641             Monk Chiang  <sh.chiang04@gmail.com>
9643         * config.gcc (nds32*): Add new modules to extra_objs.
9644         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
9645         (nds32be-*-*): Likewise.
9646         * config/nds32/nds32-cost.c: New file.
9647         * config/nds32/nds32-fp-as-gp.c: New file.
9648         * config/nds32/nds32-intrinsic.c: New file.
9649         * config/nds32/nds32-isr.c: New file.
9650         * config/nds32/nds32-md-auxiliary.c: New file.
9651         * config/nds32/nds32-memory-manipulation.c: New file.
9652         * config/nds32/nds32-pipelines-auxiliary.c: New file.
9653         * config/nds32/nds32-predicates.c: New file.
9654         * config/nds32/t-nds32: New file.
9656 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
9658         PR tree-optimization/61682
9659         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
9660         using cases and when one of the operands is equal to 1.
9662 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
9664         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
9665         ashr<mode>3): Correct mode of operands[2].
9666         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
9667         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
9668         Correct mode of operands[2].  Fix split condition.
9670 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
9672         * arm.md (arch): Add armv6_or_vfpv3.
9673         (arch_enabled): Add test for the above.
9674         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
9675         on VFP9.
9676         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
9678 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
9680         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
9681         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
9682         HWI 1 and negate the unsigned value.
9683         * expmed.c (expand_sdiv_pow2): For modes wider than word always
9684         use AND instead of shift.
9685         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
9687 2014-07-03  Marek Polacek  <polacek@redhat.com>
9689         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
9690         (-fsanitize=float-divide-by-zero): Move to the table with
9691         -fsanitize=undefined suboptions.
9692         (-fsanitize=float-cast-overflow): Likewise.
9694 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
9696         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
9697         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
9698         endianness.
9700 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
9702         * loop-invariant.c (struct invariant): Add a new member: eqno;
9703         (find_identical_invariants): Update eqno;
9704         (create_new_invariant): Init eqno;
9705         (get_inv_cost): Compute comp_cost with eqno;
9707 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
9709         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
9710         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
9711         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
9712         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
9713         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
9715 2014-07-02  Christian Bruel  <christian.bruel@st.com>
9717         PR target/29349
9718         PR target/53513
9719         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
9720         (make_preds_opaque): Delete.
9721         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
9722         (commit_mode_sets): New function.
9723         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
9724         Process all modes at once.
9725         * basic-block.h (pre_edge_lcm_avs): Declare.
9726         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
9727         Call clear_aux_for_edges. Fix comments.
9728         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
9729         (pre_edge_rev_lcm): Idem.
9730         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
9731         parameter.
9732         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
9733         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
9734         Idem.
9735         * config/i386/i386.c (x96_emit_mode_set): Idem.
9736         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
9737         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
9738         (fpscr_toggle) Disallow from delay slot.
9739         * target.def (emit_mode_set): Add prev_mode parameter.
9740         * doc/tm.texi: Regenerate.
9742 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9744         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
9745         variable i.
9747 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
9749         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
9750         vtable_pointer_value_to_vtable): Constify.
9751         (contains_polymorphic_type_p): Declare.
9752         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
9753         vtable_pointer_value_to_vtable): Constify.
9754         (contains_polymorphic_type_p): New predicate.
9755         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
9756         polymorphic types.
9757         (ipa_set_ancestor_jf): Likewise.
9758         (detect_type_change): Return false in easy cases.
9759         (compute_complex_assign_jump_func): Require type to contain
9760         polymorphic type.
9761         (compute_known_type_jump_func): Likewise.
9763 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
9765         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
9766         Remove.
9767         (type_in_anonymous_namespace_p): Constify argument.
9768         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
9769         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
9770         (main_odr_variant): New function.
9771         (hash_type_name): Make static; update assert; do not ICE on
9772         non-records.
9773         (types_same_for_odr): Bring here from tree.c; simplify and remove
9774         old structural comparing code that doesn't work for templates.
9775         (odr_hasher::equal): Update assert.
9776         (add_type_duplicate): Return true when bases should be computed;
9777         replace incomplete loader by complete; do not output duplicated
9778         warnings; do not ICE on non-records; set odr_violated flag.
9779         (get_odr_type): Be ready to replace incomplete type by complete
9780         one; work on ODR variants instead of main variants; reorder item
9781         in array so bases have still smaller indexes.
9782         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
9783         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
9785 2014-07-01  Cary Coutant  <ccoutant@google.com>
9787         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
9788         lookup.
9789         (resolve_addr_in_expr): When replacing the rtx in a location list
9790         entry, get a new address table entry.
9791         (dwarf2out_finish): Call index_location_lists even if there are no
9792         addr_index_table entries yet.
9794 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
9796         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
9797         change for not being obvious.
9799 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
9801         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
9802         unused argument.
9804 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9806         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
9807         (vcagt_f64): Likewise.
9808         (vcale_f64): Likewise.
9809         (vcaled_f64): Likewise.
9810         (vcales_f32): Likewise.
9811         (vcalt_f64): Likewise.
9812         (vcaltd_f64): Likewise.
9813         (vcalts_f32): Likewise.
9815 2014-07-01  Marek Polacek  <polacek@redhat.com>
9817         * doc/invoke.texi: Document -Wint-conversion.
9819 2014-07-01  Marek Polacek  <polacek@redhat.com>
9821         PR c/58286
9822         * doc/invoke.texi: Document -Wincompatible-pointer-types.
9824 2014-07-01  Martin Liska  <mliska@suse.cz>
9826         IPA REF alias refactoring
9827         * cgraph.h (iterate_direct_aliases): New function.
9828         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
9829         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
9830         FOR_EACH_ALIAS added.
9831         (cgraph_for_node_and_aliases): Likewise.
9832         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
9833         * ipa-inline.c (reset_edge_caches): Likewise.
9834         (update_caller_keys): Likewise.
9835         * trans-mem.c (ipa_tm_execute): Likewise.
9836         *varpool.c (varpool_analyze_node): Likewise.
9837         (varpool_for_node_and_aliases): Likewise.
9838         * ipa-ref.h (first_alias): New function.
9839         (last_alias): Likewise.
9840         (has_aliases_p): Likewise.
9841         * ipa-ref.c (ipa_ref::remove_reference): Removal function
9842         is sensitive to IPA_REF_ALIASes.
9843         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
9844         are put at the beginning of the list.
9845         (symtab_node::iterate_direct_aliases): New function.
9847 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
9849         Revert:
9850         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9851         type is complete.
9852         (write_ts_type_common_tree_pointers): Do not stream fields not set
9853         for incomplete types; do not stream duplicated fields for variants;
9854         sanity check that variant and type match.
9855         (write_ts_type_non_common_tree_pointers): Likewise.
9856         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
9857         TYPE_SIZE whether type is complete.
9858         (lto_input_ts_type_common_tree_pointers): Do same changes as in
9859         write_ts_type_common_tree_pointers
9860         (lto_input_ts_type_non_common_tree_pointers): Likewise.
9862 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
9864         * var-tracking.c (add_stores): Return instead of asserting if old
9865         and new values for conditional store are the same.
9867 2014-06-30  Richard Henderson  <rth@redhat.com>
9869         PR rtl-opt/61608
9870         PR target/39284
9871         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
9872         the cfg if there were any changes.
9873         * passes.def: Revert move of peephole2 after reorder_blocks;
9874         move duplicate_computed_gotos before peephole2.
9876 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
9878         * except.c (emit_note_eh_region_end): New helper function.
9879         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
9880         emit EH_REGION_END note.
9881         * jump.c (cleanup_barriers): Do not split a call and its
9882         corresponding CALL_ARG_LOCATION note.
9884 2014-06-30  Jeff Law  <law@redhat.com>
9886         PR tree-optimization/61607
9887         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
9888         deeper into the SSA_NAME_VALUE chain.
9890 2014-06-30  Marek Polacek  <polacek@redhat.com>
9892         * convert.c (convert_to_integer): Don't instrument conversions if the
9893         function has no_sanitize_undefined attribute.
9894         * ubsan.c: Don't run the ubsan pass if the function has
9895         no_sanitize_undefined attribute.
9897 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
9899         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
9900         -fsanitize=undefined suboptions.
9902 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
9904         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
9905         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
9906         against bigendian and adjust indices.
9908 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
9910         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
9912 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9914         PR target/61633
9915         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
9916         Add alternative; make early clobber.  Adjust both split patterns
9917         to use operand 0 as the working register.
9919 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
9921         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
9922         as ira_object_id_map might be NULL, or 1.
9924 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
9926         * loop-invariant.c (get_inv_cost): Handle register class.
9927         (gain_for_invariant): Check the register pressure of the inv
9928         and its overlapped register class, other than all.
9930 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
9932         * doc/invoke.texi (Optimize Options): Fix descriptions of
9933         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
9935 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
9937         * doc/extend.texi (Function Attributes): Update 'naked' attribute
9938         documentation.
9940 2014-06-29  Tobias Grosser <tobias@grosser.es>
9942         PR bootstrap/61650
9943         * graphite-isl-ast-to-gimple.c: Add missing guards.
9945 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
9947         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
9948         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
9949         * flag-types.h: Add new enum fgraphite_generator.
9950         * graphite-isl-ast-to-gimple.c: New.
9951         * graphite-isl-ast-to-gimple.h: New.
9952         * graphite.c (graphite_transform_loops): Add choice of Graphite
9953         code generator, which depends on flag_graphite_code_gen.
9955 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
9957         * graphite-dependences.c (subtract_commutative_associative_deps):
9958         Add NULL checking of the following variables: must_raw_no_source,
9959         may_raw_no_source, must_war_no_source, may_war_no_source,
9960         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
9961         must_war, may_war, must_waw, may_waw.
9963 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
9965         * graphite-clast-to-gimple.c: gloog is renamed to
9966         graphite_regenerate_ast_cloog.  gloog_error is renamed to
9967         graphite_regenerate_error.
9968         * graphite-clast-to-gimple.h: The definition of the struct
9969         bb_pbb_def is moved to graphite-htab.h.
9970         Add inclusion of the hash-table.h.
9971         * graphite-htab.h: The declaration of the function gloog is moved
9972         to graphite-clast-to-gimple.h and renamed to
9973         graphite_regenerate_ast_cloog.
9974         * graphite.c (graphite_transform_loops): gloog is renamed
9975         to graphite_regenerate_ast_cloog.
9977 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
9979         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9980         type is complete.
9981         (write_ts_type_common_tree_pointers): Do not stream fields not set
9982         for incomplete types; do not stream duplicated fields for variants;
9983         sanity check that variant and type match.
9984         (write_ts_type_non_common_tree_pointers): Likewise.
9985         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
9986         TYPE_SIZE whether type is complete.
9987         (lto_input_ts_type_common_tree_pointers): Do same changes as in
9988         write_ts_type_common_tree_pointers
9989         (lto_input_ts_type_non_common_tree_pointers): Likewise.
9991 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
9993         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
9995 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
9997         * tree-inline.c (remap_type_1): Do not duplicate fields
9998         that are shared in between type and its main variant.
10000 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
10002         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10003         of the type.
10004         (ipa_set_ancestor_jf) Likewise.
10005         (check_stmt_for_type_change): Check that we work on main variant.
10006         (detect_type_change): Look into main variant.
10007         (compute_known_type_jump_func): Check that main variant has BINFO.
10009 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
10011         * ipa-devirt.c (set_type_binfo): New function.
10012         (add_type_duplicate): Use it.
10013         (get_odr_type): Sanity check that binfos points to main variants.
10014         (get_class_context): Be sure the context's outer_type is main variant.
10015         (contains_type_p): Walk main variant.
10016         (get_polymorphic_call_info_for_decl): Set outer_type to be
10017         main variant.
10018         (get_polymorphic_call_info): Likewise.
10019         (possible_polymorphic_call_targets): Sanity check that we operate
10020         on main variant.
10022 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
10024         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10026 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10028         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10029         accidental change due to wide-int branch merge.
10031 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10033         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10034         compressed debug support.
10035         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10036         * configure: Regenerate.
10037         * config.in: Regenerate.
10038         * common.opt (compressed_debug_sections): New enum.
10039         (gz, gz=): New options.
10040         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10041         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10042         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10043         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10044         LINK_COMPRESS_DEBUG_SPEC.
10045         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10046         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10047         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10048         (Debugging Options): Document -gz[=type].
10050 2014-06-27  Martin Jambor  <mjambor@suse.cz>
10052         PR ipa/61160
10053         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10054         args_to_skip, use those from node instead.  Copy args_to_skip and
10055         combined_args_to_skip from node to the new thunk.
10056         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10057         (cgraph_create_virtual_clone): Moved computation of
10058         combined_args_to_skip...
10059         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10061 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
10063         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10064         redundant diagnostic machinary.
10066 2014-06-27  Richard Biener  <rguenther@suse.de>
10068         * tree-ssa-math-opts.c (bswap_replace): Fix
10069         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10071 2014-06-27  Martin Liska  <mliska@suse.cz>
10073         * gimple.h (gimple_location_safe): New function introduced.
10074         * cgraphunit.c (walk_polymorphic_call_targets): Usage
10075         of gimple_location_safe replaces gimple_location.
10076         (gimple_fold_call): Likewise.
10077         * ipa-devirt.c (ipa_devirt): Likewise.
10078         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10079         * ipa.c (walk_polymorphic_call_targets): Likewise.
10080         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10082 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
10084         PR tree-optimization/57233
10085         PR tree-optimization/61299
10086         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10087         functions.
10088         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
10089         would be lowered to scalar shifts, check if corresponding
10090         shifts and vector BIT_IOR_EXPR are supported and don't lower
10091         or lower just to narrower vector type in that case.
10092         * expmed.c (expand_shift_1): Fix up handling of vector
10093         shifts and rotates.
10095 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
10097         PR target/61586
10098         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10100 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
10102         * doc/invoke.texi (-fsemantic-interposition): Document.
10103         * common.opt (fsemantic-interposition): New flag.
10104         * varasm.c (decl_replaceable_p): Use it.
10106 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10108         PR target/61542
10109         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10110         extraction other than index 3.
10112 2014-06-26  Teresa Johnson  <tejohnson@google.com>
10114         * doc/invoke.texi: Fix typo.
10115         * dumpfile.c: Add support for documented -fdump-* options
10116         optimized/missed/note/optall.
10118 2014-06-26  Martin Jambor  <mjambor@suse.cz>
10120         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10121         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10122         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10123         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10124         * opts.c (default_options_optimization): Set
10125         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10126         * doc/invoke.texi (allow-load-data-races)
10127         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10128         (allow-store-data-races): Document the new default.
10130 2014-06-26  Martin Jambor  <mjambor@suse.cz>
10132         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10133         renamed to ipa_impossible_devirt_target.  Fix typo.
10134         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10135         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10136         ipa_impossible_devirt_target.
10138 2014-06-26  Richard Biener  <rguenther@suse.de>
10140         PR tree-optimization/61607
10141         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10142         explaining why we restrict copies on loop depth.
10143         * tree-ssa-dom.c (cprop_operand): Remove restriction on
10144         on loop depth.
10145         (record_equivalences_from_phis): Instead add it here.
10147 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
10149         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10150         (LTO_WRAPPER_OBJS): New variable.
10151         (lto-wrapper$(exeext)): Use it.
10152         * collect2.c: Include "collect-utils.h".
10153         (verbose, debug): Remove variables.
10154         (at_file_supplied): No longer static.
10155         (tool_name): New variable.
10156         (do_wait, fork_execute, maybe_unlink): Don't declare.
10157         (tool_cleanup): No longer static.
10158         (notice): Remove function.
10159         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10160         fork_execute calls.
10161         (collect_wait, do_wait, collect_execute): Remove functions.
10162         (maybe_unlink): No longer static.
10163         * collect2.h (verbose, debug): Don't declare.
10164         (at_file_supplied): Declare.
10165         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
10166         changed.
10167         (collect_execute): Replace with implementation from collect2, plus a
10168         new arg use_atfile.  All callers changed.
10169         (collect_wait): Replace with implementation from collect2.
10170         (maybe_unlink_file): Remove function.
10171         (fork_execute): Replace with implementation from collect2, plus a
10172         new arg use_atfile.  All callers changed.
10173         (do_wait): Add call to utils_cleanup to the error path.
10174         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10175         (tool_cleanup): Adjust declarations.
10176         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10177         * tlink.c: Include "collect-utils.h".
10178         (tlink_execute): New arg use_atfile.  All callers changed.
10179         (tlink_init, tlink_execute): Remove declarations.
10181         * collect-utils.c (save_temps): New variable.
10182         (do_wait): Use it instead of debug.  Use fatal_error.
10183         * collect-utils.h (save_temps): Declare.
10184         * collect2.c (verbose): Rename from vflag.  All uses changed.
10185         (tool_cleanup): New function, copied from collect_atexit.
10186         (collect_atexit, handler): Just call it.
10187         * collect2.h (verbose): Declaration renamed from vflag.
10188         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10189         debug.
10191         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10192         (lto-wrapper$(exeext)): Link with collect-utils.o.
10193         * collect-utils.c: New file.
10194         * collect-utils.h: New file.
10195         * lto-wrapper.c: Include "collect-utils.h".
10196         (args_name): Delete variable.
10197         (tool_name): New variable.
10198         (tool_cleanup): New function.
10199         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
10200         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10201         (fork_execute): Remove functions.
10203 2014-06-26  Nick Clifton  <nickc@redhat.com>
10205         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10207         * doc/extend.texi (Function Attributes): Fix typo in description
10208         of RX vector attribute.
10210 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
10212         * config.gcc (supported_defaults): Error when passing either
10213         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10215 2014-06-26  Richard Biener  <rguenther@suse.de>
10217         * tree-ssa-dom.c (cprop_operand): Remove restriction on
10218         propagating volatile pointers.
10220 2014-06-26  Richard Biener  <rguenther@suse.de>
10222         PR tree-optimization/61607
10223         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10224         loop if we redirected its latch edge.
10225         (thread_block_1): Do not cancel loops prematurely.
10227 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
10229         * toplev.c (backend_init_target): Move init_emit_regs and
10230         init_regs to...
10231         (backend_init) ... here; skip ira_init_once and backend_init_target.
10232         (target_reinit) ... and here; clear
10233         this_target_rtl->lang_dependent_initialized.
10234         (lang_dependent_init_target): Clear
10235         this_target_rtl->lang_dependent_initialized;
10236         break out rtl initialization to ...
10237         (initialize_rtl): ... here; call also backend_init_target
10238         and ira_init_once.
10239         * toplev.h (initialize_rtl): New function.
10240         * function.c: Include toplev.h
10241         (init_function_start): Call initialize_rtl.
10242         * rtl.h (target_rtl): Add target_specific_initialized,
10243         lang_dependent_initialized.
10245 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
10246             Jakub Jelinek  <jakub@redhat.com>
10248         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10250 2014-06-25  Tom de Vries  <tom@codesourcery.com>
10252         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10254 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10256         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10257         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10258         Issue a strict overflow warning if appropriate.
10260 2014-06-25  Martin Liska  <mliska@suse.cz>
10262         IPA REF refactoring
10263         * Makefile.in: Removed header file (ipa-ref-inline.h).
10264         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10265         called.
10266         (cgraph_speculative_call_info): Likewise.
10267         (cgraph_for_node_thunks_and_aliases): Likewise.
10268         (cgraph_for_node_and_aliases): Likewise.
10269         (verify_cgraph_node): Likewise.
10270         * cgraph.h: Batch of IPA REF functions become member functions of
10271         symtab_node: add_reference, maybe_add_reference, clone_references,
10272         clone_referring, clone_reference, find_reference,
10273         remove_stmt_references, remove_all_references,
10274         remove_all_referring, dump_references, dump_referring,
10275         has_alias_p, iterate_reference, iterate_referring.
10276         * cgraphbuild.c (record_reference): New IPA REF function used.
10277         (record_type_list): Likewise.
10278         (record_eh_tables): Likewise.
10279         (mark_address): Likewise.
10280         (mark_load): Likewise.
10281         (mark_store): Likewise.
10282         (pass_build_cgraph_edges): Likewise.
10283         (rebuild_cgraph_edge): Likewise.
10284         (cgraph_rebuild_references): Likewise.
10285         (pass_remove_cgraph_callee_edges): Likewise.
10286         * cgraphclones.c (cgraph_clone_node): Likewise.
10287         (cgraph_create_virtual_clone): Likewise.
10288         (cgraph_materialize_clone): Likewise.
10289         (cgraph_materialize_all_clones): Likewise.
10290         * cgraphunit.c (cgraph_reset_node): Likewise.
10291         (cgraph_reset_node): Likewise.
10292         (analyze_function): Likewise.
10293         (assemble_thunks_and_aliases): Likewise.
10294         (expand_function): Likewise.
10295         * ipa-comdats.c (propagate_comdat_group): Likewise.
10296         (enqueue_references): Likewise.
10297         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10298         (create_specialized_node): Likewise.
10299         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10300         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10301         * ipa-inline.c (reset_edge_caches): Likewise.
10302         (update_caller_keys): Likewise.
10303         (execute): Likewise.
10304         * ipa-prop.c (remove_described_reference): Likewise.
10305         (propagate_controlled_uses): Likewise.
10306         (ipa_edge_duplication_hook): Likewise.
10307         (ipa_modify_call_arguments): Likewise.
10308         * ipa-pure-const.c (propagate_pure_const): Likewise.
10309         * ipa-ref-inline.h: Header file removed, functions moved
10310         to symtab_node class.
10311         * ipa-ref.c (remove_reference): New class member function.
10312         (cannot_lead_to_return): New class member function.
10313         (referring_ref_list): Likewise.
10314         (referred_ref_list): Likewise.
10315         Rest of functions moved to symtab_node class.
10316         * ipa-ref.h: New member functions remove_reference,
10317         cannot_lead_to_return, referring_ref_list, referred_ref_list added
10318         to ipa_ref class.
10319         ipa_ref_list class has new member functions: first_reference,
10320         first_referring, clear, nreferences.
10321         * ipa-reference.c (analyze_function): New IPA REF function used.
10322         (write_node_summary_p): Likewise.
10323         (ipa_reference_write_optimization_summary): Likewise.
10324         * ipa-split.c (split_function): Likewise.
10325         * ipa-utils.c (ipa_reverse_postorder): Likewise.
10326         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10327         (function_and_variable_visibility): Likewise.
10328         * ipa.c (has_addr_references_p): Likewise.
10329         (process_references): Argument type changed.
10330         (symtab_remove_unreachable_nodes): New IPA REF function used.
10331         (process_references): Likewise.
10332         (set_writeonly_bit): Likewise.
10333         * lto-cgraph.c: Implementation of new symtab_node member functions
10334         that uses new IPA REF functions.
10335         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10336         function used.
10337         * lto-streamer-out.c (output_symbol_p): Likewise.
10338         * lto-streamer.h (referenced_from_this_partition_p): Argument type
10339         changed.
10340         * symtab.c: Implementation of new IPA REF API.
10341         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10342         (ipa_tm_create_version): Likewise.
10343         (ipa_tm_execute): Likewise.
10344         * tree-emutls.c (gen_emutls_addr): Likewise.
10345         * tree-inline.c (copy_bb): Likewise.
10346         (delete_unreachable_blocks_update_callgraph): Likewise.
10347         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10348         (varpool_for_node_and_aliases): Likewise.
10350 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
10352         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10354 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
10356         PR bootstrap/61598
10357         * fold-const.c (fold_checksum_tree): Use a hash_table of const
10358         tree_node * instead of tree_node *.
10359         (fold): Adjust.
10360         (print_fold_checksum): Likewise.
10361         (fold_check_failed): Likewise.
10362         (debug_fold_checksum): Likewise.
10363         (fold_build1_stat_loc): Likewise.
10364         (fold_build2_stat_loc): Likewise.
10365         (fold_build3_stat_loc): Likewise.
10366         (fold_build_call_array_loc): Likewise.
10368 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
10370         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10371         implementation with call to...
10372         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10373         function.
10374         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10375         Declare.
10377 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
10379         PR tree-optimization/57742
10380         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10381         after replacing the statement.
10383 2014-06-25  Nick Clifton  <nickc@redhat.com>
10385         * config/v850/v850.c (GHS_default_section_names): Change to const
10386         char * type.
10387         (GHS_current_section_names): Likewise.
10388         (v850_insert_attributes): Do not build strings, just assign the
10389         names directly.  Change the type of 'chosen_section' to const
10390         char*.
10391         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10392         directly to the array entry.
10393         * config/v850/v850.h (GHS_default_section_names): Change to const
10394         char * type.
10395         (GHS_current_section_names): Likewise.
10397 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
10399         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10400         (LANG_HOOKS_DECLS): Add it.
10401         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10402         has correct type.
10403         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10404         * langhooks.h (struct lang_hooks_for_decls): Add
10405         omp_clause_linear_ctor hook.
10406         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10407         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
10408         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
10409         combined simd loop use omp_clause_linear_ctor hook.
10411 2014-06-24  Cong Hou  <congh@google.com>
10413         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10414         pattern recognition.
10415         (type_conversion_p): PROMOTION is true if it's a type promotion
10416         conversion, and false otherwise.  Return true if the given expression
10417         is a type conversion one.
10418         * tree-vectorizer.h: Adjust the number of patterns.
10419         * tree.def: Add SAD_EXPR.
10420         * optabs.def: Add sad_optab.
10421         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10422         * expr.c (expand_expr_real_2): Likewise.
10423         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10424         * gimple.c (get_gimple_rhs_num_ops): Likewise.
10425         * optabs.c (optab_for_tree_code): Likewise.
10426         * tree-cfg.c (estimate_operator_cost): Likewise.
10427         * tree-ssa-operands.c (get_expr_operands): Likewise.
10428         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10429         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10430         * doc/generic.texi: Add document for SAD_EXPR.
10431         * doc/md.texi: Add document for ssad and usad.
10433 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
10435         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10436         qualification in cast.
10438 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
10440         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10441         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10442         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10443         (tree_function_decl): ... here.
10444         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10445         streaming of vindex to ...
10446         (write_ts_function_decl_tree_pointers): ... here.
10447         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10448         Do not stream DECL_VINDEX.
10449         (lto_input_ts_function_decl_tree_pointers): Stream it here.
10451 2014-06-24  Catherine Moore  <clm@codesourcery.com>
10452             Sandra Loosemore  <sandra@codesourcery.com>
10454         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10455         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10456         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10458 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
10460         * doc/invoke.texi (Warning Options): Remove duplicated
10461         -Wmaybe-uninitialized.
10463 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
10465         PR tree-optimization/57742
10466         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10467         (handle_builtin_malloc, handle_builtin_memset): New functions.
10468         (strlen_optimize_stmt): Call them.
10469         * passes.def: Move strlen after loop+dom but before vrp.
10471 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
10473         PR target/61570
10474         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10475         model family 6 CPU with has_longmode never use a CPU without
10476         64-bit support.
10478 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
10480         PR target/61570
10481         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10482         the last change.
10484 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
10486         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10487         * dominance.c (iterate_fix_dominators): Use hash_map instead of
10488         pointer_map.
10489         * hash-map.h: New file.
10490         * ipa-comdats.c: Use hash_map instead of pointer_map.
10491         * ipa.c: Likewise.
10492         * lto-section-out.c: Adjust.
10493         * lto-streamer.h: Replace pointer_map with hash_map.
10494         * symtab.c (verify_symtab): Likewise.
10495         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10496         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10497         * tree-streamer.h: Likewise.
10498         * tree-streamer.c: Adjust.
10499         * pointer-set.h: Remove pointer_map.
10501 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
10503         * hash-table.h: Add a template arg to choose between storing values
10504         and storing pointers to values, and then provide partial
10505         specializations for both.
10506         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10507         should store, not the type values should point to.
10508         * tree-into-ssa.c (var_info_hasher): Likewise.
10509         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10510         * tree-complex.c: Adjust.
10511         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10512         table instead of int_tree_map *.
10513         * tree-parloops.c: Adjust.
10514         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10515         type is being stored.
10516         * tree-vectorizer.c: Adjust.
10518 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
10520         * hash-table.h: Remove a layer of indirection from hash_table so that
10521         it contains the hash table's data instead of a pointer to the data.
10522         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10523         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10524         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10525         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10526         fold-const.c, gcse.c, ggc-common.c,
10527         gimple-ssa-strength-reduction.c, gimplify.c,
10528         graphite-clast-to-gimple.c, graphite-dependences.c,
10529         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10530         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10531         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10532         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10533         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10534         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10535         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10536         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10537         tree-ssa-live.c, tree-ssa-loop-im.c,
10538         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10539         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10540         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10541         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10542         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10543         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10544         vtable-verify.c, vtable-verify.h: Adjust.
10546 2014-06-24  Richard Biener  <rguenther@suse.de>
10548         PR tree-optimization/61572
10549         * tree-ssa-sink.c (statement_sink_location): Do not sink
10550         loads from hard registers.
10552 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
10554         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
10555         not mentioned in clauses use private clause if the iterator is
10556         declared in #pragma omp for simd, and when adding lastprivate
10557         instead, add it to the outer #pragma omp for too.  Diagnose
10558         if the variable is private in outer context.  For simd collapse > 1
10559         loops, replace all iterators with temporaries.
10560         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
10561         same even in collapse > 1 loops.
10563         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
10564         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
10565         non-NULL.
10566         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
10567         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
10568         non-NULL.
10569         (gimplify_adjust_omp_clauses): Likewise.
10570         * omp-low.c (lower_rec_simd_input_clauses,
10571         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
10572         safelen the same as safelen(1).
10573         * tree-nested.c (convert_nonlocal_omp_clauses,
10574         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
10575         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
10576         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
10577         Fixup handling of GIMPLE_OMP_TARGET.
10578         (convert_tramp_reference_stmt, convert_gimple_call): Handle
10579         GIMPLE_OMP_TARGET.
10581 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
10583         PR tree-optimization/61554
10584         * tree-ssa-propagate.c: Include "bitmap.h".
10585         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
10586         properly update constructor/destructor.
10587         (substitute_and_fold_dom_walker::before_dom_children):
10588         Remove call to gimple_purge_dead_eh_edges, add bb->index to
10589         need_eh_cleaup instead.
10590         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
10591         need_eh_cleanup.
10593 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
10595         * varpool.c (dump_varpool_node): Dump used_by_single_function.
10596         * tree-pass.h (make_pass_ipa_single_use): New pass.
10597         * cgraph.h (used_by_single_function): New flag.
10598         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
10599         Stream it.
10600         * passes.def (pass_ipa_single_use): Scedule.
10601         * ipa.c (BOTTOM): New macro.
10602         (meet): New function
10603         (propagate_single_user): New function.
10604         (ipa_single_use): New function.
10605         (pass_data_ipa_single_use): New pass.
10606         (pass_ipa_single_use): New pass.
10607         (pass_ipa_single_use::gate): New gate.
10608         (make_pass_ipa_single_use): New function.
10610 2014-06-23  Kai Tietz  <ktietz@redhat.com>
10612         PR target/39284
10613         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
10614         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
10616 2014-06-23  Richard Biener  <rguenther@suse.de>
10618         * tree-ssa-loop.c (gate_loop): New function.
10619         (pass_tree_loop::gate): Call it.
10620         (pass_data_tree_no_loop, pass_tree_no_loop,
10621         make_pass_tree_no_loop): New.
10622         * tree-vectorizer.c: Include tree-scalar-evolution.c
10623         (pass_slp_vectorize::execute): Initialize loops and SCEV if
10624         required.
10625         (pass_slp_vectorize::clone): New method.
10626         * timevar.def (TV_TREE_NOLOOP): New.
10627         * tree-pass.h (make_pass_tree_no_loop): Declare.
10628         * passes.def (pass_tree_no_loop): New pass group with
10629         SLP vectorizer.
10631 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
10633         PR target/61570
10634         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
10635         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
10637 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
10639         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
10640         "yes" where needed.
10642 2014-06-23  Alan Modra  <amodra@gmail.com>
10644         PR bootstrap/61583
10645         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
10646         to zero on debug statements.
10648 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
10650         PR target/60825
10651         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
10652         Ignore third operand if present by marking qualifier_internal.
10654         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
10656         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
10657         vector extension.
10658         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
10659         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
10660         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
10661         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
10662         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
10663         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
10664         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
10665         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
10666         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
10667         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
10668         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
10669         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
10670         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
10671         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
10672         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
10673         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
10674         logic in GCC vector extensions
10676         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
10677         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
10678         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
10679         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
10680         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
10681         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
10682         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
10683         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
10684         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
10685         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
10687         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
10689         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
10690         extensions.
10692         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
10693         (vget_low_s64): Use __GET_LOW macro.
10694         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
10695         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
10696         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
10697         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
10698         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
10700         (vcombine_s64): Use GCC vector extensions; remove cast.
10701         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
10702         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
10703         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
10704         Fix type signature; remove cast.
10706 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
10708         PR target/60825
10709         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
10710         V1DFmode.
10711         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
10712         add V1DFmode
10713         (BUILTIN_VD1): New.
10714         (BUILTIN_VD_RE): Remove.
10715         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
10716         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
10717         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
10718         variant but not df.
10719         (vreinterpretv1df*, vreinterpret*v1df): New.
10720         (vreinterpretdf*, vreinterpret*df): Remove.
10721         * config/aarch64/aarch64-simd.md (aarch64_create,
10722         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
10723         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
10724         (VD1): New.
10725         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
10726         (vcreate_f64): Remove cast, use v1df builtin.
10727         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
10728         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
10729         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
10730         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
10731         vmov_n_f64, vst1_f64): Use gcc vector extensions.
10732         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
10733         add range check using __builtin_aarch64_im_lane_boundsi.
10734         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
10735         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
10736         type signature, use gcc vector extensions.
10737         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
10738         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
10739         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
10740         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
10741         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
10742         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
10743         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
10744         vreinterpret_u64_f64): Use v1df builtin not df.
10746 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
10748         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
10749         vector registers.
10751 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
10753         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
10754         priority directly.
10756 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
10758         * loop-invariant.c (pre_check_invariant_p): New function.
10759         (find_invariant_insn): Call pre_check_invariant_p.
10761 2014-06-22  Richard Henderson  <rth@redhat.com>
10763         PR target/61565
10764         * compare-elim.c (struct comparison): Add eh_note.
10765         (find_comparison_dom_walker::before_dom_children): Don't eliminate
10766         a redundant comparison in a different EH region.  Purge EH edges if
10767         necessary.
10769 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
10771         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
10772         (var_shift): Use it.
10773         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
10774         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10775         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10776         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10777         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10778         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
10779         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
10780         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
10781         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
10782         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
10783         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
10784         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
10785         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
10786         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
10787         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
10788         *rotldi3_internal15be): Use the new attribute.  Merge register and
10789         integer alternatives.
10791 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
10793         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
10794         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
10795         split, *ashrdi3_internal3 and split): Delete, merge into...
10796         (ashr<mode>3): New expander.
10797         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
10798         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
10800 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
10802         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
10803         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
10804         *rotldi3_internal3 and split): Delete, merge into...
10805         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
10806         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
10807         Use "rotlw" extended mnemonic.
10809 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
10811         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
10812         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
10813         and split, *ashldi3_internal3 and split): Delete, merge into...
10814         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
10815         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
10817 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
10819         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
10820         (lshrsi3, two anonymous define_insns and define_splits,
10821         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
10822         *lshrdi3_internal3 and split): Delete, merge into...
10823         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
10824         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
10826 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
10828         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
10829         Remove "O" alternative.
10831 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
10833         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
10834         (mips_move_from_gpr_cost): Likewise.
10835         (mips_register_move_cost): Update accordingly.
10836         (mips_secondary_reload_class): Remove name of in_p.
10838 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
10840         PR target/61503
10841         * config/i386/i386.md (x86_64_shrd, x86_shrd,
10842         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
10844 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10846         * config/nios2/nios2.c: Include "builtins.h".
10848 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
10850         * cgraph.h (tls_model_names): New variable.
10851         * print-tree.c (print_node): Simplify.
10852         * varpool.c (tls_model_names): New variable.
10853         (dump_varpool_node): Output tls model.
10855 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
10857         * ipa-visibility.c (function_and_variable_visibility): Disable
10858         temporarily local aliases for some targets.
10860 2014-06-20  Marek Polacek  <polacek@redhat.com>
10862         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
10863         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
10864         into SANITIZE_UNDEFINED.
10865         * doc/invoke.texi: Describe -fsanitize=bounds.
10866         * gimplify.c (gimplify_call_expr): Add gimplification of internal
10867         functions created in the FEs.
10868         * internal-fn.c: Move "internal-fn.h" after "tree.h".
10869         (expand_UBSAN_BOUNDS): New function.
10870         * internal-fn.def (UBSAN_BOUNDS): New internal function.
10871         * internal-fn.h: Don't define internal functions here.
10872         * opts.c (common_handle_option): Add -fsanitize=bounds.
10873         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
10874         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
10875         * tree-core.h: Define internal functions here.
10876         (struct tree_base): Add ifn field.
10877         * tree-pretty-print.c: Include "internal-fn.h".
10878         (dump_generic_node): Handle functions without CALL_EXPR_FN.
10879         * tree.c (get_callee_fndecl): Likewise.
10880         (build_call_expr_internal_loc): New function.
10881         * tree.def (CALL_EXPR): Update description.
10882         * tree.h (CALL_EXPR_IFN): Define.
10883         (build_call_expr_internal_loc): Declare.
10884         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
10885         types.
10886         (ubsan_type_descriptor): Change bool parameter to enum
10887         ubsan_print_style.  Adjust the code.  Add handling of
10888         UBSAN_PRINT_ARRAY.
10889         (ubsan_expand_bounds_ifn): New function.
10890         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
10891         (ubsan_build_overflow_builtin): Likewise.
10892         (instrument_bool_enum_load): Likewise.
10893         (ubsan_instrument_float_cast): Likewise.
10894         * ubsan.h (enum ubsan_print_style): New enum.
10895         (ubsan_expand_bounds_ifn): Declare.
10896         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
10898 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
10900         * config/rs6000/rs6000.md: Append `DONE' to preparation
10901         statements of `bswap' pattern splitters.
10903 2014-06-20  Tom de Vries  <tom@codesourcery.com>
10905         * target.def (call_fusage_contains_non_callee_clobbers): Update
10906         definition.
10907         * doc/tm.texi: Regenerate.
10909 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
10910             Max Ostapenko  <m.ostapenko@partner.samsung.com>
10912         PR sanitizer/61547
10913         * asan.c (instrument_strlen_call): Fixed instrumentation of
10914         trailing byte.
10916 2014-06-20  Martin Jambor  <mjambor@suse.cz>
10918         PR ipa/61540
10919         * ipa-prop.c (impossible_devirt_target): New function.
10920         (try_make_edge_direct_virtual_call): Use it, also instead of
10921         asserting.
10923 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
10924             Max Ostapenko  <m.ostapenko@partner.samsung.com>
10926         PR sanitizer/61530
10927         * asan.c (build_check_stmt): Add condition.
10929 2014-06-20  Martin Jambor  <mjambor@suse.cz>
10931         PR ipa/61211
10932         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
10933         expanded clones.
10935 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10937         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
10938         Update comments.
10939         (VCONQ): Make comment more helpful.
10940         (VCON): Delete.
10941         * config/aarch64/aarch64-simd.md
10942         (aarch64_sqdmulh_lane<mode>):
10943         Use VCOND for operands 2.  Update lane checking and flipping logic.
10944         (aarch64_sqrdmulh_lane<mode>): Likewise.
10945         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
10946         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
10947         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
10948         attribute of operand 3 to VCOND.
10949         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
10950         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10951         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
10952         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
10953         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10954         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
10955         define_insn.
10956         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
10957         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
10958         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
10959         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
10960         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
10961         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
10962         operand to VCOND.  Update lane flipping and bounds checking logic.
10963         (aarch64_sqdmlal2_lane<mode>): Likewise.
10964         (aarch64_sqdmlsl_lane<mode>): Likewise.
10965         (aarch64_sqdmull_lane<mode>): Likewise.
10966         (aarch64_sqdmull2_lane<mode>): Likewise.
10967         (aarch64_sqdmlal_laneq<mode>):
10968         Replace VCON usage with VCONQ.
10969         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
10970         (aarch64_sqdmlal2_laneq<mode>): Emit
10971         aarch64_sqdmlal2_laneq<mode>_internal insn.
10972         Replace VCON with VCONQ.
10973         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
10974         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
10975         (aarch64_sqdmull_laneq<mode>): Emit
10976         aarch64_sqdmull_laneq<mode>_internal insn.
10977         Replace VCON with VCONQ.
10978         (aarch64_sqdmull2_laneq<mode>): Emit
10979         aarch64_sqdmull2_laneq<mode>_internal insn.
10980         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
10981         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
10982         of 3rd argument to int16x4_t.
10983         (vqdmlalh_lane_s16): Likewise.
10984         (vqdmlslh_lane_s16): Likewise.
10985         (vqdmull_high_lane_s16): Likewise.
10986         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
10987         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
10988         (vqdmlsl_lane_s16): Likewise.
10989         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
10990         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
10991         (vqdmlals_lane_s32): Likewise.
10992         (vqdmlsls_lane_s32): Likewise.
10993         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
10994         (vqdmulls_lane_s32): Likewise.
10995         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
10996         (vqdmlsl_lane_s32): Likewise.
10997         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
10998         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
10999         (vqrdmulhh_lane_s16): Likewise.
11000         (vqdmlsl_high_lane_s16): Likewise.
11001         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11002         (vqdmlsl_high_lane_s32): Likewise.
11003         (vqrdmulhs_lane_s32): Likewise.
11005 2014-06-20  Tom de Vries  <tom@codesourcery.com>
11007         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11008         get_call_reg_set_usage.
11010 2014-06-20  Tom de Vries  <tom@codesourcery.com>
11012         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11013         it contains all call_used_regs.
11015 2014-06-20  Tom de Vries  <tom@codesourcery.com>
11017         * final.c (collect_fn_hard_reg_usage): Add and use variable
11018         function_used_regs.
11020 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
11022         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11023         (set_init_priority, get_init_priority, set_fini_priority,
11024         get_fini_priority): New methods.
11025         * tree.c (init_priority_for_decl): Remove.
11026         (init_ttree): Do not initialize init priority.
11027         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11028         (decl_priority_info): Remove.
11029         (decl_init_priority_insert): Rewrite.
11030         (decl_fini_priority_insert): Rewrite.
11031         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11032         tree_priority_map_marked_p): Remove.
11033         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11034         * lto-streamer-out.c (hash_tree): Do not hash priorities.
11035         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11036         not output priorities.
11037         (pack_ts_function_decl_value_fields): Likewise.
11038         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11039         not input priorities.
11040         (unpack_ts_function_decl_value_fields): Likewise.
11041         * symtab.c (symbol_priority_map): Declare.
11042         (init_priority_hash): Declare.
11043         (symtab_unregister_node): Unregister from priority hash, too.
11044         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11045         New methods.
11046         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11047         (symbol_priority_info): New function.
11048         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11049         New methods.
11050         * tree-core.h (tree_priority_map): Remove.
11052 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
11054         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11055         0xff to uint64_t before shifting it up.
11057 2014-06-20  Julian Brown  <julian@codesourcery.com>
11058             Chung-Lin Tang  <cltang@codesourcery.com>
11060         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11061         TARGET_THUMB1_ONLY. Add comments.
11063 2014-06-19  Tom de Vries  <tom@codesourcery.com>
11065         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11066         return type to void.
11067         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11069 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
11071         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11072         as "move", from depends_on.
11074 2014-06-19  Terry Guo  <terry.guo@arm.com>
11076         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11077         stage.
11079 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
11081         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11082         Remove cr5.
11083         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
11085 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
11087         PR target/61550
11088         * config/sh/sh.c (prepare_move_operands): Don't process TLS
11089         addresses here if reload in progress or completed.
11091 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
11093         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11094         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11095         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11096         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11097         (mips_register_priority): New function that implements the target
11098         hook TARGET_REGISTER_PRIORITY.
11099         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11100         (mips_lra_p): Likewise for TARGET_LRA_P.
11101         (TARGET_REGISTER_PRIORITY): Define macro.
11102         (TARGET_SPILL_CLASS): Likewise.
11103         (TARGET_LRA_P): Likewise.
11104         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11105         classes.
11106         (REG_CLASS_NAMES): Likewise.
11107         (REG_CLASS_CONTENTS): Likewise.
11108         (BASE_REG_CLASS): Use M16_SP_REGS.
11109         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11110         New set attribute to enable alternatives depending on the register
11111         allocator used.
11112         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11113         (*lea64): Disable pattern for MIPS16.
11114         * config/mips/mips.opt (mlra): New option.
11116 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
11118         * lra-constraints.c (base_to_reg): New function.
11119         (process_address): Use new function.
11121 2014-06-18  Tom de Vries  <tom@codesourcery.com>
11123         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11124         * config/aarch64/aarch64.c
11125         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11126         (aarch64_emit_call_insn): New function.
11127         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11128         of emit_call_insn.
11129         * config/aarch64/aarch64.md (define_expand "call_internal")
11130         (define_expand "call_value_internal", define_expand "sibcall_internal")
11131         (define_expand "sibcall_value_internal"): New.
11132         (define_expand "call", define_expand "call_value")
11133         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11134         expand variant and aarch64_emit_call_insn.
11136 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
11137             Tom de Vries  <tom@codesourcery.com>
11139         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11140         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11141         Redefine to true.
11142         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
11143         clobbers to CALL_INSN_FUNCTION_USAGE.
11144         (define_expand "sibcall_internal")
11145         (define_expand "sibcall_value_internal"): New.
11146         (define_expand "call", define_expand "call_value"): Add argument to
11147         arm_emit_call_insn.
11148         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11149         (define_expand "sibcall_value"): Use sibcall_value_internal and
11150         arm_emit_call_insn.
11152 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
11154         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11156 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
11158         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11159         __udivmoddi4.
11161 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
11163         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11164         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11165         annotations. Fix DWARF information.
11167 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
11169         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11170         __udivmoddi4, and fixups for negative operands.
11172 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
11174         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11176 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
11178         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11179         to __udivmoddi4.
11181 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
11183         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11184         manipulation.
11186 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
11188         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11189         describing register usage on function entry and exit.
11191 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
11193         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11194         (__aeabi_ldivmod): Fix whitespace.
11196 2014-06-18  Andreas Schwab  <schwab@suse.de>
11198         * doc/md.texi (Standard Names): Use @itemx for grouped items.
11199         Remove blank line after @item.
11201 2014-06-18  Richard Henderson  <rth@redhat.com>
11203         PR target/61545
11204         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11206 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
11208         * config/arm/arm.c (neon_vector_mem_operand): Allow register
11209         POST_MODIFY for neon loads and stores.
11210         (arm_print_operand): Output post-index register for neon loads and
11211         stores.
11213 2014-06-18  Richard Biener  <rguenther@suse.de>
11215         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11217 2014-06-18  Richard Biener  <rguenther@suse.de>
11219         * tree-pass.h (make_pass_dce_loop): Remove.
11220         * passes.def: Replace pass_dce_loop with pass_dce.
11221         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11222         changed free niter estimates and reset the scev cache.
11223         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11224         make_pass_dce_loop): Remove.
11225         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11226         (fini_copy_prop): Return whether something changed.  Always
11227         let substitute_and_fold perform DCE and free niter estimates
11228         and reset the scev cache if so.
11229         (execute_copy_prop): If sth changed schedule cleanup-cfg.
11230         (pass_data_copy_prop): Do not unconditionally schedule
11231         cleanup-cfg or update-ssa.
11233 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
11235         PR tree-optimization/61518
11236         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11237         reduction var is used in reduction stmt or phi-function only.
11239 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11241         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11243 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11245         PR tree-optimization/61517
11246         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11247         whose rhs's first tree is the source expression instead of the
11248         expression itself.
11249         (find_bswap_or_nop): Likewise.
11250         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11251         gimple stmt whose rhs's first tree is the source. In the memory source
11252         case, move the stmt to be replaced close to one of the original load to
11253         avoid the problem of a store between the load and the stmt's original
11254         location.
11255         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11256         signature.
11258 2014-06-18  Andreas Schwab  <schwab@suse.de>
11260         PR rtl-optimization/54555
11261         * postreload.c (move2add_use_add2_insn): Substitute
11262         STRICT_LOW_PART only if it is cheaper.
11264 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
11266         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11267         Do not use unspec as call operand.  Use memory_operand instead of
11268         memory_nox32_operand and add "m" operand constraint.  Disable
11269         pattern for TARGET_X32.
11270         (*sibcall_pop_memory): Ditto.
11271         (*sibcall_value_memory): Ditto.
11272         (*sibcall_value_pop_memory): Ditto.
11273         (sibcall peepholes): Merge SImode and DImode patterns using
11274         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
11275         Disable pattern for TARGET_X32.  Check if eliminated register is
11276         really dead after call insn.  Generate call RTX without unspec operand.
11277         (sibcall_value peepholes): Ditto.
11278         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
11279         instead of memory_nox32_operand.  Check if eliminated register is
11280         really dead after call insn. Generate call RTX without unspec operand.
11281         (sibcall_value_pop peepholes): Ditto.
11282         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11284 2014-06-18  Terry Guo  <terry.guo@arm.com>
11286         PR target/61544
11287         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11288         reach the head.
11290 2014-06-18  Olivier Hainque  <hainque@adacore.com>
11292         * tree-core.h (tree_block): Add an "end_locus" field, allowing
11293         memorization of the end of block source location.
11294         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11295         * gimplify.c (gimplify_bind_expr): Propagate the block start and
11296         end source location info we have on the block entry/exit code we
11297         generate.
11299 2014-06-18  Richard Biener  <rguenther@suse.de>
11301         * common.opt (fssa-phiopt): New option.
11302         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11303         but not with -Og.
11304         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11305         * doc/invoke.texi (-fssa-phiopt): Document.
11307 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11309         * genattrtab.c (n_bypassed): New variable.
11310         (process_bypasses): Initialise n_bypassed.
11311         Count number of bypassed reservations.
11312         (make_automaton_attrs): Allocate space for bypassed reservations
11313         rather than number of bypasses.
11315 2014-06-18  Richard Biener  <rguenther@suse.de>
11317         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11318         we propagated anything.
11319         (substitute_and_fold_dom_walker::before_dom_children): Something
11320         changed if we propagated into PHI arguments.
11321         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11322         we removed a stmt.
11324 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
11326         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11327         vector case.
11328         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11329         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11330         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11331         Introduces alternative way of loads group permutaions.
11332         (vect_transform_grouped_load): Try alternative way of permutations.
11334 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
11336         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11337         changed in ORT_TARGET region, don't jump to do_outer.
11338         (struct gimplify_adjust_omp_clauses_data): New type.
11339         (gimplify_adjust_omp_clauses_1): Adjust for data being
11340         a struct gimplify_adjust_omp_clauses_data pointer instead
11341         of tree *.  Pass pre_p as a new argument to
11342         lang_hooks.decls.omp_finish_clause hook.
11343         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11344         splay_tree_foreach to pass both list_p and pre_p.
11345         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11346         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11347         gimplify_adjust_omp_clauses callers.
11348         * langhooks.c (lhd_omp_finish_clause): New function.
11349         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11350         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11351         * langhooks.h (struct lang_hooks_for_decls): Add a new
11352         gimple_seq * argument to omp_finish_clause hook.
11353         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11354         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11355         (scan_omp_parallel, lower_omp_for): When adding
11356         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11357         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11358         * tree-nested.c (convert_nonlocal_omp_clauses,
11359         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11360         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11362 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
11364         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11365         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11367 2014-06-17  Xinliang David Li  <davidxl@google.com>
11369         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11370         * passes.c (pass_init_dump_file): Do not set initialize
11371         flag to false unconditionally.
11373 2014-06-17  Richard Biener  <rguenther@suse.de>
11375         * genopinit.c (main): Use vec<>::qsort method.
11376         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11377         Likewise.
11378         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11380 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
11382         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11383         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11384         (mips_move_to_gpr_cost): Remove ST_REGS case.
11385         (mips_move_from_gpr_cost): Likewise.
11386         (mips_register_move_cost): Likewise.
11387         (mips_secondary_reload_class): Likewise.
11389 2014-06-17  Richard Biener  <rguenther@suse.de>
11391         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11392         (pass_all_optimizations): Move 3rd copy-prop pass from after
11393         fre to before ifcombine/phiopt.
11395 2014-06-17  Richard Biener  <rguenther@suse.de>
11397         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11398         and allow all blocks to be forwarders.
11400 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
11402         PR target/61483
11403         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11404         variable 'size'; calculate 'size' right in the front; use
11405         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11406         pcum->aapcs_stack_words.
11408 2014-06-17  Nick Clifton  <nickc@redhat.com>
11410         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11411         (umulhi3, mulsidi3, umulsidi3): Likewise.
11413 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
11415         PR middle-end/61508
11416         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11417         check for section name.
11419 2014-06-17  Richard Biener  <rguenther@suse.de>
11421         * tree-ssa-propagate.c: Include domwalk.h.
11422         (substitute_and_fold): Outline main worker into a domwalker ...
11423         (substitute_and_fold_dom_walker::before_dom_children): ... here.
11424         Schedule stmts we can fully propagate for removal.  Remove
11425         poor-mans DCE.
11426         (substitute_and_fold): Apply a dominator walk to perform
11427         substitution.  Process stmts scheduled for removal here.
11429 2014-06-17  Richard Biener  <rguenther@suse.de>
11431         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11432         of PHI node moving.
11434 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
11436         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11437         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11438         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11439         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11440         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11441         TARGET_HARD_FLOAT.
11442         (get_fpscr) : Likewise.
11444 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
11446         PR rtl-optimization/61325
11447         * lra-constraints.c (valid_address_p): Add forward declaration.
11448         (simplify_operand_subreg): Check address validity before and after
11449         alter_reg of memory subreg.
11451 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
11453         * config/i386/i386.c (decide_alg): Correctly handle
11454         maximum size of stringop algorithm.
11456 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
11458         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11460 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
11462         PR rtl-optimization/61522
11463         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11465 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
11467         Revert:
11468         * symtab.c (symtab_node::reset_section): New method.
11469         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11470         for localization.
11471         * cgraph.h (reset_section): Declare.
11472         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11473         do not consider comdat locals.
11474         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11475         for new symbol.
11476         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11477         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11478         reset sections of symbols dragged out of the comdats.
11479         (function_and_variable_visibility): Reset sections of
11480         localized symbols.
11482 2014-06-16  Richard Biener  <rguenther@suse.de>
11484         PR tree-optimization/61482
11485         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11486         [-INF(OVF), +INF(OVF)] range.
11488 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11490         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11491         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11492         handling 32-bit multiplication.
11494 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
11496         PR middle-end/61430
11497         * lra-lives.c (process_bb_lives): Skip creating copy during
11498         insn scan when src/dest has constrained to same regno.
11500 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
11502         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11503         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11505 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
11507         * asan.c (check_func): New function.
11508         (maybe_create_ssa_name): Likewise.
11509         (build_check_stmt_with_calls): Likewise.
11510         (use_calls_p): Likewise.
11511         (report_error_func): Change interface.
11512         (build_check_stmt): Allow non-integer lengths; add support
11513         for new parameter.
11514         (asan_instrument): Likewise.
11515         (instrument_mem_region_access): Moved code to build_check_stmt.
11516         (instrument_derefs): Likewise.
11517         (instrument_strlen_call): Likewise.
11518         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11519         * doc/invoke.texi: Describe new parameter.
11520         * params.def: Define new parameter.
11521         * params.h: Likewise.
11522         * sanitizer.def: Describe new builtins.
11524 2014-06-16  Richard Biener  <rguenther@suse.de>
11526         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11527         Make all defs available at the end.
11528         (eliminate): If we remove a PHI node schedule cfg-cleanup.
11530 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
11532         PR plugins/45078
11533         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11535 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
11537         PR bootstrap/61516
11538         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11539         initialization.  Replace remaining use of uid.
11541 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
11543         * c-family/c-common.c (handle_tls_model_attribute): Use
11544         set_decl_tls_model.
11545         * c-family/c-common.c (handle_tls_model_attribute): Use
11546         set_decl_tls_model.
11547         * cgraph.h (struct varpool_node): Add tls_model.
11548         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11549         * tree.h (DECL_TLS_MODEL): Update.
11550         (DECL_THREAD_LOCAL_P): Check that variable is static.
11551         (decl_tls_model): Declare.
11552         (set_decl_tls_model): Declare.
11553         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
11554         set symbol prorperties.
11555         (get_emutls_init_templ_addr): Cleanup.
11556         (new_emutls_decl): Update.
11557         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
11558         (lto_input_varpool_node): Likewise.
11559         * lto-streamer-out.c (hash_tree): Likewise.
11560         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11561         not stream DECL_TLS_MODEL.
11562         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
11563         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
11565 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
11567         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
11569 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
11571         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
11572         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
11573         lists.
11574         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
11575         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
11576         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
11577         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
11578         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
11579         (df_get_artificial_defs, df_get_artificial_uses)
11580         (df_single_def, df_single_use): Update accordingly.
11581         (df_refs_chain_dump): Take the first element in a linked list as
11582         parameter, rather than a pointer to an array of pointers.
11583         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
11584         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
11585         (df_chain_create_bb_process_use): Likewise.
11586         (df_md_bb_local_compute_process_def): Likewise.
11587         * fwprop.c (process_defs, process_uses): Likewise.
11588         (register_active_defs, update_uses): Likewise.
11589         (forward_propagate_asm): Update for new df_ref linking.
11590         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
11591         (df_null_ref_rec, df_null_mw_rec): Likewise.
11592         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
11593         explicitly.
11594         (df_scan_free_bb_info): Remove check for null artificial_defs.
11595         (df_install_ref_incremental): Adjust for new df_ref linking.
11596         Use a single-element insertion rather than a full sort.
11597         (df_ref_chain_delete_du_chain): Take the first element
11598         in a linked list as parameter, rather than a pointer to an array of
11599         pointers.
11600         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
11601         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
11602         (df_insn_info_delete): Remove check for null defs and call to
11603         df_scan_free_mws_vec.
11604         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
11605         null rather than df_null_*_rec.
11606         (df_insn_rescan_debug_internal): Likewise, and update null
11607         checks in the same way.  Remove check for null defs.
11608         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
11609         Move a single element rather doing a full sort.
11610         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
11611         linking.
11612         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
11613         Initialize df_ref and df_mw_hardreg lists to null rather than
11614         df_null_*_rec.
11615         (df_ref_compare): Take df_refs as parameter, transferring the
11616         old interface to...
11617         (df_ref_ptr_compare): ...this new function.
11618         (df_sort_and_compress_refs): Update accordingly.
11619         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
11620         old interface to...
11621         (df_mw_ptr_compare): ...this new function.
11622         (df_sort_and_compress_mws): Update accordingly.
11623         (df_install_refs, df_install_mws): Return a linked list rather than
11624         an array of pointers.
11625         (df_refs_add_to_chains): Assert that old lists are empty rather
11626         than freeing them.
11627         (df_insn_refs_verify): Don't handle null defs speciailly.
11628         * web.c (union_match_dups): Update for new df_ref linking.
11630 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
11632         * df.h (df_ref_create, df_ref_remove): Delete.
11633         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
11634         (df_ref_remove): Likewise.
11636 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
11638         * df.h (df_single_def, df_single_use): New functions.
11639         * ira.c (find_moveable_pseudos): Use them.
11641 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
11643         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
11644         * df-problems.c (df_note_bb_compute): Use it.
11645         * regstat.c (regstat_bb_compute_ri): Likewise.
11647 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
11649         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
11650         * cse.c (cse_extended_basic_block): Use them.
11651         * dce.c (mark_artificial_use): Likewise.
11652         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
11653         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11654         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
11655         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
11656         (df_simulate_initialize_backwards): Likewise.
11657         (df_simulate_finalize_backwards): Likewise.
11658         (df_simulate_initialize_forwards): Likewise.
11659         (df_md_simulate_artificial_defs_at_top): Likewise.
11660         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11661         * regrename.c (init_rename_info): Likewise.
11662         * regstat.c (regstat_bb_compute_ri): Likewise.
11663         (regstat_bb_compute_calls_crossed): Likewise.
11665 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
11667         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
11668         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
11669         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
11670         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
11671         * combine.c (create_log_links): Likewise.
11672         * compare-elim.c (find_flags_uses_in_insn): Likewise.
11673         (try_eliminate_compare): Likewise.
11674         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
11675         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
11676         (remove_reg_equal_equiv_notes_for_defs): Likewise.
11677         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
11678         (word_dce_process_block, dce_process_block): Likewise.
11679         * ddg.c (def_has_ccmode_p): Likewise.
11680         * df-core.c (df_bb_regno_first_def_find): Likewise.
11681         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
11682         * df-problems.c (df_rd_simulate_one_insn): Likewise.
11683         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11684         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
11685         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
11686         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
11687         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
11688         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
11689         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
11690         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
11691         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11692         * fwprop.c (local_ref_killed_between_p): Likewise.
11693         (all_uses_available_at, free_load_extend): Likewise.
11694         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
11695         * hw-doloop.c (scan_loop): Likewise.
11696         * ifcvt.c (dead_or_predicable): Likewise.
11697         * init-regs.c (initialize_uninitialized_regs): Likewise.
11698         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
11699         (process_bb_node_lives): Likewise.
11700         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
11701         (find_moveable_pseudos): Likewise.
11702         * loop-invariant.c (check_dependencies, record_uses): Likewise.
11703         * recog.c (peep2_find_free_register): Likewise.
11704         * ree.c (get_defs): Likewise.
11705         * regstat.c (regstat_bb_compute_ri): Likewise.
11706         (regstat_bb_compute_calls_crossed): Likewise.
11707         * sched-deps.c (find_inc, find_mem): Likewise.
11708         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
11709         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
11710         * shrink-wrap.c (requires_stack_frame_p): Likewise.
11711         (prepare_shrink_wrap): Likewise.
11712         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
11713         * web.c (union_defs, pass_web::execute): Likewise.
11714         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
11715         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
11717 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
11719         * lra-assign.c (assign_by_spills): Add code to assign vector regs
11720         to inheritance pseudos.
11721         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
11723 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
11725         PR target/61415
11726         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
11727         (BU_MISC_2): Rename to ...
11728         (BU_LDBL128_2): ... this.
11729         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
11730         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
11731         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
11732         RS6000_BTM_LDBL128.
11733         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
11734         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
11735         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
11736         (unpacktf_1): Likewise.
11737         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
11738         (__builtin_longdouble_dw1): Likewise.
11739         * doc/sourcebuild.texi (longdouble128): Document.
11741 2014-06-13  Jeff Law  <law@redhat.com>
11743         PR rtl-optimization/61094
11744         PR rtl-optimization/61446
11745         * ree.c (combine_reaching_defs): Get the mode for the copy from
11746         the extension insn rather than the defining insn.
11748 2014-06-13  Dehao Chen  <dehao@google.com>
11750         * dwarf2out.c (add_linkage_name): Emit more linkage name.
11752 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
11754         * doc/install.texi (--enable-linker-plugin-configure-flags)
11755         (--enable-linker-plugin-flags): Document new flags.
11757 2014-06-13  Martin Jambor  <mjambor@suse.cz>
11759         PR ipa/61186
11760         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
11761         cache_token if returning early.
11763 2014-06-13  Nick Clifton  <nickc@redhat.com>
11765         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
11766         requested alignment is active.
11767         (LABEL_ALIGN): Likewise.
11768         (LOOP_ALIGN): Likewise.
11770 2014-06-13  Richard Biener  <rguenther@suse.de>
11772         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11773         Rewrite to propagate the VN result into all uses where
11774         possible and to remove stmts becoming dead because of that.
11775         (eliminate): Generalize stmt removal handling, remove in
11776         reverse dominator order to support proper debug stmt
11777         generation.  Update stmts before removing stmts.
11778         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
11780 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11782         PR tree-optimization/61375
11783         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
11784         symbolic number cannot be represented in an uint64_t.
11785         (find_bswap_or_nop_1): Likewise.
11787 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
11789         * symtab.c (symtab_node::reset_section): New method.
11790         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11791         for localization.
11792         * cgraph.h (reset_section): Declare.
11793         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11794         do not consider comdat locals.
11795         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11796         for new symbol.
11797         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11798         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11799         reset sections of symbols dragged out of the comdats.
11800         (function_and_variable_visibility): Reset sections of
11801         localized symbols.
11803 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
11805         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
11806         to use symtab and decl_binds_to_current_def_p
11807         * tree-vectorizer.c (increase_alignment): Increase alignment
11808         of alias target, too.
11810 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
11812         PR middle-end/61486
11813         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
11814         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
11815         if outer combined construct is distribute.
11816         (gimplify_omp_for): For OMP_DISTRIBUTE set
11817         gimplify_omp_ctxp->distribute.
11818         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
11819         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
11820         mapping into decl map.
11822 2014-06-12  Jason Merrill  <jason@redhat.com>
11824         * common.opt (fabi-version): Change default to 0.
11826 2014-06-12  Jason Merrill  <jason@redhat.com>
11828         * toplev.c (process_options): Reject -fabi-version=1.
11830 2014-06-12  Jeff Law  <law@redhat.com>
11832         PR tree-optimization/61009
11833         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
11834         value when we stop processing a block due to problematic PHIs.
11836 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
11838         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
11839         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
11840         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
11841         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
11842         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
11843         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
11844         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
11845         are not in the spec.
11847 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
11849         PR target/59843
11850         * config/aarch64/aarch64-modes.def: Add V1DFmode.
11851         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
11852         Support V1DFmode.
11854 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
11856         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
11858 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
11860         PR target/61443
11861         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
11862         loading from address spaces.
11864 2014-06-12  Martin Liska  <mliska@suse.cz>
11866         PR ipa/61462
11867         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
11868         statement is reachable.
11870 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
11872         * symtab.c (section_hash): New hash.
11873         (symtab_unregister_node): Clear section before freeing.
11874         (hash_section_hash_entry): New haser.
11875         (eq_sections): New function.
11876         (symtab_node::set_section_for_node): New method.
11877         (set_section_1): Update.
11878         (symtab_node::set_section): Take string instead of tree as parameter.
11879         (symtab_resolve_alias): Update.
11880         * cgraph.h (section_hash_entry_d): New structure.
11881         (section_hash_entry): New typedef.
11882         (cgraph_node): Change comdat_group_ to x_comdat_group,
11883         change section_ to x_section and turn into section_hash_entry;
11884         update accestors; put set_section_for_node offline.
11885         * tree.c (decl_section_name): Turn into string.
11886         (set_decl_section_name): Change parameter to be string.
11887         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
11888         * sdbout.c (sdbout_one_type): Update.
11889         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
11890         * varasm.c (IN_NAMED_SECTION, get_named_section,
11891         resolve_unique_section, hot_function_section, get_named_text_section,
11892         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
11893         make_decl_rtl, default_unique_section): Update.
11894         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
11895         (c6x_elf_unique_section): Update.
11896         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
11897         * config/pa/pa.c (pa_function_section): Update.
11898         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
11899         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
11900         * config/arc/arc.c (arc_in_small_data_p): Update.
11901         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
11902         * config/mcore/mcore.c (mcore_unique_section): Update.
11903         * config/mips/mips.c (mips16_build_function_stub): Update.
11904         (mips16_build_call_stub): Update.
11905         (mips_function_rodata_section): Update.
11906         (mips_in_small_data_p): Update.
11907         * config/score/score.c (score_in_small_data_p): Update.
11908         * config/rx/rx.c (rx_in_small_data): Update.
11909         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
11910         (rs6000_xcoff_asm_named_section): Update.
11911         (rs6000_xcoff_unique_section): Update.
11912         * config/frv/frv.c (frv_string_begins_with): Update.
11913         (frv_in_small_data_p): Update.
11914         * config/v850/v850.c (v850_encode_data_area): Update.
11915         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
11916         (bfin_handle_l1_data_attribute): Update.
11917         (bfin_handle_l2_attribute): Update.
11918         * config/mep/mep.c (mep_unique_section): Update.
11919         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
11920         Update.
11921         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
11922         (h8300_handle_tiny_data_attribute): Update.
11923         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
11924         (m32r_in_small_data_p): Update.
11925         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
11926         * config/i386/i386.c (ix86_in_large_data_p): Update.
11927         * config/i386/winnt.c (i386_pe_unique_section): Update.
11928         * config/darwin.c (darwin_function_section): Update.
11929         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
11930         * tree-emutls.c (get_emutls_init_templ_addr): Update.
11931         (new_emutls_decl): Update.
11932         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
11933         input_varpool_node): Update.
11934         (ead_string_cst): Turn to ...
11935         (read_string): ... this one.
11936         * dwarf2out.c (secname_for_decl): Update.
11937         * asan.c (asan_protect_global): Update.
11939 2014-06-11  DJ Delorie  <dj@redhat.com>
11941         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
11942         cache lines.
11943         * config/rx/rx.c (rx_option_override): Likewise.
11944         (rx_align_for_label): Likewise.
11946         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
11948 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
11950         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
11951         prototype.
11953 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
11955         * common.md: New file.
11956         * doc/md.texi: Update description of generic, machine-independent
11957         constraints.
11958         * config/s390/constraints.md (e): Delete.
11959         * Makefile.in (md_file): Include common.md.
11960         * config/m32c/t-m32c (md_file): Likewise.
11961         * genpreds.c (general_mem): New array.
11962         (generic_constraint_letters): Remove constraints now defined by
11963         common.md.
11964         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
11965         Allow the first character to be '<' or '>' as well.
11966         * genoutput.c (general_mem): New array.
11967         (indep_constraints): Remove constraints now defined by common.md.
11968         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
11969         Remove special handling of 'm'.
11970         * ira-costs.c (record_reg_classes): Remove special handling of
11971         constraints now defined by common.md.
11972         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
11973         * ira-lives.c (single_reg_class): Likewise.
11974         (ira_implicitly_set_insn_hard_regs): Likewise.
11975         * lra-constraints.c (reg_class_from_constraints): Likewise.
11976         (process_alt_operands, process_address, curr_insn_transform): Likewise.
11977         * postreload.c (reload_cse_simplify_operands): Likewise.
11978         * reload.c (push_secondary_reload, scratch_reload_class)
11979         (find_reloads, alternative_allows_const_pool_ref): Likewise.
11980         * reload1.c (maybe_fix_stack_asms): Likewise.
11981         * targhooks.c (default_secondary_reload): Likewise.
11982         * stmt.c (parse_output_constraint): Likewise.
11983         * recog.c (preprocess_constraints): Likewise.
11984         (constrain_operands, peep2_find_free_register): Likewise.
11985         (asm_operand_ok): Likewise, but add a comment saying why 'o'
11986         must be handled specially.
11988 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
11990         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
11991         * genpreds.c (have_const_dbl_constraints): Delete.
11992         (add_constraint): Don't set it.
11993         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
11994         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
11995         constraints using the lookup_constraint logic.
11996         * ira-lives.c (single_reg_class): Likewise.
11997         * ira.c (ira_setup_alts): Likewise.
11998         * lra-constraints.c (process_alt_operands): Likewise.
11999         * recog.c (asm_operand_ok, constrain_operands): Likewise.
12000         * reload.c (find_reloads): Likewise.
12002 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
12004         * genpreds.c (const_int_start, const_int_end): New variables.
12005         (choose_enum_order): Output CONST_INT constraints before memory
12006         constraints.
12007         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12008         Add CT_CONST_INT.
12009         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12010         * ira.c (ira_setup_alts): Likewise.
12011         * lra-constraints.c (process_alt_operands): Likewise.
12012         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12013         * reload.c (find_reloads): Likewise.
12015 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
12017         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12018         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
12019         * recog.c (preprocess_constraints): Update accordingly.
12021 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
12023         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12024         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12025         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12026         * genpreds.c (print_type_tree): New function.
12027         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12028         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12029         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12030         Write out enum constraint_type and get_constraint_type.
12031         * lra-constraints.c (satisfies_memory_constraint_p): Take a
12032         constraint_num rather than a constraint string.
12033         (satisfies_address_constraint_p): Likewise.
12034         (reg_class_from_constraints): Avoid old constraint macros.
12035         (process_alt_operands, process_address_1): Likewise.
12036         (curr_insn_transform): Likewise.
12037         * ira-costs.c (record_reg_classes): Likewise.
12038         (record_operand_costs): Likewise.
12039         * ira-lives.c (single_reg_class): Likewise.
12040         (ira_implicitly_set_insn_hard_regs): Likewise.
12041         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12042         * postreload.c (reload_cse_simplify_operands): Likewise.
12043         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12044         (constrain_operands, peep2_find_free_register): Likewise.
12045         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12046         (find_reloads, alternative_allows_const_pool_ref): Likewise.
12047         * reload1.c (maybe_fix_stack_asms): Likewise.
12048         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12049         * targhooks.c (default_secondary_reload): Likewise.
12050         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12051         to EXTRA_CONSTRAINT_STR.
12052         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12054 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
12056         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12057         (write_constraint_satisfied_p_array): ...this new function.
12058         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12059         an array.
12060         (write_insn_preds_c): Update accordingly.
12062 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
12064         * genpreds.c (write_lookup_constraint): Rename to...
12065         (write_lookup_constraint_1): ...this.
12066         (write_lookup_constraint_array): New function.
12067         (write_tm_preds_h): Define lookup_constraint as an inline function
12068         that uses write_lookup_constraint_array where possible.
12069         (write_insn_preds_c): Update for the changes above.
12071 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
12073         * doc/md.texi (regclass_for_constraint): Rename to...
12074         (reg_class_for_constraint): ...this.
12075         * genpreds.c (num_constraints, enum_order, register_start)
12076         (register_end, satisfied_start, memory_start, memory_end)
12077         (address_start, address_end): New variables.
12078         (add_constraint): Count the number of constraints.
12079         (choose_enum_order): New function.
12080         (write_enum_constraint_num): Iterate over enum_order.
12081         (write_regclass_for_constraint): Rename to...
12082         (write_reg_class_for_constraint_1): ...this and update output
12083         accordingly.
12084         (write_constraint_satisfied_p): Rename to...
12085         (write_constraint_satisfied_p_1): ...this and update output
12086         accordingly.  Do nothing if all extra constraints are register
12087         constraints.
12088         (write_insn_extra_memory_constraint): Delete.
12089         (write_insn_extra_address_constraint): Delete.
12090         (write_range_function): New function.
12091         (write_tm_preds_h): Define constraint_satisfied_p and
12092         reg_class_for_constraint as inline functions that do a range check
12093         before calling the out-of-line function.  Use write_range_function
12094         to implement insn_extra_{register,memory,address}_constraint,
12095         the first of which is new.
12096         (write_insn_preds_c): Update after above changes to write_* functions.
12097         (main): Call choose_enum_order.
12099 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12101         PR tree-optimization/61306
12102         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12103         expression instead of its size.
12104         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12105         false to prevent optimization when the result is unpredictable due to
12106         arithmetic right shift of signed type with highest byte is set.
12107         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12108         (init_symbolic_number): Likewise.
12109         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12110         when the result is unpredictable due to sign extension.
12112 2014-06-11  Terry Guo  <terry.guo@arm.com>
12114         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12115         (*thumb1_addsi3): Ditto.
12116         (*thumb_subdi3): Ditto.
12117         (thumb1_subsi3_insn): Ditto.
12118         (*thumb_mulsi3): Ditto.
12119         (*thumb_mulsi3_v6): Ditto.
12120         (*thumb1_andsi3_insn): Ditto.
12121         (thumb1_bicsi3): Ditto.
12122         (*thumb1_iorsi3_insn): Ditto.
12123         (*thumb1_xorsi3_insn): Ditto.
12124         (*thumb1_ashlsi3): Ditto.
12125         (*thumb1_ashrsi3): Ditto.
12126         (*thumb1_lshrsi3): Ditto.
12127         (*thumb1_rotrsi3): Ditto.
12128         (*thumb1_negdi2): Ditto.
12129         (*thumb1_negsi2): Ditto.
12130         (*thumb1_abssi2): Ditto.
12131         (*thumb1_neg_abssi2): Ditto.
12132         (*thumb1_one_cmplsi2): Ditto.
12133         (*thumb1_zero_extendhisi2): Ditto.
12134         (*thumb1_zero_extendqisi2): Ditto.
12135         (*thumb1_zero_extendqisi2_v6): Ditto.
12136         (thumb1_extendhisi2): Ditto.
12137         (thumb1_extendqisi2): Ditto.
12138         (*thumb1_movdi_insn): Ditto.
12139         (*thumb1_movsi_insn): Ditto.
12140         (*thumb1_movhi_insn): Ditto.
12141         (thumb_movhi_clobber): Ditto.
12142         (*thumb1_movqi_insn): Ditto.
12143         (*thumb1_movhf): Ditto.
12144         (*thumb1_movsf_insn): Ditto.
12145         (*thumb_movdf_insn): Ditto.
12146         (movmem12b): Ditto.
12147         (movmem8b): Ditto.
12148         (cbranchqi4): Ditto.
12149         (cbranchsi4_insn): Ditto.
12150         (cbranchsi4_scratch): Ditto.
12151         (*negated_cbranchsi4): Ditto.
12152         (*tbit_cbranch): Ditto.
12153         (*tlobits_cbranch): Ditto.
12154         (*tstsi3_cbranch): Ditto.
12155         (*cbranchne_decr1): Ditto.
12156         (*addsi3_cbranch): Ditto.
12157         (*addsi3_cbranch_scratch): Ditto.
12158         (*thumb_cmpdi_zero): Ditto.
12159         (cstoresi_eq0_thumb1): Ditto.
12160         (cstoresi_ne0_thumb1): Ditto.
12161         (*cstoresi_eq0_thumb1_insn): Ditto.
12162         (*cstoresi_ne0_thumb1_insn): Ditto.
12163         (cstoresi_nltu_thumb1): Ditto.
12164         (cstoresi_ltu_thumb1): Ditto.
12165         (thumb1_addsi3_addgeu): Ditto.
12166         (*thumb_jump): Ditto.
12167         (*call_reg_thumb1_v5): Ditto.
12168         (*call_reg_thumb1): Ditto.
12169         (*call_value_reg_thumb1_v5): Ditto.
12170         (*call_value_reg_thumb1): Ditto.
12171         (*call_insn): Ditto.
12172         (*call_value_insn): Ditto.
12173         (thumb1_casesi_internal_pic): Ditto.
12174         (thumb1_casesi_dispatch): Ditto.
12175         (*thumb1_indirect_jump): Ditto.
12176         (prologue_thumb1_interwork): Ditto.
12177         (*epilogue_insns): Ditto.
12178         (consttable_1): Ditto.
12179         (consttable_2): Ditto.
12180         (tablejump): Ditto.
12181         (*thumb1_tablejump): Ditto.
12182         (thumb_eh_return): Ditto.
12183         (define_peephole2): Two of them are thumb1 only and got moved into
12184         new file thumb1.md.
12185         (define_split): Six of them are thumb1 only and got moved into new
12186         file thumb1.md.
12187         * config/arm/thumb1.md: New file comprised of above thumb1 only
12188         patterns.
12190 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12192         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12193         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12194         dependencies.
12195         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12196         (aarch64_crc_builtin_datum): New struct.
12197         (aarch64_crc_builtin_data): New.
12198         (aarch64_init_crc32_builtins): New function.
12199         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12200         (aarch64_crc32_expand_builtin): New.
12201         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12202         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12203         __ARM_FEATURE_CRC32 when appropriate.
12204         (TARGET_CRC32): Define.
12205         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12206         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12207         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12208         (aarch64_<crc_variant>): New pattern.
12209         * config/aarch64/arm_acle.h: New file.
12210         * config/aarch64/iterators.md (CRC): New int iterator.
12211         (crc_variant, crc_mode): New int attributes.
12212         * doc/aarch64-acle-intrinsics.texi: New file.
12213         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12214         Include aarch64-acle-intrinsics.texi.
12216 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
12218         * tree-vect-data-refs.c (vect_grouped_store_supported): New
12219         check for stores group of length 3.
12220         (vect_permute_store_chain): New permutations for stores group of
12221         length 3.
12222         * tree-vect-stmts.c (vect_model_store_cost): Change cost
12223         of vec_perm_shuffle for the new permutations.
12225 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
12227         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12228         table rewriting temporarily on targets not supporting ONE_ONLY.
12230 2014-06-11  Richard Biener  <rguenther@suse.de>
12232         PR middle-end/61437
12233         Revert
12234         2014-06-04  Richard Biener  <rguenther@suse.de>
12236         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12237         TREE_PUBLIC and DECL_EXTERNAL decls.
12239 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
12241         * varasm.c (set_implicit_section): New function.
12242         (resolve_unique_section): Use it to set implicit section
12243         for aliases, too.
12244         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12245         (default_function_section): Likewise.
12246         (decl_binds_to_current_def_p): Constify argument.
12247         * varasm.h (decl_binds_to_current_def_p): Update prototype.
12248         * asan.c (asan_protect_global): Use
12249         symtab_get_node (decl)->implicit_section.
12250         * symtab.c (dump_symtab_base): Dump implicit sections.
12251         (verify_symtab_base): Verify sanity of sectoins and comdats.
12252         (symtab_resolve_alias): Alias share the section of its target.
12253         (set_section_1): New function.
12254         (symtab_node::set_section): Move here, recurse to aliases.
12255         (verify_symtab): Check for duplicated symtab lists.
12256         * tree-core.h (implicit_section_name_p): Remove.
12257         * tree-vect-data-refs.c: Include varasm.h.
12258         (vect_can_force_dr_alignment_p): Fix conditional on when
12259         decl bints to current definition; use
12260         symtab_get_node (decl)->implicit_section.
12261         * cgraph.c (cgraph_make_node_local_1): Fix section set.
12262         * cgraph.h (struct symtab_node): Add implicit_section.
12263         (set_section): Rename to ...
12264         (set_section_for_node): ... this one.
12265         (set_section): Declare.
12266         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12267         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12268         input_overwrite_node, input_varpool_node): Stream implicit_section.
12269         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12270         removal; it will fail in LTO.
12272 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12274         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12275         Change second alternative type to f_mcr.
12276         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12277         and 12th alternatives' types to f_mcr and f_mrc.
12278         (*movdi_aarch64): Same for 12th and 13th alternatives.
12279         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12280         (aarch64_movtilow_tilow): Change type to fmov.
12282 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
12284         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12285         (aarch64_save_or_restore_callee_save_registers): Fix layout.
12287 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12289         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12290         New expander.
12291         (aarch64_sqrdmulh_lane<mode>): Likewise.
12292         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12293         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12294         (aarch64_sqdmulh_laneq<mode>): New expander.
12295         (aarch64_sqrdmulh_laneq<mode>): Likewise.
12296         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12297         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12298         (aarch64_sqdmulh_lane<mode>): New expander.
12299         (aarch64_sqrdmulh_lane<mode>): Likewise.
12300         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12301         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12302         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12303         (aarch64_sqdmlal_laneq<mode>): Likewise.
12304         (aarch64_sqdmlsl_lane<mode>): Likewise.
12305         (aarch64_sqdmlsl_laneq<mode>): Likewise.
12306         (aarch64_sqdmlal2_lane<mode>): Likewise.
12307         (aarch64_sqdmlal2_laneq<mode>): Likewise.
12308         (aarch64_sqdmlsl2_lane<mode>): Likewise.
12309         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12310         (aarch64_sqdmull_lane<mode>): Likewise.
12311         (aarch64_sqdmull_laneq<mode>): Likewise.
12312         (aarch64_sqdmull2_lane<mode>): Likewise.
12313         (aarch64_sqdmull2_laneq<mode>): Likewise.
12315 2014-06-10  Richard Biener  <rguenther@suse.de>
12317         PR tree-optimization/61438
12318         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12319         (eliminate_dom_walker::before_dom_children): Only try to inhibit
12320         insertion of IVs if running PRE.
12321         (eliminate): Adjust.
12322         (pass_pre::execute): Likewise.
12323         (pass_fre::execute): Likewise.
12325 2014-06-10  Richard Biener  <rguenther@suse.de>
12327         PR middle-end/61456
12328         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12329         Do not use the main variant for the type comparison.
12330         (ncr_compar): Likewise.
12331         (nonoverlapping_component_refs_p): Likewise.
12333 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12335         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12336         REG_CFA_RESTORE mode.
12338 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
12340         * config/i386/i386.c (expand_vec_perm_pblendv): New.
12341         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12342         expand_vec_perm_pblendv.
12344 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12346         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12347         available.
12348         Simplify description of __crc32d and __crc32cd intrinsics.
12349         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12350         availability.
12352 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12354         PR lto/61334
12355         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12356         * config.in: Regenerate.
12357         * configure: Likewise.
12359 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
12361         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12362         and public vars.
12363         (intersect_static_var_sets): Remove.
12364         (propagate): Do not prune local statics.
12366 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
12368         PR fortran/60928
12369         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12370         Set lastprivate_firstprivate even if omp_private_outer_ref
12371         langhook returns true.
12372         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12373         langhook, call unshare_expr on new_var and call
12374         build_outer_var_ref to get the last argument.
12376 2014-06-10  Marek Polacek  <polacek@redhat.com>
12378         PR c/60988
12379         * doc/extend.texi: Add cindex for transparent_union.
12381 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12383         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12384         init_symbolic_number ().
12386 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
12388         PR middle-end/61141
12389         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12390         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12391         (verify_rtl_sharing): Likewise.
12393 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
12395         PR c++/54442
12396         * tree.c (build_qualified_type): Use a canonical type for
12397         TYPE_CANONICAL.
12399 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12401         * config/arm/arm-modes.def: Remove XFmode.
12403 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
12405         PR target/61062
12406         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12407         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12408         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12409         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12410         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12411         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12412         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12413         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12414         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12416 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
12418         * tree-core.h (tree_decl_with_vis): Remove section_name.
12420 2014-06-09  Kito Cheng  <kito@0xlab.org>
12422         * ira.c (ira): Don't call init_caller_save if LRA enabled
12423         since LRA use its own infrastructure to handle that.
12425 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
12427         * symtab.c (dump_symtab_base): Update dumping.
12428         (symtab_make_decl_local): Clear only DECL_COMDAT.
12429         * tree-vect-data-refs.c (Check that variable is static before
12430         tampering with sections.
12431         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12432         (cgraph_create_virtual_clone): Likewise.
12433         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12434         (decl_section_name, set_decl_section_name): New accessors.
12435         (find_decls_types_r): Do not walk section name
12436         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12437         (decl_comdat_group, decl_comdat_group_id): Constify.
12438         (decl_section_name, set_decl_section_name): Update.
12439         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12440         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12441         (cgraph_make_node_local_1): Clear section and comdat group.
12442         * cgraph.h (set_comdat_group): Sanity check.
12443         (get_section, set_section): New.
12444         * ipa-comdats.c (ipa_comdats): Use get_section.
12445         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12446         * lto-streamer-out.c: Do not follow section names.
12447         * c-family/c-common.c (handle_section_attribute): Update.
12448         * lto-cgraph.c (lto_output_node): Output section.
12449         (lto_output_varpool_node): Likewise.
12450         (read_comdat_group): Rename to ...
12451         (read_identifier): ... this one.
12452         (read_string_cst): New function.
12453         (input_node, input_varpool_node): Input section names.
12454         * tree-emutls.c (get_emutls_init_templ_addr): Update.
12455         (new_emutls_decl): Update.
12456         (secname_for_decl): Check section names only of static vars.
12457         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12458         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12459         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12460         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12461         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12462         * config/mcore/mcore.c (mcore_unique_section): Likewise.
12463         * config/mips/mips.c (mips16_build_function_stub): Likewise.
12464         * config/v850/v850.c (v850_insert_attributes): Likewise.
12465         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12466         Likewise.
12467         (h8300_handle_tiny_data_attribute): Likewise.
12468         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12469         (bfin_handle_l2_attribute): Likewise.
12471 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
12473         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12474         remove static initializer.
12476 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
12478         * varasm.c (use_blocks_for_decl_p): Check symbol table
12479         instead of alias attribute.
12480         (place_block_symbol): Recurse on aliases.
12482 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
12484         * ipa-visibility.c: Include varasm.h
12485         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12487 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
12489         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12490         outputting aliases.
12492 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
12494         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12495         from test_insn into GGC space escape via SET_SRC.
12497 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
12499         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12500         call statement, if any.
12501         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12502         statements, if any.  Tidy up.
12504 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
12506         PR target/61431
12507         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12508         iterators, VSX_D that handles 64-bit types, and VSX_LE that
12509         handles swapping the two 64-bit double words on little endian
12510         systems.  Include V1TImode and optionally TImode in VSX_LE so that
12511         these types are properly swapped.  Change all of the insns and
12512         splits that do the 64-bit swaps to use VSX_LE.
12513         (vsx_le_perm_load_<mode>): Likewise.
12514         (vsx_le_perm_store_<mode>): Likewise.
12515         (splitters for little endian memory operations): Likewise.
12516         (vsx_xxpermdi2_le_<mode>): Likewise.
12517         (vsx_lxvd2x2_le_<mode>): Likewise.
12518         (vsx_stxvd2x2_le_<mode>): Likewise.
12520 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
12522         PR target/61423
12523         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12524         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12525         and corresponding splitters.  Zero extend general register
12526         or memory input operand to XMM temporary.  Enable for
12527         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12528         (floatunssi<mode>2): Update expander predicate.
12530 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
12532         PR rtl-optimization/61325
12533         * lra-constraints.c (process_address_1): Check scale equal to one
12534         to prevent transformation: base + scale * index => base + new_reg.
12536 2014-06-06  Richard Biener  <rguenther@suse.de>
12538         PR tree-optimization/59299
12539         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12540         a def operand.
12541         (nearest_common_dominator_of_uses): Likewise.
12542         (statement_sink_location): Adjust.  Support sinking loads.
12544 2014-06-06  Martin Jambor  <mjambor@suse.cz>
12546         * ipa-prop.c (get_place_in_agg_contents_list): New function.
12547         (build_agg_jump_func_from_list): Likewise.
12548         (determine_known_aggregate_parts): Renamed to
12549         determine_locally_known_aggregate_parts.  Moved some functionality
12550         to the two functions above, removed bound checks.
12552 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
12554         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
12555         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
12556         (aarch64_progress_pointer): Likewise.
12557         (aarch64_copy_one_part_and_move_pointers): Likewise.
12558         (aarch64_expand_movmen): Likewise.
12559         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
12560         * config/aarch64/aarch64.md (movmem<mode>): New.
12562 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
12564         * targhooks.c (default_add_stmt_cost): Call target specific
12565         hook instead of default one.
12567 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12569         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
12570         endianness instead of host endianness.
12571         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
12572         comments.
12574 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
12576         PR debug/53927
12577         * function.c (instantiate_decls): Process the saved static chain.
12578         (expand_function_start): If not optimizing, save the static chain
12579         onto the stack.
12580         * tree-nested.c (convert_all_function_calls): Always create the static
12581         chain for nested functions if not optimizing.
12583 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
12585         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
12587 2014-06-06  Richard Biener  <rguenther@suse.de>
12589         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
12590         (construct_init_block): Likewise.
12591         (construct_exit_block): Likewise.
12592         (pass_expand::execute): Likewise.
12593         * graphite.c (graphite_transforms): Replace check for current_loops
12594         with a check for > 1 loops.
12595         (pass_graphite_transforms::execute): Adjust.
12596         * ipa-split.c (split_function): Remove check for current_loops.
12597         * omp-low.c (expand_parallel_call): Likewise.
12598         (expand_omp_for_init_counts): Likewise.
12599         (extract_omp_for_update_vars): Likewise.
12600         (expand_omp_for_generic): Likewise.
12601         (expand_omp_sections): Likewise.
12602         (expand_omp_target): Likewise.
12603         * tracer.c (tail_duplicate): Likewise.
12604         (pass_tracer::execute): Likewise.
12605         * trans-mem.c (expand_transaction): Likewise.
12606         * tree-complex.c (expand_complex_div_wide): Likewise.
12607         * tree-eh.c (lower_resx): Likewise.
12608         (cleanup_empty_eh_merge_phis): Likewise.
12609         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
12610         current_loops with a check for > 1 loops.
12611         (pass_predcom::execute): Adjust.
12612         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
12613         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
12614         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
12615         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
12616         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12617         * tree-switch-conversion.c (process_switch): Likewise.
12618         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12619         * tree-vrp.c (vrp_visit_phi_node): Likewise.
12620         (execute_vrp): Likewise.
12621         * ubsan.c (ubsan_expand_null_ifn): Likewise.
12623 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
12625         * rtl.h (insn_location): Declare.
12626         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
12627         with UNKNOWN_LOCATION.
12628         * emit-rtl.c (insn_location): New function.
12629         * final.c (notice_source_line): Check that the instruction has a
12630         location before retrieving it and use insn_location.
12631         * modulo-sched.c (loop_single_full_bb_p): Likewise.
12632         * print-rtl.c (print_rtx): Likewise.
12634 2014-06-06  Richard Biener  <rguenther@suse.de>
12636         * passes.def: Move 2nd VRP pass before phi-only-cprop.
12638 2014-06-06  Christian Bruel  <christian.bruel@st.com>
12640         PR tree-optimization/43934
12641         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
12642         cost.
12644 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
12646         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
12647         return NO_REGS for extra address and memory constraints.  Handle
12648         operands that match (or are equivalent to something that matches)
12649         extra constant constraints.  Ignore other non-register operands.
12651 2014-06-06  Alan Modra  <amodra@gmail.com>
12653         PR target/61300
12654         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
12655         * doc/tm.texi: Regenerate.
12656         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
12657         Use throughout in place of REG_PARM_STACK_SPACE.
12658         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
12659         "incoming" param.  Pass to rs6000_function_parms_need_stack.
12660         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
12661         prototype_p when incoming.  Use function decl when incoming
12662         to handle K&R style functions.
12663         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
12664         (INCOMING_REG_PARM_STACK_SPACE): Define.
12666 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12668         PR target/52472
12669         * cfgexpand.c (expand_debug_expr): Use address space of nested
12670         TREE_TYPE for ADDR_EXPR and MEM_REF.
12672 2014-06-05  Jeff Law  <law@redhat.com>
12674         PR tree-optimization/61289
12675         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
12676         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
12677         looking for those which match LHS.  All callers changed.
12678         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
12679         parameters and code which manipulated them.  All callers changed.
12680         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
12681         and DST_MAP parameters.  Simplify invalidation code by just calling
12682         invalidate_equivalences.  All callers changed.
12683         (thread_across_edge): Simplify now that we don't need to maintain
12684         the map of equivalences to invalidate.
12686 2014-06-05  Kai Tietz  <ktietz@redhat.com>
12687             Richard Henderson  <rth@redhat.com>
12689         PR target/46219
12690         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
12691         checking for !TARGET_X32.
12692         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
12693         (sibcall_intern): New define_insn, plus required peepholes.
12694         (sibcall_pop_intern): Likewise.
12695         (sibcall_value_intern): Likewise.
12696         (sibcall_value_pop_intern): Likewise.
12698 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
12700         * tree-inline.c (tree_function_versioning): Check DF info existence
12701         before accessing it.
12703 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12705         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
12706         frame_size.
12707         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
12708         aarch64_frame hard_fp_offset and frame_size.
12709         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
12710         frame_size; remove original_frame_size.
12711         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
12712         (aarch64_initial_elimination_offset): Remove frame_size and
12713         offset.  Use aarch64_frame frame_size.
12715 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12716             Jiong Wang  <jiong.wang@arm.com>
12717             Renlin  <renlin.li@arm.com>
12719         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
12720         initialization of R30 offset.  Update offset.  Iterate core
12721         regisers upto X30.  Remove X29, X30 specific code.
12723 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12724             Jiong Wang  <jiong.wang@arm.com>
12726         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
12727         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
12728         (aarch64_register_saved_on_entry): Adjust test.
12730 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12732         * config/aarch64/aarch64.h (machine_function): Move
12733         saved_varargs_size from here...
12734         (aarch64_frame): ... to here.
12736         * config/aarch64/aarch64.c (aarch64_expand_prologue)
12737         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
12738         (aarch64_initial_elimination_offset)
12739         (aarch64_setup_incoming_varargs): Adjust location of
12740         saved_varargs_size.
12742 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12744         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
12745         layout comment.
12747 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
12748             Prachi Godbole  <Prachi.Godbole@imgtec.com>
12750         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
12751         mips32r5 entry to use PROCESSOR_P5600.
12752         * config/mips/mips-tables.opt: Regenerate.
12753         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
12754         * config/mips/mips.c (mips_fmadd_bypass): New function.
12755         (mips_rtx_cost_data): Add costs for p5600.
12756         (mips_issue_rate): Add support for p5600.
12757         (mips_multipass_dfa_lookahead): Likewise.
12758         * config/mips/mips.h (TUNE_P5600): New define.
12759         (TUNE_MACC_CHAINS): Add TUNE_P5600.
12760         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
12761         * config/mips/mips.md: Include p5600.md.
12762         (processor): Add p5600.
12763         * config/mips/p5600.md: New file.
12765 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
12767         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
12768         * config/i386/predicates.md (palignr_operand): New.
12769         Indicates if permutation is suitable for palignr instruction.
12771 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
12773         PR tree-optimization/61319
12774         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12775         stmt belongs to loop.
12777 2014-06-05  Richard Biener  <rguenther@suse.de>
12779         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
12780         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
12781         (lookup_tmp_var): Adjust.
12782         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
12784 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12786         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
12788 2014-06-05  Marek Polacek  <polacek@redhat.com>
12790         PR c/49706
12791         * doc/invoke.texi: Document -Wlogical-not-parentheses.
12793 2014-06-04  Tom de Vries  <tom@codesourcery.com>
12795         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
12796         CONST_INT.
12798 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
12800         PR tree-optimization/61385
12801         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
12803 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
12805         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
12806         changed to use fatal_error.
12807         (main): Ensure lto_wrapper_cleanup is run atexit.
12809 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
12811         * lra-constraints.c (valid_address_p): Move earlier in file.
12812         (address_eliminator): New structure.
12813         (satisfies_memory_constraint_p): New function.
12814         (satisfies_address_constraint_p): Likewise.
12815         (process_alt_operands, process_address, curr_insn_transform): Use them.
12817 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
12819         * lra-int.h (lra_static_insn_data): Make operand_alternative a
12820         const pointer.
12821         (target_lra_int, default_target_lra_int, this_target_lra_int)
12822         (op_alt_data): Delete.
12823         * lra.h (lra_init): Delete.
12824         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
12825         (init_insn_code_data_once): Remove op_alt_data handling.
12826         (finish_insn_code_data_once): Likewise.
12827         (init_op_alt_data): Delete.
12828         (get_static_insn_data): Initialize operand_alternative to null.
12829         (free_insn_recog_data): Cast operand_alternative before freeing it.
12830         (setup_operand_alternative): Take the operand_alternative as
12831         parameter and assume it isn't already cached in the static
12832         insn data.
12833         (lra_set_insn_recog_data): Update accordingly.
12834         (lra_init): Delete.
12835         * ira.c (ira_init): Don't call lra_init.
12836         * target-globals.h (this_target_lra_int): Declare.
12837         (target_globals): Remove lra_int.
12838         (restore_target_globals): Update accordingly.
12839         * target-globals.c: Don't include lra-int.h.
12840         (default_target_globals, save_target_globals): Remove lra_int.
12842 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
12844         * recog.h (operand_alternative): Convert reg_class, reject,
12845         matched and matches into bitfields.
12846         (preprocess_constraints): New overload.
12847         (preprocess_insn_constraints): New function.
12848         (preprocess_constraints): Take the insn as parameter.
12849         (recog_op_alt): Change into a pointer.
12850         (target_recog): Add x_op_alt.
12851         * recog.c (asm_op_alt): New variable.
12852         (recog_op_alt): Change into a pointer.
12853         (preprocess_constraints): New overload, replacing the old function
12854         definition with one that doesn't use global state.
12855         (preprocess_insn_constraints): New function.
12856         (preprocess_constraints): Use them.  Take the insn as parameter.
12857         Use asm_op_alt for asms.
12858         (recog_init): Free existing x_op_alt entries.
12859         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
12860         pointer const.
12861         (make_early_clobber_and_input_conflicts): Likewise.
12862         (process_bb_node_lives): Pass the insn to process_constraints.
12863         * reg-stack.c (check_asm_stack_operands): Likewise.
12864         (subst_asm_stack_regs): Likewise.
12865         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12866         * regrename.c (build_def_use): Likewise.
12867         * sched-deps.c (sched_analyze_insn): Likewise.
12868         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
12869         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
12870         (note_invalid_constants): Likewise.
12871         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12872         (ix86_legitimate_combined_insn): Make operand_alternative pointer
12873         const.
12875 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
12877         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
12878         * ira-lives.c (check_and_make_def_conflict): Check for disabled
12879         alternatives.
12880         (make_early_clobber_and_input_conflicts): Likewise.
12881         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12883 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
12885         * recog.h (alternative_class): New function.
12886         (which_op_alt): Return a const recog_op_alt.
12887         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
12888         (subst_asm_stack_regs): Likewise.
12889         * config/arm/arm.c (note_invalid_constants): Likewise.
12890         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
12891         the operand_alternative; use alternative class instead.
12892         * sel-sched.c (get_reg_class): Likewise.
12893         * regrename.c (build_def_use): Likewise.
12894         (hide_operands, restore_operands, record_out_operands): Update type
12895         accordingly.
12897 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
12899         * recog.h (recog_op_alt): Convert to a flat array.
12900         (which_op_alt): New function.
12901         * recog.c (recog_op_alt): Convert to a flat array.
12902         (preprocess_constraints): Update accordingly, grouping all
12903         operands of the same alternative together, rather than the
12904         other way around.
12905         * ira-lives.c (check_and_make_def_conflict): Likewise.
12906         (make_early_clobber_and_input_conflicts): Likewise.
12907         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12908         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
12909         (subst_asm_stack_regs): Likewise.
12910         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12911         * regrename.c (hide_operands, record_out_operands): Likewise.
12912         (build_def_use): Likewise.
12913         * sel-sched.c (get_reg_class): Likewise.
12914         * config/arm/arm.c (note_invalid_constants): Likewise.
12916 2014-06-04  Jason Merrill  <jason@redhat.com>
12918         PR c++/51253
12919         PR c++/61382
12920         * gimplify.c (gimplify_arg): Non-static.
12921         * gimplify.h: Declare it.
12923 2014-06-04  Richard Biener  <rguenther@suse.de>
12925         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12926         TREE_PUBLIC and DECL_EXTERNAL decls.
12928 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
12930         * regcprop.c (copyprop_hardreg_forward_1): Account for
12931         HARD_REGNO_CALL_PART_CLOBBERED.
12933 2014-06-04  Richard Biener  <rguenther@suse.de>
12935         * configure.ac: Check whether the underlying type of int64_t
12936         is long or long long.
12937         * configure: Regenerate.
12938         * config.in: Likewise.
12939         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
12940         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
12942 2014-06-04  Richard Biener  <rguenther@suse.de>
12944         PR tree-optimization/60098
12945         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
12946         we hit a kill.
12947         (dse_optimize_stmt): Simplify, now that we found a kill
12948         earlier.
12950 2014-06-04  Richard Biener  <rguenther@suse.de>
12952         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
12953         of accesses with non-invariant address.
12955 2014-06-04  Martin Liska  <mliska@suse.cz>
12957         * cgraph.h (cgraph_make_wrapper): New function introduced.
12958         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
12959         * ipa-inline.h (inline_analyze_function): The function is global.
12960         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
12962 2014-06-04  Martin Liska  <mliska@suse.cz>
12964         * tree.h (private_lookup_attribute_starting): New function.
12965         (lookup_attribute_starting): Likewise.
12966         * tree.c (private_lookup_attribute_starting): Likewise.
12968 2014-06-04  Martin Liska  <mliska@suse.cz>
12970         * cgraph.h (expand_thunk): New argument added.
12971         (address_taken_from_non_vtable_p): New global function.
12972         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
12973         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
12974         * cgraphunit.c (analyze_function): Likewise.
12975         (assemble_thunks_and_aliases): Argument added to call.
12976         (expand_thunk): New argument forces to produce GIMPLE thunk.
12978 2014-06-04  Martin Liska  <mliska@suse.cz>
12980         * coverage.h (coverage_compute_cfg_checksum): Argument added.
12981         * coverage.c (coverage_compute_cfg_checksum): Likewise.
12982         * profile.c (branch_prob): Likewise.
12984 2014-06-04  Martin Jambor  <mjambor@suse.cz>
12986         PR ipa/61340
12987         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
12988         handler for switch on an ipa_ref_use enum.
12989         * ipa-reference.c (analyze_function): Likewise.
12991 2014-06-04  Kai Tietz  <ktietz@redhat.com>
12993         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
12994         from old call-instruction.
12996 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
12998         * config/aarch64/aarch64.c (aarch64_classify_address)
12999         (aarch64_legitimize_reload_address): Support full addressing modes
13000         for vector modes.
13001         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13002         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13004 2014-06-03  Andrew Pinski  <apinski@cavium.com>
13006         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13007         for OP0.
13009 2014-06-03  Andrew Pinski  <apinski@cavium.com>
13011         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13012         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13014 2014-06-03  Kai Tietz  <ktietz@redhat.com>
13016         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13017         for 64-bit ms-abi.
13019 2014-06-03  Dehao Chen  <dehao@google.com>
13021         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13022         the same loop.
13024 2014-06-03  Marek Polacek  <polacek@redhat.com>
13026         PR c/60439
13027         * doc/invoke.texi: Document -Wswitch-bool.
13028         * function.c (stack_protect_epilogue): Cast controlling expression of
13029         the switch to int.
13030         * gengtype.c (walk_type): Generate switch expression with its
13031         controlling expression cast to int.
13033 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
13035         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13036         and attiny841.
13037         * config/avr/avr-tables.opt: Regenerate.
13038         * config/avr/t-multilib: Regenerate.
13039         * doc/avr-mmcu.texi: Regenerate.
13041 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
13042             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
13044         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13045         (ata6617c, ata664251): Add new avr35 devices.
13046         (ata6612c): Add new avr4 device.
13047         (ata6613c, ata6614q): Add new avr5 devices.
13048         * config/avr/avr-tables.opt: Regenerate.
13049         * config/avr/t-multilib: Regenerate.
13050         * doc/avr-mmcu.texi: Regenerate.
13052 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
13054         * gcc/config/aarch64/aarch64-builtins.c
13055         (aarch64_types_binop_ssu_qualifiers): New static data.
13056         (TYPES_BINOP_SSU): Define.
13057         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13058         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13059         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13060         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13061         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13062         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13063         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13064         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13065         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13066         suffix to builtin function name, remove cast.
13067         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13068         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13069         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13071 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
13073         * gcc/config/aarch64/aarch64-builtins.c
13074         (aarch64_types_binop_uus_qualifiers,
13075         aarch64_types_shift_to_unsigned_qualifiers,
13076         aarch64_types_unsigned_shiftacc_qualifiers): Define.
13077         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13078         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13079         sqshlu_n, uqshl_n): Update qualifiers.
13080         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13081         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13082         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13083         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13084         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13085         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13086         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13087         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13088         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13089         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13090         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13091         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13092         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13093         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13094         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13095         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13096         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13097         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13098         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13099         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13100         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13101         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13102         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13103         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13104         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13105         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13106         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13108 2014-06-03  Teresa Johnson  <tejohnson@google.com>
13110         * tree-sra.c (modify_function): Record caller nodes after rebuild.
13112 2014-06-02  Jason Merrill  <jason@redhat.com>
13114         PR c++/61020
13115         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13117 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
13119         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13120         location == 0.
13122 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
13124         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13125         New pattern.
13126         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13127         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13128         * config/aarch64/iterators.md (REVERSE): New iterator.
13129         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13130         (rev_op): New int_attribute.
13131         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13132         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13133         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13134         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13135         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13136         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13137         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13138         Replace temporary __asm__ with __builtin_shuffle.
13140 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
13142         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13143         mips64r5.
13144         * config/mips/mips-tables.opt: Regenerate.
13145         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13146         to use mips_isa_rev rather than ISA_MIPS32R2.
13147         * config/mips/mips.h (ISA_MIPS32R3): New define.
13148         (ISA_MIPS32R5): New define.
13149         (ISA_MIPS64R3): New define.
13150         (ISA_MIPS64R5): New define.
13151         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13152         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13153         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13154         and mips64r5.
13155         (MIPS_ISA_SYNCI_SPEC): Likewise.
13156         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13157         (LINK_SPEC): Added mips32r3 and mips32r5.
13158         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13159         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13160         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13161         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13162         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13163         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13164         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13166 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
13168         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13169         options.
13170         * config/mips/mips.opt (mxpa): New option.
13171         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13172         assembler.
13174 2014-06-03  Martin Jambor  <mjambor@suse.cz>
13176         PR ipa/61160
13177         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13178         thunks.
13180 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13182         PR tree-optimization/61328
13183         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13184         initialization from find_bswap_or_nop_1.
13185         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13186         in source_expr2 before using the size value the function sets. Also
13187         make use of init_symbolic_number () in both the old place and
13188         find_bswap_or_nop_load () to avoid reading uninitialized memory when
13189         doing recursion in the GIMPLE_BINARY_RHS case.
13191 2014-06-03  Richard Biener  <rguenther@suse.de>
13193         PR tree-optimization/61383
13194         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13195         stmts can't trap.
13197 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
13199         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13200         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13201         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13202         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13203         in this file.
13204         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13205         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13206         * system.h: ...here and make it unconditional.
13207         * target.def (conditional_register_usage): Mention
13208         define_register_constraint instead of old-style constraint macros.
13209         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13210         * doc/tm.texi: Regenerate.
13211         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13212         protected by !USE_MD_CONSTRAINTS.
13213         * config/frv/frv.md: Remove quote from old version of documentation.
13214         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13215         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13216         CONST_DOUBLE_OK_FOR_LETTER.
13217         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13219 2014-06-02  Andrew Pinski  <apinski@cavium.com>
13221         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13222         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13223         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13224         file whose name depends on -mabi= and -mbig-endian.
13225         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13226         Handle LP64 better and handle ilp32 too.
13227         (MULTILIB_OPTIONS): Delete.
13228         (MULTILIB_DIRNAMES): Delete.
13230 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
13232         * expr.h: Remove prototypes of functions defined in builtins.c.
13233         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13234         Remove prototypes of functions defined in builtins.c.
13235         * builtins.h: Update prototype list to include all exported functions.
13236         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13237         no_c99_libc_has_function): Move to targhooks.c
13238         (build_string_literal, build_call_expr_loc_array,
13239         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13240         to tree.c.
13241         (expand_builtin_object_size, fold_builtin_object_size): Make static.
13242         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13243         no_c99_libc_has_function): Relocate from builtins.c.
13244         * tree.c: Include builtins.h.
13245         (build_call_expr_loc_array, build_call_expr_loc_vec,
13246         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13247         from builtins.c.
13248         * fold-const.h (fold_fma): Move prototype to builtins.h.
13249         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13250         * asan.c: Include builtins.h.
13251         * cfgexpand.c: Likewise.
13252         * convert.c: Likewise.
13253         * emit-rtl.c: Likewise.
13254         * except.c: Likewise.
13255         * expr.c: Likewise.
13256         * fold-const.c: Likewise.
13257         * gimple-fold.c: Likewise.
13258         * gimple-ssa-strength-reduction.c: Likewise.
13259         * gimplify.c: Likewise.
13260         * ipa-inline.c: Likewise.
13261         * ipa-prop.c: Likewise.
13262         * lto-streamer-out.c: Likewise.
13263         * stmt.c: Likewise.
13264         * tree-inline.c: Likewise.
13265         * tree-object-size.c: Likewise.
13266         * tree-sra.c: Likewise.
13267         * tree-ssa-ccp.c: Likewise.
13268         * tree-ssa-forwprop.c: Likewise.
13269         * tree-ssa-loop-ivcanon.c: Likewise.
13270         * tree-ssa-loop-ivopts.c: Likewise.
13271         * tree-ssa-math-opts.c: Likewise.
13272         * tree-ssa-reassoc.c: Likewise.
13273         * tree-ssa-threadedge.c: Likewise.
13274         * tree-streamer-in.c: Likewise.
13275         * tree-vect-data-refs.c: Likewise.
13276         * tree-vect-patterns.c: Likewise.
13277         * tree-vect-stmts.c: Likewise.
13278         * config/aarch64/aarch64.c: Likewise.
13279         * config/alpha/alpha.c: Likewise.
13280         * config/arc/arc.c: Likewise.
13281         * config/arm/arm.c: Likewise.
13282         * config/avr/avr.c: Likewise.
13283         * config/bfin/bfin.c: Likewise.
13284         * config/c6x/c6x.c: Likewise.
13285         * config/cr16/cr16.c: Likewise.
13286         * config/cris/cris.c: Likewise.
13287         * config/epiphany/epiphany.c: Likewise.
13288         * config/fr30/fr30.c: Likewise.
13289         * config/frv/frv.c: Likewise.
13290         * config/h8300/h8300.c: Likewise.
13291         * config/i386/i386.c: Likewise.
13292         * config/i386/winnt.c: Likewise.
13293         * config/ia64/ia64.c: Likewise.
13294         * config/iq2000/iq2000.c: Likewise.
13295         * config/lm32/lm32.c: Likewise.
13296         * config/m32c/m32c.c: Likewise.
13297         * config/m32r/m32r.c: Likewise.
13298         * config/m68k/m68k.c: Likewise.
13299         * config/mcore/mcore.c: Likewise.
13300         * config/mep/mep.c: Likewise.
13301         * config/microblaze/microblaze.c: Likewise.
13302         * config/mips/mips.c: Likewise.
13303         * config/mmix/mmix.c: Likewise.
13304         * config/mn10300/mn10300.c: Likewise.
13305         * config/moxie/moxie.c: Likewise.
13306         * config/msp430/msp430.c: Likewise.
13307         * config/nds32/nds32.c: Likewise.
13308         * config/pa/pa.c: Likewise.
13309         * config/pdp11/pdp11.c: Likewise.
13310         * config/picochip/picochip.c: Likewise.
13311         * config/rl78/rl78.c: Likewise.
13312         * config/rs6000/rs6000.c: Likewise.
13313         * config/rx/rx.c: Likewise.
13314         * config/s390/s390.c: Likewise.
13315         * config/score/score.c: Likewise.
13316         * config/sh/sh.c: Likewise.
13317         * config/sparc/sparc.c: Likewise.
13318         * config/spu/spu.c: Likewise.
13319         * config/stormy16/stormy16.c: Likewise.
13320         * config/tilegx/tilegx.c: Likewise.
13321         * config/tilepro/tilepro.c: Likewise.
13322         * config/v850/v850.c: Likewise.
13323         * config/vax/vax.c: Likewise.
13324         * config/xtensa/xtensa.c: Likewise.
13326 2014-06-02  Jeff Law  <law@redhat.com>
13328         PR rtl-optimization/61094
13329         * ree.c (combine_reaching_defs): Do not reextend an insn if it
13330         was marked as do_no_reextend.  If a copy is needed to eliminate
13331         an extension, then mark it as do_not_reextend.
13333 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13335         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13337 2014-06-02  Richard Henderson  <rth@redhat.com>
13339         PR target/61336
13340         * config/alpha/alpha.c (print_operand_address): Allow symbolic
13341         addresses inside asms.  Use output_operand_lossage instead of
13342         gcc_unreachable.
13344 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
13346         PR target/61239
13347         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13348         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13350 2014-06-02  Tom de Vries  <tom@codesourcery.com>
13352         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13353         case that x has VOIDmode.
13355 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
13357         * varasm.c (copy_constant): Delete function.
13358         (build_constant_desc): Don't call it.
13360 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13362         PR target/61154
13363         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13364         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13365         with immediate_operand.
13367 2014-06-02  Andreas Schwab  <schwab@suse.de>
13369         * config/ia64/ia64.c
13370         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13371         pending_data_specs first.
13373 2014-06-02  Richard Biener  <rguenther@suse.de>
13375         PR tree-optimization/61378
13376         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13377         valueized_anything.
13379 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
13381         * config/i386/constraints.md (Bw): Rename from 'w'.
13382         (Bz): Rename from 'z'.
13383         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13385 2014-06-01  Kai Tietz  <ktietz@redhat.com>
13387         PR target/61377
13388         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13389         * config/i386/i386.md (sibcall_insn_operand): Use Bs
13390         instead of m constraint.
13392 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
13394         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13395         a separate alternative where the scratch operand 2 is marked as
13396         early clobber.
13398 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
13400         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13401         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13402         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13403         and __builtins_arm_get_fpscr.
13404         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13405         __builtins_arm_get_fpscr.
13406         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13407         __builtins_arm_ldfpscr.
13408         (arm_atomic_assign_expand_fenv): New function.
13409         * config/arm/vfp.md (set_fpscr): New pattern.
13410         (get_fpscr) : Likewise.
13411         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13412         VUNSPEC_SET_FPSCR.
13413         * doc/extend.texi (AARCH64 Built-in Functions) : Document
13414         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13416 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
13418         * asan.c (report_error_func): Add SLOW_P argument, use
13419         BUILT_IN_ASAN_*_N if set.
13420         (build_check_stmt): Likewise.
13421         (instrument_derefs): If T has insufficient alignment,
13422         force same handling as for odd sizes.
13424         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13425         BUILT_IN_ASAN_REPORT_STORE_N): New.
13426         * asan.c (struct asan_mem_ref): Change access_size type to
13427         HOST_WIDE_INT.
13428         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13429         update_mem_ref_hash_table): Likewise.
13430         (asan_mem_ref_hasher::hash): Hash in a HWI.
13431         (report_error_func): Change size_in_bytes argument to HWI.
13432         Use *_N builtins if size_in_bytes is larger than 16 or not power of
13433         two.
13434         (build_shadow_mem_access): New function.
13435         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
13436         Handle size_in_bytes not power of two or larger than 16.
13437         (instrument_derefs): Don't give up if size_in_bytes is not
13438         power of two or is larger than 16.
13440 2014-05-30  Kai Tietz  <ktietz@redhat.com>
13442         PR target/60104
13443         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13444         for sibling-tail-calls.
13445         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13446         to its use.
13447         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13448         (sibcall_insn_operand): Add check for sibcall_memory_operand.
13450 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13452         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13453         * config/avr/avr-tables.opt: Regenerate.
13454         * config/avr/t-multilib: Regenerate.
13455         * doc/avr-mmcu.texi: Regenerate.
13457 2014-05-30  Ian Lance Taylor  <iant@google.com>
13459         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13460         target("sse").
13462 2014-05-30  Tom de Vries  <tom@codesourcery.com>
13464         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13465         Redefine as true.
13467 2014-05-30  Tom de Vries  <tom@codesourcery.com>
13469         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13470         * lra.c (initialize_lra_reg_info_element): Add init of
13471         actual_call_used_reg_set field.
13472         (lra): Call lra_create_live_ranges before lra_inheritance for
13473         -fuse-caller-save.
13474         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13475         -fuse-caller-save.
13476         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13477         instead of call_used_reg_set for -fuse-caller-save.
13478         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13480 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13482         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13483         to mov_imm.
13484         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13486 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
13488         * ira.c (ira_get_dup_out_num): Check for output operands at
13489         the start of the loop.  Handle cases where an included alternative
13490         follows an excluded one.
13492 2014-05-29  Mike Stump  <mikestump@comcast.net>
13494         PR debug/61352
13495         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13496         post ld passes when lto is used.
13498 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
13500         PR rtl-optimization/61325
13501         * lra-constraints.c (process_address): Rename to process_address_1.
13502         (process_address): New function.
13504 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
13506         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13507         TYPES_BINOPV): New static data.
13508         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13509         New builtin.
13510         * config/aarch64/aarch64-simd.md (aarch64_ext,
13511         aarch64_im_lane_boundsi): New patterns.
13512         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13513         patterns for EXT.
13514         (aarch64_evpc_ext): New function.
13516         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13518         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13519         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13520         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13521         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13522         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13524 2014-05-29  Tom de Vries  <tom@codesourcery.com>
13526         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13528 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
13529             Richard Sandiford  <rdsandiford@googlemail.com>
13531         * arm/iterators.md (shiftable_ops): New code iterator.
13532         (t2_binop0, arith_shift_insn): New code attributes.
13533         * arm/predicates.md (shift_nomul_operator): New predicate.
13534         * arm/arm.md (insn_enabled): Delete.
13535         (enabled): Remove insn_enabled test.
13536         (*arith_shiftsi): Delete.  Replace with ...
13537         (*<arith_shift_insn>_multsi): ... new pattern.
13538         (*<arith_shift_insn>_shiftsi): ... new pattern.
13539         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13541 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
13542             Tom de Vries  <tom@codesourcery.com>
13544         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13545         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13546         clobber.
13547         (mips_split_call): Use POST_CALL_TMP_REG.
13548         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13550 2014-05-29  Tom de Vries  <tom@codesourcery.com>
13552         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
13553         with #ifdef STACK_REGS.
13555 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
13557         * varasm.c (get_variable_section): Walk aliases.
13558         (place_block_symbol): Walk aliases.
13560 2014-05-28  Tom de Vries  <tom@codesourcery.com>
13562         Revert:
13563         2014-05-28  Tom de Vries  <tom@codesourcery.com>
13565         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13566         * lra.c (initialize_lra_reg_info_element): Add init of
13567         actual_call_used_reg_set field.
13568         (lra): Call lra_create_live_ranges before lra_inheritance for
13569         -fuse-caller-save.
13570         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13571         -fuse-caller-save.
13572         * lra-constraints.c (need_for_call_save_p): Use
13573         actual_call_used_reg_set instead of call_used_reg_set for
13574         -fuse-caller-save.
13575         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13577 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
13579         * doc/md.texi: Document that the % constraint character must
13580         be at the beginning of the string.
13581         * genoutput.c (validate_insn_alternatives): Check that '=',
13582         '+' and '%' only appear at the beginning of a constraint.
13583         * ira.c (commutative_constraint_p): Delete.
13584         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
13585         at the start of the string.
13586         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
13587         duplicate '='s.
13588         * config/arm/neon.md (bicdi3_neon): Likewise.
13589         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
13590         (slt_si, sltu_si): Likewise.
13591         * config/vax/vax.md (sbcdi3): Likewise.
13592         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
13593         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
13594         (mul64): Move '%' to beginning of constraint.
13595         * config/arm/arm.md (*xordi3_insn): Likewise.
13596         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
13597         (xorsi3): Likewise.
13599 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
13601         * doc/md.texi: Document the restrictions on the "enabled" attribute.
13603 2014-05-28  Jason Merrill  <jason@redhat.com>
13605         PR c++/47202
13606         * cgraph.h (symtab_node::get_comdat_group_id): New.
13607         * cgraphunit.c (analyze_functions): Call it.
13608         * symtab.c (dump_symtab_node): Likewise.
13609         * tree.c (decl_comdat_group_id): New.
13610         * tree.h: Declare it.
13611         * lto-streamer-out.c (write_symbol): Use it.
13612         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
13614 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13616         PR bootstrap/PR61146
13617         * wide-int.cc: Do not include longlong.h when compiling with clang.
13619 2014-05-28  Richard Biener  <rguenther@suse.de>
13621         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
13622         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
13623         (vrp_visit_assignment_or_call): Print less vertical space.
13624         (vrp_visit_stmt): Likewise.
13625         (vrp_visit_phi_node): Likewise.  For a PHI argument with
13626         VR_VARYING range consider recording it as copy.
13628 2014-05-28  Richard Biener  <rguenther@suse.de>
13630         Revert
13631         2014-05-28  Richard Biener  <rguenther@suse.de>
13633         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13635 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13637         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
13638         sufficiently aligned and an offset is used at the same time.
13639         (expand_expr_real_1): Likewise.
13641 2014-05-28  Richard Biener  <rguenther@suse.de>
13643         PR middle-end/61045
13644         * fold-const.c (fold_comparison): When folding
13645         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
13646         the sign of the remaining constant operand stays the same.
13648 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
13650         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13651         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
13652         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
13653         to the assembler.
13654         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
13655         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
13656         (m32bit-doubles) Likewise.
13657         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
13658         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
13659         option for RL78.
13661 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13663         * configure.ac ($gcc_cv_ld_clearcap): New test.
13664         * configure: Regenerate.
13665         * config.in: Regenerate.
13666         * config/sol2.opt (mclear-hwcap): New option.
13667         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
13668         * config/sol2-clearcap.map: Moved here from
13669         testsuite/gcc.target/i386/clearcap.map.
13670         * config/sol2-clearcapv2.map: Move here from
13671         gcc.target/i386/clearcapv2.map.
13672         * config/t-sol2 (install): Depend on install-clearcap-map.
13673         (install-clearcap-map): New target.
13674         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
13675         -mclear-hwcap.
13677 2014-05-28  Richard Biener  <rguenther@suse.de>
13679         * hwint.h (*_HALF_WIDE_INT*): Move to ...
13680         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
13681         ... here and remove the rest.
13682         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13684 2014-05-28  Richard Biener  <rguenther@suse.de>
13686         PR tree-optimization/61335
13687         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
13688         new range fails, drop to varying.
13690 2014-05-28  Olivier Hainque  <hainque@adacore.com>
13692         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
13693         (CPP_SPEC): Add entry for -mcpu=8548.
13694         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
13695         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
13697 2014-05-28  Tom de Vries  <tom@codesourcery.com>
13699         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13700         * lra.c (initialize_lra_reg_info_element): Add init of
13701         actual_call_used_reg_set field.
13702         (lra): Call lra_create_live_ranges before lra_inheritance for
13703         -fuse-caller-save.
13704         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13705         -fuse-caller-save.
13706         * lra-constraints.c (need_for_call_save_p): Use
13707         actual_call_used_reg_set instead of call_used_reg_set for
13708         -fuse-caller-save.
13709         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13711 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
13712             Tom de Vries  <tom@codesourcery.com>
13714         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
13715         to gccoptlist.
13716         (@item -fuse-caller-save): New item.
13718 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
13719             Tom de Vries  <tom@codesourcery.com>
13721         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
13722         OPT_fuse_caller_save.
13724 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
13725             Tom de Vries  <tom@codesourcery.com>
13727         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
13728         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
13729         get_call_reg_set_usage.
13730         * resource.c (mark_set_resources, mark_target_live_regs): Use
13731         get_call_reg_set_usage.
13732         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
13733         field.
13734         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
13735         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
13736         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13737         * ira-build.c (ira_create_allocno): Init
13738         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13739         (create_cap_allocno, propagate_allocno_info)
13740         (propagate_some_info_from_allocno)
13741         (copy_info_to_removed_store_destinations): Handle
13742         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13743         * ira-costs.c (ira_tune_allocno_costs): Use
13744         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
13746 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
13747             Tom de Vries  <tom@codesourcery.com>
13749         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
13750         and function_used_regs_valid fields.
13751         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
13752         find_all_hard_reg_sets.
13753         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
13754         (get_call_reg_set_usage): New function.
13755         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
13756         * regs.h (get_call_reg_set_usage): Declare.
13758 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
13760         PR libgcc/61152
13761         * config/dbx.h (License): Add Runtime Library Exception.
13762         * config/newlib-stdint.h (License): Same.
13763         * config/rtems.h (License): Same
13764         * config/initfini-array.h (License): Same
13765         * config/v850/v850.h (License): Same.
13766         * config/v850/v850-opts.h (License): Same
13767         * config/v850/rtems.h (License): Same.
13769 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
13771         PR target/61044
13772         * doc/extend.texi (Local Labels): Note that label differences are
13773         not supported for AVR.
13775 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
13776             Olivier Hainque  <hainque@adacore.com>
13778         * rtl.h (set_for_reg_notes): Declare.
13779         * emit-rtl.c (set_for_reg_notes): New function.
13780         (set_unique_reg_note): Use it.
13781         * optabs.c (add_equal_note): Likewise
13783 2014-05-27  Andrew Pinski  <apinski@cavium.com>
13785         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
13786         Use <w> for the register in assembly template.
13787         (stack_protect_test): Use the mode of operands[0] for the result.
13788         (stack_protect_test_<mode>): Use <w> for the register
13789         in assembly template.
13791 2014-05-27  DJ Delorie  <dj@redhat.com>
13793         * config/rx/rx.c (add_vector_labels): New.
13794         (rx_output_function_prologue): Call it.
13795         (rx_handle_func_attribute): Don't require empty arguments.
13796         (rx_handle_vector_attribute): New.
13797         (rx_attribute_table): Add "vector" attribute.
13798         * doc/extend.texi (interrupt, vector): Document new/changed
13799         RX-specific attributes.
13801         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
13803 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
13805         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
13806         predicate to detect a negative quotient.
13808 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
13810         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
13811         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
13812         Add X - Y CMP 0 to X CMP Y transformation.
13813         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
13815 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
13817         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
13818         before printing.
13820 2014-05-27  Steve Ellcey  <sellcey@mips.com>
13822         * config/mips/mips.c: Add include of cgraph.h.
13824 2014-05-27  Richard Biener  <rguenther@suse.de>
13826         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
13828 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
13830         PR libgcc/61152
13831         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
13832         * config/arm/arm-cores.def (License): Same.
13833         * config/arm/arm-opts.h (License): Same.
13834         * config/arm/aout.h (License): Same.
13835         * config/arm/bpabi.h (License): Same.
13836         * config/arm/elf.h (License): Same.
13837         * config/arm/linux-elf.h (License): Same.
13838         * config/arm/linux-gas.h (License): Same.
13839         * config/arm/netbsd-elf.h (License): Same.
13840         * config/arm/uclinux-eabi.h (License): Same.
13841         * config/arm/uclinux-elf.h (License): Same.
13842         * config/arm/vxworks.h (License): Same.
13844 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13846         * config/arm/neon.md (neon_bswap<mode>): New pattern.
13847         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
13848         (arm_init_neon_builtins): Handle NEON_BSWAP.
13849         Define required type nodes.
13850         (arm_expand_neon_builtin): Handle NEON_BSWAP.
13851         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
13852         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
13853         * config/arm/iterators.md (VDQHSD): New mode iterator.
13855 2014-05-27  Richard Biener  <rguenther@suse.de>
13857         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
13858         Try using literal operands when comparing value-ranges failed.
13860 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
13862         * ira.c (commutative_operand): Adjust for change to recog_data.
13863         [Missing from previous commit.]
13865 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
13867         * system.h (TEST_BIT): New macro.
13868         * recog.h (alternative_mask): New type.
13869         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
13870         (recog_data_d): Replace alternative_enabled_p array with
13871         enabled_alternatives.
13872         (target_recog): New structure.
13873         (default_target_recog, this_target_recog): Declare.
13874         (get_enabled_alternatives, recog_init): Likewise.
13875         * recog.c (default_target_recog, this_target_recog): New variables.
13876         (get_enabled_alternatives): New function.
13877         (extract_insn): Use it.
13878         (recog_init): New function.
13879         (preprocess_constraints, constrain_operands): Adjust for change to
13880         recog_data.
13881         * postreload.c (reload_cse_simplify_operands): Likewise.
13882         * reload.c (find_reloads): Likewise.
13883         * ira-costs.c (record_reg_classes): Likewise.
13884         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
13885         all alternatives after a disabled one would be skipped.
13886         (ira_implicitly_set_insn_hard_regs): Likewise.
13887         * ira.c (ira_setup_alts): Adjust for change to recog_data.
13888         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
13889         with enabled_alternatives.
13890         * lra.c (free_insn_recog_data): Update accordingly.
13891         (lra_update_insn_recog_data): Likewise.
13892         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
13893         * lra-constraints.c (process_alt_operands): Likewise.  Handle
13894         only_alternative as part of the enabled mask.
13895         * target-globals.h (this_target_recog): Declare.
13896         (target_globals): Add a recog field.
13897         (restore_target_globals): Restore this_target_recog.
13898         * target-globals.c: Include recog.h.
13899         (default_target_globals): Initialize recog field.
13900         (save_target_globals): Likewise.
13901         * reginfo.c (reinit_regs): Call recog_init.
13902         * toplev.c (backend_init_target): Likewise.
13904 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
13906         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
13907         rather than any named insn's code.
13909 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
13911         PR libgcc/61152
13912         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
13913         * config/arm/arm-cores.def (License): Same.
13915 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
13917         * tree.h (decl_comdat_group): Declare.
13918         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
13919         * tree.c (decl_comdat_group): Here.
13921 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
13923         PR rtl-optimization/61222
13924         * combine.c (simplify_shift_const_1): When moving a PLUS outside
13925         the shift, truncate the PLUS operand to the result mode.
13927 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
13929         PR target/61271
13930         * config/i386/i386.c (ix86_rtx_costs)
13931         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
13932         Fix condition.
13934 2014-05-26  Martin Jambor  <mjambor@suse.cz>
13936         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
13937         subreg uses.
13939 2014-05-26  Richard Biener  <rguenther@suse.de>
13941         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
13942         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
13943         Provide specializations.
13944         (wi::int_traits <HOST_WIDE_INT>,
13945         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
13947 2014-05-26  Alan Modra  <amodra@gmail.com>
13949         PR target/61098
13950         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
13951         params and return a bool.  Remove dead code.  Update comment.
13952         Assert we have a const_int source.  Remove bogus code from
13953         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
13954         handling of constants > 2G and reg_equal note, from..
13955         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
13956         return value.  Update comment.  If we can, use a new pseudo
13957         for intermediate calculations.
13958         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
13959         prototype.
13960         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
13961         call to rs6000_emit_set_const in splitter.
13962         (movdi_internal64+2, +3): Likewise.
13964 2014-05-26  Richard Biener  <rguenther@suse.de>
13966         * system.h: Define __STDC_FORMAT_MACROS before
13967         including inttypes.h.
13968         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
13969         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
13970         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
13971         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
13972         HOST_WIDEST_INT_C): Remove.
13973         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
13974         if C99 inttypes.h is not available.
13975         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
13976         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
13977         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
13978         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
13979         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
13980         (struct output_info): Likewise.
13981         (print_statistics): Adjust.
13982         (dump_bitmap_statistics): Likewise.
13983         * bt-load.c (migrate_btr_defs): Print with PRId64.
13984         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
13985         (MAX_SAFE_MULTIPLIER): Adjust.
13986         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
13987         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
13988         dump_cgraph_node): Likewise.
13989         * final.c (dump_basic_block_info): Likewise.
13990         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
13991         * gcov.c (format_gcov): Likewise.
13992         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
13993         for calculation.
13994         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
13995         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
13996         (inline_small_functions, dump_overall_stats, dump_inline_stats):
13997         Use PRId64 for dumping.
13998         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
13999         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14000         (add_allocno_hard_regs): Adjust.
14001         * loop-doloop.c (doloop_modify): Print using PRId64.
14002         * loop-iv.c (inverse): Compute in uint64_t.
14003         (determine_max_iter, iv_number_of_iterations): Likewise.
14004         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14005         Print using PRId64.
14006         * lto-streamer-out.c (write_symbol): Use uint64_t.
14007         * mcf.c (CAP_INFINITY): Use int64_t maximum.
14008         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14009         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14010         * modulo-sched.c (const_iteration_count): Use int64_t.
14011         (sms_schedule): Dump using PRId64.
14012         * predict.c (dump_prediction): Likewise.
14013         * pretty-print.h (pp_widest_integer): Remove.
14014         * profile.c (get_working_sets, is_edge_inconsistent,
14015         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14016         * tree-pretty-print.c (pp_double_int): Remove case handling
14017         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14018         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14019         and adjust users.
14020         (pass_optimize_bswap::execute): Remove restriction on hosts.
14021         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14022         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14023         * tree.c (widest_int_cst_value): Remove.
14024         * tree.h (widest_int_cst_value): Likewise.
14025         * value-prof.c (dump_histogram_value): Print using PRId64.
14026         * gengtype.c (main): Also inject int64_t.
14027         * ggc-page.c (struct max_alignment): Use int64_t.
14028         * alloc-pool.c (struct allocation_object_def): Likewise.
14029         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14030         for computation.
14031         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14032         * doc/tm.texi: Regenerated.
14033         * gengtype-lex.l (IWORD): Handle [u]int64_t.
14034         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14035         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14036         mmix_output_register_setting): Use [u]int64_t in prototypes.
14037         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14038         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14039         mmix_output_octa, mmix_output_shifted_value): Adjust.
14040         (mmix_intval): Adjust.  Remove unreachable case.
14041         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14043 2014-05-26  Richard Biener  <rguenther@suse.de>
14045         * configure.ac: Drop __int64 type check.  Insist that we
14046         found uint64_t and int64_t.
14047         * hwint.h (HOST_BITS_PER___INT64): Remove.
14048         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14049         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14050         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14051         (HOST_WIDEST_FAST_INT): Remove __int64 case.
14052         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14053         for dst_q_src_df_rms_cdt.
14054         * configure: Regenerate.
14055         * config.in: Likewise.
14057 2014-05-26  Michael Tautschnig  <mt@debian.org>
14059         PR target/61249
14060         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14061         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14063 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14065         PR rtl-optimization/61278
14066         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14068 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14070         PR rtl-optimization/61220
14071         Part of PR rtl-optimization/61225
14072         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14073         insn; skip split_edge for a block with only one successor.
14075 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
14077         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14078         for variables.
14080 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
14082         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14083         (update_vtable_references): New function.
14084         (function_and_variable_visibility): Rewrite also vtable initializers.
14085         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14087 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
14089         * ggc.h (ggc_grow): New function.
14090         * ggc-none.c (ggc_grow): New function.
14091         * ggc-page.c (ggc_grow): Likewise.
14093 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
14095         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14096         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14097         comdat_can_be_unshared_p, cgraph_externally_visible_p,
14098         varpool_externally_visible_p, can_replace_by_local_alias,
14099         update_visibility_by_resolution_info, function_and_variable_visibility,
14100         pass_data_ipa_function_and_variable_visibility,
14101         make_pass_ipa_function_and_variable_visibility,
14102         whole_program_function_and_variable_visibility,
14103         pass_data_ipa_whole_program_visibility,
14104         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14105         * cgraph.h (cgraph_local_node_p): Declare.
14106         * ipa-visibility.c: New file.
14107         * Makefile.in (OBJS): Add ipa-visiblity.o
14109 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
14111         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14112         that var decl is available.
14114 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
14116         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14117         symtab_node pointer.
14118         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14119         (find_decls_types_r): Do not walk COMDAT_GROUP.
14120         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14121         * varasm.c (make_decl_one_only): Use set_comdat_group;
14122         create node if needed.
14123         * ipa-inline-transform.c (save_inline_function_body): Update
14124         way we decl->symtab mapping.
14125         * symtab.c (symtab_hash, hash_node, eq_node
14126         symtab_insert_node_to_hashtable): Remove.
14127         (symtab_register_node): Update.
14128         (symtab_unregister_node): Update.
14129         (symtab_get_node): Reimplement as inline function.
14130         (symtab_add_to_same_comdat_group): Update.
14131         (symtab_dissolve_same_comdat_group_list): Update.
14132         (dump_symtab_base): Update.
14133         (verify_symtab_base): Update.
14134         (symtab_make_decl_local): Update.
14135         (fixup_same_cpp_alias_visibility): Update.
14136         (symtab_nonoverwritable_alias): Update.
14137         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14138         * ipa.c (update_visibility_by_resolution_info): UPdate.
14139         * bb-reorder.c: Include cgraph.h
14140         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14141         with comdat groups.
14142         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14143         * cgraph.c (cgraph_get_create_node): Update.
14144         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14145         and comdat_group_.
14146         (symtab_get_node): Make inline.
14147         (symtab_insert_node_to_hashtable): Remove.
14148         (symtab_can_be_discarded): Update.
14149         (decl_comdat_group): New function.
14150         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14151         Update.
14152         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14153         comdat group name.
14154         (read_comdat_group): New function.
14155         (input_node, input_varpool_node): Use it.
14156         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14157         comdat groups.
14158         * mips.c (mips_start_unique_function): Likewise.
14159         (ix86_code_end): Likewise.
14160         (rs6000_code_end): Likweise.
14161         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14163 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
14165         * gengtype-state.c (fatal_reading_state): Bring offline.
14166         * optabs.c (widening_optab_handler): Bring offline.
14167         * optabs.h (widening_optab_handler): Likewise.
14168         * final.c (get_attr_length_1): Likewise.
14170 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
14172         * sched-int.h (sd_iterator_cond): Manually tail recurse.
14174 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
14176         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14177         (ppc440-compare): Include shift with dot.
14178         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14179         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14180         without dot.
14181         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14182         without dot.
14183         (e6500_sfx2): Include it.
14184         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14185         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14186         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14187         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14188         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14189         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14190         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14191         *lshiftrt_internal1le, *lshiftrt_internal1be,
14192         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14193         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14194         *rotldi3_internal10le, *rotldi3_internal10be,
14195         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14196         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14197         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14198         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14199         define_insns): Use type "shift" in the appropriate alternatives.
14201 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
14203         * config/rs6000/rs6000.md (type): Add "logical".  Delete
14204         "fast_compare".
14205         (dot): Adjust comment.
14206         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14207         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14208         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14209         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14210         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14211         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14212         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14213         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14215         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14216         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14217         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14218         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14219         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14220         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14221         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14222         * config/rs6000/8540.md (ppc8540_su): Adjust.
14223         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14224         cell-cmp-microcoded): Adjust.
14225         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14226         * config/rs6000/e500mc.md (e500mc_su): Adjust.
14227         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14228         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14229         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14230         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14231         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14232         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14233         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14234         Adjust.
14235         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14236         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14237         Adjust.  Adjust comment.
14238         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14239         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14241 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
14243         * config/rs6000/rs6000.md (type): Add "add".
14244         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14245         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14246         define_insns): Use it.
14247         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14249         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14250         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14251         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14252         * config/rs6000/601.md (ppc601-integer): Adjust.
14253         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14254         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14255         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14256         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14257         * config/rs6000/8540.md (ppc8540_su): Adjust.
14258         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14259         cell-cmp-microcoded): Adjust.
14260         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14261         * config/rs6000/e500mc.md (e500mc_su): Adjust.
14262         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14263         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14264         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14265         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14266         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14267         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14268         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14269         Adjust.
14270         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14271         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14272         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14273         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14275 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
14277         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14278         "delayed_compare", "var_delayed_compare".
14279         (var_shift): New attribute.
14280         (cell_micro): Adjust.
14281         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14282         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14283         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14284         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14285         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14286         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14287         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14288         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14289         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14290         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14291         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14292         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14293         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14294         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14295         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14296         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14297         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14298         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14299         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14300         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14301         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14302         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14303         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14304         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14305         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14307         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14308         * config/rs6000/440.md (ppc440-integer): Adjust.
14309         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14310         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14311         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14312         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14313         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14314         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14315         * config/rs6000/8540.md (ppc8540_su): Adjust.
14316         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14317         cell-cmp-microcoded): Adjust.
14318         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14319         * config/rs6000/e500mc.md (e500mc_su): Adjust.
14320         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14321         e500mc64_delayed): Adjust.
14322         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14323         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14324         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14325         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14326         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14327         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14328         power6-delayed-compare, power6-var-delayed-compare): Adjust.
14329         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14330         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14331         Adjust comment.
14332         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14333         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14335 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
14337         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
14338         (bits): New mode_attr.
14339         (idiv_ldiv): Delete mode_attr.
14340         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14341         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14342         rs6000_adjust_priority, is_nonpipeline_insn,
14343         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14345         * config/rs6000/40x.md (ppc403-idiv): Adjust.
14346         * config/rs6000/440.md (ppc440-idiv): Adjust.
14347         * config/rs6000/476.md (ppc476-idiv): Adjust.
14348         * config/rs6000/601.md (ppc601-idiv): Adjust.
14349         * config/rs6000/603.md (ppc603-idiv): Adjust.
14350         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14351         ppc620-ldiv): Adjust.
14352         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14353         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14354         * config/rs6000/8540.md (ppc8540_divide): Adjust.
14355         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14356         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14357         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14358         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14359         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14360         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14361         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14362         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14363         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14364         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14365         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14366         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14367         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14368         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14369         * config/rs6000/titan.md (titan_fxu_div): Adjust.
14371 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
14373         * config/rs6000/rs6000.md (type): Delete "insert_word",
14374         "insert_dword".  Add "insert".
14375         (size): Update comment.
14376         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14377         insn_must_be_first_in_group): Adjust.
14378         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14379         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14380         *insvsi_internal6, insvdi_internal): Adjust.
14382         * config/rs6000/40x.md (ppc403-integer): Adjust.
14383         * config/rs6000/440.md (ppc440-integer): Adjust.
14384         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14385         * config/rs6000/601.md (ppc601-integer): Adjust.
14386         * config/rs6000/603.md (ppc603-integer): Adjust.
14387         * config/rs6000/6xx.md (ppc604-integer): Adjust.
14388         * config/rs6000/7450.md (ppc7450-integer): Adjust.
14389         * config/rs6000/7xx.md (ppc750-integer): Adjust.
14390         * config/rs6000/8540.md (ppc8540_su): Adjust.
14391         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14392         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14393         * config/rs6000/e500mc.md (e500mc_su): Adjust.
14394         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14395         * config/rs6000/e5500.md (e5500_sfx): Adjust.
14396         * config/rs6000/e6500.md (e6500_sfx): Adjust.
14397         * config/rs6000/mpc.md (mpccore-integer): Adjust.
14398         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14399         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14400         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14401         * config/rs6000/power7.md (power7-integer): Adjust.
14402         * config/rs6000/power8.md (power8-1cyc): Adjust.
14403         * config/rs6000/rs64.md (rs64a-integer): Adjust.
14404         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14406 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
14408         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
14409         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14410         (size): New attribute.
14411         (dot): New attribute.
14412         (cell_micro): Adjust.
14413         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14414         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14415         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14416         umuldi3_highpart): Adjust.
14417         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14418         rs6000_adjust_priority, is_nonpipeline_insn,
14419         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14421         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14422         ppc405-imul3): Adjust.
14423         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14424         * config/rs6000/476.md (ppc476-imul): Adjust.
14425         * config/rs6000/601.md (ppc601-imul): Adjust.
14426         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14427         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14428         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14429         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14430         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14431         Adjust.
14432         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14433         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14434         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14435         cell-imul): Adjust.
14436         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14437         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14438         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14439         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14440         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14441         * config/rs6000/mpc.md (mpccore-imul): Adjust.
14442         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14443         power4-lmul, power4-imul, power4-imul3): Adjust.
14444         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14445         power5-lmul, power5-imul, power5-imul3): Adjust.
14446         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14447         power6-lmul, power6-imul, power6-imul3): Adjust.
14448         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14449         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14451         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14452         rs64a-lmul): Adjust.
14453         * config/rs6000/titan.md (titan_imul): Adjust.
14455 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
14457         * config/rs6000/rs6000.md (type): Add new value "halfmul".
14458         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14459         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14460         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14461         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14462         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14463         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14464         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14465         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14466         * config/rs6000/titan.md: Delete nonsensical comment.
14467         (titan_imul): Add type imul3.
14468         (titan_mulhw): Remove type imul3; add type halfmul.
14470 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
14472         * config/rs6000/rs6000.md (type): Reorder, reformat.
14474 2014-05-23  Martin Jambor  <mjambor@suse.cz>
14476         PR tree-optimization/53787
14477         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14478         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14479         analysis_done, update all uses.
14480         * ipa-prop.c: Include domwalk.h
14481         (param_analysis_info): Removed.
14482         (param_aa_status): New type.
14483         (ipa_bb_info): Likewise.
14484         (func_body_info): Likewise.
14485         (ipa_get_bb_info): New function.
14486         (aa_overwalked): Likewise.
14487         (find_dominating_aa_status): Likewise.
14488         (parm_bb_aa_status_for_bb): Likewise.
14489         (parm_preserved_before_stmt_p): Changed to use new param AA info.
14490         (load_from_unmodified_param): Accept func_body_info as a parameter
14491         instead of parms_ainfo.
14492         (parm_ref_data_preserved_p): Changed to use new param AA info.
14493         (parm_ref_data_pass_through_p): Likewise.
14494         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
14495         (compute_complex_assign_jump_func): Changed to use new param AA info.
14496         (compute_complex_ancestor_jump_func): Likewise.
14497         (ipa_compute_jump_functions_for_edge): Likewise.
14498         (ipa_compute_jump_functions): Removed.
14499         (ipa_compute_jump_functions_for_bb): New function.
14500         (ipa_analyze_indirect_call_uses): Likewise, moved variable
14501         declarations down.
14502         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14503         and info, moved variable declarations down.
14504         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14505         node and info.
14506         (ipa_analyze_stmt_uses): Likewise.
14507         (ipa_analyze_params_uses): Removed.
14508         (ipa_analyze_params_uses_in_bb): New function.
14509         (ipa_analyze_controlled_uses): Likewise.
14510         (free_ipa_bb_info): Likewise.
14511         (analysis_dom_walker): New class.
14512         (ipa_analyze_node): Handle node-specific forbidden analysis,
14513         initialize and free func_body_info, use dominator walker.
14514         (ipcp_modif_dom_walker): New class.
14515         (ipcp_transform_function): Create and free func_body_info, use
14516         ipcp_modif_dom_walker, moved a lot of functionality there.
14518 2014-05-23  Marek Polacek  <polacek@redhat.com>
14519             Jakub Jelinek  <jakub@redhat.com>
14521         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14522         * gcc.c (sanitize_spec_function): Likewise.
14523         * convert.c (convert_to_integer): Include "ubsan.h".  Add
14524         floating-point to integer instrumentation.
14525         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14526         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14527         SANITIZE_NONDEFAULT.
14528         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14529         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14530         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14531         * ubsan.c: Include "realmpfr.h" and "dfp.h".
14532         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14533         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14534         float/double/long double.
14535         (ubsan_instrument_float_cast): New function.
14536         * ubsan.h (ubsan_instrument_float_cast): Declare.
14538 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
14540         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14541         predicate.
14542         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
14543         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14544         Adjust for tailcalling through registers.
14545         * config/aarch64/aarch64.h (enum reg_class): New caller save
14546         register class.
14547         (REG_CLASS_NAMES): Likewise.
14548         (REG_CLASS_CONTENTS): Likewise.
14549         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14550         Allow tailcalling without decls.
14552 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
14554         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14555         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
14557         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
14558         gsi, and variables v_* to v*.
14560 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
14562         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
14564 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
14566         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
14567         * omp-low.c: Update accordingly.
14569         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
14570         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
14571         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
14572         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
14573         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
14574         GF_OMP_TARGET_KIND_UPDATE.
14576         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14577         Explicitly enumerate the expected region types.
14579 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
14581         PR other/56955
14582         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
14583         documentation; the old documentation didn't clearly state the
14584         constraints on the contents of the pointed-to storage.
14586 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14588         Fix bootstrap error on ia64
14589         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
14590         Return default value.
14592 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14594         PR tree-optimization/54733
14595         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
14596         (CMPNOP): Define.
14597         (find_bswap_or_nop_load): New.
14598         (find_bswap_1): Renamed to ...
14599         (find_bswap_or_nop_1): This. Also add support for memory source.
14600         (find_bswap): Renamed to ...
14601         (find_bswap_or_nop): This. Also add support for memory source and
14602         detection of bitwise operations equivalent to load in target
14603         endianness.
14604         (execute_optimize_bswap): Likewise. Also move its leading comment back
14605         in place and split statement transformation into ...
14606         (bswap_replace): This.
14608 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
14610         PR rtl-optimization/61215
14611         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
14612         simplify_gen_subreg until final substitution.
14614 2014-05-23  Alan Modra  <amodra@gmail.com>
14616         PR target/61231
14617         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
14618         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
14619         Use "Y" constraint rather than "m".
14621 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
14623         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
14624         define.
14625         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
14626         New function declaration.
14627         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
14628         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
14629         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
14630         (aarch64_init_builtins) : Initialize builtins
14631         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14632         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14633         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
14634         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
14635         and __builtins_aarch64_set_fpsr.
14636         (aarch64_atomic_assign_expand_fenv): New function.
14637         * config/aarch64/aarch64.md (set_fpcr): New pattern.
14638         (get_fpcr) : Likewise.
14639         (set_fpsr) : Likewise.
14640         (get_fpsr) : Likewise.
14641         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
14642          and UNSPECV_SET_FPSR.
14643         * doc/extend.texi (AARCH64 Built-in Functions) : Document
14644         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14645         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14647 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
14649         PR rtl-optimization/60969
14650         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
14651         constraints.  Set up mem cost for NO_REGS case.
14653 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
14655         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
14657 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
14659         * config/darwin.c: Include "lto-section-names.h".
14660         (LTO_SEGMENT_NAME): Don't define.
14661         * config/i386/winnt.c: Include "lto-section-names.h".
14662         * lto-streamer.c: Include "lto-section-names.h".
14663         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
14664         * lto-wrapper.c: Include "lto-section-names.h".
14665         (LTO_SECTION_NAME_PREFIX): Don't define.
14666         * lto-section-names.h: New file.
14667         * cgraphunit.c: Include "lto-section-names.h".
14669 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
14671         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
14673 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
14675         PR target/61208
14676         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
14678 2014-05-22  Nick Clifton  <nickc@redhat.com>
14680         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
14682 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
14684         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
14685         -> (T)A transformation to integer types.
14687 2014-05-22  Teresa Johnson  <tejohnson@google.com>
14689         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
14690         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
14691         (gcov_rewrite): Use gcov_nonruntime_assert.
14692         (gcov_open): Ditto.
14693         (gcov_write_words): Ditto.
14694         (gcov_write_length): Ditto.
14695         (gcov_read_words): Use gcov_nonruntime_assert, and remove
14696         gcc_assert from IN_LIBGCOV code.
14697         (gcov_read_summary): Use gcov_error to flag profile corruption.
14698         (gcov_sync): Use gcov_nonruntime_assert.
14699         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
14700         (gcov_histo_index): Use gcov_nonruntime_assert.
14701         (static void gcov_histogram_merge): Ditto.
14702         (compute_working_sets): Ditto.
14703         * gcov-io.h (gcov_nonruntime_assert): Define.
14704         (gcov_error): Define for !IN_LIBGCOV
14706 2014-05-22  Richard Biener  <rguenther@suse.de>
14708         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14709         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
14710         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
14711         and deallocation site.
14712         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14713         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
14714         passing through the incoming points-to set.
14715         (handle_lhs_call): Use flags argument instead of recomputing it.
14716         (find_func_aliases_for_call): Call handle_lhs_call with proper
14717         call return flags.
14719 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
14721         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
14722         all padding bits in REAL_VALUE_TYPE are cleared.
14724 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14726         Cleanup and improve multipass_dfa_lookahead_guard
14727         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
14728         (core2i7_first_cycle_multipass_begin,)
14729         (core2i7_first_cycle_multipass_issue,)
14730         (core2i7_first_cycle_multipass_backtrack): Update signature.
14731         * config/ia64/ia64.c
14732         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
14733         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
14734         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
14735         hook definition.
14736         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
14737         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
14738         values.
14739         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
14740         return values.
14741         * doc/tm.texi: Regenerate.
14742         * doc/tm.texi.in
14743         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
14744         * haifa-sched.c (ready_try): Make signed to allow negative values.
14745         (rebug_ready_list_1): Update.
14746         (choose_ready): Simplify.
14747         (sched_extend_ready_list): Update.
14749 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14751         Remove IA64 speculation tweaking flags
14752         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
14753         speculation tuning flags.
14754         (msched-prefer-non-data-spec-insns,)
14755         (msched-prefer-non-control-spec-insns): Obsolete options.
14756         * haifa-sched.c (choose_ready): Remove handling of
14757         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14758         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
14759         and PREFER_NON_DATA_SPEC.
14760         * sel-sched.c (process_spec_exprs): Remove handling of
14761         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14763 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14765         Improve scheduling debug output
14766         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
14767         (advance_one_cycle): Update.
14768         (schedule_insn, queue_to_ready): Add debug printouts.
14769         (debug_ready_list_1): New static function.
14770         (debug_ready_list): Update.
14771         (max_issue): Add debug printouts.
14772         (dump_insn_stream): New static function.
14773         (schedule_block): Use it.  Also better indent printouts.
14775 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14777         Fix sched_insn debug counter
14778         * haifa-sched.c (schedule_insn): Update.
14779         (struct haifa_saved_data): Add nonscheduled_insns_begin.
14780         (save_backtrack_point, restore_backtrack_point): Update.
14781         (first_nonscheduled_insn): New static function.
14782         (queue_to_ready, choose_ready): Use it.
14783         (schedule_block): Init nonscheduled_insns_begin.
14784         (sched_emit_insn): Update.
14787 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
14789         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
14790         to GENERAL_REGS.
14791         (aarch64_secondary_reload) : LikeWise.
14792         (aarch64_class_max_nregs) : Remove CORE_REGS.
14793         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
14794         (REG_CLASS_NAMES) : Likewise.
14795         (REG_CLASS_CONTENTS) : LikeWise.
14796         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
14798 2014-05-21  Guozhi Wei  <carrot@google.com>
14800         PR target/61202
14801         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
14802         constraint.
14803         (vqdmulhq_n_s16): Likewise.
14805 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
14807         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
14809 2014-05-21  Marek Polacek  <polacek@redhat.com>
14811         PR sanitizer/61272
14812         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
14814 2014-05-21  Martin Jambor  <mjambor@suse.cz>
14816         * doc/invoke.texi (Optimize Options): Document parameters
14817         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
14818         ipa-cp-array-index-hint-bonus.
14820 2014-05-21  Mark Wielaard  <mjw@redhat.com>
14822         PR debug/16063
14823         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
14824         version >= 3 or not strict DWARF.
14825         * langhooks.h (struct lang_hooks_for_types): Add
14826         enum_underlying_base_type.
14827         * langhooks.c (lhd_enum_underlying_base_type): New function.
14828         * gcc/langhooks.h (struct lang_hooks_for_types): Add
14829         enum_underlying_base_type.
14830         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
14831         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
14832         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
14834 2014-05-21  Richard Biener  <rguenther@suse.de>
14836         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
14838 2014-05-21  John Marino  <gnugcc@marino.st>
14840         * config.gcc (*-*-dragonfly*): New target.
14841         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
14842         * configure: Regenerate.
14843         * config/dragonfly-stdint.h: New.
14844         * config/dragonfly.h: New.
14845         * config/dragonfly.opt: New.
14846         * config/i386/dragonfly.h: New.
14847         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
14849 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
14851         * tree.def (VOID_CST): New.
14852         * tree-core.h (TI_VOID): New.
14853         * tree.h (void_node): New.
14854         * tree.c (tree_node_structure_for_code, tree_code_size)
14855         (iterative_hash_expr): Handle VOID_CST.
14856         (build_common_tree_nodes): Initialize void_node.
14858 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
14860         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
14861         functions.
14862         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
14864         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
14865         more places.
14867         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
14868         flag_reorder_blocks_and_partition.
14869         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
14871 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
14873         PR target/54236
14874         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
14875         constraints.
14876         (*addc_r_t): Add new insn_and_split.
14878 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
14880         PR middle-end/61252
14881         * omp-low.c (handle_simd_reference): New function.
14882         (lower_rec_input_clauses): Use it.  Defer adding reference
14883         initialization even for reduction without placeholder if in simd,
14884         handle it properly later on.
14886 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
14888         PR tree-optimization/60899
14889         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
14890         assume all static symbols will have definition wile parsing and
14891         check the do have definition later in compilation; check that
14892         variable referring symbol will be output before concluding that
14893         reference is safe; be conservative for referring local statics;
14894         be more precise about when comdat is output in other partition.
14896 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
14898         PR bootstrap/60984
14899         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
14900         parameter.
14901         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
14902         (ipa_inline): Loop inline_to_all_callers until no more aliases
14903         are removed.
14905 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
14907         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
14908         set writeonly flag only for vars actually written to.
14910 2014-05-20  Dehao Chen  <dehao@google.com>
14912         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
14913         and callee count to get clone count.
14914         * tree-inline.c (expand_call_inline): Use callee count instead of bb
14915         count in copy_body.
14917 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
14919         PR rtl-optimization/61243
14920         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
14922 2014-05-20  Xinliang David Li  <davidxl@google.com>
14924         * cgraphunit.c (walk_polymorphic_call_targets): Add
14925         dbgcnt and fopt-info support.
14926         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
14927         * ipa-devirt.c (ipa_devirt): Ditto.
14928         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
14929         * ipa.c (walk_polymorphic_call_targets): Ditto.
14930         * gimple-fold.c (fold_gimple_assign): Ditto.
14931         (gimple_fold_call): Ditto.
14932         * dbgcnt.def: New counter.
14934 2014-05-20  DJ Delorie  <dj@redhat.com>
14936         * config/msp430/msp430.md (split): Don't allow subregs when
14937         splitting SImode adds.
14938         (andneghi): Fix subtraction logic.
14939         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
14941 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
14943         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
14944         symbols.
14945         * except.c (switch_to_exception_section, resolve_unique_section,
14946         get_named_text_section, default_function_rodata_section,
14947         align_variable, get_block_for_decl, default_section_type_flags):
14948         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
14949         * symtab.c (symtab_add_to_same_comdat_group,
14950         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
14951         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
14952         Likewise.
14953         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
14954         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
14955         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
14956         (c6x_function_in_section_p): Likewise.
14957         * config/darwin.c (machopic_select_section): Likewise.
14958         * config/arm/arm.c (arm_function_in_section_p): Likewise.
14959         * config/mips/mips.c (mips_function_rodata_section): Likewise.
14960         * config/mep/mep.c (mep_select_section): LIkewise.
14961         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
14963 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
14965         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
14966         EH region of calls to pure functions that can throw an exception.
14967         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
14968         (copy_reference_ops_from_call): Also copy the EH region of the call if
14969         it can throw an exception.
14971 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14973         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
14974         nested VEC_SELECTs that are inverses of each other.
14976 2014-05-20  Richard Biener  <rguenther@suse.de>
14978         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
14979         (extract_and_process_scc_for_name): not here.
14980         (cond_dom_walker::before_dom_children): Only process
14981         stmts that end the BB in interesting ways.
14982         (run_scc_vn): Mark param uses as visited.
14984 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14986         * config/arm/arm.md (arith_shiftsi): Do not predicate for
14987         arm_restrict_it.
14989 2014-05-20  Nick Clifton  <nickc@redhat.com>
14991         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
14992         (msp430_gimplify_va_arg_expr): New function.
14993         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
14995         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
14996         operand 0 in order to prevent confusion about the number of
14997         registers involved.
14999 2014-05-20  Richard Biener  <rguenther@suse.de>
15001         PR tree-optimization/61221
15002         * tree-ssa-pre.c (el_to_update): Remove.
15003         (eliminate_dom_walker::before_dom_children): Handle released
15004         VDEFs by value-numbering them to the associated VUSE.  Update
15005         stmt immediately for substituted call address.
15006         (eliminate): Remove delayed stmt updating code.
15007         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15008         possibly late re-numbered vuses.
15009         (vn_reference_lookup_2): Adjust.
15010         (vn_reference_lookup_pieces): Likewise.
15011         (vn_reference_lookup): Likewise.
15013 2014-05-20  Richard Biener  <rguenther@suse.de>
15015         * config.gcc: Remove need_64bit_hwint.
15016         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15017         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15018         it to be true.
15019         * config.in: Regenerate.
15020         * configure: Likewise.
15022 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
15024         * doc/extend.texi: Create Label Attributes section,
15025         move all label attributes into it and reference it.
15027 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
15029         * arm.c (thumb1_reorg): When scanning backwards skip anything
15030         that's not a proper insn.
15032 2014-05-19  Richard Biener  <rguenther@suse.de>
15034         PR tree-optimization/61221
15035         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15036         Do nothing for unreachable blocks.
15037         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15038         Improve unreachability detection.
15040 2014-05-19  Richard Biener  <rguenther@suse.de>
15042         PR tree-optimization/61209
15043         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15045 2014-05-19  Nick Clifton  <nickc@redhat.com>
15047         * except.c (init_eh): Fix computation of builtin setjmp buffer
15048         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15050 2014-05-19  Richard Biener  <rguenther@suse.de>
15052         PR tree-optimization/61184
15053         * tree-vrp.c (is_negative_overflow_infinity): Use
15054         TREE_OVERFLOW_P and do that check first.
15055         (is_positive_overflow_infinity): Likewise.
15056         (is_overflow_infinity): Likewise.
15057         (vrp_operand_equal_p): Properly treat operands with
15058         differing overflow as not equal.
15060 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
15062         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15063         shift simplification where it was intended.
15065 2014-05-19  Christian Bruel  <christian.bruel@st.com>
15067         PR target/61195
15068         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15070 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
15072         PR target/61084
15073         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15074         than wide_int.
15076 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
15078         * reg-notes.def (CROSSING_JUMP): Likewise.
15079         * rtl.h (rtx_def): Update comment for jump flag.
15080         (CROSSING_JUMP_P): Define.
15081         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15082         of a REG_CROSSING_JUMP note.
15083         * cfghooks.c (tidy_fallthru_edges): Likewise.
15084         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15085         * emit-rtl.c (try_split): Likewise.
15086         * haifa-sched.c (sched_create_recovery_edges): Likewise.
15087         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15088         * jump.c (redirect_jump_2): Likewise.
15089         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15090         (relax_delay_slots): Likewise.
15091         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15092         (bbit_di): Likewise.
15093         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15094         * config/sh/sh.md (jump_compact): Likewise.
15095         * bb-reorder.c (rotate_loop): Likewise.
15096         (pass_duplicate_computed_gotos::execute): Likewise.
15097         (add_reg_crossing_jump_notes): Rename to...
15098         (update_crossing_jump_flags): ...this.
15099         (pass_partition_blocks::execute): Update accordingly.
15101 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
15103         * tree.h: Remove extraneous template <>.
15105 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
15107         * ipa.c (symtab_remove_unreachable_nodes): Remove
15108         symbol from comdat group if its body was eliminated.
15109         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15110         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15111         (symtab_unregister_node): ... this one.
15112         (verify_symtab_base): More strict checking of comdats.
15113         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15115 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
15117         * tree-pass.h (make_pass_ipa_comdats): New pass.
15118         * timevar.def (TV_IPA_COMDATS): New timevar.
15119         * passes.def (pass_ipa_comdats): Add.
15120         * Makefile.in (OBJS): Add ipa-comdats.o
15121         * ipa-comdats.c: New file.
15123 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
15125         * ipa.c (update_visibility_by_resolution_info): New function.
15126         (function_and_variable_visibility): Use it.
15128 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
15130         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15131         New functions.
15132         (FOR_EACH_DEFINED_SYMBOL): New macro.
15133         (varpool_first_static_initializer, varpool_next_static_initializer,
15134         varpool_first_defined_variable, varpool_next_defined_variable):
15135         Fix comments.
15136         (symtab_in_same_comdat_p): Correctly deal with inline functions.
15138 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
15140         * ggc-page.c (ggc_handle_finalizers): Add comment.
15142 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
15144         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15145         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15146         (ggc_internal_cleared_alloc): Likewise.
15147         * ggc-page.c (finalizer): New class.
15148         (vec_finalizer): Likewise.
15149         (globals::finalizers): New member.
15150         (globals::vec_finalizers): Likewise.
15151         (ggc_internal_alloc): Record the finalizer if any for the block being
15152         allocated.
15153         (ggc_handle_finalizers): New function.
15154         (ggc_collect): Call ggc_handle_finalizers.
15155         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15156         finalizer.
15157         (ggc_internal_cleared_alloc): Likewise.
15158         (finalize): New function.
15159         (need_finalization_p): Likewise.
15160         (ggc_alloc): Install the type's destructor as the finalizer if it
15161         might do something.
15162         (ggc_cleared_alloc): Likewise.
15163         (ggc_vec_alloc): Likewise.
15164         (ggc_cleared_vec_alloc): Likewise.
15166 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
15168         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15170 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
15172         * alias.c (record_alias_subset): Adjust.
15173         * bitmap.c (bitmap_element_allocate): Likewise.
15174         (bitmap_gc_alloc_stat): Likewise.
15175         * cfg.c (init_flow): Likewise.
15176         (alloc_block): Likewise.
15177         (unchecked_make_edge): Likewise.
15178         * cfgloop.c (alloc_loop): Likewise.
15179         (flow_loops_find): Likewise.
15180         (rescan_loop_exit): Likewise.
15181         * cfgrtl.c (init_rtl_bb_info): Likewise.
15182         * cgraph.c (insert_new_cgraph_node_version): Likewise.
15183         (cgraph_allocate_node): Likewise.
15184         (cgraph_create_edge_1): Likewise.
15185         (cgraph_allocate_init_indirect_info): Likewise.
15186         * cgraphclones.c (cgraph_clone_edge): Likewise.
15187         * cgraphunit.c (add_asm_node): Likewise.
15188         (init_lowered_empty_function): Likewise.
15189         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15190         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15191         (alpha_use_linkage): Likewise.
15192         * config/arc/arc.c (arc_init_machine_status): Likewise.
15193         * config/arm/arm.c (arm_init_machine_status): Likewise.
15194         * config/avr/avr.c (avr_init_machine_status): Likewise.
15195         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15196         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15197         * config/cris/cris.c (cris_init_machine_status): Likewise.
15198         * config/darwin.c (machopic_indirection_name): Likewise.
15199         (darwin_build_constant_cfstring): Likewise.
15200         (darwin_enter_string_into_cfstring_table): Likewise.
15201         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15202         * config/frv/frv.c (frv_init_machine_status): Likewise.
15203         * config/i386/i386.c (get_dllimport_decl): Likewise.
15204         (ix86_init_machine_status): Likewise.
15205         (assign_386_stack_local): Likewise.
15206         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15207         (i386_pe_maybe_record_exported_symbol): Likewise.
15208         (i386_pe_record_stub): Likewise.
15209         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15210         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15211         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15212         (m32c_note_pragma_address): Likewise.
15213         * config/mep/mep.c (mep_init_machine_status): Likewise.
15214         (mep_note_pragma_flag): Likewise.
15215         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15216         (mips16_local_alias): Likewise.
15217         (mips_init_machine_status): Likewise.
15218         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15219         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15220         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15221         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15222         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15223         * config/pa/pa.c (pa_init_machine_status): Likewise.
15224         (pa_get_deferred_plabel): Likewise.
15225         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15226         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15227         (rs6000_init_machine_status): Likewise.
15228         (output_toc): Likewise.
15229         * config/s390/s390.c (s390_init_machine_status): Likewise.
15230         * config/score/score.c (score_output_external): Likewise.
15231         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15232         * config/spu/spu.c (spu_init_machine_status): Likewise.
15233         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15234         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15235         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15236         * coverage.c (coverage_end_function): Likewise.
15237         * dbxout.c (dbxout_init): Likewise.
15238         * doc/gty.texi: Don't mention variable_size attribute.
15239         * dwarf2cfi.c (new_cfi): Adjust.
15240         (new_cfi_row): Likewise.
15241         (copy_cfi_row): Likewise.
15242         (create_cie_data): Likewise.
15243         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15244         (new_loc_descr): Likewise.
15245         (find_AT_string_in_table): Likewise.
15246         (add_addr_table_entry): Likewise.
15247         (new_die): Likewise.
15248         (add_var_loc_to_decl): Likewise.
15249         (clone_die): Likewise.
15250         (clone_as_declaration): Likewise.
15251         (break_out_comdat_types): Likewise.
15252         (new_loc_list): Likewise.
15253         (add_loc_descr_to_each): Likewise.
15254         (add_location_or_const_value_attribute): Likewise.
15255         (add_linkage_name): Likewise.
15256         (lookup_filename): Likewise.
15257         (dwarf2out_var_location): Likewise.
15258         (new_line_info_table): Likewise.
15259         (dwarf2out_init): Likewise.
15260         (mem_loc_descriptor): Likewise.
15261         (loc_descriptor): Likewise.
15262         (add_const_value_attribute): Likewise.
15263         (tree_add_const_value_attribute): Likewise.
15264         (comp_dir_string): Likewise.
15265         (dwarf2out_vms_debug_main_pointer): Likewise.
15266         (string_cst_pool_decl): Likewise.
15267         * emit-rtl.c (set_mem_attrs): Likewise.
15268         (get_reg_attrs): Likewise.
15269         (start_sequence): Likewise.
15270         (init_emit): Likewise.
15271         (init_emit_regs): Likewise.
15272         * except.c (init_eh_for_function): Likewise.
15273         (gen_eh_region): Likewise.
15274         (gen_eh_region_catch): Likewise.
15275         (gen_eh_landing_pad): Likewise.
15276         (add_call_site): Likewise.
15277         * function.c (add_frame_space): Likewise.
15278         (insert_temp_slot_address): Likewise.
15279         (assign_stack_temp_for_type): Likewise.
15280         (get_hard_reg_initial_val): Likewise.
15281         (allocate_struct_function): Likewise.
15282         (prepare_function_start): Likewise.
15283         (types_used_by_var_decl_insert): Likewise.
15284         * gengtype.c (variable_size_p): Remove function.
15285         (enum alloc_quantity): Remove enum.
15286         (write_typed_alloc_def): Remove function.
15287         (write_typed_struct_alloc_def): Likewise.
15288         (write_typed_typedef_alloc_def): Likewise.
15289         (write_typed_alloc_defns): Likewise.
15290         (main): Adjust.
15291         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15292         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15293         * ggc.h (ggc_alloc): new function.
15294         (ggc_cleared_alloc): Likewise.
15295         (ggc_vec_alloc): Template on type of vector element, and remove
15296         element size argument.
15297         (ggc_cleared_vec_alloc): Likewise.
15298         * gimple.c (gimple_build_omp_for): Adjust.
15299         (gimple_copy): Likewise.
15300         * ipa-cp.c (get_replacement_map): Likewise.
15301         (find_aggregate_values_for_callers_subset): Likewise.
15302         (known_aggs_to_agg_replacement_list): Likewise.
15303         * ipa-devirt.c (get_odr_type): Likewise.
15304         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15305         (read_agg_replacement_chain): Likewise.
15306         * loop-iv.c (get_simple_loop_desc): Likewise.
15307         * lto-cgraph.c (input_node_opt_summary): Likewise.
15308         * lto-section-in.c (lto_new_in_decl_state): Likewise.
15309         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15310         (input_eh_region): Likewise.
15311         (input_eh_lp): Likewise.
15312         (input_cfg): Likewise.
15313         * optabs.c (set_optab_libfunc): Likewise.
15314         (init_tree_optimization_optabs): Likewise.
15315         (set_conv_libfunc): Likewise.
15316         * passes.c (do_per_function_toporder): Likewise.
15317         * rtl.h: Don't use variable_size gty attribute.
15318         * sese.c (if_region_set_false_region): Adjust.
15319         * stringpool.c (gt_pch_save_stringpool): Likewise.
15320         * target-globals.c (save_target_globals): Likewise.
15321         * toplev.c (general_init): Likewise.
15322         * trans-mem.c (record_tm_replacement): Likewise.
15323         (split_bb_make_tm_edge): Likewise.
15324         * tree-cfg.c (move_sese_region_to_fn): Likewise.
15325         * tree-data-ref.h (lambda_vector_new): Likewise.
15326         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15327         * tree-iterator.c (tsi_link_before): Likewise.
15328         (tsi_link_after): Likewise.
15329         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15330         * tree-ssa-loop-niter.c (record_estimate): Likewise.
15331         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15332         * tree-ssa-operands.h: Don't use variable_size gty attribute.
15333         * tree-ssa.c (init_tree_ssa): Adjust.
15334         * tree-ssanames.c (set_range_info): Likewise.
15335         (get_ptr_info): Likewise.
15336         (duplicate_ssa_name_ptr_info): Likewise.
15337         (duplicate_ssa_name_range_info): Likewise.
15338         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15339         (unpack_ts_fixed_cst_value_fields): Likewise.
15340         * tree.c (build_fixed): Likewise.
15341         (build_real): Likewise.
15342         (build_string): Likewise.
15343         (decl_priority_info): Likewise.
15344         (decl_debug_expr_insert): Likewise.
15345         (decl_value_expr_insert): Likewise.
15346         (decl_debug_args_insert): Likewise.
15347         (type_hash_add): Likewise.
15348         (build_omp_clause): Likewise.
15349         * ubsan.c (decl_for_type_insert): Likewise.
15350         * varasm.c (get_unnamed_section): Likewise.
15351         (get_noswitch_section): Likewise.
15352         (get_section): Likewise.
15353         (get_block_for_section): Likewise.
15354         (create_block_symbol): Likewise.
15355         (build_constant_desc): Likewise.
15356         (create_constant_pool): Likewise.
15357         (force_const_mem): Likewise.
15358         (record_tm_clone_pair): Likewise.
15359         * varpool.c (varpool_create_empty_node): Likewise.
15361 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
15363         * dwarf2out.c (tree_add_const_value_attribute): Call
15364         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15365         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15366         instead of ggc_internal_<x>alloc_stat.
15367         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15368         (ggc_realloc): Likewise.
15369         * ggc-none.c (ggc_internal_alloc): Likewise.
15370         (ggc_internal_cleared_alloc): Likewise.
15371         * ggc-page.c: Likewise.
15372         * ggc.h (ggc_internal_alloc_stat): Likewise.
15373         (ggc_internal_alloc): Remove macro.
15374         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15375         (ggc_internal_cleared_alloc): Remove macro.
15376         (GGC_RESIZEVEC): Adjust.
15377         (ggc_resizevar): Remove macro.
15378         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15379         (ggc_internal_cleared_vec_alloc_stat): Likewise.
15380         (ggc_internal_vec_cleared_alloc): Remove macro.
15381         (ggc_alloc_atomic_stat): Drop _stat suffix.
15382         (ggc_alloc_atomic): Remove macro.
15383         (ggc_alloc_cleared_atomic): Remove macro.
15384         (ggc_alloc_string_stat): Drop _stat suffix.
15385         (ggc_alloc_string): Remove macro.
15386         (ggc_alloc_rtx_def_stat): Adjust.
15387         (ggc_alloc_tree_node_stat): Likewise.
15388         (ggc_alloc_cleared_tree_node_stat): Likewise.
15389         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15390         (ggc_alloc_cleared_simd_clone_stat): Likewise.
15391         * gimple.c (gimple_build_omp_for): Likewise.
15392         (gimple_copy): Likewise.
15393         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15394         * toplev.c (realloc_for_line_map): Adjust.
15395         * tree-data-ref.h (lambda_vector_new): Likewise.
15396         * tree-phinodes.c (allocate_phi_node): Likewise.
15397         * tree.c (grow_tree_vec_stat): Likewise.
15398         * vec.h (va_gc::reserve): Adjust.
15400 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
15402         * config/microblaze/microblaze.c (break_handler): New Declaration.
15403         (microblaze_break_function_p,microblaze_is_break_handler): New.
15404         (compute_frame_size): Use microblaze_break_function_p.
15405         Add the test of break_handler.
15406         (microblaze_function_prologue) : Add the test of variable
15407         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
15408         (microblaze_function_epilogue) : Add the test of break_handler.
15409         (microblaze_globalize_label) : Add the test of break_handler.
15410         Check the name by BREAK_HANDLER_NAME.
15412         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15414         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15415         microblaze_is_break_handler test.
15416         (call_internal1,call_value_intern): Use microblaze_break_function_p.
15417         Use SYMBOL_REF_DECL.
15419         * config/microblaze/microblaze-protos.h
15420         (microblaze_break_function_p,microblaze_is_break_handler):
15421         New Declaration.
15423         * doc/extend.texi (MicroBlaze break_handler Functions): Document
15424         new MicroBlaze break_handler functions.
15426 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
15428         * doc/extend.texi (Size of an asm): Move node text according
15429         to its @menu entry position.
15431 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
15433         PR tree-optimization/61140
15434         PR tree-optimization/61150
15435         PR tree-optimization/61197
15436         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15438 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
15440         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
15442 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
15444         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15445         __SIZEOF_INT128__ is defined.
15447 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
15449         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15450         (rs6000_delegitimize_address): Use it.
15452 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
15454         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15455         inplace argument.  Store the new address in the original MEM when true.
15456         * emit-rtl.c (change_address_1): Likewise.
15457         (adjust_address_1, adjust_automodify_address_1, offset_address):
15458         Update accordingly.
15459         * rtl.h (plus_constant): Add an inplace argument.
15460         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
15461         when true.  Avoid generating (plus X (const_int 0)).
15462         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15463         in-place.  Pass true to plus_constant.
15464         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15466 2014-05-16  Dehao Chen  <dehao@google.com>
15468         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15470 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
15472         PR target/54089
15473         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15474         patterns.
15475         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15477 2014-05-16  Dehao Chen  <dehao@google.com>
15479         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15480         optimize_function_for_size_p.
15481         * regs.h (REG_FREQ_FROM_BB): Likewise.
15483 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
15485         PR target/51244
15486         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15487         negt_reg_operand cases.
15488         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15489         predicate.
15490         * config/sh/predicates.md (cbranch_treg_value): Simplify.
15492 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
15494         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15495         target variants.
15497 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
15499         Revert:
15500         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
15502         * tree-cfg.c (dump_function_to_file): Dump the return type of
15503         functions, in a line to itself before the function body, mimicking
15504         the layout of a C function.
15506 2014-05-16  Dehao Chen  <dehao@google.com>
15508         * cfghooks.c (make_forwarder_block): Use direct computation to
15509         get fall-through edge's count and frequency.
15511 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
15513         * config/arc/arc.c (arc_init): Fix typo in error message.
15514         * config/i386/i386.c (ix86_expand_builtin): Likewise.
15515         (split_stack_prologue_scratch_regno): Likewise.
15516         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15517         word from error message.
15519 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15521         * ira-costs.c: Fix typo in comment.
15523 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
15525         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15527 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
15529         * varpool.c (dump_varpool_node): Dump write-only flag.
15530         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15531         write-only flag.
15532         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15533         write-only variables.
15534         * ipa.c (process_references): New function.
15535         (set_readonly_bit): New function.
15536         (set_writeonly_bit): New function.
15537         (clear_addressable_bit): New function.
15538         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15539         fix handling of aliases.
15540         * cgraph.h (struct varpool_node): Add writeonly flag.
15542 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
15544         PR rtl-optimization/60969
15545         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15546         Calculate costs for this case.
15548 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
15550         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
15551         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
15553 2014-05-16  Richard Biener  <rguenther@suse.de>
15555         PR tree-optimization/61194
15556         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
15557         bool patterns ending in a COND_EXPR.
15559 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
15561         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
15563 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
15565         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
15566         where we were unable to cost an RTX.
15568 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
15570         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
15571         HIGH, LO_SUM.
15573 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
15574             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
15576         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
15578 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
15579             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
15581         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
15582         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
15584 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
15585             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
15587         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
15588         operators.
15590 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
15591             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
15593         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15594         DIV/MOD.
15596 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
15597             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
15599         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
15600         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
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): Improve costs for
15606         rotates and shifts.
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
15612         ZERO_EXTEND and SIGN_EXTEND better.
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 cost for
15618         logical operations.
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_costs): Use address
15624         costs when costing loads and stores to memory.
15626 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
15627             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
15629         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
15630         for SET RTX.
15632 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
15634         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
15636 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
15637             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
15639         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
15640         to...
15641         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
15642         well formed.
15643         (aarch64_rtx_mult_cost): New.
15644         (aarch64_rtx_costs): Use it, refactor as appropriate.
15646 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
15647             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
15649         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
15650         emit instructions, return number of instructions which would
15651         be emitted.
15652         (aarch64_add_constant): Update call to aarch64_build_constant.
15653         (aarch64_output_mi_thunk): Likewise.
15654         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
15655         a CONST_DOUBLE.
15657 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
15659         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
15660         (TARGET_RTX_COSTS): Call it.
15662 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
15664         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
15665         (cortexa57_vector_cost): Likewise.
15666         (cortexa57_tunings): Use them.
15668 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
15670         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
15671         (cpu_addrcost_table): Use it.
15672         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
15673         (aarch64_address_cost): Rewrite using aarch64_classify_address,
15674         move it.
15676 2014-05-16  Richard Biener  <rguenther@suse.de>
15678         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
15679         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
15680         (visit_phi): Ignore edges marked as not executable.
15681         (class cond_dom_walker): New.
15682         (cond_dom_walker::before_dom_children): Value-number
15683         control statements and mark successor edges as not
15684         executable if possible.
15685         (run_scc_vn): First walk all control statements in
15686         dominator order, marking edges as not executable.
15687         * tree-inline.c (copy_edges_for_bb): Be not confused
15688         about random edge flags.
15690 2014-05-16  Richard Biener  <rguenther@suse.de>
15692         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
15694 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
15696         PR target/61193
15697         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
15698         (__TM_simple_begin): Use it.
15699         (__TM_begin): Likewise.
15701 2014-05-15  Martin Jambor  <mjambor@suse.cz>
15703         PR ipa/61085
15704         * ipa-prop.c (update_indirect_edges_after_inlining): Check
15705         type_preserved flag when the indirect edge is polymorphic.
15707 2014-05-15  Martin Jambor  <mjambor@suse.cz>
15709         PR tree-optimization/61090
15710         * tree-sra.c (sra_modify_expr): Pass the current gsi to
15711         build_ref_for_model.
15713 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15715         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
15716         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
15718 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
15720         PR tree-optimization/61158
15721         * fold-const.c (fold_binary_loc): If X is zero-extended and
15722         shiftc >= prec, make sure zerobits is all ones instead of
15723         invoking undefined behavior.
15725 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15727         * regcprop.h: New file.
15728         * regcprop.c (skip_debug_insn_p): New decl.
15729         (replace_oldest_value_reg): Check skip_debug_insn_p.
15730         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
15731         * shrink-wrap.c: Include regcprop.h.
15732         (prepare_shrink_wrap): Call
15733         copyprop_hardreg_forward_bb_without_debug_insn.
15735 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15737         * shrink-wrap.h: Update comment.
15738         * shrink-wrap.c: Update comment.
15739         (next_block_for_reg): Rename to live_edge_for_reg.
15740         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
15741         (move_insn_for_shrink_wrap): Split live_edge.
15742         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
15744 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
15746         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
15747         Delete.
15748         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
15749         * config/sparc/sparc.md (fptype_ut699): New attribute.
15750         (in_branch_delay): Return false if -mfix-ut699 is specified and
15751         fptype_ut699 is set to single.
15752         (truncdfsf2): Add fptype_ut699 attribute.
15753         (fix_truncdfsi2): Likewise.
15754         (floatsisf2): Change fptype attribute.
15755         (fix_truncsfsi2): Likewise.
15756         (negtf2_notv9): Delete.
15757         (negtf2_v9): Likewise.
15758         (negtf2_hq): New instruction.
15759         (negtf2): New instruction and splitter.
15760         (negdf2_notv9): Rewrite.
15761         (abstf2_notv9): Delete.
15762         (abstf2_hq_v9): Likewise.
15763         (abstf2_v9): Likewise.
15764         (abstf2_hq): New instruction.
15765         (abstf2): New instruction and splitter.
15766         (absdf2_notv9): Rewrite.
15768 2014-05-14  Cary Coutant  <ccoutant@google.com>
15770         PR debug/61013
15771         * opts.c (common_handle_option): Don't special-case "-g".
15772         (set_debug_level): Default to at least level 2 with "-g".
15774 2014-05-14  DJ Delorie  <dj@redhat.com>
15776         * config/msp430/msp430.c (msp430_builtin): Add
15777         MSP430_BUILTIN_DELAY_CYCLES.
15778         (msp430_init_builtins): Register void __delay_cycles(long long).
15779         (msp430_builtin_decl): Add it.
15780         (cg_magic_constant): New.
15781         (msp430_expand_delay_cycles): New.
15782         (msp430_expand_builtin): Call it.
15783         (msp430_print_operand_raw): Change integer printing from "int" to
15784         HOST_WIDE_INT.
15785         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
15786         (delay_cycles_start): New.
15787         (delay_cycles_end): New.
15788         (delay_cycles_32): New.
15789         (delay_cycles_32x): New.
15790         (delay_cycles_16): New.
15791         (delay_cycles_16x): New.
15792         (delay_cycles_2): New.
15793         (delay_cycles_1): New.
15794         * doc/extend.texi: Document __delay_cycles().
15796 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
15798         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
15799         length attribute computation.
15801 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
15803         PR debug/61188
15804         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
15806 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
15808         PR target/61084
15809         * config/sparc/sparc.md: Fix types of low and high in DI constant
15810         splitter.  Use gen_int_mode in some other splitters.
15812 2014-05-14  Martin Jambor  <mjambor@suse.cz>
15814         PR ipa/60897
15815         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
15817 2014-05-14  James Norris  <jnorris@codesourcery.com>
15819         * omp-low.c (expand_parallel_call): Remove shadow variable.
15820         (expand_omp_taskreg): Likewise.
15822 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
15824         * common/config/i386/i386-common.c
15825         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
15826         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
15827         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
15828         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
15829         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
15830         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
15831         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
15832         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
15833         xsavecintrin.h, xsavesintrin.h.
15834         (x86_64-*-*): Ditto.
15835         * config/i386/clflushoptintrin.h: New.
15836         * config/i386/xsavecintrin.h: Ditto.
15837         * config/i386/xsavesintrin.h: Ditto.
15838         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
15839         (bit_XSAVES): Ditto.
15840         (bit_XSAVES): Ditto.
15841         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
15842         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
15843         -mno-clflushopt.
15844         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15845         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
15846         OPTION_MASK_ISA_XSAVES.
15847         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
15848         -mxsavec, -mxsaves.
15849         (PTA_CLFLUSHOPT) Define.
15850         (PTA_XSAVEC): Ditto.
15851         (PTA_XSAVES): Ditto.
15852         (ix86_option_override_internal): Handle new options.
15853         (ix86_valid_target_attribute_inner_p): Ditto.
15854         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
15855         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
15856         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
15857         (bdesc_special_args): Add __builtin_ia32_xsaves,
15858         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
15859         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
15860         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
15861         (ix86_expand_builtin): Handle new builtins.
15862         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
15863         (TARGET_CLFLUSHOPT_P): Ditto.
15864         (TARGET_XSAVEC): Ditto.
15865         (TARGET_XSAVEC_P): Ditto.
15866         (TARGET_XSAVES): Ditto.
15867         (TARGET_XSAVES_P): Ditto.
15868         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
15869         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
15870         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
15871         (ANY_XRSTOR): New.
15872         (ANY_XRSTOR64): Ditto.
15873         (xrstor): Ditto.
15874         (xrstor): Change into <xrstor>.
15875         (xrstor_rex64): Change into <xrstor>_rex64.
15876         (xrstor64): Change into <xrstor>64
15877         (clflushopt): New.
15878         * config/i386/i386.opt (mclflushopt): New.
15879         (mxsavec): Ditto.
15880         (mxsaves): Ditto.
15881         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
15882         xsavecintrin.h.
15883         * doc/invoke.texi: Document new options.
15885 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
15887         PR rtl-optimization/60866
15888         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
15889         Default it to -1.  Pass it down to init_simplejump_data.
15890         (init_simplejump_data): New parameter old_seqno.  Pass it down
15891         to get_seqno_for_a_jump.
15892         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
15893         initializing new jump seqno as a last resort.  Add comment.
15894         (sel_redirect_edge_and_branch): Save old seqno of the conditional
15895         jump and pass it down to sel_init_new_insn.
15896         (sel_redirect_edge_and_branch_force): Likewise.
15898 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
15900         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
15901         shifted values to avoid build warning.
15903 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
15905         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
15906         * cfgrtl.c (rtl_merge_blocks): Fix comment.
15907         (cfg_layout_merge_blocks): Likewise.
15908         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
15910 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
15912         PR rtl-optimization/60901
15913         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
15914         bb predecessor belongs to the same scheduling region.  Adjust comment.
15916 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
15918         * doc/sourcebuild.texi: (dfp_hw): Document.
15919         (p8vector_hw): Likewise.
15920         (powerpc_eabi_ok): Likewise.
15921         (powerpc_elfv2): Likewise.
15922         (powerpc_htm_ok): Likewise.
15923         (ppc_recip_hw): Likewise.
15924         (vsx_hw): Likewise.
15926 2014-05-13  Cary Coutant  <ccoutant@google.com>
15928         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
15930 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
15932         * gengtype-parse.c (require3): Eliminate in favor of...
15933         (require4): New.
15934         (require_template_declaration): Update to support optional single *
15935         on a type.
15937         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
15938         (create_user_defined_type): Handle a single level of explicit
15939         pointerness within template arguments.
15940         (struct write_types_data): Add field "kind".
15941         (filter_type_name): Handle "*" character.
15942         (write_user_func_for_structure_ptr): Require a write_types_data
15943         rather than just a prefix string, so that we can look up the kind
15944         of the wtd and use it as an index into wrote_user_func_for_ptr,
15945         ensuring that such functions are written at most once.  Support
15946         subclasses by invoking the marking function of the ultimate base class.
15947         (write_user_func_for_structure_body): Require a write_types_data
15948         rather than just a prefix string, so that we can pass this to
15949         write_user_func_for_structure_ptr.
15950         (write_func_for_structure): Likewise.
15951         (ggc_wtd): Add initializer of new "kind" field.
15952         (pch_wtd): Likewise.
15954         * gengtype.h (enum write_types_kinds): New.
15955         (struct type): Add field wrote_user_func_for_ptr to the "s"
15956         union member.
15958 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
15960         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
15961         instead of const_binop.
15962         (fold_binary_loc): Likewise.
15964 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
15966         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
15967         calculation to match get_ref_base_and_extent.
15969 2014-05-13  Catherine Moore  <clm@codesourcery.com>
15970             Sandra Loosemore  <sandra@codesourcery.com>
15972         * configure.ac: Fix assembly for explicit JALR relocation check.
15973         * configure: Regenerate.
15975 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15977         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
15978         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
15979         Remove associated type declarations and initialisations.
15980         (arm_expand_neon_builtin): Likewise.
15981         (neon_emit_pair_result_insn): Delete.
15982         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
15983         * config/arm/neon.md (neon_vtrn<mode>): Delete.
15984         (neon_vzip<mode>): Likewise.
15985         (neon_vuzp<mode>): Likewise.
15987 2014-05-13  Richard Biener  <rguenther@suse.de>
15989         PR ipa/60973
15990         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
15991         it needs revisiting whether the call still may be tail-called.
15993 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
15995         * rtl.def (SYMBOL_REF): Remove middle "0" field.
15996         * rtl.h (block_symbol): Reduce number of fields to 2.
15997         (rtx_def): Add u2.symbol_ref_flags.
15998         (SYMBOL_REF_FLAGS): Use it.
15999         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16000         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16001         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16002         Lower index of SYMBOL_REF_DATA.
16003         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16004         Print SYMBOL_REF_FLAGS at the same time.
16005         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16007 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
16009         * rtl.def (VAR_LOCATION): Remove "i" field.
16010         * rtl.h (rtx_def): Add u2.var_location_status.
16011         (PAT_VAR_LOCATION_STATUS): Use it.
16012         (gen_rtx_VAR_LOCATION): Declare.
16013         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16014         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16015         * var-tracking.c (emit_note_insn_var_location): Remove casts.
16017 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
16019         * rtl.def (scratch): Fix outdated comment and remove "0" field.
16020         * gengtype.c (adjust_field_rtx_def): Update accordingly.
16022 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
16024         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16025         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16026         * rtl.h (rtx_def): Add insn_uid to u2 field.
16027         (RTX_FLAG_CHECK8): Delete in favor of...
16028         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16029         (INSN_DELETED_P): Update accordingly.
16030         (INSN_UID): Use u2.insn_uid.
16031         (INSN_CHAIN_CODE_P): Define.
16032         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16033         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16034         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16035         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16036         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16037         indices accordingly.
16038         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16039         Update indices for insn-chain rtxes.
16040         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16041         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16042         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16043         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16044         * combine.c (try_combine): Likewise.
16045         * ira.c (setup_prohibited_mode_move_regs): Likewise.
16047 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
16049         * rtl.def (REG): Remove middle field.
16050         * rtl.h (rtx_def): Add orignal_regno to u2.
16051         (ORIGINAL_REGNO): Use it instead of field 1.
16052         (REG_ATTRS): Lower field index accordingly.
16053         * gengtype.c (adjust_field_rtx_def): Remove handling of
16054         ORIGINAL_REGNO.  Move REG_ATTRS index down.
16055         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16056         code that prints the REGNO.
16058 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
16060         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16061         GENERATOR_FILE.
16063 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
16065         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16067 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
16069         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16070         (alloc_iv): Lower base expressions containing ADDR_EXPR.
16072 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
16074         * config/aarch64/aarch64-protos.h
16075         (aarch64_hard_regno_caller_save_mode): New prototype.
16076         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16077         New function.
16078         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16080 2014-05-13  Christian Bruel  <christian.bruel@st.com>
16082         * target.def (mode_switching): New hook vector.
16083         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16084         (mode_exit, modepriority_to_mode): Likewise.
16085         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16086         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16087         * target.h: Include tm.h and hard-reg-set.h.
16088         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16089         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16090         * doc/tm.texi Regenerate.
16091         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16092         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16093         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16094         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16095         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16096         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16097         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16098         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16099         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16100         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16101         (ix86_emit_mode_set): Hookify.
16102         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16103         Delete.
16104         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16105         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16106         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16107         (epiphany_mode_priority_to_mode): Remove declaration.
16108         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16109         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16110         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16111         Likewise.
16112         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
16113         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16114         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16116 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
16118         PR target/61060
16119         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16120         is const0_rtx, return immediately.  Don't test count == 0 when
16121         it is always true.
16123 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16125         * Makefile.in: add shrink-wrap.o.
16126         * config/i386/i386.c: include "shrink-wrap.h"
16127         * function.c: Likewise.
16128         (requires_stack_frame_p, next_block_for_reg,
16129         move_insn_for_shrink_wrap, prepare_shrink_wrap,
16130         dup_block_and_redirect): Move to shrink-wrap.c
16131         (thread_prologue_and_epilogue_insns): Extract three code segments
16132         as functions in shrink-wrap.c
16133         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16134         shrink-wrap.h
16135         * shrink-wrap.c: New file.
16136         * shrink-wrap.h: New file.
16138 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
16140         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
16141         reference to Solaris.
16143 2014-05-12  Mike Stump  <mikestump@comcast.net>
16145         PR other/31778
16146         * genattrtab.c (filename): Add.
16147         (convert_set_attr_alternative): Improve error message.
16148         (check_defs): Restore read_md_filename for error messages.
16149         (gen_insn): Save filename.
16151 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
16153         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16154         -fno-local-ivars and -fivar-visibility.
16155         * c-family/c.opt: Make -Wshadow also implicitly enable
16156         -Wshadow-ivar.
16158 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
16160         * doc/tm.texi: Remove reference to deleted macro.
16161         * doc/tm.texi.in: Likewise.
16163 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16165         PR target/60991
16166         * config/avr/avr.c (avr_out_store_psi): Use correct constant
16167         to restore Y.
16169 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
16171         PR libgcc/61152
16172         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16173         * config/arm/aout.h (License): Same.
16174         * config/arm/bpabi.h (License): Same.
16175         * config/arm/elf.h (License): Same.
16176         * config/arm/linux-elf.h (License): Same.
16177         * config/arm/linux-gas.h (License): Same.
16178         * config/arm/netbsd-elf.h (License): Same.
16179         * config/arm/uclinux-eabi.h (License): Same.
16180         * config/arm/uclinux-elf.h (License): Same.
16181         * config/arm/vxworks.h (License): Same.
16183 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
16185         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16186         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16187         number of operands to 3.
16188         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16189         * tree-nested.c (convert_nonlocal_omp_clauses,
16190         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16191         * gimplify.c (gimplify_scan_omp_clauses): Handle
16192         OMP_CLAUSE_LINEAR_STMT.
16193         * omp-low.c (lower_rec_input_clauses): Fix typo.
16194         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16195         cast between Fortran boolean_type_node and C _Bool if
16196         needed.
16198 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
16200         PR tree-optimization/61136
16201         * wide-int.h (multiple_of_p): Define a version that doesn't return
16202         the quotient.
16203         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16204         integer_zerop/const_binop pair.
16205         (multiple_of_p): Likewise, converting both operands to widest_int
16206         precision.
16208 2014-05-09  Teresa Johnson  <tejohnson@google.com>
16210         * cgraphunit.c (analyze_functions): Use correct dump file.
16212 2014-05-09  Florian Weimer  <fweimer@redhat.com>
16214         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16215         expand_used_vars.
16216         (stack_protect_return_slot_p): New function.
16217         (expand_used_vars): Call stack_protect_decl_p and
16218         stack_protect_return_slot_p for -fstack-protector-strong.
16220 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
16221         Andrew Haley <aph@redhat.com>
16222         Richard Sandiford <rdsandiford@googlemail.com>
16224         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16225         pages.
16227 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
16229         PR middle-end/61111
16230         * fold-const.c (fold_binary_loc): Changed width of mask.
16232 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
16234         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16235         unsigned int initializers for regno_in, regno_out.
16237 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
16239         PR target/61055
16240         * config/avr/avr.md (cc): Add new attribute set_vzn.
16241         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16242         Set cc insn attribute to set_vzn instead of set_zn for alternatives
16243         with INC, DEC or NEG.
16244         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16245         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16246         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16248 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16250         Revert:
16251         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16253         * wide-int.cc (UTItype): Define.
16254         (UDWtype): Define for appropriate W_TYPE_SIZE.
16256 2014-05-09  Richard Biener  <rguenther@suse.de>
16258         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16259         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16260         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16261         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16262         ssa_propagate): Adjust.
16264 2014-05-08  Jeff Law  <law@redhat.com>
16266         PR tree-optimization/61009
16267         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16268         tri-state rather than a boolean.  When a block is too big to
16269         thread through, inform caller via negative return value.
16270         (thread_across_edge): If a block was too big for normal threading,
16271         then it's too big for a joiner too, so remove temporary equivalences
16272         and return immediately.
16274 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16275             Matthias Klose  <doko@ubuntu.com>
16277         PR driver/61106
16278         * optc-gen.awk: Fix option handling for -Wunused-parameter.
16280 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
16282         PR target/59952
16283         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16285 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
16287         PR target/61092
16288         * config/alpha/alpha.c: Include gimple-iterator.h.
16289         (alpha_gimple_fold_builtin): New function.  Move
16290         ALPHA_BUILTIN_UMULH folding from ...
16291         (alpha_fold_builtin): ... here.
16292         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16294 2014-05-08  Wei Mi  <wmi@google.com>
16296         PR target/58066
16297         * config/i386/i386.c (ix86_compute_frame_layout): Update
16298         preferred_stack_boundary for call, expanded from tls descriptor.
16299         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16300         to depend on SP register.
16301         (*tls_local_dynamic_base_32_gnu): Ditto.
16302         (*tls_local_dynamic_32_once): Ditto.
16303         (tls_global_dynamic_64_<mode>): Set
16304         ix86_tls_descriptor_calls_expanded_in_cfun.
16305         (tls_local_dynamic_base_64_<mode>): Ditto.
16306         (tls_global_dynamic_32): Set
16307         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16308         to depend on SP register.
16309         (tls_local_dynamic_base_32): Ditto.
16311 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16313         * config/arm/arm_neon.h: Update comment.
16314         * config/arm/neon-docgen.ml: Delete.
16315         * config/arm/neon-gen.ml: Delete.
16316         * doc/arm-neon-intrinsics.texi: Update comment.
16318 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16320         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16321         and v4sf versions.
16322         (vand, vorr, veor, vorn, vbic): Remove.
16323         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16324         iterator.
16325         (neon_vsub_unspec): Likewise.
16326         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16328 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16330         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16331         (vadd_s16): Likewise.
16332         (vadd_s32): Likewise.
16333         (vadd_f32): Likewise.
16334         (vadd_u8): Likewise.
16335         (vadd_u16): Likewise.
16336         (vadd_u32): Likewise.
16337         (vadd_s64): Likewise.
16338         (vadd_u64): Likewise.
16339         (vaddq_s8): Likewise.
16340         (vaddq_s16): Likewise.
16341         (vaddq_s32): Likewise.
16342         (vaddq_s64): Likewise.
16343         (vaddq_f32): Likewise.
16344         (vaddq_u8): Likewise.
16345         (vaddq_u16): Likewise.
16346         (vaddq_u32): Likewise.
16347         (vaddq_u64): Likewise.
16348         (vmul_s8): Likewise.
16349         (vmul_s16): Likewise.
16350         (vmul_s32): Likewise.
16351         (vmul_f32): Likewise.
16352         (vmul_u8): Likewise.
16353         (vmul_u16): Likewise.
16354         (vmul_u32): Likewise.
16355         (vmul_p8): Likewise.
16356         (vmulq_s8): Likewise.
16357         (vmulq_s16): Likewise.
16358         (vmulq_s32): Likewise.
16359         (vmulq_f32): Likewise.
16360         (vmulq_u8): Likewise.
16361         (vmulq_u16): Likewise.
16362         (vmulq_u32): Likewise.
16363         (vsub_s8): Likewise.
16364         (vsub_s16): Likewise.
16365         (vsub_s32): Likewise.
16366         (vsub_f32): Likewise.
16367         (vsub_u8): Likewise.
16368         (vsub_u16): Likewise.
16369         (vsub_u32): Likewise.
16370         (vsub_s64): Likewise.
16371         (vsub_u64): Likewise.
16372         (vsubq_s8): Likewise.
16373         (vsubq_s16): Likewise.
16374         (vsubq_s32): Likewise.
16375         (vsubq_s64): Likewise.
16376         (vsubq_f32): Likewise.
16377         (vsubq_u8): Likewise.
16378         (vsubq_u16): Likewise.
16379         (vsubq_u32): Likewise.
16380         (vsubq_u64): Likewise.
16381         (vand_s8): Likewise.
16382         (vand_s16): Likewise.
16383         (vand_s32): Likewise.
16384         (vand_u8): Likewise.
16385         (vand_u16): Likewise.
16386         (vand_u32): Likewise.
16387         (vand_s64): Likewise.
16388         (vand_u64): Likewise.
16389         (vandq_s8): Likewise.
16390         (vandq_s16): Likewise.
16391         (vandq_s32): Likewise.
16392         (vandq_s64): Likewise.
16393         (vandq_u8): Likewise.
16394         (vandq_u16): Likewise.
16395         (vandq_u32): Likewise.
16396         (vandq_u64): Likewise.
16397         (vorr_s8): Likewise.
16398         (vorr_s16): Likewise.
16399         (vorr_s32): Likewise.
16400         (vorr_u8): Likewise.
16401         (vorr_u16): Likewise.
16402         (vorr_u32): Likewise.
16403         (vorr_s64): Likewise.
16404         (vorr_u64): Likewise.
16405         (vorrq_s8): Likewise.
16406         (vorrq_s16): Likewise.
16407         (vorrq_s32): Likewise.
16408         (vorrq_s64): Likewise.
16409         (vorrq_u8): Likewise.
16410         (vorrq_u16): Likewise.
16411         (vorrq_u32): Likewise.
16412         (vorrq_u64): Likewise.
16413         (veor_s8): Likewise.
16414         (veor_s16): Likewise.
16415         (veor_s32): Likewise.
16416         (veor_u8): Likewise.
16417         (veor_u16): Likewise.
16418         (veor_u32): Likewise.
16419         (veor_s64): Likewise.
16420         (veor_u64): Likewise.
16421         (veorq_s8): Likewise.
16422         (veorq_s16): Likewise.
16423         (veorq_s32): Likewise.
16424         (veorq_s64): Likewise.
16425         (veorq_u8): Likewise.
16426         (veorq_u16): Likewise.
16427         (veorq_u32): Likewise.
16428         (veorq_u64): Likewise.
16429         (vbic_s8): Likewise.
16430         (vbic_s16): Likewise.
16431         (vbic_s32): Likewise.
16432         (vbic_u8): Likewise.
16433         (vbic_u16): Likewise.
16434         (vbic_u32): Likewise.
16435         (vbic_s64): Likewise.
16436         (vbic_u64): Likewise.
16437         (vbicq_s8): Likewise.
16438         (vbicq_s16): Likewise.
16439         (vbicq_s32): Likewise.
16440         (vbicq_s64): Likewise.
16441         (vbicq_u8): Likewise.
16442         (vbicq_u16): Likewise.
16443         (vbicq_u32): Likewise.
16444         (vbicq_u64): Likewise.
16445         (vorn_s8): Likewise.
16446         (vorn_s16): Likewise.
16447         (vorn_s32): Likewise.
16448         (vorn_u8): Likewise.
16449         (vorn_u16): Likewise.
16450         (vorn_u32): Likewise.
16451         (vorn_s64): Likewise.
16452         (vorn_u64): Likewise.
16453         (vornq_s8): Likewise.
16454         (vornq_s16): Likewise.
16455         (vornq_s32): Likewise.
16456         (vornq_s64): Likewise.
16457         (vornq_u8): Likewise.
16458         (vornq_u16): Likewise.
16459         (vornq_u32): Likewise.
16460         (vornq_u64): Likewise.
16462 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16464         * wide-int.cc (UTItype): Define.
16465         (UDWtype): Define for appropriate W_TYPE_SIZE.
16467 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
16469         PR tree-optimization/59100
16470         * tree-ssa-phiopt.c: Include tree-inline.h.
16471         (neutral_element_p, absorbing_element_p): New functions.
16472         (value_replacement): Handle conditional binary operations with a
16473         neutral or absorbing element.
16475 2014-05-08  Richard Biener  <rguenther@suse.de>
16477         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16478         folding the expression.
16479         (valueize_expr): Remove.
16480         (visit_reference_op_load): Do not valueize the result of
16481         vn_get_expr_for.
16482         (simplify_binary_expression): Likewise.
16483         (simplify_unary_expression): Likewise.
16485 2014-05-08  Richard Biener  <rguenther@suse.de>
16487         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16488         looking at TYPE_ARG_TYPES.
16490 2014-05-08  Richard Biener  <rguenther@suse.de>
16492         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16493         pointer propagation special-case.
16495 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
16497         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16498         core part of address expressions.
16500 2014-05-08  Alan Modra  <amodra@gmail.com>
16502         PR target/60737
16503         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16504         loads and stores when -mno-strict-align at any alignment.
16505         (expand_block_clear): Similarly.  Also correct calculation of
16506         instruction count.
16508 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16510         PR middle-end/39246
16511         * tree-complex.c (expand_complex_move): Keep line info when expanding
16512         complex move.
16513         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16514         of complex expression. Use new argument to display correct location
16515         for values coming from phi statement.
16516         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16517         (warn_uninitialized_phi): Pass location of phi argument to
16518         warn_uninit.
16519         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16520         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16522 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
16524         * config/rs6000/predicates.md (indexed_address_mem): New.
16525         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16526         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16527         fpstore_ux, fpstore_u.
16528         (sign_extend, indexed, update): New.
16529         (cell_micro): Adjust.
16530         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16531         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16532         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16533         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16534         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16535         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16536         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16537         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16538         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16539         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16540         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16541         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16542         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16543         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16544         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16546         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16547         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16548         *vsx_extract_<mode>_store): Adjust.
16549         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16550         is_cracked_insn, insn_must_be_first_in_group,
16551         insn_must_be_last_in_group): Adjust.
16553         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
16554         Adjust.
16555         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
16556         ppc440-fpstore): Adjust.
16557         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
16558         ppc476-fpstore): Adjust.
16559         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
16560         ppc601-fpstore): Adjust.
16561         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
16562         Adjust.
16563         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
16564         Adjust.
16565         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
16566         ppc7450-fpstore): Adjust.
16567         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
16568         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
16569         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
16570         Adjust.
16571         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
16572         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
16573         cell-fpstore, cell-fpstore-update): Adjust.
16574         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
16575         ppce300c3_store, ppce300c3_fpstore): Adjust.
16576         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
16577         e500mc_fpstore): Adjust.
16578         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
16579         e500mc64_store, e500mc64_fpstore): Adjust.
16580         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
16581         e5500_fpstore): Adjust.
16582         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
16583         e6500_fpstore): Adjust.
16584         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
16585         Adjust.
16586         * config/rs6000/power4.md (power4-load, power4-load-ext,
16587         power4-load-ext-update, power4-load-ext-update-indexed,
16588         power4-load-update-indexed, power4-load-update, power4-fpload,
16589         power4-fpload-update, power4-store, power4-store-update,
16590         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
16591         Adjust.
16592         * config/rs6000/power5.md (power5-load, power5-load-ext,
16593         power5-load-ext-update, power5-load-ext-update-indexed,
16594         power5-load-update-indexed, power5-load-update, power5-fpload,
16595         power5-fpload-update, power5-store, power5-store-update,
16596         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
16597         Adjust.
16598         * config/rs6000/power6.md (power6-load, power6-load-ext,
16599         power6-load-update, power6-load-update-indexed,
16600         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
16601         power6-fpload-update, power6-store, power6-store-update,
16602         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
16603         Adjust.
16604         * config/rs6000/power7.md (power7-load, power7-load-ext,
16605         power7-load-update, power7-load-update-indexed,
16606         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
16607         power7-fpload-update, power7-store, power7-store-update,
16608         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
16609         Adjust.
16610         * config/rs6000/power8.md (power8-load, power8-load-update,
16611         power8-load-ext, power8-load-ext-update, power8-fpload,
16612         power8-fpload-update, power8-store, power8-store-update-indexed,
16613         power8-fpstore, power8-fpstore-update): Adjust.
16614         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
16615         Adjust.
16616         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
16617         titan_lsu_store, titan_lsu_fpstore): Adjust.
16618         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
16620 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
16622         PR target/60884
16623         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
16624         unrolled byte insns.  Emit address increments after move insns.
16626 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
16628         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
16629         const_gimple, rather than a gimple.
16630         (gimple_call_builtin_p): Likewise, for the three variants.
16632         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
16633         (gimple_call_builtin_p): Likewise, for the three variants.
16635 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
16637         PR tree-optimization/61095
16638         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
16640 2014-05-07  Richard Biener  <rguenther@suse.de>
16642         PR tree-optimization/61034
16643         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
16644         (maybe_skip_until): Use translate to take into account
16645         lattices when trying to do disambiguations.
16646         (get_continuation_for_phi_1): Likewise.
16647         (get_continuation_for_phi): Adjust for added translate arguments.
16648         (walk_non_aliased_vuses): Likewise.
16649         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
16650         (walk_non_aliased_vuses): Likewise.
16651         (call_may_clobber_ref_p_1): Declare.
16652         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
16653         calls.  Stop early if we are only supposed to disambiguate.
16654         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
16656 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
16658         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
16659         Emit an error when the function has arguments.
16661 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
16663         * cfgloop.h (unswitch_loops): Remove.
16664         * doc/passes.texi: Remove references to loop-unswitch.c
16665         * timevar.def (TV_LOOP_UNSWITCH): Remove.
16667 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
16669         * tree-vect-data-refs.c (vect_grouped_load_supported): New
16670         check for loads group of length 3.
16671         (vect_permute_load_chain): New permutations for loads group of
16672         length 3.
16673         * tree-vect-stmts.c (vect_model_load_cost): Change cost
16674         of vec_perm_shuffle for the new permutations.
16676 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
16678         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
16679         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
16680         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
16681         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
16682         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
16683         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
16684         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
16685         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
16687 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
16689         * loop-unswitch.c: Delete.
16691 2014-05-07  Richard Biener  <rguenther@suse.de>
16693         * config.gcc: Always set need_64bit_hwint to yes.
16695 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
16697         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
16698         of using optimize_size.
16700 2014-05-06  Mike Stump  <mikestump@comcast.net>
16702         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
16704 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
16706         * config/i386/sse.md (*mov<mode>_internal)
16707         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
16708         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
16709         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
16710         (*<code><mode>3, *andnot<mode>3<mask_name>)
16711         (<mask_codefor><code><mode>3<mask_name>): Only consider
16712         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
16714 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
16716         Revert:
16717         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
16719         * lra-constraints.c (valid_address_p): Move earlier in file.
16720         Add a constraint argument to the address_info version.
16721         (satisfies_memory_constraint_p): New function.
16722         (satisfies_address_constraint_p): Likewise.
16723         (process_alt_operands, curr_insn_transform): Use them.
16724         (process_address): Pass the constraint to valid_address_p when
16725         checking address operands.
16727 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
16729         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
16730         to their respective blocks.  Fix inadvertent use of "node".
16732 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
16734         * emit-rtl.c (init_derived_machine_modes): New functionm, split
16735         out from...
16736         (init_emit_once): ...here.
16737         * rtl.h (init_derived_machine_modes): Declare.
16738         * toplev.c (do_compile): Call it even if no_backend.
16740 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
16741             Mike Stump  <mikestump@comcast.net>
16742             Richard Sandiford  <rdsandiford@googlemail.com>
16743             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16745         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
16746         (rtx_equal_for_memref_p): Update comment.
16747         (adjust_offset_for_component_ref): Use wide-int interfaces.
16748         * builtins.c (get_object_alignment_2): Likewise.
16749         (c_readstr): Likewise.
16750         (target_char_cast): Add comment.
16751         (determine_block_size): Use wide-int interfaces.
16752         (expand_builtin_signbit): Likewise.
16753         (fold_builtin_int_roundingfn): Likewise.
16754         (fold_builtin_bitop): Likewise.
16755         (fold_builtin_bswap): Likewise.
16756         (fold_builtin_logarithm): Use signop.
16757         (fold_builtin_pow): Likewise.
16758         (fold_builtin_memory_op): Use wide-int interfaces.
16759         (fold_builtin_object_size): Likewise.
16760         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
16761         nb_iterations_estimate.
16762         (record_niter_bound): Use wide-int interfaces.
16763         (get_estimated_loop_iterations_int): Likewise.
16764         (get_estimated_loop_iterations): Likewise.
16765         (get_max_loop_iterations): Likewise.
16766         * cfgloop.h: Include wide-int.h.
16767         (struct nb_iter_bound): Change bound to widest_int.
16768         (struct loop): Change nb_iterations_upper_bound and
16769         nb_iterations_estimate to widest_int.
16770         (record_niter_bound): Switch to use widest_int.
16771         (get_estimated_loop_iterations): Likewise.
16772         (get_max_loop_iterations): Likewise.
16773         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
16774         update for wide-int.
16775         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
16776         * combine.c (try_combine): Likewise.
16777         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
16778         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
16779         interfaces.
16780         (aarch64_float_const_representable_p): Likewise.
16781         * config/arc/arc.c: Include wide-int.h.
16782         (arc_can_use_doloop_p): Use wide-int interfaces.
16783         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
16784         (vfp3_const_double_index): Likewise.
16785         * config/avr/avr.c (avr_out_round): Likewise.
16786         (avr_fold_builtin): Likewise.
16787         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
16788         (bfin_can_use_doloop_p): Likewise.
16789         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
16790         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
16791         * config/i386/i386.c: Include wide-int.h.
16792         (ix86_data_alignment): Use wide-int interfaces.
16793         (ix86_local_alignment): Likewise.
16794         (ix86_emit_swsqrtsf): Update real_from_integer.
16795         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
16796         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
16797         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
16798         (zero_constant): Likewise.
16799         (input_operand): Likewise.
16800         (splat_input_operand): Likewise.
16801         (non_logical_cint_operand): Change const_double to const_wide_int.
16802         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
16803         (easy_altivec_constant): Remove comment.
16804         (paired_expand_vector_init): Use CONSTANT_P.
16805         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
16806         (rs6000_emit_move): Update checks.
16807         (rs6000_aggregate_candidate): Use wide-int interfaces.
16808         (rs6000_expand_ternop_builtin): Likewise.
16809         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
16810         (rs6000_assemble_integer): Likewise.
16811         (rs6000_hash_constant): Likewise.
16812         (output_toc): Likewise.
16813         (rs6000_rtx_costs): Likewise.
16814         (rs6000_emit_swrsqrt); Update call to real_from_integer.
16815         * config/rs6000/rs6000-c.c: Include wide-int.h.
16816         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
16817         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
16818         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
16819         Handle CONST_WIDE_INT.
16820         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
16821         Use tree_fits_uhwi_p.
16822         * config/sparc/sparc.c: Include wide-int.h.
16823         (sparc_fold_builtin): Use wide-int interfaces.
16824         * config/vax/vax.c: Include wide-int.h.
16825         (vax_float_literal): Use real_from_integer.
16826         * coretypes.h (struct hwivec_def): New.
16827         (hwivec): New.
16828         (const_hwivec): New.
16829         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
16830         (equiv_constant): Handle CONST_WIDE_INT.
16831         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
16832         (cselib_hash_rtx): Handle CONST_WIDE_INT.
16833         * dbxout.c (stabstr_U): Use wide-int interfaces.
16834         (dbxout_type): Update to use cst_fits_shwi_p.
16835         * defaults.h (LOG2_BITS_PER_UNIT): Define.
16836         (TARGET_SUPPORTS_WIDE_INT): Add default.
16837         * dfp.c: Include wide-int.h.
16838         (decimal_real_to_integer2): Use wide-int interfaces and rename to
16839         decimal_real_to_integer.
16840         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
16841         decimal_real_to_integer.
16842         * doc/generic.texi (Constant expressions): Update for wide_int.
16843         * doc/rtl.texi (const_double): Likewise.
16844         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
16845         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
16846         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
16847         (REAL_VALUE_FROM_INT): Remove.
16848         (TARGET_SUPPORTS_WIDE_INT): New.
16849         * doc/tm.texi: Regenerate.
16850         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
16851         * double-int.h: Include wide-int.h.
16852         (struct wi::int_traits): New.
16853         * dwarf2out.c (get_full_len): New.
16854         (dw_val_equal_p): Add case dw_val_class_wide_int.
16855         (size_of_loc_descr): Likewise.
16856         (output_loc_operands): Likewise.
16857         (insert_double): Remove.
16858         (insert_wide_int): New.
16859         (add_AT_wide): New.
16860         (print_die): Add case dw_val_class_wide_int.
16861         (attr_checksum): Likewise.
16862         (attr_checksum_ordered): Likewise.
16863         (same_dw_val_p): Likewise.
16864         (size_of_die): Likewise.
16865         (value_format): Likewise.
16866         (output_die): Likewise.
16867         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
16868         Use wide-int.
16869         (clz_loc_descriptor): Use wide-int interfaces.
16870         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
16871         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
16872         (round_up_to_align): Use wide-int interfaces.
16873         (field_byte_offset): Likewise.
16874         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
16875         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
16876         CONST_DOUBLE handling.  Use wide-int interfaces.
16877         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
16878         (gen_enumeration_type_die): Use add_AT_wide.
16879         (hash_loc_operands): Add case dw_val_class_wide_int.
16880         (compare_loc_operands): Likewise.
16881         * dwarf2out.h: Include wide-int.h.
16882         (wide_int_ptr): New.
16883         (enum dw_val_class): Add dw_val_class_wide_int.
16884         (struct dw_val_struct): Add val_wide.
16885         * emit-rtl.c (const_wide_int_htab): New.
16886         (const_wide_int_htab_hash): New.
16887         (const_wide_int_htab_eq): New.
16888         (lookup_const_wide_int): New.
16889         (const_double_htab_hash): Use wide-int interfaces.
16890         (const_double_htab_eq): Likewise.
16891         (rtx_to_double_int): Conditionally compile for wide-int.
16892         (immed_double_int_const): Rename to immed_wide_int_const and
16893         update for wide-int.
16894         (immed_double_const): Conditionally compile for wide-int.
16895         (init_emit_once): Use wide-int interfaces.
16896         * explow.c (plus_constant): Likewise.
16897         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
16898         (lshift_value): Use wide-int interfaces.
16899         (expand_mult): Likewise.
16900         (choose_multiplier): Likewise.
16901         (expand_smod_pow2): Likewise.
16902         (make_tree): Likewise.
16903         * expr.c (convert_modes): Consolidate handling of constants.
16904         Use wide-int interfaces.
16905         (emit_group_load_1): Add note.
16906         (store_expr): Update comment.
16907         (get_inner_reference): Use wide-int interfaces.
16908         (expand_constructor): Update comment.
16909         (expand_expr_real_2): Use wide-int interfaces.
16910         (expand_expr_real_1): Likewise.
16911         (reduce_to_bit_field_precision): Likewise.
16912         (const_vector_from_tree): Likewise.
16913         * final.c: Include wide-int-print.h.
16914         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
16915         * fixed-value.c: Include wide-int.h.
16916         (fixed_from_string): Use wide-int interfaces.
16917         (fixed_to_decimal): Likewise.
16918         (fixed_convert_from_real): Likewise.
16919         (real_convert_from_fixed): Likewise.
16920         * fold-const.h (mem_ref_offset): Return an offset_int.
16921         (div_if_zero_remainder): Remove code parameter.
16922         * fold-const.c (div_if_zero_remainder): Remove code parameter.
16923         Use wide-int interfaces.
16924         (may_negate_without_overflow_p): Use wide-int interfaces.
16925         (negate_expr_p): Likewise.
16926         (fold_negate_expr): Likewise.
16927         (int_const_binop_1): Likewise.
16928         (const_binop): Likewise.
16929         (fold_convert_const_int_from_int): Likewise.
16930         (fold_convert_const_int_from_real): Likewise.
16931         (fold_convert_const_int_from_fixed): Likewise.
16932         (fold_convert_const_fixed_from_int): Likewise.
16933         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
16934         (sign_bit_p): Use wide-int interfaces.
16935         (make_range_step): Likewise.
16936         (build_range_check): Likewise.  Pass an integer of the correct type
16937         instead of using integer_one_node.
16938         (range_predecessor): Pass an integer of the correct type instead
16939         of using integer_one_node.
16940         (range_successor): Likewise.
16941         (merge_ranges): Likewise.
16942         (unextend): Use wide-int interfaces.
16943         (extract_muldiv_1): Likewise.
16944         (fold_div_compare): Likewise.
16945         (fold_single_bit_test): Likewise.
16946         (fold_sign_changed_comparison): Likewise.
16947         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
16948         (fold_plusminus_mult_expr): Use wide-int interfaces.
16949         (native_encode_int): Likewise.
16950         (native_interpret_int): Likewise.
16951         (fold_unary_loc): Likewise.
16952         (pointer_may_wrap_p): Likewise.
16953         (size_low_cst): Likewise.
16954         (mask_with_tz): Likewise.
16955         (fold_binary_loc): Likewise.
16956         (fold_ternary_loc): Likewise.
16957         (multiple_of_p): Likewise.
16958         (tree_call_nonnegative_warnv_p): Update calls to
16959         tree_int_cst_min_precision and real_from_integer.
16960         (fold_negate_const): Use wide-int interfaces.
16961         (fold_abs_const): Likewise.
16962         (fold_relational_const): Use tree_int_cst_lt.
16963         (round_up_loc): Use wide-int interfaces.
16964         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
16965         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
16966         * gengtype.c: Remove include of double-int.h.
16967         (do_typedef): Use wide-int interfaces.
16968         (open_base_files): Add wide-int.h.
16969         (main): Add offset_int and widest_int typedefs.
16970         * gengtype-lex.l: Handle "^".
16971         (CXX_KEYWORD): Add "static".
16972         * gengtype-parse.c (require3): New.
16973         (require_template_declaration): Handle constant template arguments
16974         and nested templates.
16975         * gengtype-state.c: Don't include "double-int.h".
16976         * genpreds.c (write_one_predicate_function): Update comment.
16977         (write_tm_constrs_h): Add check for hval and lval use in
16978         CONST_WIDE_INT.
16979         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
16980         (add_to_sequence): Likewise.
16981         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
16982         and const_double_operand.
16983         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
16984         interfaces.
16985         * gimple-fold.c (get_base_constructor): Likewise.
16986         (fold_array_ctor_reference): Likewise.
16987         (fold_nonarray_ctor_reference): Likewise.
16988         (fold_const_aggregate_ref_1): Likewise.
16989         (gimple_val_nonnegative_real_p): Likewise.
16990         (gimple_fold_indirect_ref): Likewise.
16991         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
16992         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
16993         (struct slsr_cand_d): Change index to be widest_int.
16994         (struct incr_info_d): Change incr to be widest_int.
16995         (alloc_cand_and_find_basis): Use wide-int interfaces.
16996         (slsr_process_phi): Likewise.
16997         (backtrace_base_for_ref): Likewise.  Return a widest_int.
16998         (restructure_reference): Take a widest_int instead of a double_int.
16999         (slsr_process_ref): Use wide-int interfaces.
17000         (create_mul_ssa_cand): Likewise.
17001         (create_mul_imm_cand): Likewise.
17002         (create_add_ssa_cand): Likewise.
17003         (create_add_imm_cand): Take a widest_int instead of a double_int.
17004         (slsr_process_add): Use wide-int interfaces.
17005         (slsr_process_cast): Likewise.
17006         (slsr_process_copy): Likewise.
17007         (dump_candidate): Likewise.
17008         (dump_incr_vec): Likewise.
17009         (replace_ref): Likewise.
17010         (cand_increment): Likewise.  Return a widest_int.
17011         (cand_abs_increment): Likewise.
17012         (replace_mult_candidate): Take a widest_int instead of a double_int.
17013         (replace_unconditional_candidate): Use wide-int interfaces.
17014         (incr_vec_index): Take a widest_int instead of a double_int.
17015         (create_add_on_incoming_edge): Likewise.
17016         (create_phi_basis): Use wide-int interfaces.
17017         (replace_conditional_candidate): Likewise.
17018         (record_increment): Take a widest_int instead of a double_int.
17019         (record_phi_increments): Use wide-int interfaces.
17020         (phi_incr_cost): Take a widest_int instead of a double_int.
17021         (lowest_cost_path): Likewise.
17022         (total_savings): Likewise.
17023         (analyze_increments): Use wide-int interfaces.
17024         (ncd_with_phi): Take a widest_int instead of a double_int.
17025         (ncd_of_cand_and_phis): Likewise.
17026         (nearest_common_dominator_for_cands): Likewise.
17027         (insert_initializers): Use wide-int interfaces.
17028         (all_phi_incrs_profitable): Likewise.
17029         (replace_one_candidate): Likewise.
17030         (replace_profitable_candidates): Likewise.
17031         * godump.c: Include wide-int-print.h.
17032         (go_output_typedef): Use wide-int interfaces.
17033         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17034         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17035         (build_loop_iteration_domains): Likewise.
17036         * hooks.h: Include wide-int.h rather than double-int.h.
17037         (hook_bool_dint_dint_uint_bool_true): Delete.
17038         (hook_bool_wint_wint_uint_bool_true): Declare.
17039         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17040         (hook_bool_wint_wint_uint_bool_true): New.
17041         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17042         interfaces.
17043         (ubsan_expand_si_overflow_mul_check): Likewise.
17044         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17045         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17046         (get_ancestor_addr_info): Likewise.
17047         (ipa_modify_call_arguments): Likewise.
17048         * loop-doloop.c (doloop_modify): Likewise.
17049         (doloop_optimize): Likewise.
17050         * loop-iv.c (iv_number_of_iterations): Likewise.
17051         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17052         (unroll_loop_constant_iterations): Likewise.
17053         (decide_unroll_runtime_iterations): Likewise.
17054         (unroll_loop_runtime_iterations): Likewise.
17055         (decide_peel_simple): Likewise.
17056         (decide_unroll_stupid): Likewise.
17057         * lto-streamer-in.c (streamer_read_wi): Add.
17058         (input_cfg): Use wide-int interfaces.
17059         (lto_input_tree_1): Likewise.
17060         * lto-streamer-out.c (streamer_write_wi): Add.
17061         (hash_tree): Use wide-int interfaces.
17062         (output_cfg): Likewise.
17063         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17064         (GTFILES): Add wide-int.h and signop.h.
17065         (TAGS): Look for .cc files too.
17066         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17067         * optabs.c (expand_subword_shift): Likewise.
17068         (expand_doubleword_shift): Likewise.
17069         (expand_absneg_bit): Likewise.
17070         (expand_copysign_absneg): Likewise.
17071         (expand_copysign_bit): Likewise.
17072         * postreload.c (reload_cse_simplify_set): Likewise.
17073         * predict.c (predict_iv_comparison): Likewise.
17074         * pretty-print.h: Include wide-int-print.h.
17075         (pp_wide_int) New.
17076         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17077         * print-tree.c: Include wide-int-print.h.
17078         (print_node_brief): Use wide-int interfaces.
17079         (print_node): Likewise.
17080         * read-rtl.c (validate_const_wide_int): New.
17081         (read_rtx_code): Add CONST_WIDE_INT case.
17082         * real.c: Include wide-int.h.
17083         (real_to_integer2): Delete.
17084         (real_to_integer): New function, returning a wide_int.
17085         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17086         (ten_to_ptwo): Update call to real_from_integer.
17087         (real_digit): Likewise.
17088         * real.h: Include signop.h, wide-int.h and insn-modes.h.
17089         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17090         (REAL_VALUE_TO_INT): Delete.
17091         (real_to_integer): Declare a wide-int form.
17092         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17093         * recog.c (const_int_operand): Improve comment.
17094         (const_scalar_int_operand): New.
17095         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17096         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17097         (split_double): Likewise.
17098         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17099         (rtx_size): Likewise.
17100         (rtx_alloc_stat_v): New.
17101         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17102         (cwi_output_hex): New.
17103         (iterative_hash_rtx): Handle CONST_WIDE_INT.
17104         (cwi_check_failed_bounds): New.
17105         * rtl.def (CONST_WIDE_INT): New.
17106         * rtl.h: Include <utility> and wide-int.h.
17107         (struct hwivec_def): New.
17108         (CWI_GET_NUM_ELEM): New.
17109         (CWI_PUT_NUM_ELEM): New.
17110         (struct rtx_def): Add num_elem and hwiv.
17111         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17112         (CASE_CONST_UNIQUE): Likewise.
17113         (CASE_CONST_ANY): Likewise.
17114         (CONST_SCALAR_INT_P): Likewise.
17115         (CONST_WIDE_INT_P): New.
17116         (CWI_ELT): New.
17117         (HWIVEC_CHECK): New.
17118         (cwi_check_failed_bounds): New.
17119         (CWI_ELT): New.
17120         (HWIVEC_CHECK): New.
17121         (CONST_WIDE_INT_VEC) New.
17122         (CONST_WIDE_INT_NUNITS) New.
17123         (CONST_WIDE_INT_ELT) New.
17124         (rtx_mode_t): New type.
17125         (wi::int_traits <rtx_mode_t>): New.
17126         (wi::shwi): New.
17127         (wi::min_value): New.
17128         (wi::max_value): New.
17129         (rtx_alloc_v) New.
17130         (const_wide_int_alloc): New.
17131         (immed_wide_int_const): New.
17132         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17133         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17134         * signop.h: New file.
17135         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17136         (simplify_const_unary_operation): Use wide-int interfaces.
17137         (simplify_binary_operation_1): Likewise.
17138         (simplify_const_binary_operation): Likewise.
17139         (simplify_const_relational_operation): Likewise.
17140         (simplify_immed_subreg): Likewise.
17141         * stmt.c (expand_case): Likewise.
17142         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17143         signop rather than a bool.
17144         * stor-layout.c (layout_type): Use wide-int interfaces.
17145         (initialize_sizetypes): Update calls to
17146         set_min_and_max_values_for_integral_type.
17147         (set_min_and_max_values_for_integral_type): Take a signop rather
17148         than a bool.  Use wide-int interfaces.
17149         (fixup_signed_type): Update accordingly.  Remove
17150         HOST_BITS_PER_DOUBLE_INT limit.
17151         (fixup_unsigned_type): Likewise.
17152         * system.h (STATIC_CONSTANT_P): New.
17153         (STATIC_ASSERT): New.
17154         * target.def (can_use_doloop_p): Take widest_ints rather than
17155         double_ints.
17156         * target.h: Include wide-int.h rather than double-int.h.
17157         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17158         than double_ints.
17159         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17160         rather than INT_CST_LT_UNSIGNED.
17161         (can_use_doloop_if_innermost): Take widest_ints rather than
17162         double_ints.
17163         * tree-affine.c: Include wide-int-print.h.
17164         (double_int_ext_for_comb): Delete.
17165         (wide_int_ext_for_comb): New.
17166         (aff_combination_zero): Use wide-int interfaces.
17167         (aff_combination_const): Take a widest_int instead of a double_int.
17168         (aff_combination_elt): Use wide-int interfaces.
17169         (aff_combination_scale): Take a widest_int instead of a double_int.
17170         (aff_combination_add_elt): Likewise.
17171         (aff_combination_add_cst): Likewise.
17172         (aff_combination_add): Use wide-int interfaces.
17173         (aff_combination_convert): Likewise.
17174         (tree_to_aff_combination): Likewise.
17175         (add_elt_to_tree): Take a widest_int instead of a double_int.
17176         (aff_combination_to_tree): Use wide-int interfaces.
17177         (aff_combination_remove_elt): Likewise.
17178         (aff_combination_add_product): Take a widest_int instead of
17179         a double_int.
17180         (aff_combination_mult): Use wide-int interfaces.
17181         (aff_combination_expand): Likewise.
17182         (double_int_constant_multiple_p): Delete.
17183         (wide_int_constant_multiple_p): New.
17184         (aff_combination_constant_multiple_p): Take a widest_int pointer
17185         instead of a double_int pointer.
17186         (print_aff): Use wide-int interfaces.
17187         (get_inner_reference_aff): Take a widest_int pointer
17188         instead of a double_int pointer.
17189         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17190         * tree-affine.h: Include wide-int.h.
17191         (struct aff_comb_elt): Change type of coef to widest_int.
17192         (struct affine_tree_combination): Change type of offset to widest_int.
17193         (double_int_ext_for_comb): Delete.
17194         (wide_int_ext_for_comb): New.
17195         (aff_combination_const): Use widest_int instead of double_int.
17196         (aff_combination_scale): Likewise.
17197         (aff_combination_add_elt): Likewise.
17198         (aff_combination_constant_multiple_p): Likewise.
17199         (get_inner_reference_aff): Likewise.
17200         (aff_comb_cannot_overlap_p): Likewise.
17201         (aff_combination_zero_p): Use wide-int interfaces.
17202         * tree.c: Include tree.h.
17203         (init_ttree): Use make_int_cst.
17204         (tree_code_size): Removed code for INTEGER_CST case.
17205         (tree_size): Add INTEGER_CST case.
17206         (make_node_stat): Update comment.
17207         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17208         (build_int_cst_type): Use wide-int interfaces.
17209         (double_int_to_tree): Likewise.
17210         (double_int_fits_to_tree_p): Delete.
17211         (force_fit_type_double): Delete.
17212         (force_fit_type): New.
17213         (int_cst_hash_hash): Use wide-int interfaces.
17214         (int_cst_hash_eq): Likewise.
17215         (build_int_cst_wide): Delete.
17216         (wide_int_to_tree): New.
17217         (cache_integer_cst): Use wide-int interfaces.
17218         (build_low_bits_mask): Likewise.
17219         (cst_and_fits_in_hwi): Likewise.
17220         (real_value_from_int_cst): Likewise.
17221         (make_int_cst_stat): New.
17222         (integer_zerop): Use wide_int interfaces.
17223         (integer_onep): Likewise.
17224         (integer_all_onesp): Likewise.
17225         (integer_pow2p): Likewise.
17226         (integer_nonzerop): Likewise.
17227         (tree_log2): Likewise.
17228         (tree_floor_log2): Likewise.
17229         (tree_ctz): Likewise.
17230         (int_size_in_bytes): Likewise.
17231         (mem_ref_offset): Return an offset_int rather than a double_int.
17232         (build_type_attribute_qual_variant): Use wide_int interfaces.
17233         (type_hash_eq): Likewise
17234         (tree_int_cst_equal): Likewise.
17235         (tree_int_cst_lt): Delete.
17236         (tree_int_cst_compare): Likewise.
17237         (tree_fits_shwi_p): Use wide_int interfaces.
17238         (tree_fits_uhwi_p): Likewise.
17239         (tree_int_cst_sign_bit): Likewise.
17240         (tree_int_cst_sgn): Likewise.
17241         (tree_int_cst_min_precision): Take a signop rather than a bool.
17242         (simple_cst_equal): Use wide_int interfaces.
17243         (compare_tree_int): Likewise.
17244         (iterative_hash_expr): Likewise.
17245         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
17246         INT_CST_LT.
17247         (get_type_static_bounds): Use wide_int interfaces.
17248         (tree_int_cst_elt_check_failed): New.
17249         (build_common_tree_nodes): Reordered to set prec before filling in
17250         value.
17251         (int_cst_value): Check cst_and_fits_in_hwi.
17252         (widest_int_cst_value): Use wide_int interfaces.
17253         (upper_bound_in_type): Likewise.
17254         (lower_bound_in_type): Likewise.
17255         (num_ending_zeros): Likewise.
17256         (drop_tree_overflow): Likewise.
17257         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17258         (gen_conditions_for_pow_cst_base): Likewise.
17259         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17260         (group_case_labels_stmt): Use wide-int interfaces.
17261         (verify_gimple_assign_binary): Likewise.
17262         (print_loop): Likewise.
17263         * tree-chrec.c (tree_fold_binomial): Likewise.
17264         * tree-core.h (struct tree_base): Add int_length.
17265         (struct tree_int_cst): Change rep of value.
17266         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17267         (dr_may_alias_p): Likewise.
17268         (max_stmt_executions_tree): Likewise.
17269         * tree.def (INTEGER_CST): Update comment.
17270         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17271         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17272         * tree-dump.c: Include wide-int.h and wide-int-print.h.
17273         (dequeue_and_dump): Use wide-int interfaces.
17274         * tree.h: Include wide-int.h.
17275         (NULL_TREE): Moved to earlier loc in file.
17276         (TREE_INT_CST_ELT_CHECK): New.
17277         (tree_int_cst_elt_check_failed): New.
17278         (TYPE_SIGN): New.
17279         (TREE_INT_CST): Delete.
17280         (TREE_INT_CST_LOW): Use wide-int interfaces.
17281         (TREE_INT_CST_HIGH): Delete.
17282         (TREE_INT_CST_NUNITS): New.
17283         (TREE_INT_CST_EXT_NUNITS): Likewise.
17284         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17285         (TREE_INT_CST_ELT): Likewise.
17286         (INT_CST_LT): Delete.
17287         (tree_int_cst_elt_check): New (two forms).
17288         (type_code_size): Update comment.
17289         (make_int_cst_stat, make_int_cst): New.
17290         (tree_to_double_int): Delete.
17291         (double_int_fits_to_tree_p): Delete.
17292         (force_fit_type_double): Delete.
17293         (build_int_cstu): Replace with out-of-line function.
17294         (build_int_cst_wide): Delete.
17295         (tree_int_cst_lt): Define inline.
17296         (tree_int_cst_le): New.
17297         (tree_int_cst_compare): Define inline.
17298         (tree_int_cst_min_precision): Take a signop rather than a bool.
17299         (wi::int_traits <const_tree>): New.
17300         (wi::int_traits <tree>): New.
17301         (wi::extended_tree): New.
17302         (wi::int_traits <wi::extended_tree>): New.
17303         (wi::to_widest): New.
17304         (wi::to_offset): New.
17305         (wi::fits_to_tree_p): New.
17306         (wi::min_value): New.
17307         (wi::max_value): New.
17308         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17309         (copy_tree_body_r): Likewise.
17310         * tree-object-size.c (compute_object_offset): Likewise.
17311         (addr_object_size): Likewise.
17312         * tree-predcom.c: Include wide-int-print.h.
17313         (struct dref_d): Change type of offset to widest_int.
17314         (dump_dref): Call wide-int printer.
17315         (aff_combination_dr_offset): Use wide-int interfaces.
17316         (determine_offset): Take a widest_int pointer rather than a
17317         double_int pointer.
17318         (split_data_refs_to_components): Use wide-int interfaces.
17319         (suitable_component_p): Likewise.
17320         (order_drefs): Likewise.
17321         (add_ref_to_chain): Likewise.
17322         (valid_initializer_p): Likewise.
17323         (determine_roots_comp): Likewise.
17324         * tree-pretty-print.c: Include wide-int-print.h.
17325         (dump_generic_node): Use wide-int interfaces.
17326         * tree-sra.c (sra_ipa_modify_expr): Likewise.
17327         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17328         (move_fixed_address_to_symbol): Likewise.
17329         (move_hint_to_base): Likewise.
17330         (move_pointer_to_base): Likewise.
17331         (move_variant_to_index): Likewise.
17332         (most_expensive_mult_to_index): Likewise.
17333         (addr_to_parts): Likewise.
17334         (copy_ref_info): Likewise.
17335         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17336         (indirect_refs_may_alias_p): Likewise.
17337         (stmt_kills_ref_p_1): Likewise.
17338         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17339         * tree-ssa-ccp.c: Update comment at top of file.  Include
17340         wide-int-print.h.
17341         (struct prop_value_d): Change type of mask to widest_int.
17342         (extend_mask): New function.
17343         (dump_lattice_value): Use wide-int interfaces.
17344         (get_default_value): Likewise.
17345         (set_constant_value): Likewise.
17346         (set_value_varying): Likewise.
17347         (valid_lattice_transition): Likewise.
17348         (set_lattice_value): Likewise.
17349         (value_to_double_int): Delete.
17350         (value_to_wide_int): New.
17351         (get_value_from_alignment): Use wide-int interfaces.
17352         (get_value_for_expr): Likewise.
17353         (do_dbg_cnt): Likewise.
17354         (ccp_finalize): Likewise.
17355         (ccp_lattice_meet): Likewise.
17356         (bit_value_unop_1): Use widest_ints rather than double_ints.
17357         (bit_value_binop_1): Likewise.
17358         (bit_value_unop): Use wide-int interfaces.
17359         (bit_value_binop): Likewise.
17360         (bit_value_assume_aligned): Likewise.
17361         (evaluate_stmt): Likewise.
17362         (ccp_fold_stmt): Likewise.
17363         (visit_cond_stmt): Likewise.
17364         (ccp_visit_stmt): Likewise.
17365         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17366         (constant_pointer_difference): Likewise.
17367         (associate_pointerplus): Likewise.
17368         (combine_conversions): Likewise.
17369         * tree-ssa-loop.h: Include wide-int.h.
17370         (struct tree_niter_desc): Change type of max to widest_int.
17371         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17372         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17373         (remove_redundant_iv_tests): Likewise.
17374         (canonicalize_loop_induction_variables): Likewise.
17375         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17376         (constant_multiple_of): Take a widest_int pointer instead of
17377         a double_int pointer.
17378         (get_computation_aff): Use wide-int interfaces.
17379         (ptr_difference_cost): Likewise.
17380         (difference_cost): Likewise.
17381         (get_loop_invariant_expr_id): Likewise.
17382         (get_computation_cost_at): Likewise.
17383         (iv_elimination_compare_lt): Likewise.
17384         (may_eliminate_iv): Likewise.
17385         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17386         instead of double_int.
17387         (max_loop_iterations): Likewise.
17388         (max_stmt_executions): Likewise.
17389         (estimated_stmt_executions): Likewise.
17390         * tree-ssa-loop-niter.c: Include wide-int-print.h.
17391         (split_to_var_and_offset): Use wide-int interfaces.
17392         (determine_value_range): Likewise.
17393         (bound_difference_of_offsetted_base): Likewise.
17394         (bounds_add): Take a widest_int instead of a double_int.
17395         (number_of_iterations_ne_max): Use wide-int interfaces.
17396         (number_of_iterations_ne): Likewise.
17397         (number_of_iterations_lt_to_ne): Likewise.
17398         (assert_loop_rolls_lt): Likewise.
17399         (number_of_iterations_lt): Likewise.
17400         (number_of_iterations_le): Likewise.
17401         (number_of_iterations_cond): Likewise.
17402         (number_of_iterations_exit): Likewise.
17403         (finite_loop_p): Likewise.
17404         (derive_constant_upper_bound_assign): Likewise.
17405         (derive_constant_upper_bound): Return a widest_int.
17406         (derive_constant_upper_bound_ops): Likewise.
17407         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17408         (record_estimate): Take a widest_int rather than a double_int.
17409         (record_nonwrapping_iv): Use wide-int interfaces.
17410         (double_int_cmp): Delete.
17411         (wide_int_cmp): New.
17412         (bound_index): Take a widest_int rather than a double_int.
17413         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17414         (maybe_lower_iteration_bound): Likewise.
17415         (estimate_numbers_of_iterations_loop): Likewise.
17416         (estimated_loop_iterations): Take a widest_int pointer than than
17417         a double_int pointer.
17418         (estimated_loop_iterations_int): Use wide-int interfaces.
17419         (max_loop_iterations): Take a widest_int pointer than than
17420         a double_int pointer.
17421         (max_loop_iterations_int): Use wide-int interfaces.
17422         (max_stmt_executions): Take a widest_int pointer than than
17423         a double_int pointer.
17424         (estimated_stmt_executions): Likewise.
17425         (n_of_executions_at_most): Use wide-int interfaces.
17426         (scev_probably_wraps_p): Likewise.
17427         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17428         to real_to_integer.
17429         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17430         interfaces.
17431         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17432         double_ints.  Adjust for trailing_wide_ints <3> representation.
17433         (set_nonzero_bits): Likewise.
17434         (get_range_info): Return wide_ints rather than double_ints.
17435         Adjust for trailing_wide_ints <3> representation.
17436         (get_nonzero_bits): Likewise.
17437         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17438         representation.
17439         * tree-ssanames.h (struct range_info_def): Replace min, max and
17440         nonzero_bits with a trailing_wide_ints <3>.
17441         (set_range_info): Use wide_int_refs rather than double_ints.
17442         (set_nonzero_bits): Likewise.
17443         (get_range_info): Return wide_ints rather than double_ints.
17444         (get_nonzero_bits): Likewise.
17445         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17446         * tree-ssa-pre.c (phi_translate_1): Likewise.
17447         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17448         (acceptable_pow_call): Likewise.
17449         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17450         interfaces.
17451         (vn_reference_fold_indirect): Likewise.
17452         (vn_reference_maybe_forwprop_address): Likewise.
17453         (valueize_refs_1): Likewise.
17454         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17455         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17456         tree_int_cst_lt and tree_int_cst_le.
17457         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17458         interfaces.
17459         (streamer_alloc_tree): Likewise.
17460         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17461         (streamer_write_tree_header): Likewise.
17462         (streamer_write_integer_cst): Likewise.
17463         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17464         (build_constructors): Likewise.
17465         (array_value_type): Likewise.
17466         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17467         (vect_check_gather): Likewise.
17468         * tree-vect-generic.c (build_replicated_const): Likewise.
17469         (expand_vector_divmod): Likewise.
17470         * tree-vect-loop.c (vect_transform_loop): Likewise.
17471         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17472         (vect_do_peeling_for_alignment): Likewise.
17473         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17474         * tree-vrp.c: Include wide-int.h.
17475         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17476         (extract_range_from_assert): Use wide-int interfaces.
17477         (vrp_int_const_binop): Likewise.
17478         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17479         double_int pointers.
17480         (ranges_from_anti_range): Use wide-int interfaces.
17481         (quad_int_cmp): Delete.
17482         (quad_int_pair_sort): Likewise.
17483         (extract_range_from_binary_expr_1): Use wide-int interfaces.
17484         (extract_range_from_unary_expr_1): Likewise.
17485         (adjust_range_with_scev): Likewise.
17486         (masked_increment): Take and return wide_ints rather than double_ints.
17487         (register_edge_assert_for_2): Use wide-int interfaces.
17488         (check_array_ref): Likewise.
17489         (search_for_addr_array): Likewise.
17490         (maybe_set_nonzero_bits): Likewise.
17491         (union_ranges): Pass an integer of the correct type instead of
17492         using integer_one_node.
17493         (intersect_ranges): Likewise.
17494         (simplify_truth_ops_using_ranges): Likewise.
17495         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17496         (range_fits_type_p): Likewise.
17497         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
17498         a bool.
17499         (simplify_conversion_using_ranges): Use wide-int interfaces.
17500         (simplify_float_conversion_using_ranges): Likewise.
17501         (vrp_finalize): Likewise.
17502         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17503         (gimple_stringops_transform): Likewise.
17504         * varasm.c (decode_addr_const): Likewise.
17505         (const_hash_1): Likewise.
17506         (const_rtx_hash_1): Likewise
17507         (output_constant): Likewise.
17508         (array_size_for_constructor): Likewise.
17509         (output_constructor_regular_field): Likewise.
17510         (output_constructor_bitfield): Likewise.
17511         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17512         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17513         GENERATOR_FILEs.
17514         * gencheck.c: Define BITS_PER_UNIT.
17515         * wide-int.cc: New.
17516         * wide-int.h: New.
17517         * wide-int-print.cc: New.
17518         * wide-int-print.h: New.
17520 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17522         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17524 2014-05-06  Richard Biener  <rguenther@suse.de>
17526         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17527         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17528         (TODO_verify_all): Adjust.
17529         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17530         TODO_verify_stmts and TODO_verify_rtl_sharing.
17531         * bb-reorder.c: Likewise.
17532         * cfgexpand.c: Likewise.
17533         * cprop.c: Likewise.
17534         * cse.c: Likewise.
17535         * function.c: Likewise.
17536         * fwprop.c: Likewise.
17537         * gcse.c: Likewise.
17538         * gimple-ssa-isolate-paths.c: Likewise.
17539         * gimple-ssa-strength-reduction.c: Likewise.
17540         * ipa-split.c: Likewise.
17541         * loop-init.c: Likewise.
17542         * loop-unroll.c: Likewise.
17543         * lower-subreg.c: Likewise.
17544         * modulo-sched.c: Likewise.
17545         * postreload-gcse.c: Likewise.
17546         * predict.c: Likewise.
17547         * recog.c: Likewise.
17548         * sched-rgn.c: Likewise.
17549         * store-motion.c: Likewise.
17550         * tracer.c: Likewise.
17551         * trans-mem.c: Likewise.
17552         * tree-call-cdce.c: Likewise.
17553         * tree-cfg.c: Likewise.
17554         * tree-cfgcleanup.c: Likewise.
17555         * tree-complex.c: Likewise.
17556         * tree-eh.c: Likewise.
17557         * tree-emutls.c: Likewise.
17558         * tree-if-conv.c: Likewise.
17559         * tree-into-ssa.c: Likewise.
17560         * tree-loop-distribution.c: Likewise.
17561         * tree-object-size.c: Likewise.
17562         * tree-parloops.c: Likewise.
17563         * tree-pass.h: Likewise.
17564         * tree-sra.c: Likewise.
17565         * tree-ssa-ccp.c: Likewise.
17566         * tree-ssa-copy.c: Likewise.
17567         * tree-ssa-copyrename.c: Likewise.
17568         * tree-ssa-dce.c: Likewise.
17569         * tree-ssa-dom.c: Likewise.
17570         * tree-ssa-dse.c: Likewise.
17571         * tree-ssa-forwprop.c: Likewise.
17572         * tree-ssa-ifcombine.c: Likewise.
17573         * tree-ssa-loop-ch.c: Likewise.
17574         * tree-ssa-loop-ivcanon.c: Likewise.
17575         * tree-ssa-loop.c: Likewise.
17576         * tree-ssa-math-opts.c: Likewise.
17577         * tree-ssa-phiopt.c: Likewise.
17578         * tree-ssa-phiprop.c: Likewise.
17579         * tree-ssa-pre.c: Likewise.
17580         * tree-ssa-reassoc.c: Likewise.
17581         * tree-ssa-sink.c: Likewise.
17582         * tree-ssa-strlen.c: Likewise.
17583         * tree-ssa-tail-merge.c: Likewise.
17584         * tree-ssa-uncprop.c: Likewise.
17585         * tree-switch-conversion.c: Likewise.
17586         * tree-tailcall.c: Likewise.
17587         * tree-vect-generic.c: Likewise.
17588         * tree-vectorizer.c: Likewise.
17589         * tree-vrp.c: Likewise.
17590         * tsan.c: Likewise.
17591         * var-tracking.c: Likewise.
17592         * bt-load.c: Likewise.
17593         * cfgcleanup.c: Likewise.
17594         * combine-stack-adj.c: Likewise.
17595         * combine.c: Likewise.
17596         * compare-elim.c: Likewise.
17597         * config/epiphany/resolve-sw-modes.c: Likewise.
17598         * config/i386/i386.c: Likewise.
17599         * config/mips/mips.c: Likewise.
17600         * config/s390/s390.c: Likewise.
17601         * config/sh/sh_treg_combine.cc: Likewise.
17602         * config/sparc/sparc.c: Likewise.
17603         * dce.c: Likewise.
17604         * dse.c: Likewise.
17605         * final.c: Likewise.
17606         * ifcvt.c: Likewise.
17607         * mode-switching.c: Likewise.
17608         * passes.c: Likewise.
17609         * postreload.c: Likewise.
17610         * ree.c: Likewise.
17611         * reg-stack.c: Likewise.
17612         * regcprop.c: Likewise.
17613         * regrename.c: Likewise.
17614         * web.c: Likewise.
17616 2014-05-06  Richard Biener  <rguenther@suse.de>
17618         PR middle-end/61070
17619         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
17620         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
17622 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
17624         PR ipa/60965
17625         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
17627 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
17628             Tom de Vries  <tom@codesourcery.com>
17630         * target.def (call_fusage_contains_non_callee_clobbers): New
17631         DEFHOOKPOD.
17632         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
17633         Hooks to @menu.
17634         (@node Miscellaneous Register Hooks): New node.
17635         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
17636         * doc/tm.texi: Regenerate.
17638 2014-05-05  Marek Polacek  <polacek@redhat.com>
17640         PR driver/61065
17641         * opts.c (common_handle_option): Call error_at instead of warning_at.
17643 2014-05-05  Richard Biener  <rguenther@suse.de>
17645         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
17646         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
17647         under the TODO_verify_il umbrella.
17649 2014-05-05  Richard Biener  <rguenther@suse.de>
17651         * passes.c (execute_function_todo): Move TODO_verify_flow under
17652         the TODO_verify_ul umbrella.
17654 2014-05-05  Richard Biener  <rguenther@suse.de>
17656         PR middle-end/61010
17657         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
17658         X & CST away from a CST that is the mask of a mode.
17660 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17662         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
17663         int argument to enum machine_mode.
17664         (picochip_class_max_nregs): Ditto.
17665         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
17666         (picochip_class_max_nregs): Ditto.
17668 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17670         * target.def: Add new target hook.
17671         * doc/tm.texi: Regenerate.
17672         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
17673         * targhooks.c (default_keep_leaf_when_profiled): New function.
17675         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
17676         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
17678 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
17680         PR tree-optimization/60363
17681         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
17682         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
17683         (update_destination_phis): New parameter.
17684         (create_edge_and_update_destination_phis): Ditto.
17685         (ssa_fix_duplicate_block_edges): Pass new arguments.
17686         (thread_single_edge): Ditto.
17688 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
17690         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
17691         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
17692         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
17693         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
17694         Use RS6000_BTM_HARD_FLOAT.
17695         (BU_MISC_2): Likewise.
17696         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17697         RS6000_BTM_HARD_FLOAT.
17698         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
17699         is explicitly used.
17700         (rs6000_invalid_builtin): Add hard floating builtin support.
17701         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
17702         hard float builtins.
17703         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
17705 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
17707         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
17708         Add missing function* argument.
17710 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
17712         * lra-constraints.c (valid_address_p): Move earlier in file.
17713         Add a constraint argument to the address_info version.
17714         (satisfies_memory_constraint_p): New function.
17715         (satisfies_address_constraint_p): Likewise.
17716         (process_alt_operands, curr_insn_transform): Use them.
17717         (process_address): Pass the constraint to valid_address_p when
17718         checking address operands.
17720 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
17722         * config/mips/mips.c (mips_isa_rev): New variable.
17723         (mips_set_architecture): Set it.
17724         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
17725         from mips_isa_rev.
17726         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
17727         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
17728         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
17729         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
17730         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
17731         conditions in terms of mips_isa_rev.
17732         (mips_isa_rev): Declare.
17734 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
17736         * config/sh/sh-mem.cc: Use tabs instead of spaces.
17737         (prob_unlikely, prob_likely): Make variables const.
17739 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
17741         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
17743 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
17745         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
17747 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
17749         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
17750         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
17751         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
17752         functions.
17753         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
17754         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
17755         sh_pass_in_reg_p.
17756         Replace usage of ROUND_REG with sh_round_reg.
17757         Use CEIL instead of ROUND_ADVANCE.
17759 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
17761         PR target/61026
17762         * config/sh/sh.c: Include stdlib headers before everything else.
17764 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
17766         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
17767         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
17768         (gimplify_adjust_omp_clauses): Simd region is never
17769         directly nested in combined parallel.  Instead, for linear
17770         with copyin/copyout, if in combined for simd loop, make decl
17771         firstprivate/lastprivate on OMP_FOR.
17772         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
17773         expand_omp_for_static_chunk): When setting endvar, also set
17774         fd->loop.v to the same value.
17776 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
17778         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
17780 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
17782         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
17783         expression.
17785 2014-05-02  Marek Polacek  <polacek@redhat.com>
17787         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
17789 2014-05-02  Kito Cheng  <kito@0xlab.org>
17791         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
17792         to a C expression marco.
17793         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
17794         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
17795         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
17796         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
17797         HONOR_REG_ALLOC_ORDER.
17798         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
17800 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17802         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
17804 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17806         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
17808 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
17810         * tree-if-conv.c (is_cond_scalar_reduction): New function.
17811         (convert_scalar_cond_reduction): Likewise.
17812         (predicate_scalar_phi): Add recognition and transformation
17813         of simple conditioanl reduction to be vectorizable.
17815 2014-05-01  Marek Polacek  <polacek@redhat.com>
17817         PR c/43245
17818         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
17820 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
17822         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
17823         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
17824         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
17825         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
17826         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
17827         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
17828         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
17829         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
17831 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
17833         * config/arc/arc.opt (mlra): Move comment above option name
17834         to avoid mis-parsing as language options.
17836 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17838         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
17839         * config/sol2.h: ... here.
17840         * config/sol2-10.h: Remove.
17842         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
17843         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
17844         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
17845         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
17846         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
17847         * config/sol2.h: ... here.
17848         (SECTION_NAME_FORMAT): Don't redefine.
17849         (STARTFILE_ARCH32_SPEC): Rename to ...
17850         (STARTFILE_ARCH_SPEC): ... this.
17851         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
17852         * config/sparc/sol2.h: ... here.
17853         (SECTION_NAME_FORMAT): Don't undef.
17854         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
17855         (SUBTARGET_EXTRA_SPECS): Remove.
17856         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
17858         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
17859         (MD_STARTFILE_PREFIX): Remove.
17860         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
17861         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
17862         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
17863         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
17864         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
17865         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
17866         * config/i386/sol2.h: ... here.
17867         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
17868         * config/i386/sol2-bi.h: Remove.
17869         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
17870         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
17872         * config/i386/t-sol2-64: Rename to ...
17873         * config/i386/t-sol2: ... this.
17874         * config/sparc/t-sol2-64: Rename to ...
17875         * config/sparc/t-sol2: ... this.
17877         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
17878         sol2_tm_file_head, sol2_tm_file_tail.
17879         Include ${cpu_type}/sol2.h before sol2.h.
17880         Remove sol2-10.h.
17881         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
17882         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
17883         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
17884         Reflect i386/t-sol2-64 renaming.
17885         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
17886         Reflect sparc/t-sol2-64 renaming.
17888 2014-04-30  Richard Biener  <rguenther@suse.de>
17890         * passes.c (execute_function_todo): Move TODO_verify_stmts
17891         and TODO_verify_ssa under the TODO_verify_il umbrella.
17892         * tree-ssa.h (verify_ssa): Adjust prototype.
17893         * tree-ssa.c (verify_ssa): Add parameter to tell whether
17894         we should verify SSA operands.
17895         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
17896         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
17897         whether we should verify whether not throwing stmts have EH info.
17898         * graphite-scop-detection.c (create_sese_edges): Adjust.
17899         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
17900         * tree-eh.c (lower_try_finally_switch): Do not add the
17901         default case label twice.
17903 2014-04-30  Marek Polacek  <polacek@redhat.com>
17905         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
17906         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
17907         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
17908         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
17910 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
17912         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
17913         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
17914         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
17915         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
17916         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
17917         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
17918         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
17919         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
17921 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
17923         * tree-cfg.c (dump_function_to_file): Dump the return type of
17924         functions, in a line to itself before the function body, mimicking
17925         the layout of a C function.
17927 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
17929         PR tree-optimization/60971
17930         * tree-tailcall.c (process_assignment): Reject conversions which
17931         reduce precision.
17933 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
17935         * calls.c (initialize_argument_information): Always treat
17936         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
17937         (expand_call): Likewise.
17938         (emit_library_call_calue_1): Likewise.
17939         * expr.c (PUSH_ARGS_REVERSED): Do not define.
17940         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
17941         code accordingly.
17943 2014-04-29  Nick Clifton  <nickc@redhat.com>
17945         * config/msp430/msp430.md (umulsidi): Fix typo.
17946         (mulhisi3): Enable even inside interrupt handlers.
17947         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
17948         bigger return address pushed in large mode.
17950 2014-04-29  Nick Clifton  <nickc@redhat.com>
17952         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
17953         (arc_init_reg_tables): Use a machine_mode enum to iterate over
17954         available modes.
17955         * config/m32r/m32r.c (init_reg_tables): Likewise.
17956         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
17957         enum to hold the modes.
17959 2014-04-29  Richard Biener  <rguenther@suse.de>
17961         * dominance.c (free_dominance_info): Add overload with
17962         function parameter.
17963         (dom_info_state): Likewise.
17964         (dom_info_available_p): Likewise.
17965         * basic-block.h (free_dominance_info, dom_info_state,
17966         dom_info_available_p): Declare overloads.
17967         * passes.c (execute_function_todo): Verify that verifiers
17968         don't change dominator info state.  Drop dominator info
17969         for IPA pass invocations.
17970         * cgraph.c (release_function_body): Restore asserts that
17971         dominator information is released.
17973 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
17975         * doc/invoke.texi: Fix typo.
17976         * tree-vrp.c: Fix typos.
17977         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
17979 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17981         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
17983 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
17985         * config/aarch64/aarch64-builtins.c
17986         (aarch64_types_storestruct_lane_qualifiers): New.
17987         (TYPES_STORESTRUCT_LANE): Likewise.
17988         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
17989         (st3_lane): Likewise.
17990         (st4_lane): Likewise.
17991         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
17992         (vec_store_lanesci_lane<mode>): Likewise.
17993         (vec_store_lanesxi_lane<mode>): Likewise.
17994         (aarch64_st2_lane<VQ:mode>): Likewise.
17995         (aarch64_st3_lane<VQ:mode>): Likewise.
17996         (aarch64_st4_lane<VQ:mode>): Likewise.
17997         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
17998         * config/aarch64/arm_neon.h
17999         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18000         use new macro arguments.
18001         (__ST3_LANE_FUNC): Likewise.
18002         (__ST4_LANE_FUNC): Likewise.
18003         * config/aarch64/iterators.md (V_TWO_ELEM): New.
18004         (V_THREE_ELEM): Likewise.
18005         (V_FOUR_ELEM): Likewise.
18007 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
18009         * doc/gimple.texi: Replace the description of the now-defunct
18010         union gimple_statement_d with a diagram showing the
18011         gimple_statement_base class hierarchy and its relationships to
18012         the GSS_ and GIMPLE_ enums.
18014 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
18016         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18017         * config/aarch64/aarch64.c
18018         (aarch64_cannot_change_mode_class): Weaken conditions.
18019         (aarch64_modes_tieable_p): New.
18020         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18022 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
18024         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18025         (loadsync_<mode>): Change mode.
18026         (load_quadpti, store_quadpti): New.
18027         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18028         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18030 2014-04-28  Martin Jambor  <mjambor@suse.cz>
18032         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18033         same alias type as the original statement.
18034         (subreplacement_assignment_data): New type.
18035         (handle_unscalarized_data_in_subtree): New type of parameter,
18036         generate new memory accesses with same alias type as the original
18037         statement.
18038         (load_assign_lhs_subreplacements): Likewise.
18039         (sra_modify_constructor_assign): Generate new memory accesses with
18040         same alias type as the original statement.
18042 2014-04-28  Richard Biener  <rguenther@suse.de>
18044         * tree-pass.h (TODO_verify_il): Define.
18045         (TODO_verify_all): Complete properly.
18046         * passes.c (execute_function_todo): Move existing loop-closed
18047         SSA verification under TODO_verify_il.
18048         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18049         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18050         Fix tree sharing issue.
18052 2014-04-28  Richard Biener  <rguenther@suse.de>
18054         PR middle-end/60092
18055         * builtins.def (DEF_C11_BUILTIN): Add.
18056         (BUILT_IN_ALIGNED_ALLOC): Likewise.
18057         * coretypes.h (enum function_class): Add function_c11_misc.
18058         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18059         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18060         (call_may_clobber_ref_p_1): Likewise.
18061         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18062         (mark_all_reaching_defs_necessary_1): Likewise.
18063         (propagate_necessity): Likewise.
18064         (eliminate_unnecessary_stmts): Likewise.
18065         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18067 2014-04-28  Richard Biener  <rguenther@suse.de>
18069         * tree-vrp.c (vrp_var_may_overflow): Remove.
18070         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18071         with overflow immediately bump to one before that value and
18072         let iteration figure out overflow status.
18074 2014-04-28  Richard Biener  <rguenther@suse.de>
18076         * configure.ac: Do valgrind header checks unconditionally.
18077         Add --enable-valgrind-annotations.
18078         * system.h: Guard valgrind header inclusion with
18079         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18080         * alloc-pool.c (pool_alloc, pool_free): Use
18081         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18082         to guard possibly dead code.
18083         * config.in: Regenerated.
18084         * configure: Likewise.
18086 2014-04-28  Jeff Law  <law@redhat.com>
18088         PR tree-optimization/60902
18089         * tree-ssa-threadedge.c
18090         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18091         over real defs when invalidating outputs from statements that do not
18092         produce useful outputs for threading.
18094 2014-04-28  Richard Biener  <rguenther@suse.de>
18096         PR tree-optimization/60979
18097         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18098         SCOPs that end in a block with a successor with abnormal
18099         predecessors.
18101 2014-04-28  Richard Biener  <rguenther@suse.de>
18103         * tree-pass.h (execute_pass_list): Adjust prototype.
18104         * passes.c (pass_manager::execute_early_local_passes): Adjust.
18105         (do_per_function): Change callback signature, push all actual
18106         work to the callbals.
18107         (do_per_function_toporder): Likewise.
18108         (execute_function_dump): Adjust.
18109         (execute_function_todo): Likewise.
18110         (clear_last_verified): Likewise.
18111         (verify_curr_properties): Likewise.
18112         (update_properties_after_pass): Likewise.
18113         (execute_pass_list_1): Split out from ...
18114         (execute_pass_list): ... here.  Adjust.
18115         (execute_ipa_pass_list): Likewise.
18116         * cgraphunit.c (cgraph_add_new_function): Adjust.
18117         (analyze_function): Likewise.
18118         (expand_function): Likewise.
18119         * cgraph.c (release_function_body): Free dominance info
18120         here instead of asserting it was magically freed elsewhere.
18122 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
18124         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18125         * configure: Regenerate.
18126         * config/sparc/sparc.opt (muser-mode): New option.
18127         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18128         for LEON3.
18129         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18130         * doc/invoke.texi (SPARC options): Document -muser-mode.
18132 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
18134         * cselib.c (find_slot_memmode): Delete.
18135         (cselib_hasher): Change compare_type to a struct.
18136         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
18137         constants.
18138         (preserve_constants_and_equivs): Adjust for new compare_type.
18139         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
18140         (wrap_constant): Delete.
18141         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18143 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
18145         * doc/install.texi (Building with profile feedback): Remove
18146         outdated sentence.
18148 2014-04-26  Tom de Vries  <tom@codesourcery.com>
18150         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18151         array accesses.
18153 2014-04-25  Cary Coutant  <ccoutant@google.com>
18155         PR debug/60929
18156         * dwarf2out.c (should_move_die_to_comdat): A type definition
18157         can contain a subprogram definition, but don't move it to a
18158         comdat unit.
18159         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18160         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18161         from original DIE.
18162         (clone_tree_hash): Rename to...
18163         (clone_tree_partial): ...this; change callers.  Copy
18164         DW_TAG_subprogram DIEs as declarations.
18165         (copy_decls_walk): Don't copy children of a declaration into a
18166         type unit.
18168 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
18170         PR target/60969
18171         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18172         alternative 12.
18174 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
18176         * config/arm/predicates.md (call_insn_operand): Add long_call check.
18177         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18178         reg for long_call.
18179         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18180         restriction.
18182 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18184         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18186 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18188         PR tree-optimization/60930
18189         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
18190         creating a multiply candidate by folding two constant
18191         multiplicands when the result overflows.
18193 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
18195         PR tree-optimization/60960
18196         * tree-vect-generic.c (expand_vector_operation): Only call
18197         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18199 2014-04-25  Tom de Vries  <tom@codesourcery.com>
18201         * expr.c (clobber_reg_mode): New function.
18202         * expr.h (clobber_reg): New function.
18204 2014-04-25  Tom de Vries  <tom@codesourcery.com>
18206         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18207         clobbers.
18209 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
18210             Tom de Vries  <tom@codesourcery.com>
18212         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18213         handle.
18214         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18215         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18216         new argument to find_all_hard_reg_sets call.
18218 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18220         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18221         Use HOST_WIDE_INT_C for mask literal.
18222         (aarch_rev16_shleft_mask_imm_p): Likewise.
18224 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
18226         PR target/60941
18227         * config/sparc/sparc.md (ashlsi3_extend): Delete.
18229 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
18231         PR preprocessor/56540
18232         * config/i386/i386-c.c (ix86_target_macros): Define
18233         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18235 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18237         * configure.ac (tga_func): Remove.
18238         (LIB_TLS_SPEC): Remove.
18239         * configure: Regenerate.
18240         * config.in: Regenerate.
18241         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18243 2014-04-25  Richard Biener  <rguenther@suse.de>
18245         PR ipa/60912
18246         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18247         call stmt use/clobber sets during stmt walk instead of
18248         walking the possibly incomplete set of caller edges.
18250 2014-04-25  Richard Biener  <rguenther@suse.de>
18252         PR ipa/60911
18253         * passes.c (apply_ipa_transforms): Inline into only caller ...
18254         (execute_one_pass): ... here.  Properly bring in function
18255         bodies for nodes we want to apply IPA transforms to.
18257 2014-04-24  Cong Hou  <congh@google.com>
18259         PR tree-optimization/60896
18260         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18261         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18262         (vect_mark_pattern_stmts): Set the def type of all statements in
18263         PATTERN_DEF_SEQ as vect_internal_def.
18265 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
18267         * doc/extend.texi (PowerPC Built-in Functions): Document new
18268         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18269         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18271         * config/rs6000/predicates.md (const_0_to_3_operand): New
18272         predicate to match 0..3 integer constants.
18274         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18275         to support adding miscellaneous builtin functions.
18276         (BU_DFP_MISC_2): Likewise.
18277         (BU_P7_MISC_1): Likewise.
18278         (BU_P7_MISC_2): Likewise.
18279         (BU_P8V_MISC_3): Likewise.
18280         (BU_MISC_1): Likewise.
18281         (BU_MISC_2): Likewise.
18282         (DIVWE): Add extended divide builtin functions.
18283         (DIVWEO): Likewise.
18284         (DIVWEU): Likewise.
18285         (DIVWEUO): Likewise.
18286         (DIVDE): Likewise.
18287         (DIVDEO): Likewise.
18288         (DIVDEU): Likewise.
18289         (DIVDEUO): Likewise.
18290         (DXEX): Add decimal floating-point builtin functions.
18291         (DXEXQ): Likewise.
18292         (DDEDPD): Likewise.
18293         (DDEDPDQ): Likewise.
18294         (DENBCD): Likewise.
18295         (DENBCDQ): Likewise.
18296         (DIEX): Likewise.
18297         (DIEXQ): Likewise.
18298         (DSCLI): Likewise.
18299         (DSCLIQ): Likewise.
18300         (DSCRI): Likewise.
18301         (DSCRIQ): Likewise.
18302         (CDTBCD): Add new BCD builtin functions.
18303         (CBCDTD): Likewise.
18304         (ADDG6S): Likewise.
18305         (BCDADD): Likewise.
18306         (BCDADD_LT): Likewise.
18307         (BCDADD_EQ): Likewise.
18308         (BCDADD_GT): Likewise.
18309         (BCDADD_OV): Likewise.
18310         (BCDSUB): Likewise.
18311         (BCDSUB_LT): Likewise.
18312         (BCDSUB_EQ): Likewise.
18313         (BCDSUB_GT): Likewise.
18314         (BCDSUB_OV): Likewise.
18315         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18316         (UNPACK_TD): Likewise.
18317         (PACK_TF): Likewise.
18318         (UNPACK_TF): Likewise.
18319         (UNPACK_TF_0): Likewise.
18320         (UNPACK_TF_1): Likewise.
18321         (PACK_V1TI): Likewise.
18322         (UNPACK_V1TI): Likewise.
18324         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18325         support for decimal floating point builtin functions.
18326         (rs6000_expand_ternop_builtin): Add checks for the new builtin
18327         functions that take constant arguments.
18328         (rs6000_invalid_builtin): Add decimal floating point builtin support.
18329         (rs6000_init_builtins): Setup long double, _Decimal64, and
18330         _Decimal128 types for new builtin functions.
18331         (builtin_function_type): Set the unsigned flags appropriately for
18332         the new builtin functions.
18333         (rs6000_opt_masks): Add support for decimal floating point builtin
18334         functions.
18336         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18337         floating point builtin functions.
18338         (RS6000_BTM_COMMON): Likewise.
18339         (RS6000_BTI_long_double): Likewise.
18340         (RS6000_BTI_dfloat64): Likewise.
18341         (RS6000_BTI_dfloat128): Likewise.
18342         (long_double_type_internal_node): Likewise.
18343         (dfloat64_type_internal_node): Likewise.
18344         (dfloat128_type_internal_node): Likewise.
18346         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18347         2.07 bcd arithmetic instructions.
18348         (UNSPEC_BCDSUB): Likewise.
18349         (UNSPEC_BCD_OVERFLOW): Likewise.
18350         (UNSPEC_BCD_ADD_SUB): Likewise.
18351         (bcd_add_sub): Likewise.
18352         (BCD_TEST): Likewise.
18353         (bcd<bcd_add_sub>): Likewise.
18354         (bcd<bcd_add_sub>_test): Likewise.
18355         (bcd<bcd_add_sub>_test2): Likewise.
18356         (bcd<bcd_add_sub>_<code>): Likewise.
18357         (peephole2 for combined bcd ops): Likewise.
18359         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18360         decimal floating point builtin functions.
18361         (UNSPEC_DENBCD): Likewise.
18362         (UNSPEC_DXEX): Likewise.
18363         (UNSPEC_DIEX): Likewise.
18364         (UNSPEC_DSCLI): Likewise.
18365         (UNSPEC_DSCRI): Likewise.
18366         (D64_D128): Likewise.
18367         (dfp_suffix): Likewise.
18368         (dfp_ddedpd_<mode>): Likewise.
18369         (dfp_denbcd_<mode>): Likewise.
18370         (dfp_dxex_<mode>): Likewise.
18371         (dfp_diex_<mode>): Likewise.
18372         (dfp_dscli_<mode>): Likewise.
18373         (dfp_dscri_<mode>): Likewise.
18375         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18376         builtin functions.
18377         (UNSPEC_CDTBCD): Likewise.
18378         (UNSPEC_CBCDTD): Likewise.
18379         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18380         (UNSPEC_DIVEO): Likewise.
18381         (UNSPEC_DIVEU): Likewise.
18382         (UNSPEC_DIVEUO): Likewise.
18383         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18384         pack/unpack 128-bit types.
18385         (UNSPEC_PACK_128BIT): Likewise.
18386         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18387         (udiv<mode>3): Use idiv_ldiv mode attribute.
18388         (div<mode>3): Likewise.
18389         (addg6s): Add new BCD builtin functions.
18390         (cdtbcd): Likewise.
18391         (cbcdtd): Likewise.
18392         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18393         (div_extend): Likewise.
18394         (div<div_extend>_<mode>"): Likewise.
18395         (FP128_64): Add support for new builtin functions to pack/unpack
18396         128-bit types.
18397         (unpack<mode>): Likewise.
18398         (unpacktf_0): Likewise.
18399         (unpacktf_1): Likewise.
18400         (unpack<mode>_dm): Likewise.
18401         (unpack<mode>_nodm): Likewise.
18402         (pack<mode>): Likewise.
18403         (unpackv1ti): Likewise.
18404         (packv1ti): Likewise.
18406 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
18408         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18409         is disabled.
18411 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
18413         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18414         * gimplify.c (omp_is_private): Change last argument's type to int.
18415         Only diagnose lastprivate if the simd argument is 1, only diagnose
18416         linear if the simd argument is 2.
18417         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
18418         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
18419         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
18420         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18421         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18422         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18423         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18424         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18425         * tree-nested.c (convert_nonlocal_omp_clauses,
18426         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18428 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
18430         PR target/60822
18431         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18432         operand 1.
18434 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
18436         * flag-types.h (enum ivar_visibility): Add.
18438 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
18440         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18441         function * argument.
18443 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
18445         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18447 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
18448             Tom de Vries  <tom@codesourcery.com>
18450         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18451         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18452         reg-note.
18453         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18454         * emit-rtl.c (try_split): Same.
18456 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
18457             Tom de Vries  <tom@codesourcery.com>
18459         * common.opt (fuse-caller-save): New option.
18461 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
18463         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18464         elements for big-endian.
18466 2014-04-24  Richard Biener  <rguenther@suse.de>
18468         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18469         during TER and instead use the sepops interface for expanding
18470         non-GIMPLE_SINGLE_RHS.
18472 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18474         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18475         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18477 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18479         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18480         assembler 64-bit option.
18481         * configure: Regenerate.
18483 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18485         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18486         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18487         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18488         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18489         (TARGET_CRYPTO): Take TARGET_SIMD into account.
18491 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18493         * config/aarch64/aarch64-builtins.c
18494         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18495         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18496         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18497         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18498         builtins.
18499         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18500         (Vrevsuff): New mode attribute.
18502 2014-04-24  Terry Guo  <terry.guo@arm.com>
18504         * config/arm/arm.h (machine_function): Define variable
18505         after_arm_reorg here.
18506         * config/arm/arm.c (after_arm_reorg): Remove the definition.
18507         (arm_split_constant): Update the way to access variable
18508         after_arm_reorg.
18509         (arm_reorg): Ditto.
18510         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18512 2014-04-23  Tom de Vries  <tom@codesourcery.com>
18514         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18516 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
18518         * is-a.h: Update comments to reflect the following changes to the
18519         "pointerness" of the API, making the template parameter match the
18520         return type, allowing use of is-a.h with typedefs of pointers.
18521         (is_a_helper::cast): Return a T rather then a pointer to a T, so
18522         that the return type matches the parameter to the is_a_helper.
18523         (as_a): Likewise.
18524         (dyn_cast): Likewise.
18526         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18527         pointer from the is-a.h API.
18529         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18530         (is_a_helper <cgraph_node *>::test): ...this, matching change to
18531         is-a.h API.
18532         (is_a_helper <varpool_node>::test): Likewise, convert to...
18533         (is_a_helper <varpool_node *>::test): ...this.
18535         (varpool_first_variable): Update for removal of implicit pointer
18536         from the is-a.h API.
18537         (varpool_next_variable): Likewise.
18538         (varpool_first_static_initializer): Likewise.
18539         (varpool_next_static_initializer): Likewise.
18540         (varpool_first_defined_variable): Likewise.
18541         (varpool_next_defined_variable): Likewise.
18542         (cgraph_first_defined_function): Likewise.
18543         (cgraph_next_defined_function): Likewise.
18544         (cgraph_first_function): Likewise.
18545         (cgraph_next_function): Likewise.
18546         (cgraph_first_function_with_gimple_body): Likewise.
18547         (cgraph_next_function_with_gimple_body): Likewise.
18548         (cgraph_alias_target): Likewise.
18549         (varpool_alias_target): Likewise.
18550         (cgraph_function_or_thunk_node): Likewise.
18551         (varpool_variable_node): Likewise.
18552         (symtab_real_symbol_p): Likewise.
18553         * cgraphunit.c (referred_to_p): Likewise.
18554         (analyze_functions): Likewise.
18555         (handle_alias_pairs): Likewise.
18556         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
18557         * gimple-ssa.h (gimple_vuse_op): Likewise.
18558         (gimple_vdef_op): Likewise.
18559         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
18560         * gimple.c (gimple_build_asm_1): Likewise.
18561         (gimple_build_try): Likewise.
18562         (gimple_build_resx): Likewise.
18563         (gimple_build_eh_dispatch): Likewise.
18564         (gimple_build_omp_for): Likewise.
18565         (gimple_omp_for_set_clauses): Likewise.
18567         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
18568         (is_a_helper <gimple_statement_asm *>::test): ...this.
18569         (is_a_helper <gimple_statement_bind>::test): Convert to...
18570         (is_a_helper <gimple_statement_bind *>::test): ...this.
18571         (is_a_helper <gimple_statement_call>::test): Convert to...
18572         (is_a_helper <gimple_statement_call *>::test): ...this.
18573         (is_a_helper <gimple_statement_catch>::test): Convert to...
18574         (is_a_helper <gimple_statement_catch *>::test): ...this.
18575         (is_a_helper <gimple_statement_resx>::test): Convert to...
18576         (is_a_helper <gimple_statement_resx *>::test): ...this.
18577         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
18578         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
18579         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
18580         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
18581         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
18582         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
18583         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
18584         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
18585         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
18586         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
18587         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
18588         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
18589         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
18590         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
18591         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
18592         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
18593         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
18594         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
18595         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
18596         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
18597         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
18598         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
18599         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
18600         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
18601         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
18602         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
18603         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
18604         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
18605         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
18606         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
18607         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
18608         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
18609         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
18610         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
18611         (is_a_helper <gimple_statement_phi>::test): Convert to...
18612         (is_a_helper <gimple_statement_phi *>::test): ...this.
18613         (is_a_helper <gimple_statement_transaction>::test): Convert to...
18614         (is_a_helper <gimple_statement_transaction *>::test): ...this.
18615         (is_a_helper <gimple_statement_try>::test): Convert to...
18616         (is_a_helper <gimple_statement_try *>::test): ...this.
18617         (is_a_helper <gimple_statement_wce>::test): Convert to...
18618         (is_a_helper <gimple_statement_wce *>::test): ...this.
18619         (is_a_helper <const gimple_statement_asm>::test): Convert to...
18620         (is_a_helper <const gimple_statement_asm *>::test): ...this.
18621         (is_a_helper <const gimple_statement_bind>::test): Convert to...
18622         (is_a_helper <const gimple_statement_bind *>::test): ...this.
18623         (is_a_helper <const gimple_statement_call>::test): Convert to...
18624         (is_a_helper <const gimple_statement_call *>::test): ...this.
18625         (is_a_helper <const gimple_statement_catch>::test): Convert to...
18626         (is_a_helper <const gimple_statement_catch *>::test): ...this.
18627         (is_a_helper <const gimple_statement_resx>::test): Convert to...
18628         (is_a_helper <const gimple_statement_resx *>::test): ...this.
18629         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
18630         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
18631         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
18632         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
18633         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
18634         Convert to...
18635         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
18636         ...this.
18637         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
18638         Convert to...
18639         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
18640         ...this.
18641         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
18642         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
18643         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
18644         to...
18645         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
18646         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
18647         to...
18648         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
18649         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
18650         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
18651         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
18652         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
18653         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
18654         to...
18655         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
18656         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
18657         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
18658         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
18659         to...
18660         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
18661         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
18662         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
18663         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
18664         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
18665         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
18666         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
18667         (is_a_helper <const gimple_statement_phi>::test): Convert to...
18668         (is_a_helper <const gimple_statement_phi *>::test): ...this.
18669         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
18670         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
18671         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
18672         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
18673         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
18674         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
18675         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
18676         to...
18677         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
18678         ...this.
18679         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
18680         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
18682         (gimple_use_ops): Update for removal of implicit pointer from the
18683         is-a.h API.
18684         (gimple_set_use_ops): Likewise.
18685         (gimple_vuse): Likewise.
18686         (gimple_vdef): Likewise.
18687         (gimple_vuse_ptr): Likewise.
18688         (gimple_vdef_ptr): Likewise.
18689         (gimple_set_vuse): Likewise.
18690         (gimple_set_vdef): Likewise.
18691         (gimple_omp_return_set_lhs): Likewise.
18692         (gimple_omp_return_lhs): Likewise.
18693         (gimple_omp_return_lhs_ptr): Likewise.
18694         (gimple_call_fntype): Likewise.
18695         (gimple_call_set_fntype): Likewise.
18696         (gimple_call_set_internal_fn): Likewise.
18697         (gimple_call_use_set): Likewise.
18698         (gimple_call_clobber_set): Likewise.
18699         (gimple_bind_vars): Likewise.
18700         (gimple_bind_set_vars): Likewise.
18701         (gimple_bind_body_ptr): Likewise.
18702         (gimple_bind_set_body): Likewise.
18703         (gimple_bind_add_stmt): Likewise.
18704         (gimple_bind_block): Likewise.
18705         (gimple_bind_set_block): Likewise.
18706         (gimple_asm_ninputs): Likewise.
18707         (gimple_asm_noutputs): Likewise.
18708         (gimple_asm_nclobbers): Likewise.
18709         (gimple_asm_nlabels): Likewise.
18710         (gimple_asm_input_op): Likewise.
18711         (gimple_asm_input_op_ptr): Likewise.
18712         (gimple_asm_output_op): Likewise.
18713         (gimple_asm_output_op_ptr): Likewise.
18714         (gimple_asm_set_output_op): Likewise.
18715         (gimple_asm_clobber_op): Likewise.
18716         (gimple_asm_set_clobber_op): Likewise.
18717         (gimple_asm_label_op): Likewise.
18718         (gimple_asm_set_label_op): Likewise.
18719         (gimple_asm_string): Likewise.
18720         (gimple_catch_types): Likewise.
18721         (gimple_catch_types_ptr): Likewise.
18722         (gimple_catch_handler_ptr): Likewise.
18723         (gimple_catch_set_types): Likewise.
18724         (gimple_catch_set_handler): Likewise.
18725         (gimple_eh_filter_types): Likewise.
18726         (gimple_eh_filter_types_ptr): Likewise.
18727         (gimple_eh_filter_failure_ptr): Likewise.
18728         (gimple_eh_filter_set_types): Likewise.
18729         (gimple_eh_filter_set_failure): Likewise.
18730         (gimple_eh_must_not_throw_fndecl): Likewise.
18731         (gimple_eh_must_not_throw_set_fndecl): Likewise.
18732         (gimple_eh_else_n_body_ptr): Likewise.
18733         (gimple_eh_else_e_body_ptr): Likewise.
18734         (gimple_eh_else_set_n_body): Likewise.
18735         (gimple_eh_else_set_e_body): Likewise.
18736         (gimple_try_eval_ptr): Likewise.
18737         (gimple_try_cleanup_ptr): Likewise.
18738         (gimple_try_set_eval): Likewise.
18739         (gimple_try_set_cleanup): Likewise.
18740         (gimple_wce_cleanup_ptr): Likewise.
18741         (gimple_wce_set_cleanup): Likewise.
18742         (gimple_phi_capacity): Likewise.
18743         (gimple_phi_num_args): Likewise.
18744         (gimple_phi_result): Likewise.
18745         (gimple_phi_result_ptr): Likewise.
18746         (gimple_phi_set_result): Likewise.
18747         (gimple_phi_arg): Likewise.
18748         (gimple_phi_set_arg): Likewise.
18749         (gimple_resx_region): Likewise.
18750         (gimple_resx_set_region): Likewise.
18751         (gimple_eh_dispatch_region): Likewise.
18752         (gimple_eh_dispatch_set_region): Likewise.
18753         (gimple_omp_critical_name): Likewise.
18754         (gimple_omp_critical_name_ptr): Likewise.
18755         (gimple_omp_critical_set_name): Likewise.
18756         (gimple_omp_for_clauses): Likewise.
18757         (gimple_omp_for_clauses_ptr): Likewise.
18758         (gimple_omp_for_set_clauses): Likewise.
18759         (gimple_omp_for_collapse): Likewise.
18760         (gimple_omp_for_index): Likewise.
18761         (gimple_omp_for_index_ptr): Likewise.
18762         (gimple_omp_for_set_index): Likewise.
18763         (gimple_omp_for_initial): Likewise.
18764         (gimple_omp_for_initial_ptr): Likewise.
18765         (gimple_omp_for_set_initial): Likewise.
18766         (gimple_omp_for_final): Likewise.
18767         (gimple_omp_for_final_ptr): Likewise.
18768         (gimple_omp_for_set_final): Likewise.
18769         (gimple_omp_for_incr): Likewise.
18770         (gimple_omp_for_incr_ptr): Likewise.
18771         (gimple_omp_for_set_incr): Likewise.
18772         (gimple_omp_for_pre_body_ptr): Likewise.
18773         (gimple_omp_for_set_pre_body): Likewise.
18774         (gimple_omp_parallel_clauses): Likewise.
18775         (gimple_omp_parallel_clauses_ptr): Likewise.
18776         (gimple_omp_parallel_set_clauses): Likewise.
18777         (gimple_omp_parallel_child_fn): Likewise.
18778         (gimple_omp_parallel_child_fn_ptr): Likewise.
18779         (gimple_omp_parallel_set_child_fn): Likewise.
18780         (gimple_omp_parallel_data_arg): Likewise.
18781         (gimple_omp_parallel_data_arg_ptr): Likewise.
18782         (gimple_omp_parallel_set_data_arg): Likewise.
18783         (gimple_omp_task_clauses): Likewise.
18784         (gimple_omp_task_clauses_ptr): Likewise.
18785         (gimple_omp_task_set_clauses): Likewise.
18786         (gimple_omp_task_child_fn): Likewise.
18787         (gimple_omp_task_child_fn_ptr): Likewise.
18788         (gimple_omp_task_set_child_fn): Likewise.
18789         (gimple_omp_task_data_arg): Likewise.
18790         (gimple_omp_task_data_arg_ptr): Likewise.
18791         (gimple_omp_task_set_data_arg): Likewise.
18792         (gimple_omp_taskreg_clauses): Likewise.
18793         (gimple_omp_taskreg_clauses_ptr): Likewise.
18794         (gimple_omp_taskreg_set_clauses): Likewise.
18795         (gimple_omp_taskreg_child_fn): Likewise.
18796         (gimple_omp_taskreg_child_fn_ptr): Likewise.
18797         (gimple_omp_taskreg_set_child_fn): Likewise.
18798         (gimple_omp_taskreg_data_arg): Likewise.
18799         (gimple_omp_taskreg_data_arg_ptr): Likewise.
18800         (gimple_omp_taskreg_set_data_arg): Likewise.
18801         (gimple_omp_task_copy_fn): Likewise.
18802         (gimple_omp_task_copy_fn_ptr): Likewise.
18803         (gimple_omp_task_set_copy_fn): Likewise.
18804         (gimple_omp_task_arg_size): Likewise.
18805         (gimple_omp_task_arg_size_ptr): Likewise.
18806         (gimple_omp_task_set_arg_size): Likewise.
18807         (gimple_omp_task_arg_align): Likewise.
18808         (gimple_omp_task_arg_align_ptr): Likewise.
18809         (gimple_omp_task_set_arg_align): Likewise.
18810         (gimple_omp_single_clauses): Likewise.
18811         (gimple_omp_single_clauses_ptr): Likewise.
18812         (gimple_omp_single_set_clauses): Likewise.
18813         (gimple_omp_target_clauses): Likewise.
18814         (gimple_omp_target_clauses_ptr): Likewise.
18815         (gimple_omp_target_set_clauses): Likewise.
18816         (gimple_omp_target_child_fn): Likewise.
18817         (gimple_omp_target_child_fn_ptr): Likewise.
18818         (gimple_omp_target_set_child_fn): Likewise.
18819         (gimple_omp_target_data_arg): Likewise.
18820         (gimple_omp_target_data_arg_ptr): Likewise.
18821         (gimple_omp_target_set_data_arg): Likewise.
18822         (gimple_omp_teams_clauses): Likewise.
18823         (gimple_omp_teams_clauses_ptr): Likewise.
18824         (gimple_omp_teams_set_clauses): Likewise.
18825         (gimple_omp_sections_clauses): Likewise.
18826         (gimple_omp_sections_clauses_ptr): Likewise.
18827         (gimple_omp_sections_set_clauses): Likewise.
18828         (gimple_omp_sections_control): Likewise.
18829         (gimple_omp_sections_control_ptr): Likewise.
18830         (gimple_omp_sections_set_control): Likewise.
18831         (gimple_omp_for_set_cond): Likewise.
18832         (gimple_omp_for_cond): Likewise.
18833         (gimple_omp_atomic_store_set_val): Likewise.
18834         (gimple_omp_atomic_store_val): Likewise.
18835         (gimple_omp_atomic_store_val_ptr): Likewise.
18836         (gimple_omp_atomic_load_set_lhs): Likewise.
18837         (gimple_omp_atomic_load_lhs): Likewise.
18838         (gimple_omp_atomic_load_lhs_ptr): Likewise.
18839         (gimple_omp_atomic_load_set_rhs): Likewise.
18840         (gimple_omp_atomic_load_rhs): Likewise.
18841         (gimple_omp_atomic_load_rhs_ptr): Likewise.
18842         (gimple_omp_continue_control_def): Likewise.
18843         (gimple_omp_continue_control_def_ptr): Likewise.
18844         (gimple_omp_continue_set_control_def): Likewise.
18845         (gimple_omp_continue_control_use): Likewise.
18846         (gimple_omp_continue_control_use_ptr): Likewise.
18847         (gimple_omp_continue_set_control_use): Likewise.
18848         (gimple_transaction_body_ptr): Likewise.
18849         (gimple_transaction_label): Likewise.
18850         (gimple_transaction_label_ptr): Likewise.
18851         (gimple_transaction_set_body): Likewise.
18852         (gimple_transaction_set_label): Likewise.
18854         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
18855         * ipa-inline-analysis.c (inline_write_summary): Likewise.
18856         * ipa-ref.c (ipa_record_reference): Likewise.
18857         * ipa-reference.c (analyze_function): Likewise.
18858         (ipa_reference_write_optimization_summary): Likewise.
18859         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
18860         (address_taken_from_non_vtable_p): Likewise.
18861         (comdat_can_be_unshared_p_1): Likewise.
18862         * lto-cgraph.c (lto_output_ref): Likewise.
18863         (add_references): Likewise.
18864         (compute_ltrans_boundary): Likewise.
18865         (output_symtab): Likewise.
18866         (input_ref): Likewise.
18867         (input_cgraph_1): Likewise.
18868         (output_cgraph_opt_summary): Likewise.
18869         * lto-streamer-out.c (lto_output): Likewise.
18870         (output_symbol_p): Likewise.
18871         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
18872         (lsei_start_function_in_partition): Likewise.
18873         (lsei_next_variable_in_partition): Likewise.
18874         (lsei_start_variable_in_partition): Likewise.
18875         * symtab.c (insert_to_assembler_name_hash): Likewise.
18876         (unlink_from_assembler_name_hash): Likewise.
18877         (symtab_unregister_node): Likewise.
18878         (symtab_remove_node): Likewise.
18879         (dump_symtab_node): Likewise.
18880         (verify_symtab_base): Likewise.
18881         (verify_symtab_node): Likewise.
18882         (symtab_make_decl_local): Likewise.
18883         (symtab_alias_ultimate_target): Likewise.
18884         (symtab_resolve_alias): Likewise.
18885         (symtab_get_symbol_partitioning_class): Likewise.
18886         * tree-phinodes.c (allocate_phi_node): Likewise.
18887         (reserve_phi_args_for_new_edge): Likewise.
18888         (remove_phi_args): Likewise.
18889         * varpool.c (varpool_node_for_asm): Likewise.
18890         (varpool_remove_unreferenced_decls): Likewise.
18892 2014-04-23  Jeff Law  <law@redhat.com>
18894         PR tree-optimization/60902
18895         * tree-ssa-threadedge.c
18896         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
18897         invalidate outputs from statements that do not produce useful
18898         outputs for threading.
18900 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
18902         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
18903         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
18904         machine descriptions for Stack Smashing Protector.
18906 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
18908         * aarch64.md (<optab>_rol<mode>3): New pattern.
18909         (<optab>_rolsi3_uxtw): Likewise.
18910         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
18912 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
18914         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
18915         (arm_cortex_a12_tune): Likewise.
18917 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18919         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
18921 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18923         * config/arm/arm.md (arm_rev16si2): New pattern.
18924         (arm_rev16si2_alt): Likewise.
18925         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
18927 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18929         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
18930         (rev16<mode>2_alt): Likewise.
18931         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
18932         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
18933         (aarch_rev16_shleft_mask_imm_p): Likewise.
18934         (aarch_rev16_p_1): Likewise.
18935         (aarch_rev16_p): Likewise.
18936         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
18937         (aarch_rev16_shright_mask_imm_p): Likewise.
18938         (aarch_rev16_shleft_mask_imm_p): Likewise.
18940 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18942         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
18943         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
18944         rev cost.
18945         (cortex_a53_extra_costs): Likewise.
18946         (cortex_a57_extra_costs): Likewise.
18947         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
18948         (cortexa7_extra_costs): Likewise.
18949         (cortexa8_extra_costs): Likewise.
18950         (cortexa12_extra_costs): Likewise.
18951         (cortexa15_extra_costs): Likewise.
18952         (v7m_extra_costs): Likewise.
18953         (arm_new_rtx_costs): Handle BSWAP.
18955 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18957         * config/arm/arm.c (cortexa8_extra_costs): New table.
18958         (arm_cortex_a8_tune): New tuning struct.
18959         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
18961 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18963         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
18965 2014-04-23  Richard Biener  <rguenther@suse.de>
18967         * Makefile.in (OBJS): Remove loop-unswitch.o.
18968         * tree-pass.h (make_pass_rtl_unswitch): Remove.
18969         * passes.def (pass_rtl_unswitch): Likewise.
18970         * loop-init.c (gate_rtl_unswitch): Likewise.
18971         (rtl_unswitch): Likewise.
18972         (pass_data_rtl_unswitch): Likewise.
18973         (pass_rtl_unswitch): Likewise.
18974         (make_pass_rtl_unswitch): Likewise.
18975         * rtl.h (reversed_condition): Likewise.
18976         (compare_and_jump_seq): Likewise.
18977         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
18978         and make static.
18979         * loop-unroll.c (compare_and_jump_seq): Likewise.
18981 2014-04-23  Richard Biener  <rguenther@suse.de>
18983         PR tree-optimization/60903
18984         * tree-ssa-loop-im.c (analyze_memory_references): Remove
18985         commented code block.
18986         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
18987         loop flags to newly created BBs and edges.
18989 2014-04-23  Nick Clifton  <nickc@redhat.com>
18991         * config/msp430/msp430.c (msp430_handle_option): Move function
18992         to msp430-common.c
18993         (msp430_option_override): Simplify mcu and mcpu option handling.
18994         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
18995         support for -mhwmult command line option.
18996         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
18997         -mhwmult command line option.
18998         (msp430_hwmult_enabled): Delete.
18999         (msp43o_output_labelref): Add support for -mhwmult command line option.
19000         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19001         (umulsidi3): Likewise.
19002         * config/msp430/msp430.opt (mmcu): Add Report attribute.
19003         (mcpu, mlarge, msmall): Likewise.
19004         (mhwmult): New option.
19005         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19006         prototype.
19007         (msp430_is_f5_mcu): Remove prototype.
19008         (msp430_use_f5_series_hwmult): Add prototype.
19009         * config/msp430/msp430-opts.h: New file.
19010         * common/config/msp430: New directory.
19011         * common/config/msp430/msp430-common.c: New file.
19012         * config.gcc (msp430): Remove target_has_targetm_common.
19013         * doc/invoke.texi: Document -mhwmult command line option.
19015 2014-04-23  Nick Clifton  <nickc@redhat.com>
19017         * config/i386/cygwin.h (ENDFILE_SPEC): Include
19018         default-manifest.o if it can be found in the search path.
19019         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19021 2014-04-23  Terry Guo  <terry.guo@arm.com>
19023         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19025 2014-04-23  Richard Biener  <rguenther@suse.de>
19027         PR middle-end/60895
19028         * tree-inline.c (declare_return_variable): Use mark_addressable.
19030 2014-04-23  Richard Biener  <rguenther@suse.de>
19032         PR middle-end/60891
19033         * loop-init.c (loop_optimizer_init): Make sure to apply
19034         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19036 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
19038         PR sanitizer/60275
19039         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19040         New options.
19041         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19042         if flag_sanitize_undefined_trap_on_error.
19043         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19044         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19045         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19046         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19047         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19048         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19049         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19050         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19051         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19052         * ubsan.c (ubsan_instrument_unreachable): Return
19053         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19054         (ubsan_expand_null_ifn): Emit __builtin_trap ()
19055         if flag_sanitize_undefined_trap_on_error and
19056         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19057         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19058         instrument_bool_enum_load): Emit __builtin_trap () if
19059         flag_sanitize_undefined_trap_on_error and
19060         __builtin_handle_*_abort () if !flag_sanitize_recover.
19061         * doc/invoke.texi (-fsanitize-recover,
19062         -fsanitize-undefined-trap-on-error): Document.
19064 2014-04-22  Christian Bruel  <christian.bruel@st.com>
19066         * config/sh/sh.md (mov<mode>): Replace movQIHI.
19067          Force immediates to SImode.
19069 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
19071         * config/nios2/nios2.md (UNSPEC_ROUND): New.
19072         (lroundsfsi2): New.
19073         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19074         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19075         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19076         (nios2_fpu_insn): Add entry for round.
19077         (N2FPU_NO_ERRNO_P): Define.
19078         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19079         flag_errno_math.
19080         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19082 2014-04-22  Richard Henderson  <rth@redhat.com>
19084         * config/aarch64/aarch64 (addti3, subti3): New expanders.
19085         (add<GPI>3_compare0): Remove leading * from name.
19086         (add<GPI>3_carryin): Likewise.
19087         (sub<GPI>3_compare0): Likewise.
19088         (sub<GPI>3_carryin): Likewise.
19089         (<su_optab>mulditi3): New expander.
19090         (multi3): New expander.
19091         (madd<GPI>): Remove leading * from name.
19093 2014-04-22  Martin Jambor  <mjambor@suse.cz>
19095         * cgraphclones.c (cgraph_function_versioning): Copy
19096         ipa_transforms_to_apply instead of asserting it is empty.
19098 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
19100         PR target/60868
19101         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19102         on count_exp to get mode.
19104 2014-04-22  Andrew Pinski  <apinski@cavium.com>
19106         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19107         Handle TLS for ILP32.
19108         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19109         (tlsie_small_<mode>): this and handle PTR.
19110         (tlsie_small_sidi): New pattern.
19111         (tlsle_small): Change to an expand to handle ILP32.
19112         (tlsle_small_<mode>): New pattern.
19113         (tlsdesc_small): Rename to ...
19114         (tlsdesc_small_<mode>): this and handle PTR.
19116 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19118         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19120 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
19122         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19123         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19124         (aarch64_types_signed_poly_qualifiers): Likewise.
19125         (aarch64_types_unsigned_signed_qualifiers): Likewise.
19126         (aarch64_types_poly_signed_qualifiers): Likewise.
19127         (TYPES_REINTERP_SS): Type macro added.
19128         (TYPES_REINTERP_SU): Likewise.
19129         (TYPES_REINTERP_SP): Likewise.
19130         (TYPES_REINTERP_US): Likewise.
19131         (TYPES_REINTERP_PS): Likewise.
19132         (aarch64_fold_builtin): New expression folding added.
19133         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19134         Declarations removed.
19135         (REINTERP_SS): Declarations added.
19136         (REINTERP_US): Likewise.
19137         (REINTERP_PS): Likewise.
19138         (REINTERP_SU): Likewise.
19139         (REINTERP_SP): Likewise.
19140         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19141         (vreinterpretq_p8_f64): Likewise.
19142         (vreinterpret_p16_f64): Likewise.
19143         (vreinterpretq_p16_f64): Likewise.
19144         (vreinterpret_f32_f64): Likewise.
19145         (vreinterpretq_f32_f64): Likewise.
19146         (vreinterpret_f64_f32): Likewise.
19147         (vreinterpret_f64_p8): Likewise.
19148         (vreinterpret_f64_p16): Likewise.
19149         (vreinterpret_f64_s8): Likewise.
19150         (vreinterpret_f64_s16): Likewise.
19151         (vreinterpret_f64_s32): Likewise.
19152         (vreinterpret_f64_s64): Likewise.
19153         (vreinterpret_f64_u8): Likewise.
19154         (vreinterpret_f64_u16): Likewise.
19155         (vreinterpret_f64_u32): Likewise.
19156         (vreinterpret_f64_u64): Likewise.
19157         (vreinterpretq_f64_f32): Likewise.
19158         (vreinterpretq_f64_p8): Likewise.
19159         (vreinterpretq_f64_p16): Likewise.
19160         (vreinterpretq_f64_s8): Likewise.
19161         (vreinterpretq_f64_s16): Likewise.
19162         (vreinterpretq_f64_s32): Likewise.
19163         (vreinterpretq_f64_s64): Likewise.
19164         (vreinterpretq_f64_u8): Likewise.
19165         (vreinterpretq_f64_u16): Likewise.
19166         (vreinterpretq_f64_u32): Likewise.
19167         (vreinterpretq_f64_u64): Likewise.
19168         (vreinterpret_s64_f64): Likewise.
19169         (vreinterpretq_s64_f64): Likewise.
19170         (vreinterpret_u64_f64): Likewise.
19171         (vreinterpretq_u64_f64): Likewise.
19172         (vreinterpret_s8_f64): Likewise.
19173         (vreinterpretq_s8_f64): Likewise.
19174         (vreinterpret_s16_f64): Likewise.
19175         (vreinterpretq_s16_f64): Likewise.
19176         (vreinterpret_s32_f64): Likewise.
19177         (vreinterpretq_s32_f64): Likewise.
19178         (vreinterpret_u8_f64): Likewise.
19179         (vreinterpretq_u8_f64): Likewise.
19180         (vreinterpret_u16_f64): Likewise.
19181         (vreinterpretq_u16_f64): Likewise.
19182         (vreinterpret_u32_f64): Likewise.
19183         (vreinterpretq_u32_f64): Likewise.
19185 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
19187         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19188         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19189         (vreinterpret_p8_s8): Likewise.
19190         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19191         (vreinterpret_p8_s16): Likewise.
19192         (vreinterpret_p8_s32): Likewise.
19193         (vreinterpret_p8_s64): Likewise.
19194         (vreinterpret_p8_f32): Likewise.
19195         (vreinterpret_p8_u8): Likewise.
19196         (vreinterpret_p8_u16): Likewise.
19197         (vreinterpret_p8_u32): Likewise.
19198         (vreinterpret_p8_u64): Likewise.
19199         (vreinterpret_p8_p16): Likewise.
19200         (vreinterpretq_p8_s8): Likewise.
19201         (vreinterpretq_p8_s16): Likewise.
19202         (vreinterpretq_p8_s32): Likewise.
19203         (vreinterpretq_p8_s64): Likewise.
19204         (vreinterpretq_p8_f32): Likewise.
19205         (vreinterpretq_p8_u8): Likewise.
19206         (vreinterpretq_p8_u16): Likewise.
19207         (vreinterpretq_p8_u32): Likewise.
19208         (vreinterpretq_p8_u64): Likewise.
19209         (vreinterpretq_p8_p16): Likewise.
19210         (vreinterpret_p16_s8): Likewise.
19211         (vreinterpret_p16_s16): Likewise.
19212         (vreinterpret_p16_s32): Likewise.
19213         (vreinterpret_p16_s64): Likewise.
19214         (vreinterpret_p16_f32): Likewise.
19215         (vreinterpret_p16_u8): Likewise.
19216         (vreinterpret_p16_u16): Likewise.
19217         (vreinterpret_p16_u32): Likewise.
19218         (vreinterpret_p16_u64): Likewise.
19219         (vreinterpret_p16_p8): Likewise.
19220         (vreinterpretq_p16_s8): Likewise.
19221         (vreinterpretq_p16_s16): Likewise.
19222         (vreinterpretq_p16_s32): Likewise.
19223         (vreinterpretq_p16_s64): Likewise.
19224         (vreinterpretq_p16_f32): Likewise.
19225         (vreinterpretq_p16_u8): Likewise.
19226         (vreinterpretq_p16_u16): Likewise.
19227         (vreinterpretq_p16_u32): Likewise.
19228         (vreinterpretq_p16_u64): Likewise.
19229         (vreinterpretq_p16_p8): Likewise.
19230         (vreinterpret_f32_s8): Likewise.
19231         (vreinterpret_f32_s16): Likewise.
19232         (vreinterpret_f32_s32): Likewise.
19233         (vreinterpret_f32_s64): Likewise.
19234         (vreinterpret_f32_u8): Likewise.
19235         (vreinterpret_f32_u16): Likewise.
19236         (vreinterpret_f32_u32): Likewise.
19237         (vreinterpret_f32_u64): Likewise.
19238         (vreinterpret_f32_p8): Likewise.
19239         (vreinterpret_f32_p16): Likewise.
19240         (vreinterpretq_f32_s8): Likewise.
19241         (vreinterpretq_f32_s16): Likewise.
19242         (vreinterpretq_f32_s32): Likewise.
19243         (vreinterpretq_f32_s64): Likewise.
19244         (vreinterpretq_f32_u8): Likewise.
19245         (vreinterpretq_f32_u16): Likewise.
19246         (vreinterpretq_f32_u32): Likewise.
19247         (vreinterpretq_f32_u64): Likewise.
19248         (vreinterpretq_f32_p8): Likewise.
19249         (vreinterpretq_f32_p16): Likewise.
19250         (vreinterpret_s64_s8): Likewise.
19251         (vreinterpret_s64_s16): Likewise.
19252         (vreinterpret_s64_s32): Likewise.
19253         (vreinterpret_s64_f32): Likewise.
19254         (vreinterpret_s64_u8): Likewise.
19255         (vreinterpret_s64_u16): Likewise.
19256         (vreinterpret_s64_u32): Likewise.
19257         (vreinterpret_s64_u64): Likewise.
19258         (vreinterpret_s64_p8): Likewise.
19259         (vreinterpret_s64_p16): Likewise.
19260         (vreinterpretq_s64_s8): Likewise.
19261         (vreinterpretq_s64_s16): Likewise.
19262         (vreinterpretq_s64_s32): Likewise.
19263         (vreinterpretq_s64_f32): Likewise.
19264         (vreinterpretq_s64_u8): Likewise.
19265         (vreinterpretq_s64_u16): Likewise.
19266         (vreinterpretq_s64_u32): Likewise.
19267         (vreinterpretq_s64_u64): Likewise.
19268         (vreinterpretq_s64_p8): Likewise.
19269         (vreinterpretq_s64_p16): Likewise.
19270         (vreinterpret_u64_s8): Likewise.
19271         (vreinterpret_u64_s16): Likewise.
19272         (vreinterpret_u64_s32): Likewise.
19273         (vreinterpret_u64_s64): Likewise.
19274         (vreinterpret_u64_f32): Likewise.
19275         (vreinterpret_u64_u8): Likewise.
19276         (vreinterpret_u64_u16): Likewise.
19277         (vreinterpret_u64_u32): Likewise.
19278         (vreinterpret_u64_p8): Likewise.
19279         (vreinterpret_u64_p16): Likewise.
19280         (vreinterpretq_u64_s8): Likewise.
19281         (vreinterpretq_u64_s16): Likewise.
19282         (vreinterpretq_u64_s32): Likewise.
19283         (vreinterpretq_u64_s64): Likewise.
19284         (vreinterpretq_u64_f32): Likewise.
19285         (vreinterpretq_u64_u8): Likewise.
19286         (vreinterpretq_u64_u16): Likewise.
19287         (vreinterpretq_u64_u32): Likewise.
19288         (vreinterpretq_u64_p8): Likewise.
19289         (vreinterpretq_u64_p16): Likewise.
19290         (vreinterpret_s8_s16): Likewise.
19291         (vreinterpret_s8_s32): Likewise.
19292         (vreinterpret_s8_s64): Likewise.
19293         (vreinterpret_s8_f32): Likewise.
19294         (vreinterpret_s8_u8): Likewise.
19295         (vreinterpret_s8_u16): Likewise.
19296         (vreinterpret_s8_u32): Likewise.
19297         (vreinterpret_s8_u64): Likewise.
19298         (vreinterpret_s8_p8): Likewise.
19299         (vreinterpret_s8_p16): Likewise.
19300         (vreinterpretq_s8_s16): Likewise.
19301         (vreinterpretq_s8_s32): Likewise.
19302         (vreinterpretq_s8_s64): Likewise.
19303         (vreinterpretq_s8_f32): Likewise.
19304         (vreinterpretq_s8_u8): Likewise.
19305         (vreinterpretq_s8_u16): Likewise.
19306         (vreinterpretq_s8_u32): Likewise.
19307         (vreinterpretq_s8_u64): Likewise.
19308         (vreinterpretq_s8_p8): Likewise.
19309         (vreinterpretq_s8_p16): Likewise.
19310         (vreinterpret_s16_s8): Likewise.
19311         (vreinterpret_s16_s32): Likewise.
19312         (vreinterpret_s16_s64): Likewise.
19313         (vreinterpret_s16_f32): Likewise.
19314         (vreinterpret_s16_u8): Likewise.
19315         (vreinterpret_s16_u16): Likewise.
19316         (vreinterpret_s16_u32): Likewise.
19317         (vreinterpret_s16_u64): Likewise.
19318         (vreinterpret_s16_p8): Likewise.
19319         (vreinterpret_s16_p16): Likewise.
19320         (vreinterpretq_s16_s8): Likewise.
19321         (vreinterpretq_s16_s32): Likewise.
19322         (vreinterpretq_s16_s64): Likewise.
19323         (vreinterpretq_s16_f32): Likewise.
19324         (vreinterpretq_s16_u8): Likewise.
19325         (vreinterpretq_s16_u16): Likewise.
19326         (vreinterpretq_s16_u32): Likewise.
19327         (vreinterpretq_s16_u64): Likewise.
19328         (vreinterpretq_s16_p8): Likewise.
19329         (vreinterpretq_s16_p16): Likewise.
19330         (vreinterpret_s32_s8): Likewise.
19331         (vreinterpret_s32_s16): Likewise.
19332         (vreinterpret_s32_s64): Likewise.
19333         (vreinterpret_s32_f32): Likewise.
19334         (vreinterpret_s32_u8): Likewise.
19335         (vreinterpret_s32_u16): Likewise.
19336         (vreinterpret_s32_u32): Likewise.
19337         (vreinterpret_s32_u64): Likewise.
19338         (vreinterpret_s32_p8): Likewise.
19339         (vreinterpret_s32_p16): Likewise.
19340         (vreinterpretq_s32_s8): Likewise.
19341         (vreinterpretq_s32_s16): Likewise.
19342         (vreinterpretq_s32_s64): Likewise.
19343         (vreinterpretq_s32_f32): Likewise.
19344         (vreinterpretq_s32_u8): Likewise.
19345         (vreinterpretq_s32_u16): Likewise.
19346         (vreinterpretq_s32_u32): Likewise.
19347         (vreinterpretq_s32_u64): Likewise.
19348         (vreinterpretq_s32_p8): Likewise.
19349         (vreinterpretq_s32_p16): Likewise.
19350         (vreinterpret_u8_s8): Likewise.
19351         (vreinterpret_u8_s16): Likewise.
19352         (vreinterpret_u8_s32): Likewise.
19353         (vreinterpret_u8_s64): Likewise.
19354         (vreinterpret_u8_f32): Likewise.
19355         (vreinterpret_u8_u16): Likewise.
19356         (vreinterpret_u8_u32): Likewise.
19357         (vreinterpret_u8_u64): Likewise.
19358         (vreinterpret_u8_p8): Likewise.
19359         (vreinterpret_u8_p16): Likewise.
19360         (vreinterpretq_u8_s8): Likewise.
19361         (vreinterpretq_u8_s16): Likewise.
19362         (vreinterpretq_u8_s32): Likewise.
19363         (vreinterpretq_u8_s64): Likewise.
19364         (vreinterpretq_u8_f32): Likewise.
19365         (vreinterpretq_u8_u16): Likewise.
19366         (vreinterpretq_u8_u32): Likewise.
19367         (vreinterpretq_u8_u64): Likewise.
19368         (vreinterpretq_u8_p8): Likewise.
19369         (vreinterpretq_u8_p16): Likewise.
19370         (vreinterpret_u16_s8): Likewise.
19371         (vreinterpret_u16_s16): Likewise.
19372         (vreinterpret_u16_s32): Likewise.
19373         (vreinterpret_u16_s64): Likewise.
19374         (vreinterpret_u16_f32): Likewise.
19375         (vreinterpret_u16_u8): Likewise.
19376         (vreinterpret_u16_u32): Likewise.
19377         (vreinterpret_u16_u64): Likewise.
19378         (vreinterpret_u16_p8): Likewise.
19379         (vreinterpret_u16_p16): Likewise.
19380         (vreinterpretq_u16_s8): Likewise.
19381         (vreinterpretq_u16_s16): Likewise.
19382         (vreinterpretq_u16_s32): Likewise.
19383         (vreinterpretq_u16_s64): Likewise.
19384         (vreinterpretq_u16_f32): Likewise.
19385         (vreinterpretq_u16_u8): Likewise.
19386         (vreinterpretq_u16_u32): Likewise.
19387         (vreinterpretq_u16_u64): Likewise.
19388         (vreinterpretq_u16_p8): Likewise.
19389         (vreinterpretq_u16_p16): Likewise.
19390         (vreinterpret_u32_s8): Likewise.
19391         (vreinterpret_u32_s16): Likewise.
19392         (vreinterpret_u32_s32): Likewise.
19393         (vreinterpret_u32_s64): Likewise.
19394         (vreinterpret_u32_f32): Likewise.
19395         (vreinterpret_u32_u8): Likewise.
19396         (vreinterpret_u32_u16): Likewise.
19397         (vreinterpret_u32_u64): Likewise.
19398         (vreinterpret_u32_p8): Likewise.
19399         (vreinterpret_u32_p16): Likewise.
19400         (vreinterpretq_u32_s8): Likewise.
19401         (vreinterpretq_u32_s16): Likewise.
19402         (vreinterpretq_u32_s32): Likewise.
19403         (vreinterpretq_u32_s64): Likewise.
19404         (vreinterpretq_u32_f32): Likewise.
19405         (vreinterpretq_u32_u8): Likewise.
19406         (vreinterpretq_u32_u16): Likewise.
19407         (vreinterpretq_u32_u64): Likewise.
19408         (vreinterpretq_u32_p8): Likewise.
19409         (vreinterpretq_u32_p16): Likewise.
19411 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
19413         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19414         Pattern extended.
19415         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19416         (sqabs): Likewise.
19417         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19418         (vqnegd_s64): Likewise.
19419         (vqabs_s64): Likewise.
19420         (vqabsd_s64): Likewise.
19422 2014-04-22  Richard Henderson  <rth@redhat.com>
19424         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19425         computation to the top of the loop.
19427 2014-04-22  Renlin  <renlin.li@arm.com>
19428             Jiong Wang  <jiong.wang@arm.com>
19430         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19431         * config/aarch64/aarch64.c (aarch64_layout_frame)
19432         (aarch64_initial_elimination_offset): Likewise.
19434 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19436         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19437         Fix indentation.
19439 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
19441         * machmode.h (bitwise_mode_for_mode): Declare.
19442         * stor-layout.h (bitwise_type_for_mode): Likewise.
19443         * stor-layout.c (bitwise_mode_for_mode): New function.
19444         (bitwise_type_for_mode): Likewise.
19445         * builtins.c (fold_builtin_memory_op): Use it instead of
19446         int_mode_for_mode and build_nonstandard_integer_type.
19448 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19450         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19451         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19452         (*-*-solaris2*): Simplify.
19453         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19454         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19455         *-*-solaris2.9* handling.
19457         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19458         as bug.
19459         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19460         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19461         handling, simplify.
19462         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19463         * configure: Regenerate.
19465         * config/i386/sol2-9.h: Remove.
19467         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19468         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19469         Remove Solaris 9 references.
19471 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
19473         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19474         (floatuns<GPI:mode><GPF:mode>2): Remove.
19475         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19476         and floatuns conversions.
19477         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19478         and floatuns conversions.
19479         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19480         (w1,w2): New mode attributes for inequal width conversions.
19482 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
19484         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19485         the output asm format.
19487 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
19489         * config/aarch64/aarch64-simd.md
19490         (aarch64_cm<optab>di): Always split.
19491         (*aarch64_cm<optab>di): New.
19492         (aarch64_cmtstdi): Always split.
19493         (*aarch64_cmtstdi): New.
19495 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
19497         PR tree-optimization/60823
19498         * omp-low.c (ipa_simd_modify_function_body): Go through
19499         all SSA_NAMEs and for those refering to vector arguments
19500         which are going to be replaced adjust SSA_NAME_VAR and,
19501         if it is a default definition, change it into a non-default
19502         definition assigned at the beginning of function from new_decl.
19503         (ipa_simd_modify_stmt_ops): Rewritten.
19504         * tree-dfa.c (set_ssa_default_def): When removing default def,
19505         check for NULL loc instead of NULL *loc.
19507 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19509         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19510         restrictions on core registers for DImode values in Thumb2.
19512 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
19514         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19515         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19517 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
19519         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19520         (*iordi_notzesidi_di): Likewise.
19521         (*iordi_notsesidi_di): Likewise.
19523 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
19525         * config/arm/arm-protos.h (tune_params): New struct members.
19526         * config/arm/arm.c: Initialise tune_params per processor.
19527         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19528         for speed, based on new tune_params.
19530 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
19532         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19533         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19534         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19535         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19536         * config/aarch64/arm_neon.h (vrnd_f64): Added.
19537         (vrnda_f64): Likewise.
19538         (vrndi_f64): Likewise.
19539         (vrndm_f64): Likewise.
19540         (vrndn_f64): Likewise.
19541         (vrndp_f64): Likewise.
19542         (vrndx_f64): Likewise.
19544 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19546         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19547         GET_MODE_SIZE argument is enum machine_mode.
19549 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
19551         PR target/60910
19552         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
19553         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
19555 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
19557         PR middle-end/60281
19558         * asan.c (asan_emit_stack_protection): Force the base to align to
19559         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
19560         appropriate bits if STRICT_ALIGNMENT.
19561         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
19562         when asan is on.
19563         (expand_used_vars): Leave a space in the stack frame for alignment
19564         if STRICT_ALIGNMENT.
19566 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
19568         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
19569         than a gimple.
19570         (gimple_store_p): Likewise.
19571         (gimple_assign_load_p): Likewise.
19572         (gimple_assign_cast_p): Likewise.
19573         (gimple_clobber_p): Likewise.
19575         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
19576         rather than a gimple.
19577         (gimple_assign_cast_p): Likewise.
19579 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
19581         PR target/60735
19582         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
19583         If mode is DDmode and TARGET_E500_DOUBLE allow move.
19585         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
19586         more debug information for E500 if -mdebug=reg.
19588 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
19590         PR target/60909
19591         * config/i386/i386.c (ix86_expand_builtin)
19592         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
19593         register for target RTX.
19594         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
19596 2014-04-18  Cong Hou  <congh@google.com>
19598         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
19599         the widen-mult pattern by handling two operands with different sizes,
19600         and operands whose size is smaller than half of the result type.
19602 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
19604         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
19605         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
19606         (do_estimate_edge_time): Compute it.
19607         * ipa-inline.c (want_inline_small_function_p): Bypass
19608         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
19610 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
19612         * ipa-inline.c (spec_rem): New static variable.
19613         (dump_overall_stats): New function.
19614         (dump_inline_stats): New function.
19616 2014-04-18  Richard Henderson  <rth@redhat.com>
19618         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
19619         to GET_MODE_SIZE, not a reg_class_t.
19621 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19623         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
19624         (vsx_xxmrglw_<mode>): Likewise.
19626 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
19628         PR target/60876
19629         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
19630         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
19631         (rs6000_init_hard_regno_mode_ok): Likewise.
19633 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
19635         * ipa-inline.c (inline_small_functions): Account only non-cold
19636         functions.
19637         * doc/invoke.texi (inline-unit-growth): Update documentation.
19639 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
19641         * config/rs6000/rs6000.md (addti3, subti3): New.
19643 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
19645         PR target/60863
19646         * config/i386/i386.c (ix86_expand_clear): Remove outdated
19647         comment.  Check optimize_insn_for_size_p instead of
19648         optimize_insn_for_speed_p.
19650 2014-04-17  Martin Jambor  <mjambor@suse.cz>
19652         * gimple-iterator.c (gsi_start_edge): New function.
19653         * gimple-iterator.h (gsi_start_edge): Declare.
19654         * tree-sra.c (single_non_eh_succ): New function.
19655         (disqualify_ops_if_throwing_stmt): Renamed to
19656         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
19657         having one non-EH successor BB.
19658         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
19659         generate loads into replacements.
19660         (sra_modify_assign): Likewise and and also use the simple path for
19661         such statements.
19662         (sra_modify_function_body): Commit statements on edges.
19664 2014-04-17  Richard Biener  <rguenther@suse.de>
19666         PR middle-end/60849
19667         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
19668         comparison results and add clarifying comment.
19670 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
19672         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
19673         (blank_mode): Initialize it.
19674         (emit_mode_size_inline, emit_mode_nunits_inline,
19675         emit_mode_inner_inline): New functions.
19676         (emit_insn_modes_h): Call them and surround their output with
19677         #if GCC_VERSION >= 4001 ... #endif.
19678         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
19679         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
19680         mode_* arrays if the argument is __builtin_constant_p.
19681         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
19682         is enum machine_mode.
19684 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
19686         * passes.c (opt_pass::execute): Adjust.
19687         (pass_manager::execute_pass_mode_switching): Likewise.
19688         (early_local_passes::execute): Likewise.
19689         (execute_one_pass): Pass cfun to the pass's execute method.
19690         * tree-pass.h (opt_pass::execute): Add function * argument.
19691         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19692         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19693         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19694         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19695         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19696         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
19697         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
19698         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19699         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19700         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
19701         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
19702         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
19703         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
19704         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
19705         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19706         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19707         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19708         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
19709         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19710         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19711         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19712         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19713         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19714         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19715         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19716         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19717         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19718         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19719         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19720         Adjust.
19722 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
19724         * passes.c (opt_pass::gate): Take function * argument.
19725         (gate_all_early_local_passes): Merge into
19726         (early_local_passes::gate): this.
19727         (gate_all_early_optimizations): Merge into
19728         (all_early_optimizations::gate): this.
19729         (gate_all_optimizations): Mege into
19730         (all_optimizations::gate): this.
19731         (gate_all_optimizations_g): Merge into
19732         (all_optimizations_g::gate): this.
19733         (gate_rest_of_compilation): Mege into
19734         (rest_of_compilation::gate): this.
19735         (gate_postreload): Merge into
19736         (postreload::gate): this.
19737         (dump_one_pass): Pass cfun to the pass's gate method.
19738         (execute_ipa_summary_passes): Likewise.
19739         (execute_one_pass): Likewise.
19740         (ipa_write_summaries_2): Likewise.
19741         (ipa_write_optimization_summaries_1): Likewise.
19742         (ipa_read_summaries_1): Likewise.
19743         (ipa_read_optimization_summaries_1): Likewise.
19744         (execute_ipa_stmt_fixups): Likewise.
19745         * tree-pass.h (opt_pass::gate): Add function * argument.
19746         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
19747         combine-stack-adj.c, combine.c, compare-elim.c,
19748         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19749         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
19750         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
19751         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
19752         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19753         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19754         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19755         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
19756         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19757         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
19758         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19759         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19760         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
19761         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19762         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19763         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19764         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19765         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19766         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19767         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19768         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19769         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19770         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
19771         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
19772         var-tracking.c, vtable-verify.c, web.c: Adjust.
19774 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
19776         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
19777         * configure: Regenerate.
19779 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
19781         * passes.c (dump_one_pass): don't check pass->has_gate.
19782         (execute_ipa_summary_passes): Likewise.
19783         (execute_one_pass): Likewise.
19784         (ipa_write_summaries_2): Likewise.
19785         (ipa_write_optimization_summaries_1): Likewise.
19786         (ipa_read_optimization_summaries_1): Likewise.
19787         (execute_ipa_stmt_fixups): Likewise.
19788         * tree-pass.h (pass_data::has_gate): Remove.
19789         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19790         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19791         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19792         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19793         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19794         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19795         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19796         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19797         gimple-low.c, gimple-ssa-isolate-paths.c,
19798         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19799         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
19800         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19801         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
19802         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
19803         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
19804         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
19805         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
19806         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
19807         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19808         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19809         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19810         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19811         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19812         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19813         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19814         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19815         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19816         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19817         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19818         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19819         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19820         Adjust.
19822 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
19824         * pass_manager.h (pass_manager::register_dump_files_1): Remove
19825         declaration.
19826         * passes.c (pass_manager::register_dump_files_1): Merge into
19827         (pass_manager::register_dump_files): this, and remove its handling of
19828         properties since the pass always has the properties anyway.
19829         (pass_manager::pass_manager): Adjust.
19831 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
19833         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
19834         * passes.c (pass_manager::register_dump_files_1): Remove dead code
19835         dealing with properties.
19836         (pass_manager::register_dump_files): Adjust.
19838 2014-03-20  Mark Wielaard  <mjw@redhat.com>
19840         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
19841         then represent the bound as normal constant value.
19843 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
19845         PR target/60847
19846         Forward port from 4.8 branch
19847         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
19849         * config/i386/bmiintrin.h (_blsi_u32): New.
19850         (_blsi_u64): Ditto.
19851         (_blsr_u32): Ditto.
19852         (_blsr_u64): Ditto.
19853         (_blsmsk_u32): Ditto.
19854         (_blsmsk_u64): Ditto.
19855         (_tzcnt_u32): Ditto.
19856         (_tzcnt_u64): Ditto.
19858 2014-04-17  Kito Cheng  <kito@0xlab.org>
19860         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
19862 2014-04-17  Richard Biener  <rguenther@suse.de>
19864         PR middle-end/60849
19865         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
19866         boolean results for comparisons.
19868 2014-04-17  Richard Biener  <rguenther@suse.de>
19870         PR tree-optimization/60836
19871         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
19872         initial PHI args to be gimple values.
19874 2014-04-17  Richard Biener  <rguenther@suse.de>
19876         PR tree-optimization/60841
19877         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
19878         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
19879         of stmts to SLP build.
19880         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
19881         (vect_analyze_slp): Likewise.
19882         (vect_analyze_slp_instance): Likewise.
19883         (vect_build_slp_tree): Limit overall SLP tree growth.
19884         * tree-vectorizer.h (vect_analyze_data_refs,
19885         vect_analyze_slp): Adjust prototypes.
19887 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
19889         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
19890         Silvermont.
19892 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
19894         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
19895         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
19896         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
19897         for TARGET_SLOW_PSHUFB
19899 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
19901         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
19902         * config/i386/i386.c (intel_cost): Ditto.
19904 2014-04-17  Joey Ye  <joey.ye@arm.com>
19906         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
19908 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
19910         * opts.c (common_handle_option): Disable -fipa-reference coorectly
19911         with -fuse-profile.
19913 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
19915         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
19916         (type_all_derivations_known_p): New predicate.
19917         (type_all_ctors_visible_p): New predicate.
19918         (type_possibly_instantiated_p): New predicate.
19919         (get_odr_type): Compute all_derivations_known.
19920         (dump_odr_type): Dump the flag.
19921         (maybe_record_type): Cleanup.
19922         (record_target_from_binfo): Add bases_to_consider array;
19923         record bases for types w/o instances and skip CXX destructor.
19924         (possible_polymorphic_call_targets_1): Add bases_to_consider
19925         and consider_construction parameters; check if type may have instance.
19926         (get_polymorphic_call_info): Set maybe_in_construction to true
19927         when we know nothing.
19928         (record_targets_from_bases): Skip CXX destructors; they are
19929         never called for types in construction.
19930         (possible_polymorphic_call_targets): Do not record target when
19931         type may not have instance.
19933 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
19935         PR ipa/60854
19936         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
19937         external aliases alive, too.
19939 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
19941         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
19942         definition.
19944 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
19946         * final.c (compute_alignments): Do not apply loop alignment to a block
19947         falling through to the exit.
19949 2014-04-16  Catherine Moore  <clm@codesourcery.com>
19951         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
19952         Adjust constraints for microMIPS store patterns.
19954 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
19956         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
19958 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
19960         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
19961         (append_use): Run at -O0.
19962         (append_vdef): Likewise.
19963         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
19964         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
19966 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
19968         PR tree-optimization/60844
19969         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
19970         (propagate_op_to_single_use, remove_visited_stmt_chain,
19971         linearize_expr, repropagate_negates, reassociate_bb): Use it
19972         instead of gsi_remove.
19974 2014-04-16  Martin Jambor  <mjambor@suse.cz>
19976         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
19977         ipa_transforms_to_apply.
19978         (cgraph_function_versioning): Assert that old_node has empty
19979         ipa_transforms_to_apply.
19980         * trans-mem.c (ipa_tm_create_version): Likewise.
19981         * tree-inline.c (tree_function_versioning): Do not duplicate
19982         ipa_transforms_to_apply.
19984 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19986         PR target/60817
19987         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
19988         x86_64-*-* cases.
19989         Pass necessary as flags on 64-bit Solaris/x86.
19990         Use lowercase relocs for x86_64-*-*.
19991         * configure: Regenerate.
19993 2014-04-15  Jan Hubicka  <jh@suse.cz>
19995         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
19996         (maybe_record_node, likely_target_p): Use it.
19998 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20000         PR target/60839
20001         Revert following patch
20003         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
20005         PR target/60735
20006         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20007         software floating point or no floating point registers, do not
20008         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
20009         in GPRs that occurs after we tested for GPRs that would never be
20010         true.
20012         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20013         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20014         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
20015         specifically allow DDmode, since that does not use the SPE SIMD
20016         instructions.
20018 2014-03-21  Mark Wielaard  <mjw@redhat.com>
20020         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20021         as unsigned or int depending on type and value used.
20023 2014-04-15  Richard Biener  <rguenther@suse.de>
20025         PR rtl-optimization/56965
20026         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20027         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20028         ... here.
20029         * alias.c (true_dependence_1): Do not call
20030         nonoverlapping_component_refs_p.
20031         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20032         nonoverlapping_component_refs_p.
20033         (indirect_refs_may_alias_p): Likewise.
20035 2014-04-15  Teresa Johnson  <tejohnson@google.com>
20037         * cfg.c (dump_bb_info): Fix flags check.
20038         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20040 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20042         PR rtl-optimization/60663
20043         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20044         avoid 0 cost.
20046 2014-04-15  Richard Biener  <rguenther@suse.de>
20048         * lto-streamer.h (LTO_major_version): Bump to 4.
20050 2014-04-15  Richard Biener  <rguenther@suse.de>
20052         * common.opt (lto_partition_model): New enum.
20053         (flto-partition=): Merge separate options with a single with argument,
20054         add -flto-partition=one support.
20055         * flag-types.h (enum lto_partition_model): Declare.
20056         * opts.c (finish_options): Remove duplicate -flto-partition=
20057         option check.
20058         * lto-wrapper.c (run_gcc): Adjust.
20060 2014-04-15  Richard Biener  <rguenther@suse.de>
20062         * alias.c (ncr_compar): New function.
20063         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20065 2014-04-15  Richard Biener  <rguenther@suse.de>
20067         * alias.c (record_component_aliases): Do not walk BINFOs.
20069 2014-04-15  Richard Biener  <rguenther@suse.de>
20071         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20072         Add struct function argument and adjust.
20073         (find_func_aliases_for_call): Likewise.
20074         (find_func_aliases): Likewise.
20075         (find_func_clobbers): Likewise.
20076         (intra_create_variable_infos): Likewise.
20077         (compute_points_to_sets): Likewise.
20078         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
20080 2014-04-15  Richard Biener  <rguenther@suse.de>
20082         * tree.c (iterative_hash_expr): Use enum tree_code_class
20083         to store TREE_CODE_CLASS.
20084         (tree_block): Likewise.
20085         (tree_set_block): Likewise.
20086         * tree.h (fold_build_pointer_plus_loc): Use
20087         convert_to_ptrofftype_loc.
20089 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
20091         PR plugins/59335
20092         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20093         added in 4.9.
20095 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
20097         * cfgloop.h (struct loop): Move force_vectorize down.
20098         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20099         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20100         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20101         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20102         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20103         * tree-core.h (enum annot_expr_kind): Add new kind values.
20104         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20105         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20106         kinds.
20107         * tree.def (ANNOTATE_EXPR): Tweak comment.
20109 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
20111         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20112         cxa_pure_virtual).
20114 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
20116         * tree.h (TYPE_IDENTIFIER): Declare.
20117         * tree.c (subrange_type_for_debug_p): Use it.
20118         * godump.c (go_format_type): Likewise.
20119         * dwarf2out.c (is_cxx_auto, modified_type_die,
20120         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20121         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20123 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
20125         PR lto/60820
20126         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20128 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
20130         * config/i386/i386.c (examine_argument): Return bool.  Return true if
20131         parameter should be passed in memory.
20132         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20133         (construct_container): Update calls to examine_argument.
20134         (function_arg_advance_64): Ditto.
20135         (return_in_memory_32): Merge with ix86_return_in_memory.
20136         (return_in_memory_64): Ditto.
20137         (return_in_memory_ms_64): Ditto.
20139 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
20141         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20142         * coverage.c (coverage_compute_profile_id): Handle externally visible
20143         symbols.
20145 2014-04-14  Martin Jambor  <mjambor@suse.cz>
20147         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20148         DECL_DISREGARD_INLINE_LIMITS functions.
20150 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
20152         PR target/60827
20153         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20155 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
20157         PR target/60827
20158         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20159         optimize_insn_for_speed_p instead of
20160         optimize_function_for_speed_p.
20162 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
20164         * doc/invoke.texi (free): Document AArch64.
20166 2014-04-14  Richard Biener  <rguenther@suse.de>
20168         PR tree-optimization/60042
20169         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20170         (insert_into_preds_of_block): Do not prevent PHI insertion
20171         for REFERENCE exprs here ...
20172         (eliminate_dom_walker::before_dom_children): ... but prevent
20173         their use here under similar conditions when applied to the
20174         IL after PRE optimizations.
20176 2014-04-14  Richard Biener  <rguenther@suse.de>
20178         * passes.def: Move early points-to after early SRA.
20180 2014-04-14  Richard Biener  <rguenther@suse.de>
20182         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20183         check for which sign-changes we allow when forwarding
20184         a converted value into a switch.
20186 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
20188         * stor-layout.c (place_field): Finalize non-constant offset for the
20189         field, if any.
20191 2014-04-14  Richard Biener  <rguenther@suse.de>
20193         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20194         as argument.
20195         (expand_switch_using_bit_tests_p): Likewise.
20196         (process_switch): Compute and pass on speed_p based on the
20197         switch stmt.
20198         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20199         optimize_bb_for_speed_p.
20201 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
20203         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20204         * function.h (struct function): Rename has_force_vect_loops into
20205         has_force_vectorize_loops.
20206         * lto-streamer-in.c (input_cfg): Adjust for renaming.
20207         (input_struct_function_base): Likewise.
20208         * lto-streamer-out.c (output_cfg): Likewise.
20209         (output_struct_function_base): Likewise.
20210         * omp-low.c (expand_omp_simd): Likewise.
20211         * tree-cfg.c (move_sese_region_to_fn): Likewise.
20212         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20213         (version_loop_for_if_conversion): Likewise.
20214         (tree_if_conversion): Likewise.
20215         (main_tree_if_conversion): Likewise.
20216         (gate_tree_if_conversion): Likewise.
20217         * tree-inline.c (copy_loops): Likewise.
20218         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20219         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20220         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20221         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20222         * tree-vectorizer.c (vectorize_loops): Likewise.
20223         * tree-vectorizer.h (unlimited_cost_model): Likewise.
20225 2014-04-14  Richard Biener  <rguenther@suse.de>
20227         PR lto/60720
20228         * lto-streamer-out.c (wrap_refs): New function.
20229         (lto_output): Wrap symbol references in global initializes in
20230         type-preserving MEM_REFs.
20232 2014-04-14  Christian Bruel  <christian.bruel@st.com>
20234         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20236 2014-04-14  Christian Bruel  <christian.bruel@st.com>
20238         * config/sh/sh.md (setmemqi): New expand pattern.
20239         * config/sh/sh.h (CLEAR_RATIO): Define.
20240         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20241         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20243 2014-04-14  Richard Biener  <rguenther@suse.de>
20245         PR middle-end/55022
20246         * fold-const.c (negate_expr_p): Don't negate directional rounding
20247         division.
20248         (fold_negate_expr): Likewise.
20250 2014-04-14  Richard Biener  <rguenther@suse.de>
20252         PR tree-optimization/59817
20253         PR tree-optimization/60453
20254         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20255         recursion to catch all CHRECs in the scalar evolution and restrict
20256         the predicate for the remains appropriately.
20258 2014-04-12  Catherine Moore  <clm@codesourcery.com>
20260         * config/mips/constraints.md: Add new register constraint "kb".
20261         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20262         (*movhi_internal): Likewise.
20263         (*movqi_internal): Likewise.
20264         * config/mips/mips.h (M16_STORE_REGS): New register class.
20265         (REG_CLASS_NAMES): Add M16_STORE_REGS.
20266         (REG_CLASS_CONTENTS): Likewise.
20267         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20269 2014-04-11  Tobias Burnus  <burnus@net-b.de>
20271         PR c/60194
20272         * doc/invoke.texi (-Wformat-signedness): Document it.
20273         (Wformat=2): Mention that this enables -Wformat-signedness.
20275 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
20277         * common/config/epiphany/epiphany-common.c
20278         (epiphany_option_optimization_table): Enable section anchors by
20279         default at -O1 or higher.
20280         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20281         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20282         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20283         carries no extra cost.
20284         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20285         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20286         * config/epiphany/predicates.md (memclob_operand): New predicate.
20287         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20288         Use memclob_operand predicate and X constraint for operand 3.
20290 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
20292         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20293         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20294         its operands.
20296 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
20298         PR rtl-optimization/60651
20299         * mode-switching.c (optimize_mode_switching): Make sure to emit
20300         sets of a lower numbered entity before sets of a higher numbered
20301         entity to a mode of the same or lower priority.
20302         When creating a seginfo for a basic block that starts with a code
20303         label, move the insertion point past the code label.
20304         (new_seginfo): Document and enforce requirement that
20305         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20306         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20307         * doc/tm.texi: Regenerate.
20309 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
20311         PR target/60811
20312         * config/arc/arc.c (arc_save_restore): Fix assert typo.
20314 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
20316         * BASE-VER: Set to 4.10.0.
20318 2014-04-11  Tobias Burnus  <burnus@net-b.de>
20320         PR other/59055
20321         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20322         * doc/gcc.texi (Service): Update description in the @menu
20323         * doc/invoke.texi (Option Summary): Remove misplaced and
20324         duplicated @menu.
20326 2014-04-11  Steve Ellcey  <sellcey@mips.com>
20327             Jakub Jelinek  <jakub@redhat.com>
20329         PR middle-end/60556
20330         * expr.c (convert_move): Use emit_store_flag_force instead of
20331         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
20332         argument to it.
20334 2014-04-11  Richard Biener  <rguenther@suse.de>
20336         PR middle-end/60797
20337         * varasm.c (assemble_alias): Avoid endless error reporting
20338         recursion by setting TREE_ASM_WRITTEN.
20340 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20342         * config/s390/s390.md: Add a splitter for NOT rtx.
20344 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
20346         PR rtl-optimization/60663
20347         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20349 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
20350             Jakub Jelinek  <jakub@redhat.com>
20352         PR lto/60567
20353         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20354         flag from decl_node to node.
20356 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20358         PR debug/60655
20359         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20360         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20361         ameliorating the cases where it can be.
20363 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
20365         Revert
20366         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
20368         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20369         (loadsync_<mode>): Change mode.
20370         (load_quadpti, store_quadpti): New.
20371         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20372         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20373         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20375 2014-04-09  Cong Hou  <congh@google.com>
20377         PR testsuite/60773
20378         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20379         documentation.
20381 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20383         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20384         instead of vnor to exploit possible fusion opportunity in the
20385         future.
20386         (altivec_expand_vec_perm_const_le): Likewise.
20388 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
20390         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20391         (loadsync_<mode>): Change mode.
20392         (load_quadpti, store_quadpti): New.
20393         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20394         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20396 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
20398         PR target/60763
20399         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20400         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20401         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20403 2014-04-08  Richard Biener  <rguenther@suse.de>
20405         PR middle-end/60706
20406         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20407         a 64bit widest int print double-int similar to on HWI64 hosts.
20409 2014-04-08  Richard Biener  <rguenther@suse.de>
20411         PR tree-optimization/60785
20412         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20413         default defs properly.
20415 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
20417         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20418         (Weffc++): Likewise.
20420 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
20422         * ipa-devirt.c (maybe_record_node): When node is not recorded,
20423         set completep to false rather than true.
20425 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
20427         PR target/60504
20428         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20429         ARM_TARGET2_DWARF_FORMAT.
20431 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
20433         PR target/60609
20434         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20435         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20436         ADDR_DIFF_VEC.
20438 2014-04-07  Richard Biener  <rguenther@suse.de>
20440         PR tree-optimization/60766
20441         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20442         (may_eliminate_iv): Convert cand_value_at result to desired type.
20444 2014-04-07  Jason Merrill  <jason@redhat.com>
20446         PR c++/60731
20447         * common.opt (-fno-gnu-unique): Add.
20448         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20450 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20452         * haifa-sched.c: Fix outdated function reference and minor
20453         grammar errors in introductory comment.
20455 2014-04-07  Richard Biener  <rguenther@suse.de>
20457         PR middle-end/60750
20458         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20459         for noreturn calls.
20460         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20462 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
20464         PR debug/55794
20465         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20466         size accounting for thunks.
20467         (pa_asm_output_mi_thunk): Use final_start_function() and
20468         final_end_function() to output function start and end directives.
20470 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
20472         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20473         device specific ISA/ feature information. Remove short_sp and
20474         errata_skip ds.  Add avr_device_specific_features enum to have device
20475         specific info.
20476         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20477         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20478         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20479         updated device specific info.
20480         * config/avr/avr-mcus.def: Merge device specific details to
20481         dev_attribute field.
20482         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20483         errata_skip.
20484         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20485         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20486         assembler if RMW isa supported by current device.
20487         * config/avr/genmultilib.awk: Update as device info structure changed.
20488         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20490 2014-04-04  Cong Hou  <congh@google.com>
20492         PR tree-optimization/60656
20493         * tree-vect-stmts.c (supportable_widening_operation):
20494         Fix a bug that elements in a vector with vect_used_by_reduction
20495         property are incorrectly reordered when the operation on it is not
20496         consistant with the one in reduction operation.
20498 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
20500         PR rtl-optimization/60155
20501         * gcse.c (record_set_data): New function.
20502         (single_set_gcse): New function.
20503         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20504         (hoist_code): Likewise.
20505         (get_pressure_class_and_nregs): Likewise.
20507 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
20509         * explow.c (probe_stack_range): Emit a final optimization blockage.
20511 2014-04-04  Anthony Green  <green@moxielogic.com>
20513         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20514         typos.
20516 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
20518         PR ipa/59626
20519         * lto-cgraph.c (input_overwrite_node): Check that partitioning
20520         flags are set only during streaming.
20521         * ipa.c (process_references, walk_polymorphic_call_targets,
20522         symtab_remove_unreachable_nodes): Drop bodies of always inline
20523         after early inlining.
20524         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20526 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
20527         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20529         PR debug/60655
20530         * dwarf2out.c (const_ok_for_output_1): Reject expressions
20531         containing a NOT.
20533 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20535         PR bootstrap/60743
20536         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20537         duration.
20538         (cortex_a53_fdivd): Likewise.
20540 2014-04-04  Martin Jambor  <mjambor@suse.cz>
20542         PR ipa/60640
20543         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20544         Adjust all callers.
20545         * cgraph.c (clone_of_p): Also return true if thunks match.
20546         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20547         cgraph_function_or_thunk_node and an obsolete comment.
20548         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20549         file.
20550         (build_function_decl_skip_args): Likewise.
20551         (set_new_clone_decl_and_node_flags): New function.
20552         (duplicate_thunk_for_node): Likewise.
20553         (redirect_edge_duplicating_thunks): Likewise.
20554         (cgraph_clone_node): New parameter args_to_skip, pass it to
20555         redirect_edge_duplicating_thunks which is called instead of
20556         cgraph_redirect_edge_callee.
20557         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
20558         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
20560 2014-04-04  Jeff Law  <law@redhat.com>
20562         PR target/60657
20563         * config/arm/predicates.md (const_int_I_operand): New predicate.
20564         (const_int_M_operand): Similarly.
20565         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
20566         const_int_operand.
20567         (insv_t2, extv_reg, extzv_t2): Likewise.
20568         (load_multiple_with_writeback): Similarly for const_int_I_operand.
20569         (pop_multiple_with_writeback_and_return): Likewise.
20570         (vfp_pop_multiple_with_writeback): Likewise
20572 2014-04-04  Richard Biener  <rguenther@suse.de>
20574         PR ipa/60746
20575         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
20576         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
20577         non-GIMPLE_LABELs.
20578         * gimplify.h (gimple_add_tmp_var_fn): Declare.
20579         * gimplify.c (gimple_add_tmp_var_fn): New function.
20580         * gimple-expr.h (create_tmp_reg_fn): Declare.
20581         * gimple-expr.c (create_tmp_reg_fn): New function.
20582         * gimple-low.c (record_vars_into): Don't change cfun.
20583         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
20584         code generation without cfun.
20586 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
20588         PR bootstrap/60719
20589         * Makefile.in (install-driver): Fix shell scripting.
20591 2014-04-03  Cong Hou  <congh@google.com>
20593         PR tree-optimization/60505
20594         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
20595         threshold of number of iterations below which no vectorization
20596         will be done.
20597         * tree-vect-loop.c (new_loop_vec_info):
20598         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
20599         * tree-vect-loop.c (vect_analyze_loop_operations):
20600         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
20601         * tree-vect-loop.c (vect_transform_loop):
20602         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
20603         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
20604         of iterations of the loop and see if we should build the epilogue.
20606 2014-04-03  Richard Biener  <rguenther@suse.de>
20608         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
20609         (streamer_tree_cache_create): Adjust.
20610         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
20611         to allow optional nodes array.
20612         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
20613         (streamer_tree_cache_append): Likewise.
20614         (streamer_tree_cache_create): Create nodes array optionally
20615         as specified by parameter.
20616         * lto-streamer-out.c (create_output_block): Avoid maintaining
20617         the node array in the writer cache.
20618         (DFS_write_tree): Remove assertion.
20619         (produce_asm_for_decls): Free the out decl state hash table early.
20620         * lto-streamer-in.c (lto_data_in_create): Adjust for
20621         streamer_tree_cache_create prototype change.
20623 2014-04-03  Richard Biener  <rguenther@suse.de>
20625         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
20626         set TREE_CHAIN to NULL_TREE.
20628 2014-04-03  Richard Biener  <rguenther@suse.de>
20630         PR tree-optimization/60740
20631         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
20632         over all GIMPLE_COND operands.
20634 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
20636         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
20637         (Weffc++): Remove Scott's numbering, merge lists and reference
20638         Wnon-virtual-dtor.
20640 2014-04-03  Nick Clifton  <nickc@redhat.com>
20642         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
20643         properly.
20645 2014-04-03  Martin Jambor  <mjambor@suse.cz>
20647         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
20648         mention gcc_unreachable before failing.
20649         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
20650         removed symbols.
20652 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
20654         PR ipa/60659
20655         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
20656         inconsistent code and instead mark the context inconsistent.
20657         (possible_polymorphic_call_targets): For inconsistent contexts
20658         return empty complete list.
20660 2014-04-02  Anthony Green  <green@moxielogic.com>
20662         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
20663         (extendqisi2, extendhisi2): Define.
20664         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
20665         (WCHAR_TYPE): Change to unsigned int.
20667 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20669         PR tree-optimization/60733
20670         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
20671         insertion point for PHI candidates to be the end of the feeding
20672         block for the PHI argument.
20674 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
20676         PR rtl-optimization/60650
20677         * lra-constraints.c (process_alt_operands): Decrease reject for
20678         earlyclobber matching.
20680 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20682         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
20684 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20686         * config/spu/spu.c (pad_bb): Do not crash when the last
20687         insn is CODE_FOR_blockage.
20689 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20691         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
20692         lies outside the target mode.
20694 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
20696         PR target/60735
20697         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20698         software floating point or no floating point registers, do not
20699         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
20700         in GPRs that occurs after we tested for GPRs that would never be
20701         true.
20703         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20704         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20705         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
20706         specifically allow DDmode, since that does not use the SPE SIMD
20707         instructions.
20709 2014-04-02  Richard Biener  <rguenther@suse.de>
20711         PR middle-end/60729
20712         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
20713         MODE_INTs.  Properly use negv_optab.
20714         (expand_abs): Likewise.
20716 2014-04-02  Richard Biener  <rguenther@suse.de>
20718         PR bootstrap/60719
20719         * Makefile.in (install-driver): Guard extra installs with special
20720         names properly.
20722 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
20724         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20725         Document vec_vgbbd.
20727 2014-04-01  Richard Henderson  <rth@redhat.com>
20729         PR target/60704
20730         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
20731         alternative enabled before register allocation.
20733 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
20735         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
20736         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
20737         typo.
20738         (nios2_large_got_address): Remove unneeded 'sym' parameter.
20739         (nios2_got_address): Update nios2_large_got_address call site.
20740         (nios2_delegitimize_address): New function.
20741         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
20742         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
20743         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
20745 2014-04-01  Martin Husemann  <martin@duskware.de>
20747         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
20748         for -mabi=32.
20750 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
20752         PR rtl-optimization/60604
20753         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
20754         check from register_operand.
20755         (register_operand): Redefine in terms of general_operand.
20756         (nonmemory_operand): Use register_operand for the non-constant cases.
20758 2014-04-01  Richard Biener  <rguenther@suse.de>
20760         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
20762 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20764         * doc/invoke.texi (mapp-regs): Clarify.
20766 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
20768         * config/i386/avx512fintrin.h (__v32hi): Define type.
20769         (__v64qi): Likewise.
20770         (_mm512_set1_epi8): Define.
20771         (_mm512_set1_epi16): Define.
20772         (_mm512_set4_epi32): Define.
20773         (_mm512_set4_epi64): Define.
20774         (_mm512_set4_pd): Define.
20775         (_mm512_set4_ps): Define.
20776         (_mm512_setr4_epi64): Define.
20777         (_mm512_setr4_epi32): Define.
20778         (_mm512_setr4_pd): Define.
20779         (_mm512_setr4_ps): Define.
20780         (_mm512_setzero_epi32): Define.
20782 2014-03-31  Martin Jambor  <mjambor@suse.cz>
20784         PR middle-end/60647
20785         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
20786         callsite_arguments_match_p.  Updated all callers.  Also check types of
20787         corresponding formal parameters and actual arguments.
20788         (not_all_callers_have_enough_arguments_p) Renamed to
20789         some_callers_have_mismatched_arguments_p.
20791 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
20793         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
20795 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
20797         PR target/60034
20798         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
20799         section anchor.
20801 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
20803         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
20804         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
20805         Split out
20806         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
20807         Use FMAMODE_NOVF512 mode iterator.
20808         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
20809         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
20810         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
20811         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
20812         Split out
20813         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
20814         Use VF_128_256 mode iterator.
20815         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
20816         Ditto.
20818 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
20820         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
20821         static chain if needed.
20823 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
20825         PR target/60697
20826         * lra-constraints.c (index_part_to_reg): New.
20827         (process_address): Use it.
20829 2014-03-27  Jeff Law  <law@redhat.com>
20830             Jakub Jelinek  <jakub@redhat.com>
20832         PR target/60648
20833         * expr.c (do_tablejump): Use simplify_gen_binary rather than
20834         gen_rtx_{PLUS,MULT} to build up the address expression.
20836         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
20837         creating non-canonical RTL.
20839 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
20841         PR ipa/60243
20842         * ipa-inline.c (want_inline_small_function_p): Short circuit large
20843         functions; reorganize to make cheap checks first.
20844         (inline_small_functions): Do not estimate growth when dumping;
20845         it is expensive.
20846         * ipa-inline.h (inline_summary): Add min_size.
20847         (growth_likely_positive): New function.
20848         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
20849         (set_cond_stmt_execution_predicate): Cleanup.
20850         (estimate_edge_size_and_time): Compute min_size.
20851         (estimate_calls_size_and_time): Likewise.
20852         (estimate_node_size_and_time): Likewise.
20853         (inline_update_overall_summary): Update min_size.
20854         (do_estimate_edge_time): Likewise.
20855         (do_estimate_edge_size): Update.
20856         (do_estimate_edge_hints): Update.
20857         (growth_likely_positive): New function.
20859 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
20861         PR target/60693
20862         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
20863         also if addr has VOIDmode.
20865 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20867         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
20868         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
20869         Declare extern.
20870         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
20871         instructions as well as AdvancedSIMD loads.
20873 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20875         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
20876         Use crypto_aese type.
20877         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
20878         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
20879         crypto_aese, crypto_aesmc.  Move to types.md.
20880         * config/arm/types.md (crypto_aes): Split into crypto_aese,
20881         crypto_aesmc.
20882         * config/arm/iterators.md (crypto_type): Likewise.
20884 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
20886         * cgraph.c: Include expr.h and tree-dfa.h.
20887         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
20888         remove LHS.
20890 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
20892         PR target/60675
20893         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
20894         regs from checking multi-reg pseudos.
20896 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20898         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
20900 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20902         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
20903         if it would clobber the stack pointer, even temporarily.
20905 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
20907         * mode-switching.c: Make small adjustments to the top comment.
20909 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
20911         * config/rs6000/constraints.md (wD constraint): New constraint to
20912         match the constant integer to get the top DImode/DFmode out of a
20913         vector in a VSX register.
20915         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
20916         match the constant integer to get the top DImode/DFmode out of a
20917         vector in a VSX register.
20919         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
20920         for ISA 2.07.
20922         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20923         vbpermq builtins.
20925         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
20926         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
20928         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
20929         Optimize vec_extract of 64-bit values, where the value being
20930         extracted is in the top word, where we can use scalar
20931         instructions.  Add direct move and store support.  Combine the big
20932         endian/little endian vector select load support into a single insn.
20933         (vsx_extract_<mode>_internal1): Likewise.
20934         (vsx_extract_<mode>_internal2): Likewise.
20935         (vsx_extract_<mode>_load): Likewise.
20936         (vsx_extract_<mode>_store): Likewise.
20937         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
20938         combined into vsx_extract_<mode>_load.
20939         (vsx_extract_<mode>_one_le): Likewise.
20941         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
20942         define the top 64-bit vector element.
20944         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
20945         constraint.
20947         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20948         Document vec_vbpermq builtin.
20950         PR target/60672
20951         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
20952         enable use of xxsldwi and xxpermdi builtin functions.
20953         (vec_xxpermdi): Likewise.
20955         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20956         Document use of vec_xxsldwi and vec_xxpermdi builtins.
20958 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
20960         PR rtl-optimization/60650
20961         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
20962         first_p.  Use it.
20963         (find_spills_for): New.
20964         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
20965         Spill all pseudos on the second iteration.
20967 2014-03-27  Marek Polacek  <polacek@redhat.com>
20969         PR c/50347
20970         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
20971         types.
20973 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20975         * config/s390/s390.c (s390_can_use_return_insn): Check for
20976         call-saved FPRs on 31 bit.
20978 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
20980         PR middle-end/60682
20981         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
20982         if they need regimplification, just drop them instead of
20983         calling gimple_regimplify_operands on them.
20985 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20987         PR target/60580
20988         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
20989         (aarch64_frame_pointer_required): Adjust logic.
20990         (aarch64_can_eliminate): Adjust logic.
20991         (aarch64_override_options_after_change): Adjust logic.
20993 2014-03-27  Dehao Chen  <dehao@google.com>
20995         * ipa-inline.c (early_inliner): Update node's inline info.
20997 2014-03-26  Dehao Chen  <dehao@google.com>
20999         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21000         compiler inserted conditional jumps for NAN float check.
21002 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
21004         * ubsan.h (ubsan_create_data): Change second argument's type
21005         to const location_t *.
21006         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21007         _("<unknown>").
21008         (ubsan_create_data): Change second argument to const location_t *PLOC.
21009         Create Loc field whenever PLOC is non-NULL.
21010         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21011         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21012         callers.
21014         PR other/59545
21015         * real.c (real_to_integer2): Change type of low to UHWI.
21017 2014-03-26  Tobias Burnus  <burnus@net-b.de>
21019         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21020         (CILK_SELF_SPECS): New define.
21021         (driver_self_specs): Use it.
21023 2014-03-26  Richard Biener  <rguenther@suse.de>
21025         * tree-pretty-print.c (percent_K_format): Implement special
21026         case for LTO and its stripped down BLOCK tree.
21028 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
21030         PR sanitizer/60636
21031         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21033         * tree-vrp.c (simplify_internal_call_using_ranges): If only
21034         one range is range_int_cst_p, but not both, at least optimize
21035         addition/subtraction of 0 and multiplication by 0 or 1.
21036         * gimple-fold.c (gimple_fold_call): Fold
21037         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21038         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21039         INTEGER_CSTs, try to fold at least x * 0 and y - y.
21041 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
21043         PR rtl-optimization/60452
21044         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21045         <case REG>: Return 1 for invalid offsets from the frame pointer.
21047 2014-03-26  Marek Polacek  <polacek@redhat.com>
21049         PR c/37428
21050         * doc/extend.texi (C Extensions): Mention variable-length arrays in
21051         a structure/union.
21053 2014-03-26  Marek Polacek  <polacek@redhat.com>
21055         PR c/39525
21056         * doc/extend.texi (Designated Inits): Describe what happens to omitted
21057         field members.
21059 2014-03-26  Marek Polacek  <polacek@redhat.com>
21061         PR other/59545
21062         * ira-color.c (update_conflict_hard_regno_costs): Perform the
21063         multiplication in unsigned type.
21065 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
21067         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21069 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
21071         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21073 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
21075         PR ipa/60315
21076         * cif-code.def (UNREACHABLE) New code.
21077         * ipa-inline.c (inline_small_functions): Skip edges to
21078         __builtlin_unreachable.
21079         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21080         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21081         predicate to __bulitin_unreachable.
21082         (set_cond_stmt_execution_predicate): Fix issue when
21083         invert_tree_comparison returns ERROR_MARK.
21084         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21085         propagate to inline clones.
21086         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21087         to unreachable.
21088         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21089         * cgraphclones.c (cgraph_clone_node): If call destination is already
21090         ureachable, do not redirect it back.
21091         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21092         unreachable.
21094 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
21096         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21097         Do not modify inline clones.
21099 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
21101         * config/i386/i386.md (general_sext_operand): New mode attr.
21102         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21103         don't generate (sign_extend (const_int)).
21104         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21105         operands[2].  Use We constraint instead of <i> and
21106         <general_sext_operand> predicate instead of <general_operand>.
21107         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21108         * config/i386/constraints.md (We): New constraint.
21109         * config/i386/predicates.md (x86_64_sext_operand,
21110         sext_operand): New predicates.
21112 2014-03-25  Martin Jambor  <mjambor@suse.cz>
21114         PR ipa/60600
21115         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21116         inconsistent devirtualizations to __builtin_unreachable.
21118 2014-03-25  Marek Polacek  <polacek@redhat.com>
21120         PR c/35449
21121         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21123 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
21125         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21126         order of elements for big-endian.
21128 2014-03-25  Richard Biener  <rguenther@suse.de>
21130         PR middle-end/60635
21131         * gimplify-me.c (gimple_regimplify_operands): Update the
21132         re-gimplifed stmt.
21134 2014-03-25  Martin Jambor  <mjambor@suse.cz>
21136         PR ipa/59176
21137         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21138         (lto_output_varpool_node): Likewise.
21139         (input_overwrite_node): Likewise.
21140         (input_varpool_node): Likewise.
21142 2014-03-25  Richard Biener  <rguenther@suse.de>
21144         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21145         (run_gcc): Likewise.
21147 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
21149         * combine.c (simplify_compare_const): Add MODE argument.
21150         Handle mode_width 0 as very large mode_width.
21151         (try_combine, simplify_comparison): Adjust callers.
21153         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21154         type to avoid signed integer overflow.
21155         * explow.c (plus_constant): Likewise.
21157 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21159         * doc/generic.texi: Correct typos.
21161 2014-03-24  Tobias Burnus  <burnus@net-b.de>
21163         * doc/invoke.texi (-flto): Expand section about
21164         using static libraries with LTO.
21166 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21168         PR rtl-optimization/60501
21169         * optabs.def (addptr3_optab): New optab.
21170         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21171         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21172         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21174         * lra.c (emit_add3_insn): Use the addptr pattern if available.
21176         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21178 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
21180         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21181         _mm512_set1_pd.
21183         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21184         (_mm256_undefined_ps): Define.
21185         (_mm256_undefined_pd): Define.
21186         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21187         (_mm_undefined_pd): Define.
21188         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21189         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21190         (_mm512_undefined_ps): Define.
21191         (_mm512_undefined_pd): Define.
21192         Use _mm*_undefined_*.
21193         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21195 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
21197         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21198         (lshr_simd): DI mode added.
21199         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21200         (aarch64_ushr_simddi): Likewise.
21201         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21202         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21203         (vshrd_n_u64): Likewise.
21205 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21207         * Makefile.in (s-macro_list): Depend on cc1.
21209 2014-03-23  Teresa Johnson  <tejohnson@google.com>
21211         * ipa-utils.c (ipa_print_order): Use specified dump file.
21213 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
21215         PR rtl-optimization/60601
21216         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21218         * gcc.c (eval_spec_function): Initialize save_growing_value.
21220 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
21222         PR sanitizer/60613
21223         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21224         code == MINUS_EXPR, never swap op0 with op1.
21226         * toplev.c (init_local_tick): Avoid signed integer multiplication
21227         overflow.
21228         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21229         shift by first operand's bitsize.
21231 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
21233         PR target/60610
21234         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21235         redefine to 1 or 0.
21236         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21237         TARGET_ISA_64BIT_P(x).
21239 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21241         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21242         pattern for vector nor instead of subtract from splat(-1).
21243         (altivec_expand_vec_perm_const_le): Likewise.
21245 2014-03-21  Richard Henderson  <rth@twiddle.net>
21247         PR target/60598
21248         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21249         related insns after epilogue_completed.
21251 2014-03-21  Martin Jambor  <mjambor@suse.cz>
21253         PR ipa/59176
21254         * cgraph.h (symtab_node): New flag body_removed.
21255         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21256         when removing bodies.
21257         * symtab.c (dump_symtab_base): Dump body_removed flag.
21258         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21259         had their bodies removed.
21261 2014-03-21  Martin Jambor  <mjambor@suse.cz>
21263         PR ipa/60419
21264         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21265         in the border.
21267 2014-03-21  Richard Biener  <rguenther@suse.de>
21269         PR tree-optimization/60577
21270         * tree-core.h (struct tree_base): Document nothrow_flag use
21271         in DECL_NONALIASED.
21272         * tree.h (DECL_NONALIASED): New.
21273         (may_be_aliased): Adjust.
21274         * coverage.c (build_var): Set DECL_NONALIASED.
21276 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
21278         * expr.c (expand_expr_real_1): Remove outdated comment.
21280 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
21282         PR middle-end/60597
21283         * ira.c (adjust_cleared_regs): Call copy_rtx on
21284         *reg_equiv[REGNO (loc)].src_p before passing it to
21285         simplify_replace_fn_rtx.
21287         PR target/60568
21288         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21289         into CONST, put pic register as first operand of PLUS.  Use
21290         gen_const_mem for both 32-bit and 64-bit PIC got loads.
21292 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21294         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21296 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
21298         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21299         around for store forwarding issue in the FPU on the UT699.
21300         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21301         loads and operations if -mfix-ut699 is specified.
21302         (divtf3_hq): Tweak attribute.
21303         (sqrttf2_hq): Likewise.
21305 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
21307         * calls.c (store_one_arg): Remove incorrect const qualification on the
21308         type of the temporary.
21309         * cfgexpand.c (expand_return): Likewise.
21310         * expr.c (expand_constructor): Likewise.
21311         (expand_expr_real_1): Likewise.
21313 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21315         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21316         of parts.
21318 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
21320         PR target/60039
21321         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21323 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
21325         * config/arm/aarch-common-protos.h
21326         (alu_cost_table): Fix spelling of "extend".
21327         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21329 2014-03-19  Richard Biener  <rguenther@suse.de>
21331         PR middle-end/60553
21332         * tree-core.h (tree_type_common): Re-order pointer members
21333         to reduce recursion depth during GC walks.
21335 2014-03-19  Marek Polacek  <polacek@redhat.com>
21337         PR sanitizer/60569
21338         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21339         before accessing it.
21341 2014-03-19  Richard Biener  <rguenther@suse.de>
21343         PR lto/59543
21344         * lto-streamer-in.c (input_function): In WPA stage do not drop
21345         debug stmts.
21347 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
21349         PR tree-optimization/60559
21350         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21351         with build_zero_cst assignment.
21353 2014-03-18  Kai Tietz  <ktietz@redhat.com>
21355         PR rtl-optimization/56356
21356         * sdbout.c (sdbout_parms): Verify that parms'
21357         incoming argument is valid.
21358         (sdbout_reg_parms): Likewise.
21360 2014-03-18  Richard Henderson  <rth@redhat.com>
21362         PR target/60562
21363         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21364         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
21365         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21367 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
21369         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21370         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21371         Italicize plugin event names in description.  Explain that
21372         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
21373         Remind that no GCC functions should be called after PLUGIN_FINISH.
21374         Explain what pragmas with expansion are.
21376 2014-03-18  Martin Liska  <mliska@suse.cz>
21378         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21379         gimple call statement is update.
21380         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21381         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21383 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
21385         PR sanitizer/60557
21386         * ubsan.c (ubsan_instrument_unreachable): Call
21387         initialize_sanitizer_builtins.
21388         (ubsan_pass): Likewise.
21390         PR sanitizer/60535
21391         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21392         varpool_finalize_decl instead of rest_of_decl_compilation.
21394 2014-03-18  Richard Biener  <rguenther@suse.de>
21396         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21397         by using bitmap_and_compl instead of bitmap_and_compl_into.
21398         (df_rd_transfer_function): Likewise.
21400 2014-03-18  Richard Biener  <rguenther@suse.de>
21402         * doc/lto.texi (fresolution): Fix typo.
21404 2014-03-18  Richard Biener  <rguenther@suse.de>
21406         * doc/invoke.texi (flto): Update for changes in 4.9.
21408 2014-03-18  Richard Biener  <rguenther@suse.de>
21410         * doc/loop.texi: Remove section on the removed lambda framework.
21411         Update loop docs with recent changes in preserving loop structure.
21413 2014-03-18  Richard Biener  <rguenther@suse.de>
21415         * doc/lto.texi (-fresolution): Document.
21417 2014-03-18  Richard Biener  <rguenther@suse.de>
21419         * doc/contrib.texi: Adjust my name.
21421 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
21423         PR ipa/58721
21424         * internal-fn.c: Include diagnostic-core.h.
21425         (expand_BUILTIN_EXPECT): New function.
21426         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21427         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21428         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21429         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21430         IFN_BUILTIN_EXPECT.
21431         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21432         Revert 3 argument __builtin_expect code.
21433         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21434         * gimple-fold.c (gimple_fold_call): Likewise.
21435         * tree.h (fold_builtin_expect): New prototype.
21436         * builtins.c (build_builtin_expect_predicate): Add predictor
21437         argument, if non-NULL, create 3 argument __builtin_expect.
21438         (fold_builtin_expect): No longer static.  Add ARG2 argument,
21439         pass it through to build_builtin_expect_predicate.
21440         (fold_builtin_2): Adjust caller.
21441         (fold_builtin_3): Handle BUILT_IN_EXPECT.
21442         * internal-fn.def (BUILTIN_EXPECT): New.
21444 2014-03-18  Tobias Burnus  <burnus@net-b.de>
21446         PR ipa/58721
21447         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21448         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21449         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21451 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
21453         PR ipa/58721
21454         * predict.c (combine_predictions_for_bb): Fix up formatting.
21455         (expr_expected_value_1, expr_expected_value): Add predictor argument,
21456         fill what it points to if non-NULL.
21457         (tree_predict_by_opcode): Adjust caller, use the predictor.
21458         * predict.def (PRED_COMPARE_AND_SWAP): Add.
21460 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
21462         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21463         proper constant for the store mode.
21465 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
21467         * symtab.c (change_decl_assembler_name): Fix transparent alias
21468         chain construction.
21470 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
21472         * config/aarch64/aarch64.c: Correct the comments about the
21473         aarch64 stack layout.
21475 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
21477         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21478         check for GF_OMP_FOR_KIND_FOR.
21480 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
21482         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21483         ymm and zmm register names.
21485 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
21487         PR target/60516
21488         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21489         note creation for the 2010-08-31 changes.
21491 2014-03-17  Marek Polacek  <polacek@redhat.com>
21493         PR middle-end/60534
21494         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21495         as -fno-tree-loop-vectorize.
21496         (expand_omp_simd): Likewise.
21498 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
21500         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21501         (eligible_for_call_delay): New prototype.
21502         * config/sparc/sparc.c (tls_call_delay): Rename into...
21503         (eligible_for_call_delay): ...this.  Return false if the instruction
21504         cannot be put in the delay slot of a branch.
21505         (eligible_for_restore_insn): Simplify.
21506         (eligible_for_return_delay): Return false if the instruction cannot be
21507         put in the delay slot of a branch and simplify.
21508         (eligible_for_sibcall_delay): Return false if the instruction cannot be
21509         put in the delay slot of a branch.
21510         * config/sparc/sparc.md (fix_ut699): New attribute.
21511         (tls_call_delay): Delete.
21512         (in_call_delay): Reimplement.
21513         (eligible_for_sibcall_delay): Rename into...
21514         (in_sibcall_delay): ...this.
21515         (eligible_for_return_delay): Rename into...
21516         (in_return_delay): ...this.
21517         (in_branch_delay): Reimplement.
21518         (in_uncond_branch_delay): Delete.
21519         (in_annul_branch_delay): Delete.
21521 2014-03-14  Richard Henderson  <rth@redhat.com>
21523         PR target/60525
21524         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21525         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21526         (*floathi<X87MODEF>2_i387_with_temp): Remove.
21527         (floathi splitters): Remove.
21528         (float<SWI48x>xf2): New pattern.
21529         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
21530         code that tried to handle DImode for 32-bit, but which was excluded
21531         by the pattern's condition.  Drop allocation of stack temporary.
21532         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21533         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21534         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21535         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21536         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21537         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21538         (*float<SWI48><MODEF>2_sse_interunit): Remove.
21539         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21540         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21541         (*float<SWI48x><X87MODEF>2_i387): Remove.
21542         (all float _with_temp splitters): Remove.
21543         (*float<SWI48x><MODEF>2_i387): New pattern.
21544         (*float<SWI48><MODEF>2_sse): New pattern.
21545         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21546         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21548 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
21549             Marek Polacek  <polacek@redhat.com>
21551         PR middle-end/60484
21552         * common.opt (dump_base_name_prefixed): New Variable.
21553         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
21554         if x_dump_base_name_prefixed is already set, set it at the end.
21556 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
21558         PR rtl-optimization/60508
21559         * lra-constraints.c (get_reload_reg): Add new parameter
21560         in_subreg_p.
21561         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
21562         Pass the new parameter values.
21564 2014-03-14  Richard Biener  <rguenther@suse.de>
21566         * common.opt: Revert unintented changes from r205065.
21567         * opts.c: Likewise.
21569 2014-03-14  Richard Biener  <rguenther@suse.de>
21571         PR middle-end/60518
21572         * cfghooks.c (split_block): Properly adjust all loops the
21573         block was a latch of.
21575 2014-03-14  Martin Jambor  <mjambor@suse.cz>
21577         PR lto/60461
21578         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
21579         and simplify it.
21581 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
21583         PR target/59396
21584         * config/avr/avr.c (avr_set_current_function): Pass function name
21585         through default_strip_name_encoding before sanity checking instead
21586         of skipping the first char of the assembler name.
21588 2014-03-13  Richard Henderson  <rth@redhat.com>
21590         PR debug/60438
21591         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
21592         (ix86_force_to_memory, ix86_free_from_memory): Remove.
21593         * config/i386/i386-protos.h: Likewise.
21594         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
21595         in the expander instead of a splitter.
21596         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
21597         any possibility of requiring a memory.
21598         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
21599         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
21600         (fp branch splitters): Update for ix86_split_fp_branch.
21601         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
21602         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
21603         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
21604         (*fop_<MODEF>_2_i387): Remove f/r alternative.
21605         (*fop_<MODEF>_3_i387): Likewise.
21606         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
21607         (splitters for the fop_* register patterns): Remove.
21608         (fscalexf4_i387): Rename from *fscalexf4_i387.
21609         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
21611 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
21613         PR tree-optimization/59779
21614         * tree-dfa.c (get_ref_base_and_extent): Use double_int
21615         type for bitsize and maxsize instead of HOST_WIDE_INT.
21617 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
21619         PR rtl-optimization/57320
21620         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
21621         the CFG after thread_prologue_and_epilogue_insns.
21623 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
21625         PR rtl-optimization/57189
21626         * lra-constraints.c (process_alt_operands): Disfavor spilling
21627         vector pseudos.
21629 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
21631         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
21633 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
21635         PR tree-optimization/59025
21636         PR middle-end/60418
21637         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
21638         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
21640 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
21642         PR target/60486
21643         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
21644         calls of avr_out_plus_1.
21646 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
21648         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
21649         BB's single pred and update the father loop's latch info later.
21651 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
21653         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
21654         (VEC_M): Likewise.
21655         (VEC_N): Likewise.
21656         (VEC_R): Likewise.
21657         (VEC_base): Likewise.
21658         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
21659         registers, we need to swap double words in little endian mode.
21661         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
21662         to be a container mode for 128-bit integer operations added in ISA
21663         2.07.  Unlike TImode and PTImode, the preferred register set is
21664         the Altivec/VMX registers for the 128-bit operations.
21666         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
21667         declarations.
21668         (rs6000_split_128bit_ok_p): Likewise.
21670         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
21671         macros for creating ISA 2.07 normal and overloaded builtin
21672         functions with 3 arguments.
21673         (BU_P8V_OVERLOAD_3): Likewise.
21674         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
21675         for use as overloaded functions.
21676         (VPERM_1TI_UNS): Likewise.
21677         (VSEL_1TI): Likewise.
21678         (VSEL_1TI_UNS): Likewise.
21679         (ST_INTERNAL_1ti): Likewise.
21680         (LD_INTERNAL_1ti): Likewise.
21681         (XXSEL_1TI): Likewise.
21682         (XXSEL_1TI_UNS): Likewise.
21683         (VPERM_1TI): Likewise.
21684         (VPERM_1TI_UNS): Likewise.
21685         (XXPERMDI_1TI): Likewise.
21686         (SET_1TI): Likewise.
21687         (LXVD2X_V1TI): Likewise.
21688         (STXVD2X_V1TI): Likewise.
21689         (VEC_INIT_V1TI): Likewise.
21690         (VEC_SET_V1TI): Likewise.
21691         (VEC_EXT_V1TI): Likewise.
21692         (EQV_V1TI): Likewise.
21693         (NAND_V1TI): Likewise.
21694         (ORC_V1TI): Likewise.
21695         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
21696         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
21697         overloaded builtin.
21698         (VADDUQM): Likewise.
21699         (VSUBCUQ): Likewise.
21700         (VADDEUQM): Likewise.
21701         (VADDECUQ): Likewise.
21702         (VSUBEUQM): Likewise.
21703         (VSUBECUQ): Likewise.
21705         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
21706         __int128_t and __uint128_t types.
21707         (__uint128_type): Likewise.
21708         (altivec_categorize_keyword): Add support for vector __int128_t,
21709         vector __uint128_t, vector __int128, and vector unsigned __int128
21710         as a container type for TImode operations that need to be done in
21711         VSX/Altivec registers.
21712         (rs6000_macro_to_expand): Likewise.
21713         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
21714         to support 128-bit integer instructions vaddcuq, vadduqm,
21715         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
21716         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
21718         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
21719         for V1TImode, and set up preferences to use VSX/Altivec registers.
21720         Setup VSX reload handlers.
21721         (rs6000_debug_reg_global): Likewise.
21722         (rs6000_init_hard_regno_mode_ok): Likewise.
21723         (rs6000_preferred_simd_mode): Likewise.
21724         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
21725         (easy_altivec_constant): Likewise.
21726         (output_vec_const_move): Likewise.
21727         (rs6000_expand_vector_set): Convert V1TImode set and extract to
21728         simple move.
21729         (rs6000_expand_vector_extract): Likewise.
21730         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
21731         addressing.
21732         (rs6000_const_vec): Add support for V1TImode.
21733         (rs6000_emit_le_vsx_load): Swap double words when loading or
21734         storing TImode/V1TImode.
21735         (rs6000_emit_le_vsx_store): Likewise.
21736         (rs6000_emit_le_vsx_move): Likewise.
21737         (rs6000_emit_move): Add support for V1TImode.
21738         (altivec_expand_ld_builtin): Likewise.
21739         (altivec_expand_st_builtin): Likewise.
21740         (altivec_expand_vec_init_builtin): Likewise.
21741         (altivec_expand_builtin): Likewise.
21742         (rs6000_init_builtins): Add support for V1TImode type.  Add
21743         support for ISA 2.07 128-bit integer builtins.  Define type names
21744         for the VSX/Altivec vector types.
21745         (altivec_init_builtins): Add support for overloaded vector
21746         functions with V1TImode type.
21747         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
21748         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
21749         external function.
21750         (rs6000_split_128bit_ok_p): Likewise.
21751         (rs6000_handle_altivec_attribute): Create V1TImode from vector
21752         __int128_t and vector __uint128_t.
21754         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
21755         and mode attributes.
21756         (VSX_M): Likewise.
21757         (VSX_M2): Likewise.
21758         (VSm): Likewise.
21759         (VSs): Likewise.
21760         (VSr): Likewise.
21761         (VSv): Likewise.
21762         (VS_scalar): Likewise.
21763         (VS_double): Likewise.
21764         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
21766         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
21767         we support the ISA 2.07 128-bit integer arithmetic instructions.
21768         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
21769         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
21770         and TImode types for use with the builtin functions.
21771         (V1TI_type_node): Likewise.
21772         (unsigned_V1TI_type_node): Likewise.
21773         (intTI_type_internal_node): Likewise.
21774         (uintTI_type_internal_node): Likewise.
21776         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
21777         128-bit builtin functions.
21778         (UNSPEC_VADDEUQM): Likewise.
21779         (UNSPEC_VADDECUQ): Likewise.
21780         (UNSPEC_VSUBCUQ): Likewise.
21781         (UNSPEC_VSUBEUQM): Likewise.
21782         (UNSPEC_VSUBECUQ): Likewise.
21783         (VM): Add V1TImode to vector mode iterators.
21784         (VM2): Likewise.
21785         (VI_unit): Likewise.
21786         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
21787         (altivec_vaddcuq): Likewise.
21788         (altivec_vsubuqm): Likewise.
21789         (altivec_vsubcuq): Likewise.
21790         (altivec_vaddeuqm): Likewise.
21791         (altivec_vaddecuq): Likewise.
21792         (altivec_vsubeuqm): Likewise.
21793         (altivec_vsubecuq): Likewise.
21795         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
21796         mode iterators.
21797         (BOOL_128): Likewise.
21798         (BOOL_REGS_OUTPUT): Likewise.
21799         (BOOL_REGS_OP1): Likewise.
21800         (BOOL_REGS_OP2): Likewise.
21801         (BOOL_REGS_UNARY): Likewise.
21802         (BOOL_REGS_AND_CR0): Likewise.
21804         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
21805         128-bit integer builtin support.
21806         (vec_vadduqm): Likewise.
21807         (vec_vaddecuq): Likewise.
21808         (vec_vaddeuqm): Likewise.
21809         (vec_vsubecuq): Likewise.
21810         (vec_vsubeuqm): Likewise.
21811         (vec_vsubcuq): Likewise.
21812         (vec_vsubuqm): Likewise.
21814         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21815         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
21816         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
21817         128-bit integer add/subtract to ISA 2.07.
21819 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
21821         * config/arc/arc.c (arc_predicate_delay_insns):
21822         Fix third argument passed to conditionalize_nonjump.
21824 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
21826         * config/aarch64/aarch64-builtins.c
21827         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
21828         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
21829         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
21830         instead of __builtin_lfloor.
21831         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
21833 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
21835         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
21836         (tree_ssa_ifcombine_bb_1): New function.
21837         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
21838         is an empty forwarder block to then_bb or vice versa and then_bb
21839         and else_bb are effectively swapped.
21841 2014-03-12  Christian Bruel  <christian.bruel@st.com>
21843         PR target/60264
21844         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
21845         REG_CFA_DEF_CFA note.
21846         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
21847         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
21849 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21851         PR tree-optimization/60454
21852         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
21854 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21856         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
21857         Do not define target_cpu_default2 to generic.
21858         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
21859         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
21860         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
21862 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
21863             Marc Glisse  <marc.glisse@inria.fr>
21865         PR tree-optimization/60502
21866         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
21867         instead of build_low_bits_mask.
21869 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
21871         PR middle-end/60482
21872         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
21873         if there are multiple uses, but op doesn't live on E edge.
21874         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
21875         clobber stmts before __builtin_unreachable.
21877 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
21879         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
21880         hard_frame_pointer_rtx.
21881         * cse.c (cse_insn): Remove volatile check.
21882         * cselib.c (cselib_process_insn): Likewise.
21883         * dse.c (scan_insn): Likewise.
21885 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
21887         * config/arc/arc.c (conditionalize_nonjump): New function,
21888         broken out of ...
21889         (arc_ifcvt): ... this.
21890         (arc_predicate_delay_insns): Use it.
21892 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
21894         * config/arc/predicates.md (extend_operand): During/after reload,
21895         allow const_int_operand.
21896         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
21897         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
21898         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
21899         to "i".
21900         (umulsi3_highpart_i): Likewise.
21902 2014-03-11  Richard Biener  <rguenther@suse.de>
21904         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
21905         Add asserts to guard possible wrong-code bugs.
21907 2014-03-11  Richard Biener  <rguenther@suse.de>
21909         PR tree-optimization/60429
21910         PR tree-optimization/60485
21911         * tree-ssa-structalias.c (set_union_with_increment): Properly
21912         take into account all fields that overlap the shifted vars.
21913         (do_sd_constraint): Likewise.
21914         (do_ds_constraint): Likewise.
21915         (get_constraint_for_ptr_offset): Likewise.
21917 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
21919         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
21920         (nios2_compute_frame_layout):
21921         Add calculation of cfun->machine->fp_save_offset.
21922         (nios2_expand_prologue): Correct setting of frame pointer register
21923         in prologue.
21924         (nios2_expand_epilogue): Update recovery of stack pointer from
21925         frame pointer accordingly.
21926         (nios2_initial_elimination_offset): Update calculation of offset
21927         for eliminating to HARD_FRAME_POINTER_REGNUM.
21929 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
21931         PR ipa/60457
21932         * ipa.c (symtab_remove_unreachable_nodes): Don't call
21933         cgraph_get_create_node on VAR_DECLs.
21935 2014-03-10  Richard Biener  <rguenther@suse.de>
21937         PR middle-end/60474
21938         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
21940 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
21942         * config/vms/vms.opt (vms_float_format): New variable.
21944 2014-03-08  Tobias Burnus  <burnus@net-b.de>
21946         * doc/invoke.texi (-fcilkplus): Update implementation status.
21948 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
21949             Richard Biener  <rguenther@suse.de>
21951         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
21952         consistently accross all TUs.
21953         (run_gcc): Enable -fshort-double automatically at link at link-time
21954         and disallow override.
21956 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
21958         PR target/58271
21959         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
21960         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
21961         if they can't be used.
21963 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21965         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
21966         for Solaris 11/x86 ld.
21967         * configure: Regenerate.
21969 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21971         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
21972         (LIB_TLS_SPEC): Save as ld_tls_libs.
21973         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
21974         (HAVE_AS_IX86_TLSLDM): New test.
21975         * configure, config.in: Regenerate.
21976         * config/i386/i386.c (legitimize_tls_address): Fall back to
21977         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
21978         cannot support TLS_MODEL_LOCAL_DYNAMIC.
21979         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
21980         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
21982 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
21984         * common.opt (fira-loop-pressure): Mark as optimization.
21986 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
21988         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
21989         an OpenMP mappable type.
21991 2014-03-06  Matthias Klose  <doko@ubuntu.com>
21993         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
21994         MULTILIB_OSDIRNAMES is not defined.
21996 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
21997             Meador Inge  <meadori@codesourcery.com>
21999         PR target/58595
22000         * config/arm/arm.c (arm_tls_symbol_p): Remove.
22001         (arm_legitimize_address): Call legitimize_tls_address for any
22002         arm_tls_referenced_p expression, handle constant addend.  Call it
22003         before testing for !TARGET_ARM.
22004         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22006 2014-03-06  Richard Biener  <rguenther@suse.de>
22008         PR middle-end/60445
22009         PR lto/60424
22010         PR lto/60427
22011         Revert
22012         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
22014         * tree-streamer.c (record_common_node): Assert we don't record
22015         nodes with type double.
22016         (preload_common_node): Skip type double, complex double and double
22017         pointer since it is now frontend dependent due to fshort-double option.
22019 2014-03-06  Richard Biener  <rguenther@suse.de>
22021         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22022         or -fno-lto is specified and the linker has full plugin support.
22023         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22024         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22025         * lto-wrapper.c (merge_and_complain): Merge compile-time
22026         optimization levels.
22027         (run_gcc): And pass it through to the link options.
22029 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
22031         PR debug/60381
22032         Revert:
22033         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
22034         PR debug/59992
22035         * cselib.c (remove_useless_values): Skip to avoid quadratic
22036         behavior if the condition moved from...
22037         (cselib_process_insn): ... here holds.
22039 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
22041         PR plugins/59335
22042         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22043         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22045         PR plugins/59335
22046         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22047         (TM_H): Add x86-tune.def.
22049 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22051         * config/aarch64/aarch64.c (generic_tunings):
22052         Use cortexa57_extra_costs.
22054 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
22056         PR lto/60404
22057         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22058         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22059         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22060         cost for in_lto_p.
22062 2014-03-04  Heiher  <r@hev.cc>
22064         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22065         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22067 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
22069         * config/i386/predicates.md (const2356_operand): Change to ...
22070         (const2367_operand): ... this.
22071         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22072         const2367_operand.
22073         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22074         (*avx512pf_scatterpf<mode>sf): Ditto.
22075         (avx512pf_scatterpf<mode>df): Ditto.
22076         (*avx512pf_scatterpf<mode>df_mask): Ditto.
22077         (*avx512pf_scatterpf<mode>df): Ditto.
22078         * config/i386/i386.c (ix86_expand_builtin): Update
22079         incorrect hint operand error message.
22081 2014-03-04  Richard Biener  <rguenther@suse.de>
22083         * lto-section-in.c (lto_get_section_data): Fix const cast.
22085 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
22087         * tree-streamer.c (record_common_node): Assert we don't record
22088         nodes with type double.
22089         (preload_common_node): Skip type double, complex double and double
22090         pointer since it is now frontend dependent due to fshort-double option.
22092 2014-03-04  Richard Biener  <rguenther@suse.de>
22094         PR lto/60405
22095         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22096         (lto_input_toplevel_asms): Likewise.
22097         * lto-section-in.c (lto_get_section_data): Instead do it here
22098         for every section.
22100 2014-03-04  Richard Biener  <rguenther@suse.de>
22102         PR tree-optimization/60382
22103         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22104         dead PHIs a reduction.
22106 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
22108         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22109         hint value.
22110         (_mm_prefetch): Move out of GCC target("sse") pragma.
22111         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22112         GCC target("prfchw") pragma.
22113         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22114         for locality <= 2.
22115         * config/i386/i386.c (ix86_option_override_internal): Enable
22116         -mprfchw with -mprefetchwt1.
22118 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
22120         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22121         Mark as varying.
22123 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
22125         * opts.h (CL_PCH_IGNORE): Define.
22126         * targhooks.c (option_affects_pch_p):
22127         Return false for options that have CL_PCH_IGNORE set.
22128         * opt-functions.awk: Process PchIgnore.
22129         * doc/options.texi: Document PchIgnore.
22131         * config/arc/arc.opt (misize): Add PchIgnore property.
22133 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22135         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22136         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22137         constraint on constants to permit them being loaded into
22138         GENERAL_REGS or BASE_REGS.
22140 2014-03-03  Nick Clifton  <nickc@redhat.com>
22142         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22143         anti-cacnonical alternatives.
22144         (negandhi3_real): New pattern.
22145         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22147 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
22149         * config/avr/avr-mcus.def: Remove atxmega16x1.
22150         * config/avr/avr-tables.opt: Regenerate.
22151         * config/avr/t-multilib: Regenerate.
22152         * doc/avr-mmcu.texi: Regenerate.
22154 2014-03-03  Tobias Grosser  <tobias@grosser.es>
22155             Mircea Namolaru  <mircea.namolaru@inria.fr>
22157         PR tree-optimization/58028
22158         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22159         scalar dimensions.
22161 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22163         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22164         not handled by recognizers.
22166 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
22168         PR middle-end/60175
22169         * function.c (expand_function_end): Don't emit
22170         clobber_return_register sequence if clobber_after is a BARRIER.
22171         * cfgexpand.c (construct_exit_block): Append instructions before
22172         return_label to prev_bb.
22174 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22176         * config/rs6000/constraints.md: Document reserved use of "wc".
22178 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
22180         PR ipa/60150
22181         * ipa.c (function_and_variable_visibility): When dissolving comdat
22182         group, also set all symbols to local.
22184 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
22186         PR ipa/60306
22188         Revert:
22189         2013-12-14  Jan Hubicka  <jh@suse.cz>
22190         PR middle-end/58477
22191         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22193 2014-03-02  Jon Beniston  <jon@beniston.com>
22195         PR bootstrap/48230
22196         PR bootstrap/50927
22197         PR bootstrap/52466
22198         PR target/46898
22199         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22200           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22201         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22202         (simple_return, *simple_return): New patterns
22203         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22204         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22206 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
22208         * dwarf2out.c (gen_subprogram_die): Tidy.
22210 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
22212         PR target/60071
22213         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22214         (*mov_t_msb_neg_negc): ... this new insn.
22216 2014-02-28  Jason Merrill  <jason@redhat.com>
22218         PR c++/58678
22219         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22220         function.
22222 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
22224         PR c++/60314
22225         * dwarf2out.c (decltype_auto_die): New static.
22226         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22227         (gen_type_die_with_usage): Handle 'decltype(auto)'.
22228         (is_cxx_auto): Likewise.
22230 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
22232         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22233         we are not using general regs only.
22235 2014-02-28  Richard Biener  <rguenther@suse.de>
22237         PR target/60280
22238         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22239         previous fix and only allow to remove trivial pre-headers
22240         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22241         (remove_forwarder_block): Properly update the latch of a loop.
22243 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
22245         PR debug/59992
22246         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22247         (cselib_preserved_hash_table): New.
22248         (preserve_constants_and_equivs): Move preserved vals to it.
22249         (cselib_find_slot): Look it up first.
22250         (cselib_init): Initialize it.
22251         (cselib_finish): Release it.
22252         (dump_cselib_table): Dump it.
22254 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
22256         PR debug/59992
22257         * cselib.c (remove_useless_values): Skip to avoid quadratic
22258         behavior if the condition moved from...
22259         (cselib_process_insn): ... here holds.
22261 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
22263         PR debug/57232
22264         * var-tracking.c (vt_initialize): Apply the same condition to
22265         preserve the CFA base value.
22267 2014-02-28  Joey Ye  <joey.ye@arm.com>
22269         PR target/PR60169
22270         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22271         if reload in progress or completed.
22273 2014-02-28  Tobias Burnus  <burnus@net-b.de>
22275         PR middle-end/60147
22276         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22277         NAMELIST_DECL.
22279 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
22281         * doc/tm.texi.in (Condition Code Status): Update documention for
22282         relative locations of cc0-setter and cc0-user.
22284 2014-02-27  Jeff Law  <law@redhat.com>
22286         PR rtl-optimization/52714
22287         * combine.c (try_combine): When splitting an unrecognized PARALLEL
22288         into two independent simple sets, if I3 is a jump, ensure the
22289         pattern we place into I3 is a (set (pc) ...).
22291 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
22292             Jeff Law  <law@redhat.com>
22294         PR rtl-optimization/49847
22295         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22296         are in different blocks.
22297         * doc/tm.texi (Condition Code Status): Update documention for
22298         relative locations of cc0-setter and cc0-user.
22300 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
22302         PR target/59222
22303         * lra.c (lra_emit_add): Check SUBREG too.
22305 2014-02-27  Andreas Schwab  <schwab@suse.de>
22307         * config/m68k/m68k.c (m68k_option_override): Disable
22308         -flive-range-shrinkage for classic m68k.
22309         (m68k_override_options_after_change): Likewise.
22311 2014-02-27  Marek Polacek  <polacek@redhat.com>
22313         PR middle-end/59223
22314         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22315         -Wmaybe-uninitialized.
22317 2014-02-27  Alan Modra  <amodra@gmail.com>
22319         PR target/57936
22320         * reload1.c (emit_input_reload_insns): When reload_override_in,
22321         set old to rl->in_reg when rl->in_reg is a subreg.
22323 2014-02-26  Richard Biener  <rguenther@suse.de>
22325         PR bootstrap/60343
22326         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22328 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
22330         * common/config/i386/predicates.md (const1256_operand): Remove.
22331         (const2356_operand): New.
22332         (const_1_to_2_operand): Remove.
22333         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22334         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22335         (*avx512pf_gatherpf<mode>sf): Ditto.
22336         (avx512pf_gatherpf<mode>df): Ditto.
22337         (*avx512pf_gatherpf<mode>df_mask): Ditto.
22338         (*avx512pf_gatherpf<mode>df): Ditto.
22339         (avx512pf_scatterpf<mode>sf): Ditto.
22340         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22341         (*avx512pf_scatterpf<mode>sf): Ditto.
22342         (avx512pf_scatterpf<mode>df): Ditto.
22343         (*avx512pf_scatterpf<mode>df_mask): Ditto.
22344         (*avx512pf_scatterpf<mode>df): Ditto.
22345         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22347 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
22349         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22350         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22351         (_mm512_mask_testn_epi64_mask): Move to ...
22352         * config/i386/avx512cdintrin.h: Here.
22353         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22354         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22355         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22356         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22357         TARGET_AVX512F from TARGET_AVX512CD.
22359 2014-02-26  Richard Biener  <rguenther@suse.de>
22361         PR ipa/60327
22362         * ipa.c (walk_polymorphic_call_targets): Properly guard
22363         call to inline_update_overall_summary.
22365 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
22367         PR target/60280
22368         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22369         and latches only if requested.  Fix latch if it is removed.
22370         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22371         LOOPS_HAVE_PREHEADERS.
22373 2014-02-25  Andrew Pinski  <apinski@cavium.com>
22375         * builtins.c (expand_builtin_thread_pointer): Create a new target
22376         when the target is NULL.
22378 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
22380         PR rtl-optimization/60317
22381         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22382         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22383         * lra-assigns.c: Include params.h.
22384         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22385         other reload pseudos considerations.
22387 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22389         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22390         to use canonical form for nor<mode>3.
22392 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22394         PR target/55426
22395         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22396         conversions.
22398 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
22400         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22401         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22402         (ix86_handle_option): Handle OPT_mprefetchwt1.
22403         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22404         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22405         PREFETCHWT1 CPUID.
22406         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22407         OPTION_MASK_ISA_PREFETCHWT1.
22408         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22409         (PTA_PREFETCHWT1): New.
22410         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22411         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22412         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22413         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22414         (*prefetch_avx512pf_<mode>_: Change into ...
22415         (*prefetch_prefetchwt1_<mode>: This.
22416         * config/i386/i386.opt (mprefetchwt1): New.
22417         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22418         (_mm_prefetch): Handle intent to write.
22419         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22421 2014-02-25  Richard Biener  <rguenther@suse.de>
22423         PR middle-end/60291
22424         * emit-rtl.c (mem_attrs_htab): Remove.
22425         (mem_attrs_htab_hash): Likewise.
22426         (mem_attrs_htab_eq): Likewise.
22427         (set_mem_attrs): Always allocate new mem-attrs when something changed.
22428         (init_emit_once): Do not allocate mem_attrs_htab.
22430 2014-02-25  Richard Biener  <rguenther@suse.de>
22432         PR lto/60319
22433         * lto-opts.c (lto_write_options): Output non-explicit conservative
22434         -fwrapv, -fno-trapv and -fno-strict-overflow.
22435         * lto-wrapper.c (merge_and_complain): Handle merging those options.
22436         (run_gcc): And pass them through.
22438 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
22440         * sel-sched.c (calculate_new_fences): New parameter ptime.
22441         Calculate it as a maximum over all fence cycles.
22442         (sel_sched_region_2): Adjust the call to calculate_new_fences.
22443         Print the final schedule timing when sched_verbose.
22445 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
22447         PR rtl-optimization/60292
22448         * sel-sched.c (fill_vec_av_set): Do not reset target availability
22449         bit fot the fence instruction.
22451 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
22453         * calls.h: Fix typo in comment.
22455 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
22457         * config/pa/pa.c (pa_output_move_double): Don't valididate when
22458         adjusting offsetable addresses.
22460 2014-02-24  Guozhi Wei  <carrot@google.com>
22462         * sparseset.h (sparseset_pop): Fix the wrong index.
22464 2014-02-24  Walter Lee  <walt@tilera.com>
22466         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22467         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22468         triplet.
22469         * common/config/tilegx/tilegx-common.c
22470         (TARGET_DEFAULT_TARGET_FLAGS): Define.
22471         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22472         (LINK_SPEC): Ditto.
22473         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22474         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22475         (tilegx_gimplify_va_arg_expr): Handle big endian.
22476         (tilegx_expand_unaligned_load): Ditto.
22477         (tilegx_expand_unaligned_store): Ditto.
22478         (TARGET_RETURN_IN_MSB): New.
22479         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22480         (TARGET_ENDIAN_DEFAULT): New.
22481         (TARGET_BIG_ENDIAN): Handle big endian.
22482         (BYTES_BIG_ENDIAN): Ditto.
22483         (WORDS_BIG_ENDIAN): Ditto.
22484         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22485         (ENDIAN_SPEC): New.
22486         (EXTRA_SPECS): New.
22487         * config/tilegx/tilegx.md (extv): Handle big endian.
22488         (extzv): Ditto.
22489         (insn_st<n>): Ditto.
22490         (insn_st<n>_add<bitsuffix>): Ditto.
22491         (insn_stnt<n>): Ditto.
22492         (insn_stnt<n>_add<bitsuffix>):Ditto.
22493         (vec_interleave_highv8qi): Handle big endian.
22494         (vec_interleave_highv8qi_be): New.
22495         (vec_interleave_highv8qi_le): New.
22496         (insn_v1int_h): Handle big endian.
22497         (vec_interleave_lowv8qi): Handle big endian.
22498         (vec_interleave_lowv8qi_be): New.
22499         (vec_interleave_lowv8qi_le): New.
22500         (insn_v1int_l): Handle big endian.
22501         (vec_interleave_highv4hi): Handle big endian.
22502         (vec_interleave_highv4hi_be): New.
22503         (vec_interleave_highv4hi_le): New.
22504         (insn_v2int_h): Handle big endian.
22505         (vec_interleave_lowv4hi): Handle big endian.
22506         (vec_interleave_lowv4hi_be): New.
22507         (vec_interleave_lowv4hi_le): New.
22508         (insn_v2int_l): Handle big endian.
22509         (vec_interleave_highv2si): Handle big endian.
22510         (vec_interleave_highv2si_be): New.
22511         (vec_interleave_highv2si_le): New.
22512         (insn_v4int_h): Handle big endian.
22513         (vec_interleave_lowv2si): Handle big endian.
22514         (vec_interleave_lowv2si_be): New.
22515         (vec_interleave_lowv2si_le): New.
22516         (insn_v4int_l): Handle big endian.
22517         * config/tilegx/tilegx.opt (mbig-endian): New option.
22518         (mlittle-endian): New option.
22519         * doc/install.texi: Document tilegxbe-linux.
22520         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22522 2014-02-24  Martin Jambor  <mjambor@suse.cz>
22524         PR ipa/60266
22525         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22526         there are no parameter descriptors.
22528 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
22530         PR rtl-optimization/60268
22531         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22532         initialization to ...
22533         (sched_rgn_init): ... here.
22534         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22536 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
22538         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22539         names.
22541 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
22543         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22544         definition.
22546 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
22548         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22549         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22551 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
22553         * config/microblaze/predicates.md: Add cmp_op predicate.
22554         * config/microblaze/microblaze.md: Add branch_compare instruction
22555         which uses cmp_op predicate and emits cmp insn before branch.
22556         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
22557         to microblaze_expand_conditional_branch and consolidate logic.
22558         (microblaze_expand_conditional_branch): emit branch_compare
22559         insn instead of handling cmp op separate from branch insn.
22561 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22563         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
22564         to permit subregs.
22566 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22568         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
22569         define_insn with define_expand and new define_insn
22570         *altivec_lve<VI_char>x_internal.
22571         (altivec_stve<VI_char>x): Replace define_insn with define_expand
22572         and new define_insn *altivec_stve<VI_char>x_internal.
22573         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
22574         prototype.
22575         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
22576         lve*x built-ins.
22577         (altivec_expand_stvex_be): New function.
22579 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
22581         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
22582         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
22583         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
22584         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
22586 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
22588         PR target/60298
22589         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
22590         instead of emit_move_insn.
22592 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22594         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
22595         vspltw with vsldoi.
22596         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
22597         gen_altivec_vsumsws.
22599 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22601         * config/rs6000/altivec.md (altivec_lvxl): Rename as
22602         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
22603         (altivec_lvxl_<mode>): New define_expand incorporating
22604         -maltivec=be semantics where needed.
22605         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
22606         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
22607         semantics where needed.
22608         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
22609         (altivec_stvx_<mode>): New define_expand incorporating
22610         -maltivec=be semantics where needed.
22611         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
22612         VM2 iterator instead of V4SI.
22613         (altivec_stvxl_<mode>): New define_expand incorporating
22614         -maltivec=be semantics where needed.
22615         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
22616         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
22617         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
22618         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
22619         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
22620         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
22621         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
22622         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
22623         ALTIVEC_BUILTIN_STVXL.
22624         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
22625         (altivec_expand_stvx_be): Likewise.
22626         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
22627         (altivec_expand_lvx_be): Likewise.
22628         (altivec_expand_stvx_be): Likewise.
22629         (altivec_expand_builtin): Add cases for
22630         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
22631         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
22632         (altivec_init_builtins): Add definitions for
22633         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
22634         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
22636 2014-02-21  Catherine Moore  <clm@codesourcery.com>
22638         * doc/invoke.texi (mvirt, mno-virt): Document.
22639         * config/mips/mips.opt (mvirt): New option.
22640         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
22642 2014-02-21  Richard Biener  <rguenther@suse.de>
22644         PR tree-optimization/60276
22645         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
22646         (STMT_VINFO_MIN_NEG_DIST): New macro.
22647         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
22648         STMT_VINFO_MIN_NEG_DIST.
22649         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
22650         made for negative dependence distances still hold.
22652 2014-02-21  Richard Biener  <rguenther@suse.de>
22654         PR middle-end/60291
22655         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
22656         DECL_INITIAL for globals not in the current function context.
22658 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
22660         PR tree-optimization/56490
22661         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
22662         * tree-ssa-uninit.c: Include params.h.
22663         (compute_control_dep_chain): Add num_calls argument, return false
22664         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
22665         num_calls to recursive call.
22666         (find_predicates): Change dep_chain into normal array,
22667         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
22668         variable and adjust compute_control_dep_chain caller.
22669         (find_def_preds): Likewise.
22671 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
22673         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
22674         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
22676 2014-02-21  Nick Clifton  <nickc@redhat.com>
22678         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
22679         (pushhi1): Likewise.
22680         (popqi1): Add mode to pre_dec.
22681         (pophi1): Likewise.
22683 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
22685         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
22686         mode for mask of V8SFmode permutation.
22688 2014-02-20  Richard Henderson  <rth@redhat.com>
22690         PR c++/60272
22691         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
22692         a new pseudo for OLDVAL.
22694 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
22696         PR target/57896
22697         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
22698         gen_reg_rtx if d->testing_p.
22699         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
22700         if d->testing_p and we will certainly return true.
22701         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
22702         if d->testing_p.
22704 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
22706         * emit-rtl.c (gen_reg_rtx): Assert that
22707         crtl->emit.regno_pointer_align_length is non-zero.
22709 2014-02-20  Richard Henderson  <rth@redhat.com>
22711         PR c++/60272
22712         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
22713         on failure the store back into EXPECT.
22715 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
22716             Sandra Loosemore  <sandra@codesourcery.com>
22718         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
22719         * config/nios2/nios2.c (nios2_function_profiler): Add
22720         -fPIC (flag_pic == 2) support.
22721         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
22722         (nios2_large_offset_p): New function.
22723         (nios2_unspec_reloc_p): Move up position, update to use
22724         nios2_large_offset_p.
22725         (nios2_unspec_address): Remove function.
22726         (nios2_unspec_offset): New function.
22727         (nios2_large_got_address): New function.
22728         (nios2_got_address): Add large offset support.
22729         (nios2_legitimize_tls_address): Update usage of removed and new
22730         functions.
22731         (nios2_symbol_binds_local_p): New function.
22732         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
22733         (nios2_legitimize_address): Update to use nios2_large_offset_p.
22734         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
22735         (nios2_print_operand): Merge H/L processing, add hiadj/lo
22736         processing for (const (unspec ...)).
22737         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
22739 2014-02-20  Richard Biener  <rguenther@suse.de>
22741         * tree-cfg.c (replace_uses_by): Mark altered BBs before
22742         doing the substitution.
22743         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
22745 2014-02-20  Martin Jambor  <mjambor@suse.cz>
22747         PR ipa/55260
22748         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
22749         info when checking whether lattices are bottom.
22751 2014-02-20  Richard Biener  <rguenther@suse.de>
22753         PR middle-end/60221
22754         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
22755         regions at -O0.
22757 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
22759         PR ipa/58555
22760         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
22761         parameter specifying the scaling.
22762         (inline_call): Update.
22763         (want_inline_recursively): Guard division by zero.
22764         (recursive_inlining): Update.
22765         * ipa-inline.h (clone_inlined_nodes): Update.
22767 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
22769         PR target/60204
22770         * config/i386/i386.c (classify_argument): Pass structures of size
22771         64 bytes or less in register.
22773 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
22774             Kirill Yukhin  <kirill.yukhin@intel.com>
22776         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
22777         (_mm_rcp28_round_ss): Ditto.
22778         (_mm_rsqrt28_round_sd): Ditto.
22779         (_mm_rsqrt28_round_ss): Ditto.
22780         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
22781         (_mm_rcp14_round_ss): Ditto.
22782         (_mm_rsqrt14_round_sd): Ditto.
22783         (_mm_rsqrt14_round_ss): Ditto.
22784         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
22785         the first input operand, get rid of match_dup.
22786         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
22787         attribute to sse.
22788         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
22789         Ditto.
22790         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
22791         operand as the first input operand, set type attribute.
22792         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
22793         Set type attribute.
22794         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
22795         operand as the first input operand, set type attribute.
22797 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22799         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
22800         bit of zero.
22802 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
22804         PR target/60207
22805         * config/i386/i386.c (construct_container): Remove TFmode check
22806         for X86_64_INTEGER_CLASS.
22808 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
22810         PR target/59794
22811         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
22812         only when -Wpsabi is enabled.
22814 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
22816          PR target/59799
22817         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
22818         passing arrays in registers are the same as for structs, so remove the
22819         special case for them.
22821 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
22823         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
22824         destination type, extract only the valid bits if the source type is not
22825         integral and has a different mode.
22827 2014-02-19  Richard Biener  <rguenther@suse.de>
22829         PR ipa/60243
22830         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
22831         for all calls.
22833 2014-02-19  Richard Biener  <rguenther@suse.de>
22835         PR ipa/60243
22836         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
22837         (ipa_modify_call_arguments): Emit an argument load explicitely and
22838         preserve virtual SSA form there and for the replacement call.
22839         Do not update SSA form nor free dominance info.
22841 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
22843         * ipa.c (function_and_variable_visibility): Also clear WEAK
22844         flag when disolving COMDAT_GROUP.
22846 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
22848         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
22849         * ipa-prop.c (ipa_set_jf_known_type): Return early when
22850         not devirtualizing.
22851         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
22852         do more sanity checks.
22853         (detect_type_change): Return true when giving up early.
22854         (compute_complex_assign_jump_func): Fix type parameter of
22855         ipa_set_ancestor_jf.
22856         (compute_complex_ancestor_jump_func): Likewise.
22857         (update_jump_functions_after_inlining): Fix updating of
22858         ancestor function.
22859         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
22861 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
22863         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
22864         inline clones when edge disappears.
22866 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
22868         PR target/60203
22869         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
22870         Split 64-bit moves into 2 patterns.  Do not allow the use of
22871         direct move for TDmode in little endian, since the decimal value
22872         has little endian bytes within a word, but the 64-bit pieces are
22873         ordered in a big endian fashion, and normal subreg's of TDmode are
22874         not allowed.
22875         (mov<mode>_64bit_dm): Likewise.
22876         (movtd_64bit_nodm): Likewise.
22878 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
22880         PR tree-optimization/60174
22881         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
22882         statement of an SSA_NAME that occurs in an abnormal PHI node.
22884 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
22886         PR sanitizer/60142
22887         * final.c (SEEN_BB): Remove.
22888         (SEEN_NOTE, SEEN_EMITTED): Renumber.
22889         (final_scan_insn): Don't force_source_line on second
22890         NOTE_INSN_BASIC_BLOCK.
22892 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
22894         PR target/60205
22895         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
22896         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
22897         (type_natural_mode): Warn ABI change when %zmm register is not
22898         available for AVX512F vector value passing.
22900 2014-02-18  Kai Tietz  <ktietz@redhat.com>
22902         PR target/60193
22903         * config/i386/i386.c (ix86_expand_prologue): Use value in
22904         rax register as displacement when restoring %r10 or %rax.
22905         Fix wrong offset when restoring both registers.
22907 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
22909         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
22910         assertion with conditional return.
22912 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
22913             Uros Bizjak  <ubizjak@gmail.com>
22915         PR driver/60233
22916         * config/i386/driver-i386.c (host_detect_local_cpu): If
22917         YMM state is not saved by the OS, also clear has_f16c.  Move
22918         CPUID 0x80000001 handling before YMM state saving checking.
22920 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
22922         PR rtl-optimization/58960
22923         * haifa-sched.c (alloc_global_sched_pressure_data): New,
22924         factored out from ...
22925         (sched_init): ... here.
22926         (free_global_sched_pressure_data): New, factored out from ...
22927         (sched_finish): ... here.
22928         * sched-int.h (free_global_sched_pressure_data): Declare.
22929         * sched-rgn.c (nr_regions_initial): New static global.
22930         (haifa_find_rgns): Initialize it.
22931         (schedule_region): Disable sched-pressure for the newly
22932         generated regions.
22934 2014-02-17  Richard Biener  <rguenther@suse.de>
22936         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
22937         release SSA defs of pattern stmts.
22939 2014-02-17  Richard Biener  <rguenther@suse.de>
22941         * tree-inline.c (expand_call_inline): Release the virtual
22942         operand defined by the call we are about to inline.
22944 2014-02-17  Richard Biener  <rguenther@suse.de>
22946         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
22948 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
22949             Ilya Tocar  <ilya.tocar@intel.com>
22951         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
22952         arguments order in builtin.
22953         (_mm512_permutexvar_epi64): Ditto.
22954         (_mm512_mask_permutexvar_epi64): Ditto
22955         (_mm512_maskz_permutexvar_epi32): Ditto
22956         (_mm512_permutexvar_epi32): Ditto
22957         (_mm512_mask_permutexvar_epi32): Ditto
22959 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22961         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
22962         (p8_vmrgow): Likewise.
22964 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22966         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
22967         endian targets.
22969 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
22971         PR target/60203
22972         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
22973         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
22974         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
22975         using direct move instructions on ISA 2.07.  Also adjust
22976         instruction length for 64-bit.
22977         (mov<mode>_64bit, TFmode/TDmode): Likewise.
22978         (mov<mode>_32bit, TFmode/TDmode): Likewise.
22980 2014-02-15  Alan Modra  <amodra@gmail.com>
22982         PR target/58675
22983         PR target/57935
22984         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
22985         find_replacement on parts of insn rtl that might be reloaded.
22987 2014-02-15  Richard Biener  <rguenther@suse.de>
22989         PR tree-optimization/60183
22990         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
22991         (tree_ssa_phiprop): Calculate and free post-dominators.
22993 2014-02-14  Jeff Law  <law@redhat.com>
22995         PR rtl-optimization/60131
22996         * ree.c (get_extended_src_reg): New function.
22997         (combine_reaching_defs): Use it rather than assuming location of REG.
22998         (find_and_remove_re): Verify first operand of extension is
22999         a REG before adding the insns to the copy list.
23001 2014-02-14  Roland McGrath  <mcgrathr@google.com>
23003         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23004         * configure: Regenerated.
23005         * config.in: Regenerated.
23006         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23007         instead of ASM_SHORT.
23009 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
23010             Richard Earnshaw  <rearnsha@arm.com>
23012         PR rtl-optimization/59535
23013         * lra-constraints.c (process_alt_operands): Encourage alternative
23014         when unassigned pseudo class is superset of the alternative class.
23015         (inherit_reload_reg): Don't inherit when optimizing for code size.
23016         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23017         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23018         modes not less than 4 for Thumb1.
23020 2014-02-14  Kyle McMartin  <kyle@redhat.com>
23022         PR pch/60010
23023         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23025 2014-02-14  Richard Biener  <rguenther@suse.de>
23027         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23028         (get_frame_arg): Drop the assert with langhook types_compatible_p.
23029         Do not strip INDIRECT_REFs.
23031 2014-02-14  Richard Biener  <rguenther@suse.de>
23033         PR lto/60179
23034         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23035         DECL_FUNCTION_SPECIFIC_TARGET.
23036         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23037         * tree-streamer-out.c (pack_ts_target_option): Remove.
23038         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23039         (write_ts_function_decl_tree_pointers): Do not stream
23040         DECL_FUNCTION_SPECIFIC_TARGET.
23041         * tree-streamer-in.c (unpack_ts_target_option): Remove.
23042         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23043         (lto_input_ts_function_decl_tree_pointers): Do not stream
23044         DECL_FUNCTION_SPECIFIC_TARGET.
23046 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
23048         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23049         (get_initial_def_for_induction, vectorizable_induction): Ignore
23050         debug stmts when looking for exit_phi.
23051         (vectorizable_live_operation): Fix up condition.
23053 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
23055         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23056         nreverse() because it changes the content of original tree list.
23058 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
23060         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23061         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23063 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
23065         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23066         GNU coding standards.
23068 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
23070         PR debug/60152
23071         * dwarf2out.c (gen_subprogram_die): Don't call
23072         add_calling_convention_attribute if subr_die is old_die.
23074 2014-02-13  Sharad Singhai  <singhai@google.com>
23076         * doc/optinfo.texi: Fix order of nodes.
23078 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
23080         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23081         operands[2], not operands[3].
23083 2014-02-13  Richard Biener  <rguenther@suse.de>
23085         PR bootstrap/59878
23086         * doc/install.texi (ISL): Update recommended version to 0.12.2,
23087         mention the possibility of an in-tree build.
23088         (CLooG): Update recommended version to 0.18.1, mention the
23089         possibility of an in-tree build and clarify that the ISL
23090         bundled with CLooG does not work.
23092 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
23094         PR target/43546
23095         * expr.c (compress_float_constant): If x is a hard register,
23096         extend into a pseudo and then move to x.
23098 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23100         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23101         caused by bad second argument to warning_at() with -mhotpatch and
23102         nested functions (e.g. with gfortran).
23104 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
23106         * opts.c (option_name): Remove "enabled by default" rider.
23108 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
23110         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23112 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
23113             Uros Bizjak  <ubizjak@gmail.com>
23115         PR target/60151
23116         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23117         * configure: Regenerated.
23119 2014-02-12  Richard Biener  <rguenther@suse.de>
23121         * vec.c (vec_prefix::calculate_allocation): Move as
23122         inline variant to vec.h.
23123         (vec_prefix::calculate_allocation_1): New out-of-line version.
23124         * vec.h (vec_prefix::calculate_allocation_1): Declare.
23125         (vec_prefix::m_has_auto_buf): Rename to ...
23126         (vec_prefix::m_using_auto_storage): ... this.
23127         (vec_prefix::calculate_allocation): Inline the easy cases
23128         and dispatch to calculate_allocation_1 which doesn't need the
23129         prefix address.
23130         (va_heap::reserve): Use gcc_checking_assert.
23131         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23132         m_using_auto_storage.
23133         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23134         member and adjust.
23135         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23136         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23137         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23139 2014-02-12  Richard Biener  <rguenther@suse.de>
23141         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23142         when we found a dependence.
23144 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
23146         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23147         common code...
23148         (maybe_fold_stmt): ... into this new function.
23149         * omp-low.c (lower_omp): Update comment.
23151         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23152         last use.
23154         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23155         dereference.
23157 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
23159         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23160         identifiers in comments.
23161         (cortexa53_extra_costs): Likewise.
23162         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23163         (cortexa7_extra_costs): Likewise.
23164         (cortexa12_extra_costs): Likewise.
23165         (cortexa15_extra_costs): Likewise.
23166         (v7m_extra_costs): Likewise.
23168 2014-02-12  Richard Biener  <rguenther@suse.de>
23170         PR middle-end/60092
23171         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23172         of posix_memalign being successful.
23173         (lower_stmt): Restrict lowering of posix_memalign to when
23174         -ftree-bit-ccp is enabled.
23176 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
23178         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23179         arg_loc.
23180         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23182 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
23184         PR rtl-optimization/60116
23185         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23186         other_insn once the combination has been validated.
23188 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
23190         PR lto/59468
23191         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23192         and wrapper.
23193         * ipa-devirt.c: Include demangle.h
23194         (odr_violation_reported): New static variable.
23195         (add_type_duplicate): Update odr_violations.
23196         (maybe_record_node): Add completep parameter; update it.
23197         (record_target_from_binfo): Add COMPLETEP parameter;
23198         update it as needed.
23199         (possible_polymorphic_call_targets_1): Likewise.
23200         (struct polymorphic_call_target_d): Add nonconstruction_targets;
23201         rename FINAL to COMPLETE.
23202         (record_targets_from_bases): Sanity check we found the binfo;
23203         fix COMPLETEP updating.
23204         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23205         parameter, fix computing of COMPLETEP.
23206         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23207         at LTO time do demangling.
23208         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23209         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23210         parameter.
23211         (gimple_get_virt_method_for_binfo): Likewise.
23212         * gimple-fold.h (gimple_get_virt_method_for_binfo,
23213         gimple_get_virt_method_for_vtable): Update prototypes.
23215 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
23217         PR target/49008
23218         * genautomata.c (add_presence_absence): Fix typo with
23219         {final_}presence_list.
23221 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
23223         PR target/60137
23224         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23225         for VSX/Altivec vectors that land in GPR registers.
23227 2014-02-11  Richard Henderson  <rth@redhat.com>
23228             Jakub Jelinek  <jakub@redhat.com>
23230         PR debug/59776
23231         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23232         around drhs if type conversion to lacc->type is not useless.
23234 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23236         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23237         tuning struct.
23238         (cortex-a57.cortex-a53): Likewise.
23239         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23241 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23243         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23244         arm_restrict_it.
23246 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
23248         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23249         add_options_for_arm_vfp3.
23251 2014-02-11  Jeff Law  <law@redhat.com>
23253         PR middle-end/54041
23254         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23255         object with an undesirable mode.
23257 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23259         PR libgomp/60107
23260         * config/i386/sol2-9.h: New file.
23261         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23262         *-*-solaris2.9*): Use it.
23264 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
23266         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23267         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23269 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
23271         * config/microblaze/microblaze.c: Extend mcpu version format
23273 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
23275         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23277 2014-02-10  Richard Henderson  <rth@redhat.com>
23279         PR target/59927
23280         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23281         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23282         ms-abi vs -mno-accumulate-outgoing-args.
23283         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23284         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23285         respect to ms-abi.
23287 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23289         PR middle-end/60080
23290         * cfgexpand.c (expand_asm_operands): Attach source location to
23291         ASM_INPUT rtx objects.
23292         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23294 2014-02-10  Nick Clifton  <nickc@redhat.com>
23296         * config/mn10300/mn10300.c (popcount): New function.
23297         (mn10300_expand_prologue): Include saved registers in stack usage
23298         count.
23300 2014-02-10  Jeff Law  <law@redhat.com>
23302         PR middle-end/52306
23303         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23304         when changing the SET_DEST of a prior insn to avoid an input reload.
23306 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23308         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23309         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23310         -mcall-openbsd, or -mcall-linux.
23311         (CC1_ENDIAN_BIG_SPEC): Remove.
23312         (CC1_ENDIAN_LITTLE_SPEC): Remove.
23313         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23314         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23315         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23316         and %cc1_endian_default.
23317         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23319 2014-02-10  Richard Biener  <rguenther@suse.de>
23321         PR tree-optimization/60115
23322         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23323         MEM_REF handling.  Properly verify that the accesses are not
23324         out of the objects bound.
23326 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23328         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23329         coretex to cortex.
23331 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
23333         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23334         proper constants and fix formatting.
23335         (possible_polymorphic_call_targets): Fix formatting.
23337 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
23338             Ilya Tocar  <ilya.tocar@intel.com>
23340         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23341         (_mm512_loadu_epi32): Renamed into...
23342         (_mm512_loadu_si512): This.
23343         (_mm512_storeu_epi32): Renamed into...
23344         (_mm512_storeu_si512): This.
23345         (_mm512_maskz_ceil_ps): Removed.
23346         (_mm512_maskz_ceil_pd): Ditto.
23347         (_mm512_maskz_floor_ps): Ditto.
23348         (_mm512_maskz_floor_pd): Ditto.
23349         (_mm512_floor_round_ps): Ditto.
23350         (_mm512_floor_round_pd): Ditto.
23351         (_mm512_ceil_round_ps): Ditto.
23352         (_mm512_ceil_round_pd): Ditto.
23353         (_mm512_mask_floor_round_ps): Ditto.
23354         (_mm512_mask_floor_round_pd): Ditto.
23355         (_mm512_mask_ceil_round_ps): Ditto.
23356         (_mm512_mask_ceil_round_pd): Ditto.
23357         (_mm512_maskz_floor_round_ps): Ditto.
23358         (_mm512_maskz_floor_round_pd): Ditto.
23359         (_mm512_maskz_ceil_round_ps): Ditto.
23360         (_mm512_maskz_ceil_round_pd): Ditto.
23361         (_mm512_expand_pd): Ditto.
23362         (_mm512_expand_ps): Ditto.
23363         * config/i386/i386.c (ix86_builtins): Remove
23364         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23365         (bdesc_args): Ditto.
23366         * config/i386/predicates.md (const1256_operand): New.
23367         (const_1_to_2_operand): Ditto.
23368         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23369         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23370         (*avx512pf_gatherpf<mode>sf): Ditto.
23371         (avx512pf_gatherpf<mode>df): Ditto.
23372         (*avx512pf_gatherpf<mode>df_mask): Ditto.
23373         (*avx512pf_gatherpf<mode>df): Ditto.
23374         (avx512pf_scatterpf<mode>sf): Ditto.
23375         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23376         (*avx512pf_scatterpf<mode>sf): Ditto.
23377         (avx512pf_scatterpf<mode>df): Ditto.
23378         (*avx512pf_scatterpf<mode>df_mask): Ditto.
23379         (*avx512pf_scatterpf<mode>df): Ditto.
23380         (avx512f_expand<mode>): Removed.
23381         (<shift_insn><mode>3<mask_name>): Change predicate type.
23383 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
23385         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23386         not at the end of datarefs vector use ordered_remove to avoid
23387         reordering datarefs vector.
23389         PR c/59984
23390         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23391         mark local addressable non-static vars as GOVD_PRIVATE
23392         instead of GOVD_LOCAL.
23393         * omp-low.c (lower_omp_for): Move gimple_bind_vars
23394         and BLOCK_VARS of gimple_bind_block to new_stmt rather
23395         than copying them.
23397         PR middle-end/60092
23398         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23399         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23400         assume_aligned or alloc_align attributes.
23401         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23402         arguments.  Handle also assume_aligned and alloc_align attributes.
23403         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
23404         calls to functions with assume_aligned or alloc_align attributes.
23405         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23407 2014-02-08  Terry Guo  <terry.guo@arm.com>
23409         * doc/invoke.texi: Document ARM -march=armv7e-m.
23411 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
23413         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23414         flag on __cilkrts_rethrow builtin.
23416         PR ipa/60026
23417         * ipa-cp.c (determine_versionability): Fail at -O0
23418         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23419         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23421         Revert:
23422         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
23424         PR ipa/60026
23425         * tree-inline.c (copy_forbidden): Fail for
23426         __attribute__((optimize (0))) functions.
23428 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
23430         * varpool.c: Include pointer-set.h.
23431         (varpool_remove_unreferenced_decls): Variables in other partitions
23432         will not be output; be however careful to not lose information
23433         about partitioning.
23435 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
23437         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23438         lookup in the vtable constructor.
23440 2014-02-07  Jeff Law  <law@redhat.com>
23442         PR target/40977
23443         * config/m68k/m68k.md (ashldi_extsi): Turn into a
23444         define_insn_and_split.
23446         * ipa-inline.c (inline_small_functions): Fix typos.
23448 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
23450         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23451         (s390_can_use_return_insn): Declare.
23452         * config/s390/s390.h (EPILOGUE_USES): Define.
23453         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23454         instructions.
23455         (s390_chunkify_start): Handle return JUMP_LABELs.
23456         (s390_early_mach): Emit a main_pool instruction on the entry edge.
23457         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23458         (s390_can_use_return_insn): New functions.
23459         (s390_fix_long_loop_prediction): Handle conditional returns.
23460         (TARGET_SET_UP_BY_PROLOGUE): Define.
23461         * config/s390/s390.md (ANY_RETURN): New code iterator.
23462         (*creturn, *csimple_return, return, simple_return): New patterns.
23464 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
23466         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23467         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
23468         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
23469         REG_CFA_RESTORE list when deciding not to restore a register.
23471 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
23473         * config/s390/s390.c: Include tree-pass.h and context.h.
23474         (s390_early_mach): New function, split out from...
23475         (s390_emit_prologue): ...here.
23476         (pass_data_s390_early_mach): New pass structure.
23477         (pass_s390_early_mach): New class.
23478         (s390_option_override): Create and register early_mach pass.
23479         Move to end of file.
23481 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
23483         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23484         to match for the exit block.
23486 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23488         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23489         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23490         Reject misaligned operands.
23492 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23494         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23496 2014-02-07  Richard Biener  <rguenther@suse.de>
23498         PR middle-end/60092
23499         * gimple-low.c (lower_builtin_posix_memalign): New function.
23500         (lower_stmt): Call it to lower posix_memalign in a way
23501         to make alignment info accessible.
23503 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
23505         PR c++/60082
23506         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23507         __builtin_setjmp_receiver.
23509 2014-02-07  Richard Biener  <rguenther@suse.de>
23511         PR middle-end/60092
23512         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23513         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23514         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23515         Handle BUILT_IN_POSIX_MEMALIGN.
23516         (find_func_clobbers): Likewise.
23517         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23518         (call_may_clobber_ref_p_1): Likewise.
23520 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
23522         PR ipa/59918
23523         * ipa-devirt.c (record_target_from_binfo): Remove overactive
23524         sanity check.
23526 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
23528         PR ipa/59469
23529         * lto-cgraph.c (lto_output_node): Use
23530         symtab_get_symbol_partitioning_class.
23531         (lto_output_varpool_node): likewise.
23532         (symtab_get_symbol_partitioning_class): Move here from
23533         lto/lto-partition.c
23534         * cgraph.h (symbol_partitioning_class): Likewise.
23535         (symtab_get_symbol_partitioning_class): Declare.
23537 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
23539         * ggc.h (ggc_internal_cleared_alloc): New macro.
23540         * vec.h (vec_safe_copy): Handle memory stats.
23541         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23542         * target-globals.c (save_target_globals): Likewise.
23544 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
23546         PR target/60077
23547         * expr.c (emit_move_resolve_push): Export; be bit more selective
23548         on when to clear alias set.
23549         * expr.h (emit_move_resolve_push): Declare.
23550         * function.h (struct function): Add tail_call_marked.
23551         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
23552         * config/i386/i386-protos.h (ix86_expand_push): Remove.
23553         * config/i386/i386.md (TImode move expander): De not call
23554         ix86_expand_push.
23555         (FP push expanders): Preserve memory attributes.
23556         * config/i386/sse.md (push<mode>1): Remove.
23557         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
23558         (ix86_expand_push): Remove.
23559         * config/i386/mmx.md (push<mode>1): Remove.
23561 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
23563         PR rtl-optimization/60030
23564         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
23565         lopart with paradoxical subreg before shifting it up by hprec.
23567 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23569         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
23570         Remove extra newline at end of file.
23571         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
23572         (arm_issue_rate): Handle cortexa57.
23573         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
23574         (cortex-a57.cortex-a53): Likewise.
23576 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
23578         PR target/59575
23579         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
23580         don't record in REG_FRAME_RELATED_EXPR registers not set in that
23581         bitmask.
23582         (arm_expand_prologue): Adjust all callers.
23583         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
23584         info, registers also at the lowest numbered registers side.  Use
23585         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
23586         XEXP.
23588         PR debug/59992
23589         * var-tracking.c (adjust_mems): Before adding a SET to
23590         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
23592 2014-02-06  Alan Modra  <amodra@gmail.com>
23594         PR target/60032
23595         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
23596         change SDmode to DDmode when lra_in_progress.
23598 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
23600         PR middle-end/59150
23601         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
23602         free_data_ref on the dr first, and before goto again also set dr
23603         to the next dr.  For simd_lane_access, free old datarefs[i] before
23604         overwriting it.  For get_vectype_for_scalar_type failure, don't
23605         free_data_ref if simd_lane_access.
23607         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
23609         PR target/60062
23610         * tree.h (opts_for_fn): New inline function.
23611         (opt_for_fn): Define.
23612         * config/i386/i386.c (ix86_function_regparm): Use
23613         opt_for_fn (decl, optimize) instead of optimize.
23615 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23617         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
23618         for SYMBOL_REF in large memory model.
23620 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23622         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
23623         and crypto support.
23624         (cortex-a57): Likewise.
23625         (cortex-a57.cortex-a53): Likewise.
23627 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
23628             Kugan Vivekanandarajah  <kuganv@linaro.org>
23630         * config/arm/arm.c (arm_vector_alignment_reachable): Check
23631         unaligned_access.
23632         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
23634 2014-02-06  Richard Biener  <rguenther@suse.de>
23636         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
23637         set_loop_copy and initialize_original_copy_tables.
23639 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
23641         * config/aarch64/aarch64-simd.md
23642         (aarch64_ashr_simddi): Change QI to SI.
23644 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
23645             Jakub Jelinek  <jakub@redhat.com>
23647         PR middle-end/60013
23648         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
23649         of the dataflow.
23651 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23653         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
23654         CODE_FOR_altivec_vpku[hw]um to
23655         CODE_FOR_altivec_vpku[hw]um_direct.
23656         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
23657         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
23658         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
23659         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
23661 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23663         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
23664         generation for -maltivec=be.
23665         (altivec_vsumsws): Simplify redundant test.
23667 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23669         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
23670         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
23671         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
23672         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
23673         gen_altivec_vpkuwum.
23674         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
23675         BYTES_BIG_ENDIAN.
23676         (altivec_vpks<VI_char>ss): Likewise.
23677         (altivec_vpks<VI_char>us): Likewise.
23678         (altivec_vpku<VI_char>us): Likewise.
23679         (altivec_vpku<VI_char>um): Likewise.
23680         (altivec_vpku<VI_char>um_direct): New (copy of
23681         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
23682         internal use).
23683         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
23684         target is little endian and -maltivec=be is not specified.
23685         (*altivec_vupkhs<VU_char>_direct): New (copy of
23686         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
23687         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
23688         target is little endian and -maltivec=be is not specified.
23689         (*altivec_vupkls<VU_char>_direct): New (copy of
23690         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
23691         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
23692         little endian and -maltivec=be is not specified.
23693         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
23694         little endian and -maltivec=be is not specified.
23696 2014-02-05  Richard Henderson  <rth@redhat.com>
23698         PR debug/52727
23699         * combine-stack-adj.c: Revert r206943.
23700         * sched-int.h (struct deps_desc): Add last_args_size.
23701         * sched-deps.c (init_deps): Initialize it.
23702         (sched_analyze_insn): Add OUTPUT dependencies between insns that
23703         contain REG_ARGS_SIZE notes.
23705 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
23707         * lto-cgraph.c (asm_nodes_output): Make global.
23708         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
23709         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
23710         (driver_handle_option): Handle OPT_fwpa.
23712 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
23714         PR ipa/59947
23715         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
23716         a comment typo and formatting issue.  If odr_hash hasn't been
23717         created, return vNULL and set *completep to false.
23719         PR middle-end/57499
23720         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
23721         bb with no successors.
23723 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
23725         PR target/59718
23726         * doc/invoke.texi (-march): Clarify documentation for ARM.
23727         (-mtune): Likewise.
23728         (-mcpu): Likewise.
23730 2014-02-05  Richard Biener  <rguenther@suse.de>
23732         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
23733         when not vectorizing because of too many alias checks.
23734         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23735         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
23737 2014-02-05  Nick Clifton  <nickc@redhat.com>
23739         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
23740         accept extended registers in any mode when compiling for the MN10300.
23742 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
23744         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
23745         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
23746         sanitization attributes.
23747         (can_inline_edge_p): Likewise.
23748         (sanitize_attrs_match_for_inline_p): New function.
23750 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
23752         * ipa-prop.c (detect_type_change): Shor circuit testing of
23753         type changes on THIS pointer.
23755 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
23757         PR target/59777
23758         * config/pa/pa.c (legitimize_tls_address): Return original address
23759         if not passed a SYMBOL_REF rtx.
23760         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
23761         addresses.
23762         (pa_emit_move_sequence): Simplify TLS source operands.
23763         (pa_legitimate_constant_p): Reject all TLS constants.
23764         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
23765         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
23767 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
23769         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
23770         groups when we know they are controlled by LTO.
23771         * varasm.c (default_binds_local_p_1): If object is in other partition,
23772         it will be resolved locally.
23774 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23776         * config/host-linux.c (linux_gt_pch_use_address): Don't
23777         use SSIZE_MAX because it is not always defined.
23779 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
23781         PR bootstrap/59913
23782         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
23783         threshold for pseudo splitting.
23784         (update_ebb_live_info): Process call argument hard registers and
23785         hard registers from insn definition too.
23786         (max_small_class_regs_num): New constant.
23787         (inherit_in_ebb): Update live hard regs through EBBs.  Update
23788         reloads_num only for small register classes.  Don't split for
23789         outputs of jumps.
23791 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
23793         PR ipa/60058
23794         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
23795         is non-null.
23797 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
23799         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
23800         visibility is safe.
23802 2014-02-04  Marek Polacek  <polacek@redhat.com>
23804         * gdbinit.in (pel): Define.
23806 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23808         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
23809         behavior.
23811 2014-02-04  Richard Biener  <rguenther@suse.de>
23813         PR lto/59723
23814         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
23815         in function context local.
23816         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
23817         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
23818         similar to LTO_imported_decl_ref.
23820 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
23822         PR tree-optimization/60002
23823         * cgraphclones.c (build_function_decl_skip_args): Clear
23824         DECL_LANG_SPECIFIC.
23826         PR tree-optimization/60023
23827         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
23828         false to gsi_replace.
23829         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
23830         has been in some EH region and vec_stmt could throw, add
23831         vec_stmt into the same EH region.
23832         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
23833         has no lhs, ignore it.
23834         * internal-fn.c (expand_MASK_LOAD): Likewise.
23836         PR ipa/60026
23837         * tree-inline.c (copy_forbidden): Fail for
23838         __attribute__((optimize (0))) functions.
23840         PR other/58712
23841         * omp-low.c (simd_clone_struct_copy): If from->inbranch
23842         is set, copy one less argument.
23843         (expand_simd_clones): Don't subtract clone_info->inbranch
23844         from simd_clone_struct_alloc argument.
23846         PR rtl-optimization/57915
23847         * recog.c (simplify_while_replacing): If all unary/binary/relational
23848         operation arguments are constant, attempt to simplify those.
23850         PR middle-end/59261
23851         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
23852         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
23854 2014-02-04  Richard Biener  <rguenther@suse.de>
23856         PR tree-optimization/60012
23857         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
23858         TBAA disambiguation to all DDRs.
23860 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23862         PR target/59788
23863         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
23864         (LINK_SPEC): Use it for -shared, -shared-libgcc.
23866 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
23868         PR ipa/59882
23869         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
23871 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
23873         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
23874         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
23876 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
23878         PR ipa/59831
23879         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
23880         to figure out targets of polymorphic calls with known decl.
23881         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23882         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
23883         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
23884         (get_polymorphic_call_info): ... here.
23885         (get_polymorphic_call_info_from_invariant): New function.
23887 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
23889         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
23890         lookup via vtable pointer; check for type consistency
23891         and turn inconsitent facts into UNREACHABLE.
23892         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23893         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
23894         type inconsistent querries; return UNREACHABLE instead.
23896 2014-02-03  Richard Henderson  <rth@twiddle.net>
23898         PR tree-opt/59924
23899         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
23900         already processed this node.
23901         (normalize_one_pred_1): Pass along mark_set.
23902         (normalize_one_pred): Create and destroy a pointer_set_t.
23903         (normalize_one_pred_chain): Likewise.
23905 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
23907         PR gcov-profile/58602
23908         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
23910 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
23912         PR ipa/59831
23913         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
23914         -fno-devirtualize; try to devirtualize by the knowledge of
23915         virtual table pointer given by aggregate propagation.
23916         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23917         (ipa_print_node_jump_functions): Dump also offset that
23918         is relevant for polymorphic calls.
23919         (determine_known_aggregate_parts): Add arg_type parameter; use it
23920         instead of determining the type from pointer type.
23921         (ipa_compute_jump_functions_for_edge): Update call of
23922         determine_known_aggregate_parts.
23923         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
23924         (gimple_get_virt_method_for_binfo): ... here; simplify using
23925         vtable_pointer_value_to_vtable.
23926         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
23927         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
23928         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
23929         (vtable_pointer_value_to_vtable): Break out from ...; handle also
23930         POINTER_PLUS_EXPR.
23931         (vtable_pointer_value_to_binfo): ... here.
23932         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
23934 2014-02-03  Teresa Johnson  <tejohnson@google.com>
23936         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
23937         redef of outer loop index variable.
23939 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
23941         PR c++/53017
23942         PR c++/59211
23943         * doc/extend.texi (Function Attributes): Typo.
23945 2014-02-03  Cong Hou  <congh@google.com>
23947         PR tree-optimization/60000
23948         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
23949         if the vectorized statement is a store.  A store statement can only
23950         appear at the end of pattern statements.
23952 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
23954         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
23955         (ix86_option_override_internal): Default long double to 64-bit for
23956         32-bit Bionic and to 128-bit for 64-bit Bionic.
23958         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
23959         TARGET_LONG_DOUBLE_128 is true.
23960         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
23962         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
23963         (mlong-double-64): Negate -mlong-double-128.
23964         (mlong-double-128): New option.
23966         * config/i386/i386-c.c (ix86_target_macros): Define
23967         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
23969         * doc/invoke.texi: Document -mlong-double-128.
23971 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
23973         PR rtl-optimization/60024
23974         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
23976 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
23978         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
23980 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
23982         PR rtl-optimization/57662
23983         * sel-sched.c (code_motion_path_driver): Do not mark already not
23984         existing blocks in the visiting bitmap.
23986 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
23988         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
23989         on the insn being emitted.
23991 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
23992             Will Deacon  <will.deacon@arm.com>
23994         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
23996 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23998         * config/arm/arm-tables.opt: Regenerate.
24000 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24002         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24003         for vector types other than V16QImode.
24004         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24005         define_expand, and call altivec_expand_vec_perm_le when producing
24006         code with little endian element order.
24007         (*altivec_vperm_<mode>_internal): New insn having previous
24008         behavior of altivec_vperm_<mode>.
24009         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24010         altivec_expand_vec_perm_le when producing code with little endian
24011         element order.
24012         (*altivec_vperm_<mode>_uns_internal): New insn having previous
24013         behavior of altivec_vperm_<mode>_uns.
24015 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24017         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24018         (altivec_vsumsws): Add handling for -maltivec=be with a little
24019         endian target.
24020         (altivec_vsumsws_direct): New.
24021         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24022         gen_altivec_vsumsws.
24024 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
24026         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24027         vtable_pointer_value_to_binfo): New functions.
24028         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24029         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24031 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
24033         * config/nios2/nios2.md (load_got_register): Initialize GOT
24034         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24035         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24037 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
24039         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24040         preserverd by passthrough, do not propagate the type.
24042 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
24044         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24045         (mips_atomic_assign_expand_fenv): New function.
24046         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24048 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
24050         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24051         (__builtin_mips_set_fcsr): Likewise.
24052         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24053         MIPS_USI_FTYPE_VOID.
24054         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24055         (mips16_expand_set_fcsr): Likewise.
24056         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24057         (mips16_set_fcsr_stub): Likewise.
24058         (mips16_get_fcsr_one_only_stub): New class.
24059         (mips16_set_fcsr_one_only_stub): Likewise.
24060         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24061         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24062         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24063         (hard_float): New availability predicate.
24064         (mips_builtins): Add get_fcsr and set_fcsr.
24065         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24066         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24067         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24068         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24069         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24070         patterns.
24072 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
24074         * config/mips/mips.c (mips_one_only_stub): New class.
24075         (mips_need_mips16_rdhwr_p): Replace with...
24076         (mips16_rdhwr_stub): ...this new variable.
24077         (mips16_stub_call_address): New function.
24078         (mips16_rdhwr_one_only_stub): New class.
24079         (mips_expand_thread_pointer): Use mips16_stub_call_address.
24080         (mips_output_mips16_rdhwr): Delete.
24081         (mips_finish_stub): New function.
24082         (mips_code_end): Use it to handle rdhwr stubs.
24084 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
24086         PR target/60017
24087         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24088         when calculating size of integer atomic types.
24090 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
24092         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24094 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
24096         PR tree-optimization/60003
24097         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24098         * profile.c (branch_prob): Use gimple_call_builtin_p
24099         to check for BUILT_IN_SETJMP_RECEIVER.
24100         * tree-inline.c (copy_bb): Call notice_special_calls.
24102 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
24104         PR bootstrap/59985
24105         * lra-constraints.c (process_alt_operands): Update reload_sum only
24106         on the first pass.
24108 2014-01-31  Richard Henderson  <rth@redhat.com>
24110         PR middle-end/60004
24111         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24112         until after else_eh is processed.
24114 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
24116         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24117         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24118         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24119         in smmintrin.h, remove them.
24120         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24121         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24122         * config/i386/i386.md (ROUND_SAE): Fix value.
24123         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24124         (const48_operand): New.
24125         * config/i386/subst.md (round), (round_expand): Use
24126         const_4_or_8_to_11_operand.
24127         (round_saeonly), (round_saeonly_expand): Use const48_operand.
24129 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
24131         * config/i386/constraints.md (Yk): Swap meaning with k.
24132         * config/i386/i386.md (movhi_internal): Change Yk to k.
24133         (movqi_internal): Ditto.
24134         (*k<logic><mode>): Ditto.
24135         (*andhi_1): Ditto.
24136         (*andqi_1): Ditto.
24137         (kandn<mode>): Ditto.
24138         (*<code>hi_1): Ditto.
24139         (*<code>qi_1): Ditto.
24140         (kxnor<mode>): Ditto.
24141         (kortestzhi): Ditto.
24142         (kortestchi): Ditto.
24143         (kunpckhi): Ditto.
24144         (*one_cmplhi2_1): Ditto.
24145         (*one_cmplqi2_1): Ditto.
24146         * config/i386/sse.md (): Change k to Yk.
24147         (avx512f_load<mode>_mask): Ditto.
24148         (avx512f_blendm<mode>): Ditto.
24149         (avx512f_store<mode>_mask): Ditto.
24150         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24151         (avx512f_storedqu<mode>_mask): Ditto.
24152         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24153         Ditto.
24154         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24155         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24156         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24157         (avx512f_maskcmp<mode>3): Ditto.
24158         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24159         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24160         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24161         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24162         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24163         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24164         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24165         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24166         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24167         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24168         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24169         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24170         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24171         (vec_extract_lo_<mode>_maskm): Ditto.
24172         (vec_extract_hi_<mode>_maskm): Ditto.
24173         (avx512f_vternlog<mode>_mask): Ditto.
24174         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24175         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24176         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24177         (avx512f_<code>v8div16qi2_mask): Ditto.
24178         (avx512f_<code>v8div16qi2_mask_store): Ditto.
24179         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24180         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24181         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24182         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24183         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24184         (*avx512pf_gatherpf<mode>df_mask): Ditto.
24185         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24186         (*avx512pf_scatterpf<mode>df_mask): Ditto.
24187         (avx512cd_maskb_vec_dupv8di): Ditto.
24188         (avx512cd_maskw_vec_dupv16si): Ditto.
24189         (avx512f_vpermi2var<mode>3_maskz): Ditto.
24190         (avx512f_vpermi2var<mode>3_mask): Ditto.
24191         (avx512f_vpermi2var<mode>3_mask): Ditto.
24192         (avx512f_vpermt2var<mode>3_maskz): Ditto.
24193         (*avx512f_gathersi<mode>): Ditto.
24194         (*avx512f_gathersi<mode>_2): Ditto.
24195         (*avx512f_gatherdi<mode>): Ditto.
24196         (*avx512f_gatherdi<mode>_2): Ditto.
24197         (*avx512f_scattersi<mode>): Ditto.
24198         (*avx512f_scatterdi<mode>): Ditto.
24199         (avx512f_compress<mode>_mask): Ditto.
24200         (avx512f_compressstore<mode>_mask): Ditto.
24201         (avx512f_expand<mode>_mask): Ditto.
24202         * config/i386/subst.md (mask): Change k to Yk.
24203         (mask_scalar_merge): Ditto.
24204         (sd): Ditto.
24206 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
24208         * doc/extend.texi (Vector Extensions): Document ?: in C++.
24210 2014-01-31  Richard Biener  <rguenther@suse.de>
24212         PR middle-end/59990
24213         * builtins.c (fold_builtin_memory_op): Make sure to not
24214         use a floating-point mode or a boolean or enumeral type for
24215         the copy operation.
24217 2014-01-30  DJ Delorie  <dj@redhat.com>
24219         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24220         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24221         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24222         whenever main() has an epilogue.
24224 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24226         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24227         unused variable "field".
24228         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24229         (vsx_mergeh_<mode>): Likewise.
24230         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24231         (altivec_vmrghh): Likewise.
24232         (altivec_vmrghw): Likewise.
24233         (altivec_vmrglb): Likewise.
24234         (altivec_vmrglh): Likewise.
24235         (altivec_vmrglw): Likewise.
24236         (altivec_vspltb): Add missing uses.
24237         (altivec_vsplth): Likewise.
24238         (altivec_vspltw): Likewise.
24239         (altivec_vspltsf): Likewise.
24241 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
24243         PR target/59923
24244         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24245         frame related instructions.
24247 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
24249         PR rtl-optimization/59959
24250         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24251         any reload of register whose subreg is invalid.
24253 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
24255         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24256         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24257         Add missing return type - void.
24259 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24261         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24262         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24263         remove element index adjustment for endian (now handled in vsx.md
24264         and altivec.md).
24265         (altivec_expand_vec_perm_const): Use
24266         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24267         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24268         (vsx_xxspltw_<mode>): Adjust element index for little endian.
24269         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24270         define_expand and a new define_insn *altivec_vspltb_internal;
24271         adjust for -maltivec=be on a little endian target.
24272         (altivec_vspltb_direct): New.
24273         (altivec_vsplth): Divide into a define_expand and a new
24274         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24275         little endian target.
24276         (altivec_vsplth_direct): New.
24277         (altivec_vspltw): Divide into a define_expand and a new
24278         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24279         little endian target.
24280         (altivec_vspltw_direct): New.
24281         (altivec_vspltsf): Divide into a define_expand and a new
24282         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24283         a little endian target.
24285 2014-01-30  Richard Biener  <rguenther@suse.de>
24287         PR tree-optimization/59993
24288         * tree-ssa-forwprop.c (associate_pointerplus): Check we
24289         can propagate form the earlier stmt and avoid the transform
24290         when the intermediate result is needed.
24292 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
24294         * README.Portability: Fix typo.
24296 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
24298         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24299         comparison_operator with ordered_comparison_operator.
24301 2014-01-30  Nick Clifton  <nickc@redhat.com>
24303         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24304         Rename to mn10300_store_multiple_regs.
24305         * config/mn10300/mn10300.c: Likewise.
24306         * config/mn10300/mn10300.md (store_movm): Fix typo: call
24307         store_multiple_regs.
24308         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24309         Call mn10300_store_multiple_regs.
24311 2014-01-30  Nick Clifton  <nickc@redhat.com>
24312             DJ Delorie  <dj@redhat.com>
24314         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24315         %fp 2 to keep registers after it properly word-aligned.
24316         (rl78_alloc_physical_registers_umul): Handle the case where both
24317         input operands are the same.
24319 2014-01-30  Richard Biener  <rguenther@suse.de>
24321         PR tree-optimization/59903
24322         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24323         check properly.
24325 2014-01-30  Jason Merrill  <jason@redhat.com>
24327         PR c++/59633
24328         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24330         PR c++/59645
24331         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24333 2014-01-30  Richard Biener  <rguenther@suse.de>
24335         PR tree-optimization/59951
24336         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24338 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
24340         PR target/59784
24341         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24342         SFmode to DFmode case.
24344 2014-01-29  DJ Delorie  <dj@redhat.com>
24346         * config/msp430/msp430.opt (-minrt): New.
24347         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24348         if -minrt given.
24349         (ENDFILE_SPEC): Likewise.
24351 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
24353         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24354         (estimate_function_body_sizes): Use it.
24356 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
24358         PR c++/58561
24359         * dwarf2out.c (is_cxx_auto): New.
24360         (is_base_type): Use it.
24361         (gen_type_die_with_usage): Likewise.
24363 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24365         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
24366         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24367         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24368         -maltivec=be with LE targets.
24369         (vsx_mergeh_<mode>): Likewise.
24370         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24371         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24372         (altivec_vmrghb): Replace with define_expand and new
24373         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24374         (altivec_vmrghb_direct): New define_insn.
24375         (altivec_vmrghh): Replace with define_expand and new
24376         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24377         (altivec_vmrghh_direct): New define_insn.
24378         (altivec_vmrghw): Replace with define_expand and new
24379         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24380         (altivec_vmrghw_direct): New define_insn.
24381         (*altivec_vmrghsf): Adjust for endianness.
24382         (altivec_vmrglb): Replace with define_expand and new
24383         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24384         (altivec_vmrglb_direct): New define_insn.
24385         (altivec_vmrglh): Replace with define_expand and new
24386         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24387         (altivec_vmrglh_direct): New define_insn.
24388         (altivec_vmrglw): Replace with define_expand and new
24389         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24390         (altivec_vmrglw_direct): New define_insn.
24391         (*altivec_vmrglsf): Adjust for endianness.
24392         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24393         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24394         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24395         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24396         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24397         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24398         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24399         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24401 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24403         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24404         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24405         whitespace.
24407 2014-01-29  Richard Biener  <rguenther@suse.de>
24409         PR tree-optimization/58742
24410         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24411         associate_pointerplus_align.
24412         (associate_pointerplus_diff): New function.
24413         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
24414         and associate_pointerplus_diff.
24416 2014-01-29  Richard Biener  <rguenther@suse.de>
24418         * lto-streamer.h (LTO_major_version): Bump to 3.
24419         (LTO_minor_version): Reset to 0.
24421 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
24423         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24424         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24425         (arm_file_start): Generate correct asm header for armv7ve.
24426         * config/arm/bpabi.h: Add multilib support for armv7ve.
24427         * config/arm/driver-arm.c: Change the architectures of cortex-a7
24428         and cortex-a15 to armv7ve.
24429         * config/arm/t-aprofile: Add multilib support for armv7ve.
24430         * doc/invoke.texi: Document -march=armv7ve.
24432 2014-01-29  Richard Biener  <rguenther@suse.de>
24434         PR tree-optimization/58742
24435         * tree-ssa-forwprop.c (associate_plusminus): Return true
24436         if we changed sth, defer EH cleanup to ...
24437         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
24438         (simplify_mult): New function.
24440 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
24442         PR middle-end/59917
24443         PR tree-optimization/59920
24444         * tree.c (build_common_builtin_nodes): Remove
24445         __builtin_setjmp_dispatcher initialization.
24446         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24447         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24448         instead of gsi_after_labels + manually skipping debug stmts.
24449         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24450         ignore bbs with IFN_ABNORMAL_DISPATCHER.
24451         * tree-inline.c (copy_edges_for_bb): Remove
24452         can_make_abnormal_goto argument, instead add abnormal_goto_dest
24453         argument.  Ignore computed_goto_p stmts.  Don't call
24454         make_abnormal_goto_edges.  If a call might need abnormal edges
24455         for non-local gotos, see if it already has an edge to
24456         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24457         with true argument, don't do anything then, otherwise add
24458         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24459         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24460         caller.
24461         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24462         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24463         (lower_stmt): Don't set data->calls_builtin_setjmp.
24464         (lower_builtin_setjmp): Adjust comment.
24465         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24466         * tree-cfg.c (found_computed_goto): Remove.
24467         (factor_computed_gotos): Remove.
24468         (make_goto_expr_edges): Return bool, true for computed gotos.
24469         Don't call make_abnormal_goto_edges.
24470         (build_gimple_cfg): Don't set found_computed_goto, don't call
24471         factor_computed_gotos.
24472         (computed_goto_p): No longer static.
24473         (make_blocks): Don't set found_computed_goto.
24474         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24475         (make_edges): If make_goto_expr_edges returns true, push bb
24476         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24477         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24478         vector.  Record mapping between bbs and OpenMP regions if there
24479         are any, adjust make_gimple_omp_edges caller.  Call
24480         handle_abnormal_edges.
24481         (make_abnormal_goto_edges): Remove.
24482         * tree-cfg.h (make_abnormal_goto_edges): Remove.
24483         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24484         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24485         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24486         * internal-fn.def (ABNORMAL_DISPATCHER): New.
24487         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24488         filling *region also set *region_idx to (*region)->entry->index.
24490         PR other/58712
24491         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24492         For REGs set ORIGINAL_REGNO.
24494 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
24496         * doc/md.texi: Mention that a target shouldn't implement
24497         vec_widen_(s|u)mul_even/odd pair if it is less efficient
24498         than hi/lo pair.
24500 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
24502         PR tree-optimization/59594
24503         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24504         a copy of the datarefs vector rather than the vector itself.
24506 2014-01-28  Jason Merrill  <jason@redhat.com>
24508         PR c++/53756
24509         * dwarf2out.c (auto_die): New static.
24510         (gen_type_die_with_usage): Handle C++1y 'auto'.
24511         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24512         on definition.
24514 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
24516         PR target/59672
24517         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24518         (SPEC_X32): Likewise.
24519         (SPEC_64): Likewise.
24520         * config/i386/i386.c (ix86_option_override_internal): Turn off
24521         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24522         for TARGET_16BIT.
24523         (x86_file_start): Output .code16gcc for TARGET_16BIT.
24524         * config/i386/i386.h (TARGET_16BIT): New macro.
24525         (TARGET_16BIT_P): Likewise.
24526         * config/i386/i386.opt: Add m16.
24527         * doc/invoke.texi: Document -m16.
24529 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
24531         PR preprocessor/59935
24532         * input.c (location_get_source_line): Bail out on when line number
24533         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24535 2014-01-28  Richard Biener  <rguenther@suse.de>
24537         PR tree-optimization/58742
24538         * tree-ssa-forwprop.c (associate_plusminus): Handle
24539         pointer subtraction of the form (T)(P + A) - (T)P.
24541 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24543         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24544         at const_int_cost.
24546 2014-01-28  Richard Biener  <rguenther@suse.de>
24548         Revert
24549         2014-01-28  Richard Biener  <rguenther@suse.de>
24551         PR rtl-optimization/45364
24552         PR rtl-optimization/59890
24553         * var-tracking.c (local_get_addr_clear_given_value): Handle
24554         already cleared slot.
24555         (val_reset): Handle not allocated local_get_addr_cache.
24556         (vt_find_locations): Use post-order on the inverted CFG.
24558 2014-01-28  Richard Biener  <rguenther@suse.de>
24560         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
24562 2014-01-28  Richard Biener  <rguenther@suse.de>
24564         PR rtl-optimization/45364
24565         PR rtl-optimization/59890
24566         * var-tracking.c (local_get_addr_clear_given_value): Handle
24567         already cleared slot.
24568         (val_reset): Handle not allocated local_get_addr_cache.
24569         (vt_find_locations): Use post-order on the inverted CFG.
24571 2014-01-28  Alan Modra  <amodra@gmail.com>
24573         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
24574         * configure.ac <recursive call for build != host>: Define
24575         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
24576         and LD_FOR_BUILD too.
24577         * configure: Regenerate.
24579 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
24581         * config/i386/i386.c (get_builtin_code_for_version): Separate
24582         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
24583         Broadwell from Haswell.
24585 2014-01-27  Steve Ellcey  <sellcey@mips.com>
24587         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24588         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
24589         * config/mips/mips.c (mips_option_override): Change setting
24590         of TARGET_DSP.
24591         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
24592         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
24593         Change from Mask to Var.
24595 2014-01-27  Jeff Law  <law@redhat.com>
24597         * ipa-inline.c (inline_small_functions): Fix typo.
24599 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
24601         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
24602         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
24603         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
24604         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
24605         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
24606         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
24607         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
24608         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
24609         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
24610         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
24611         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
24612         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
24613         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
24614         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
24615         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
24616         (_mm512_storeu_epi64): Ditto.
24617         (_mm512_cmpge_epi32_mask): Ditto.
24618         (_mm512_cmpge_epu32_mask): Ditto.
24619         (_mm512_cmpge_epi64_mask): Ditto.
24620         (_mm512_cmpge_epu64_mask): Ditto.
24621         (_mm512_cmple_epi32_mask): Ditto.
24622         (_mm512_cmple_epu32_mask): Ditto.
24623         (_mm512_cmple_epi64_mask): Ditto.
24624         (_mm512_cmple_epu64_mask): Ditto.
24625         (_mm512_cmplt_epi32_mask): Ditto.
24626         (_mm512_cmplt_epu32_mask): Ditto.
24627         (_mm512_cmplt_epi64_mask): Ditto.
24628         (_mm512_cmplt_epu64_mask): Ditto.
24629         (_mm512_cmpneq_epi32_mask): Ditto.
24630         (_mm512_cmpneq_epu32_mask): Ditto.
24631         (_mm512_cmpneq_epi64_mask): Ditto.
24632         (_mm512_cmpneq_epu64_mask): Ditto.
24633         (_mm512_expand_pd): Ditto.
24634         (_mm512_expand_ps): Ditto.
24635         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
24636         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
24637         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
24638         * config/i386/i386.c (ix86_builtins): Add
24639         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
24640         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
24641         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
24642         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
24643         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
24644         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
24645         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
24646         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
24647         IX86_BUILTIN_PMOVUSQW512_MEM.
24648         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
24649         __builtin_ia32_pmovsqd512mem_mask,
24650         __builtin_ia32_pmovqd512mem_mask,
24651         __builtin_ia32_pmovusqw512mem_mask,
24652         __builtin_ia32_pmovsqw512mem_mask,
24653         __builtin_ia32_pmovqw512mem_mask,
24654         __builtin_ia32_pmovusdw512mem_mask,
24655         __builtin_ia32_pmovsdw512mem_mask,
24656         __builtin_ia32_pmovdw512mem_mask,
24657         __builtin_ia32_pmovqb512mem_mask,
24658         __builtin_ia32_pmovusqb512mem_mask,
24659         __builtin_ia32_pmovsqb512mem_mask,
24660         __builtin_ia32_pmovusdb512mem_mask,
24661         __builtin_ia32_pmovsdb512mem_mask,
24662         __builtin_ia32_pmovdb512mem_mask.
24663         (bdesc_args): Add __builtin_ia32_expanddf512,
24664         __builtin_ia32_expandsf512.
24665         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
24666         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
24667         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
24668         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
24669         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
24670         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
24671         (avx512f_<code>v8div16qi2_mask_store): This.
24672         (avx512f_expand<mode>): New.
24674 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
24676         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
24677         New.
24678         (_mm512_mask_prefetch_i64gather_pd): Ditto.
24679         (_mm512_prefetch_i32scatter_pd): Ditto.
24680         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
24681         (_mm512_prefetch_i64scatter_pd): Ditto.
24682         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
24683         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
24684         (_mm512_mask_prefetch_i64gather_ps): Ditto.
24685         (_mm512_prefetch_i32scatter_ps): Ditto.
24686         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
24687         (_mm512_prefetch_i64scatter_ps): Ditto.
24688         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
24689         * config/i386/i386-builtin-types.def: Define
24690         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
24691         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
24692         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
24693         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
24694         IX86_BUILTIN_SCATTERPFQPD.
24695         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
24696         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
24697         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
24698         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
24699         __builtin_ia32_scatterpfqps.
24700         (ix86_expand_builtin): Expand new built-ins.
24701         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
24702         fix memory access data type.
24703         (*avx512pf_gatherpf<mode>_mask): Ditto.
24704         (*avx512pf_gatherpf<mode>): Ditto.
24705         (avx512pf_scatterpf<mode>): Ditto.
24706         (*avx512pf_scatterpf<mode>_mask): Ditto.
24707         (*avx512pf_scatterpf<mode>): Ditto.
24708         (GATHER_SCATTER_SF_MEM_MODE): New.
24709         (avx512pf_gatherpf<mode>df): Ditto.
24710         (*avx512pf_gatherpf<mode>df_mask): Ditto.
24711         (*avx512pf_scatterpf<mode>df): Ditto.
24713 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
24715         PR bootstrap/59934
24716         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
24717         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
24718         reached.
24720 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
24722         * common/config/arm/arm-common.c
24723         (arm_rewrite_mcpu): Handle multiple names.
24724         * config/arm/arm.h
24725         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24727 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
24729         * gimple-builder.h (create_gimple_tmp): Delete.
24731 2014-01-27  Christian Bruel  <christian.bruel@st.com>
24733         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
24734         words comparisons.
24736 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
24738         * config/pa/pa.md (call): Generate indirect long calls to non-local
24739         functions when outputing 32-bit code.
24740         (call_value): Likewise except for special call to buggy powf function.
24742         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
24743         portable runtime and PIC indirect calls.
24744         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
24745         and PIC call sequences.  Use ldo instead of blr to set return register
24746         in PIC call sequence.
24748 2014-01-25  Walter Lee  <walt@tilera.com>
24750         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
24751         avoid clobbering a live register.
24753 2014-01-25  Walter Lee  <walt@tilera.com>
24755         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
24756         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
24757         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
24758         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
24760 2014-01-25  Walter Lee  <walt@tilera.com>
24762         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
24763         arguments on even registers.
24764         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
24765         STACK_BOUNDARY.
24766         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
24767         (BIGGEST_ALIGNMENT): Ditto.
24768         (BIGGEST_FIELD_ALIGNMENT): Ditto.
24770 2014-01-25  Walter Lee  <walt@tilera.com>
24772         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
24773         insns before bundling.
24774         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
24776 2014-01-25  Walter Lee  <walt@tilera.com>
24778         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
24779         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
24780         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
24782 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
24784         * config/mips/constraints.md (kl): Delete.
24785         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
24786         define expands, using...
24787         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
24788         instructions for MIPS16.
24789         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
24790         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
24792 2014-01-25  Walter Lee  <walt@tilera.com>
24794         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
24795         (clzdi2): Ditto.
24796         (ffsdi2): Ditto.
24798 2014-01-25  Walter Lee  <walt@tilera.com>
24800         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
24801         (TARGET_EXPAND_TO_RTL_HOOK): Define.
24803 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
24805         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
24806         Handle XOR.
24808 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
24810         * print-rtl.c (in_call_function_usage): New var.
24811         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
24812         EXPR_LIST mode as mode and not as reg note name.
24814         PR middle-end/59561
24815         * cfgloopmanip.c (copy_loop_info): If
24816         loop->warned_aggressive_loop_optimizations, make sure
24817         the flag is set in target loop too.
24819 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
24821         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
24822         flag_cilkplus.
24823         * builtins.def: Likewise.
24824         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
24825         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
24826         * ira.c (ira_setup_eliminable_regset): Likewise.
24827         * omp-low.c (gate_expand_omp): Likewise.
24828         (execute_lower_omp): Likewise.
24829         (diagnose_sb_0): Likewise.
24830         (gate_diagnose_omp_blocks): Likewise.
24831         (simd_clone_clauses_extract): Likewise.
24832         (gate): Likewise.
24834 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24836         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
24837         correction for little endian...
24838         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
24839         here.
24841 2014-01-24  Jeff Law  <law@redhat.com>
24843         PR tree-optimization/59919
24844         * tree-vrp.c (find_assert_locations_1): Do not register asserts
24845         for non-returning calls.
24847 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
24849         * common/config/aarch64/aarch64-common.c
24850         (aarch64_rewrite_mcpu): Handle multiple names.
24851         * config/aarch64/aarch64.h
24852         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24854 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
24856         * input.c (add_file_to_cache_tab): Handle the case where fopen
24857         returns NULL.
24859 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
24861         PR target/59929
24862         * config/i386/i386.md (pushsf splitter): Get stack adjustment
24863         from push operand if code of push isn't PRE_DEC.
24865 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
24867         PR target/59909
24868         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
24869         -mquad-memory-atomic.  Update -mquad-memory documentation to say
24870         it is only used for non-atomic loads/stores.
24872         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
24873         -mquad-memory or -mquad-memory-atomic switches.
24875         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
24876         -mquad-memory-atomic to ISA 2.07 support.
24878         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
24879         to separate support of normal quad word memory operations (ldq, stq)
24880         from the atomic quad word memory operations.
24882         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
24883         support to separate non-atomic quad word operations from atomic
24884         quad word operations.  Disable non-atomic quad word operations in
24885         little endian mode so that we don't have to swap words after the
24886         load and before the store.
24887         (quad_load_store_p): Add comment about atomic quad word support.
24888         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
24889         options printed with -mdebug=reg.
24891         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
24892         -mquad-memory-atomic as the test for whether we have quad word
24893         atomic instructions.
24894         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
24895         or -mp8-vector are used, allow byte/half-word atomic operations.
24897         * config/rs6000/sync.md (load_lockedti): Insure that the address
24898         is a proper indexed or indirect address for the lqarx instruction.
24899         On little endian systems, swap the hi/lo registers after the lqarx
24900         instruction.
24901         (load_lockedpti): Use indexed_or_indirect_operand predicate to
24902         insure the address is valid for the lqarx instruction.
24903         (store_conditionalti): Insure that the address is a proper indexed
24904         or indirect address for the stqcrx. instruction.  On little endian
24905         systems, swap the hi/lo registers before doing the stqcrx.
24906         instruction.
24907         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
24908         insure the address is valid for the stqcrx. instruction.
24910         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
24911         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
24912         type of quad memory support is available.
24914 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
24916         PR regression/59915
24917         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
24918         there is a danger of looping.
24920 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
24922         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24923         force flag_ira_loop_pressure if set via command line.
24925 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
24927         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
24928         (ashr_simd): New builtin handling DI mode.
24929         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
24930         (aarch64_sshr_simddi): New match pattern.
24931         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
24932         (vshrd_n_s64): Likewise.
24933         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
24935 2014-01-23  Nick Clifton  <nickc@redhat.com>
24937         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
24938         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
24939         favour of mcu specific scripts.
24940         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
24941         430x multilibs.
24943 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
24944             Alex Velenko  <Alex.Velenko@arm.com>
24946         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
24947         (vaddv_s16): Likewise.
24948         (vaddv_s32): Likewise.
24949         (vaddv_u8): Likewise.
24950         (vaddv_u16): Likewise.
24951         (vaddv_u32): Likewise.
24952         (vaddvq_s8): Likewise.
24953         (vaddvq_s16): Likewise.
24954         (vaddvq_s32): Likewise.
24955         (vaddvq_s64): Likewise.
24956         (vaddvq_u8): Likewise.
24957         (vaddvq_u16): Likewise.
24958         (vaddvq_u32): Likewise.
24959         (vaddvq_u64): Likewise.
24960         (vaddv_f32): Likewise.
24961         (vaddvq_f32): Likewise.
24962         (vaddvq_f64): Likewise.
24963         (vmaxv_f32): Likewise.
24964         (vmaxv_s8): Likewise.
24965         (vmaxv_s16): Likewise.
24966         (vmaxv_s32): Likewise.
24967         (vmaxv_u8): Likewise.
24968         (vmaxv_u16): Likewise.
24969         (vmaxv_u32): Likewise.
24970         (vmaxvq_f32): Likewise.
24971         (vmaxvq_f64): Likewise.
24972         (vmaxvq_s8): Likewise.
24973         (vmaxvq_s16): Likewise.
24974         (vmaxvq_s32): Likewise.
24975         (vmaxvq_u8): Likewise.
24976         (vmaxvq_u16): Likewise.
24977         (vmaxvq_u32): Likewise.
24978         (vmaxnmv_f32): Likewise.
24979         (vmaxnmvq_f32): Likewise.
24980         (vmaxnmvq_f64): Likewise.
24981         (vminv_f32): Likewise.
24982         (vminv_s8): Likewise.
24983         (vminv_s16): Likewise.
24984         (vminv_s32): Likewise.
24985         (vminv_u8): Likewise.
24986         (vminv_u16): Likewise.
24987         (vminv_u32): Likewise.
24988         (vminvq_f32): Likewise.
24989         (vminvq_f64): Likewise.
24990         (vminvq_s8): Likewise.
24991         (vminvq_s16): Likewise.
24992         (vminvq_s32): Likewise.
24993         (vminvq_u8): Likewise.
24994         (vminvq_u16): Likewise.
24995         (vminvq_u32): Likewise.
24996         (vminnmv_f32): Likewise.
24997         (vminnmvq_f32): Likewise.
24998         (vminnmvq_f64): Likewise.
25000 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
25002         * config/aarch64/aarch64-simd.md
25003         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25004         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25005         (*aarch64_mul3_elt<mode>): Likewise.
25006         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25007         (*aarch64_mul3_elt_to_64v2df): Likewise.
25008         (*aarch64_mla_elt<mode>): Likewise.
25009         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25010         (*aarch64_mls_elt<mode>): Likewise.
25011         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25012         (*aarch64_fma4_elt<mode>): Likewise.
25013         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25014         (*aarch64_fma4_elt_to_64v2df): Likewise.
25015         (*aarch64_fnma4_elt<mode>): Likewise.
25016         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25017         (*aarch64_fnma4_elt_to_64v2df): Likewise.
25018         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25019         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25020         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25021         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25022         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25023         (aarch64_sqdmull_lane<mode>_internal): Likewise.
25024         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25026 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
25028         * config/aarch64/aarch64-simd.md
25029         (aarch64_be_checked_get_lane<mode>): New define_expand.
25030         * config/aarch64/aarch64-simd-builtins.def
25031         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25032         New builtin definition.
25033         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25034         Use new safe be builtin.
25036 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
25038         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25039         New define_insn.
25040         (aarch64_be_st1<mode>): Likewise.
25041         (aarch_ld1<VALL:mode>): Define_expand modified.
25042         (aarch_st1<VALL:mode>): Likewise.
25043         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25044         (UNSPEC_ST1): Likewise.
25046 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
25048         * config/microblaze/microblaze.md: Add trap insn and attribute
25050 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
25052         PR preprocessor/58580
25053         * input.h (location_get_source_line): Take an additional line_size
25054         parameter.
25055         (void diagnostics_file_cache_fini): Declare new function.
25056         * input.c (struct fcache): New type.
25057         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25058         New static constants.
25059         (diagnostic_file_cache_init, total_lines_num)
25060         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25061         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25062         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25063         (get_next_line, read_next_line, goto_next_line, read_line_num):
25064         New static function definitions.
25065         (diagnostic_file_cache_fini): New function.
25066         (location_get_source_line): Take an additional output line_len
25067         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
25068         read_line_num.
25069         * diagnostic.c (diagnostic_finish): Call
25070         diagnostic_file_cache_fini.
25071         (adjust_line): Take an additional input parameter for the length
25072         of the line, rather than calculating it with strlen.
25073         (diagnostic_show_locus): Adjust the use of
25074         location_get_source_line and adjust_line with respect to their new
25075         signature.  While displaying a line now, do not stop at the first
25076         null byte.  Rather, display the zero byte as a space and keep
25077         going until we reach the size of the line.
25078         * Makefile.in: Add vec.o to OBJS-libcommon
25080 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
25081             Ilya Tocar  <ilya.tocar@intel.com>
25083         * config/i386/avx512fintrin.h (_mm512_kmov): New.
25084         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25085         (__builtin_ia32_kmov16): Ditto.
25086         * config/i386/i386.md (UNSPEC_KMOV): New.
25087         (kmovw): Ditto.
25089 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
25091         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25092         (_mm512_storeu_si512): Ditto.
25094 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
25096         PR target/52125
25097         * rtl.h (get_referenced_operands): Declare.
25098         * recog.c (get_referenced_operands): New function.
25099         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25100         operands have been referenced when recording LO_SUM references.
25102 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
25104         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25106 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
25108         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25109         Enable for generic and recent AMD targets.
25111 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
25113         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25114         ARG_SIZE note when adjustment was eliminated.
25116 2014-01-22  Jeff Law  <law@redhat.com>
25118         PR tree-optimization/59597
25119         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25120         in file.  Accept new argument REGISTERING and use it to modify
25121         dump output appropriately.
25122         (register_jump_thread): Corresponding changes.
25123         (mark_threaded_blocks): Reinstate code to cancel unprofitable
25124         thread paths involving joiner blocks.  Add code to dump cancelled
25125         jump threading paths.
25127 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
25129         PR rtl-optimization/59477
25130         * lra-constraints.c (inherit_in_ebb): Process call for living hard
25131         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
25133 2014-01-22  Tom Tromey  <tromey@redhat.com>
25135         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25136         PARAMS.
25137         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25139 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
25141         PR rtl-optimization/59896
25142         * lra-constraints.c (process_alt_operands): Check unused note for
25143         matched operands of insn with no output reloads.
25145 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
25147         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25148         (mips_move_from_gpr_cost): Likewise.
25150 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
25152         PR rtl-optimization/59858
25153         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25154         ira_class_hard_regs_num.
25155         (process_alt_operands): Increase reject for dying matched operand.
25157 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
25159         PR target/59003
25160         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25161         smaller than size, perform several stores or loads and stores
25162         at dst + count - size to store or copy all of size bytes, rather
25163         than just last modesize bytes.
25165 2014-01-20  DJ Delorie  <dj@redhat.com>
25167         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25168         that CLOBBERs are REGs before propogating their values.
25170 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
25172         PR middle-end/59789
25173         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25174         (cgraph_inline_failed_type): New function.
25175         * cgraph.h (DEFCIFCODE): Add type.
25176         (cgraph_inline_failed_type_t): New enum.
25177         (cgraph_inline_failed_type): New prototype.
25178         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25179         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25180         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25181         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25182         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25183         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25184         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25185         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25186         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25187         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25188         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25189         OPTIMIZATION_MISMATCH.
25190         * tree-inline.c (expand_call_inline): Emit errors during
25191         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25193 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
25195         PR target/59685
25196         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25197         mode attribute in insn output.
25199 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
25201         * output.h (output_constant): Delete.
25202         * varasm.c (output_constant): Make private.
25204 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
25206         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25208 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
25210         PR middle-end/59860
25211         * tree.h (fold_builtin_strcat): New prototype.
25212         * builtins.c (fold_builtin_strcat): No longer static.  Add len
25213         argument, if non-NULL, don't call c_strlen.  Optimize
25214         directly into __builtin_memcpy instead of __builtin_strcpy.
25215         (fold_builtin_2): Adjust fold_builtin_strcat caller.
25216         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25218 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
25220         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25221         for SImode_address_operand operands, having only a REG argument.
25223 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25225         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25226         loader name using mbig-endian.
25227         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25229 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
25231         * doc/invoke.texi (-march): Clarify documentation for AArch64.
25232         (-mtune): Likewise.
25233         (-mcpu): Likewise.
25235 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
25237         * config/aarch64/aarch64-protos.h
25238         (aarch64_cannot_change_mode_class_ptr): Declare.
25239         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25240         aarch64_cannot_change_mode_class_ptr): New.
25241         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25242         backend hook aarch64_cannot_change_mode_class.
25244 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
25246         * common/config/aarch64/aarch64-common.c
25247         (aarch64_handle_option): Don't handle any option order logic here.
25248         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25249         selected_cpu, warn on architecture version mismatch.
25250         (aarch64_override_options): Fix parsing order for option strings.
25252 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
25253             Iain Sandoe  <iain@codesourcery.com>
25255         PR bootstrap/59496
25256         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25257         warning.  Amend comment to reflect current functionality.
25259 2014-01-20  Richard Biener  <rguenther@suse.de>
25261         PR middle-end/59860
25262         * builtins.c (fold_builtin_strcat): Remove case better handled
25263         by tree-ssa-strlen.c.
25265 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
25267         * config/aarch64/aarch64.opt
25268         (mcpu, march, mtune): Make case-insensitive.
25270 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
25272         PR target/59880
25273         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25274         if operands[1] is a REG or ZERO_EXTEND of a REG.
25276 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
25278         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25280 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
25282         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25283         long non-pic millicode calls.
25285 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
25287         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25289 2014-01-19  Kito Cheng  <kito@0xlab.org>
25291         * builtins.c (expand_movstr): Check movstr expand done or fail.
25293 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
25294             H.J. Lu  <hongjiu.lu@intel.com>
25296         PR target/59379
25297         * config/i386/i386.md (*lea<mode>): Zero-extend return register
25298         to DImode for zero-extended addresses.
25300 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
25302         PR rtl-optimization/57763
25303         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25304         on the new indirect jump_insn and increment LABEL_NUSES (label).
25306 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
25308         PR bootstrap/59580
25309         PR bootstrap/59583
25310         * config.gcc (x86_archs): New variable.
25311         (x86_64_archs): Likewise.
25312         (x86_cpus): Likewise.
25313         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25314         --with-arch/--with-cpu= options.
25315         Support --with-arch=/--with-cpu={nehalem,westmere,
25316         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25318 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
25320         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25321         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
25323 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
25325         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25327 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
25329         PR target/58944
25330         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25331         clear cpp_get_options (parse_in)->warn_unused_macros for
25332         ix86_target_macros_internal with cpp_define.
25334 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
25336         * jump.c (delete_related_insns): Keep (use (insn))s.
25337         * reorg.c (redundant_insn): Check for barriers too.
25339 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
25341         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25343 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
25345         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25346         call to $$dyncall when TARGET_LONG_CALLS is true.
25348 2014-01-17  Jeff Law  <law@redhat.com>
25350         * ree.c (combine_set_extension): Temporarily disable test for
25351         changing number of hard registers.
25353 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
25355         PR middle-end/58125
25356         * ipa-inline-analysis.c (inline_free_summary):
25357         Do not free summary of aliases.
25359 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
25361         PR middle-end/59706
25362         * gimplify.c (gimplify_expr): Use create_tmp_var
25363         instead of create_tmp_var_raw.  If cond doesn't have
25364         integral type, don't add the IFN_ANNOTATE builtin at all.
25366 2014-01-17  Martin Jambor  <mjambor@suse.cz>
25368         PR ipa/59736
25369         * ipa-cp.c (prev_edge_clone): New variable.
25370         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25371         Also resize prev_edge_clone vector.
25372         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25373         (ipcp_edge_removal_hook): New function.
25374         (ipcp_driver): Register ipcp_edge_removal_hook.
25376 2014-01-17  Andrew Pinski  <apinski@cavium.com>
25377             Steve Ellcey  <sellcey@mips.com>
25379         PR target/59462
25380         * config/mips/mips.c (mips_print_operand): Check operand mode instead
25381         of operator mode.
25383 2014-01-17  Jeff Law  <law@redhat.com>
25385         PR middle-end/57904
25386         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25387         so that pass_ccp runs first.
25389 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
25391         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25392         (ix86_adjust_cost): Use !TARGET_XXX.
25393         (do_reorder_for_imul): Likewise.
25394         (swap_top_of_ready_list): Likewise.
25395         (ix86_sched_reorder): Likewise.
25397 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
25399         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25400         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
25401         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
25402         (intel_memset): New.  Duplicate slm_memset.
25403         (intel_cost): New.  Duplicate slm_cost.
25404         (m_INTEL): New macro.
25405         (processor_target_table): Add "intel".
25406         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25407         with PROCESSOR_INTEL for "intel".
25408         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
25409         PROCESSOR_SILVERMONT.
25410         (ix86_issue_rate): Likewise.
25411         (ix86_adjust_cost): Likewise.
25412         (ia32_multipass_dfa_lookahead): Likewise.
25413         (swap_top_of_ready_list): Likewise.
25414         (ix86_sched_reorder): Likewise.
25415         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25416         instead of TARGET_OPT_AGU.
25417         * config/i386/i386.h (TARGET_INTEL): New.
25418         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25419         (processor_type): Add PROCESSOR_INTEL.
25420         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25421         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25423 2014-01-17  Marek Polacek  <polacek@redhat.com>
25425         PR c/58346
25426         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25427         size is zero.
25429 2014-01-17  Richard Biener  <rguenther@suse.de>
25431         PR tree-optimization/46590
25432         * opts.c (default_options_table): Add entries for
25433         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25434         all enabled at -O1 but not for -Og.
25435         * common.opt (fbranch-count-reg): Remove Init(1).
25436         (fmove-loop-invariants): Likewise.
25437         (ftree-pta): Likewise.
25439 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
25441         * config/i386/i386.c (ix86_data_alignment): For compatibility with
25442         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25443         decls to at least the GCC 4.8 used alignments.
25445         PR fortran/59440
25446         * tree-nested.c (convert_nonlocal_reference_stmt,
25447         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25448         of GIMPLE_BIND stmts, adjust associated decls.
25450 2014-01-17  Richard Biener  <rguenther@suse.de>
25452         PR tree-optimization/46590
25453         * vec.h (vec<>::bseach): New member function implementing
25454         binary search according to C89 bsearch.
25455         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25456         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25457         bitmap pointer again.  Make accesses_in_loop a flat array.
25458         (mem_ref_obstack): New global.
25459         (outermost_indep_loop): Adjust for mem_ref->stored changes.
25460         (mark_ref_stored): Likewise.
25461         (ref_indep_loop_p_2): Likewise.
25462         (set_ref_stored_in_loop): New helper function.
25463         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25464         (memref_free): Adjust.
25465         (record_mem_ref_loc): Simplify.
25466         (gather_mem_refs_stmt): Adjust.
25467         (sort_locs_in_loop_postorder_cmp): New function.
25468         (analyze_memory_references): Sort accesses_in_loop after
25469         loop postorder number.
25470         (find_ref_loc_in_loop_cmp): New function.
25471         (for_all_locs_in_loop): Find relevant cluster of locs in
25472         accesses_in_loop and iterate without recursion.
25473         (execute_sm): Avoid uninit warning.
25474         (struct ref_always_accessed): Simplify.
25475         (ref_always_accessed::operator ()): Likewise.
25476         (ref_always_accessed_p): Likewise.
25477         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25478         loop postorder numbers here.
25479         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25480         numbers.
25482 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
25484         PR c++/57945
25485         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25486         on decls for which assemble_alias has been called.
25488 2014-01-17  Nick Clifton  <nickc@redhat.com>
25490         * config/msp430/msp430.opt: (mcpu): New option.
25491         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25492         (msp430_option_override): Parse target_cpu.  If the MCU name
25493         matches a generic string, clear target_mcu.
25494         (msp430_attr): Allow numeric interrupt values up to 63.
25495         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25496         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25497         option.
25498         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25499         Add mcpu matches.
25500         * config/msp430/msp430.md (popm): Use %J rather than %I.
25501         (addsi3): Use msp430_nonimmediate_operand for operand 2.
25502         (addhi_cy_i): Use immediate_operand for operand 2.
25503         * doc/invoke.texi: Document -mcpu option.
25505 2014-01-17  Richard Biener  <rguenther@suse.de>
25507         PR rtl-optimization/38518
25508         * df.h (df_analyze_loop): Declare.
25509         * df-core.c: Include cfgloop.h.
25510         (df_analyze_1): Split out main part of df_analyze.
25511         (df_analyze): Adjust.
25512         (loop_inverted_post_order_compute): New function.
25513         (loop_post_order_compute): Likewise.
25514         (df_analyze_loop): New function avoiding whole-function
25515         postorder computes.
25516         * loop-invariant.c (find_defs): Use df_analyze_loop.
25517         (find_invariants): Adjust.
25518         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25520 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
25522         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25523         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25525 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
25527         * ipa-ref.c (ipa_remove_stmt_references): Fix references
25528         traversal when removing references.
25530 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
25532         PR ipa/59775
25533         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25535 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
25537         PR middle-end/56791
25538         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25539         pushing a reload for an autoinc when we had previously reloaded an
25540         inner part of the address.
25542 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
25544         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25545         field.
25546         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25547         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25548         when not giving up or versioning for alias only because of
25549         loop->safelen.
25550         (vect_analyze_data_ref_dependences): Set to true.
25551         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
25552         is a GIMPLE_PHI.
25553         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
25554         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
25555         to the condition.
25557         PR middle-end/58344
25558         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
25560         PR target/59839
25561         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
25562         operand 0 predicate for gathers, use a new pseudo as subtarget.
25564 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
25566         PR middle-end/59609
25567         * lra-constraints.c (process_alt_operands): Add printing debug info.
25568         Check absence of input/output reloads for matched operands too.
25570 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
25572         PR rtl-optimization/59835
25573         * ira.c (ira_init_register_move_cost): Increase cost for
25574         impossible modes.
25576 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
25578         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
25580 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
25582         PR target/59780
25583         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
25584         non-register objects.  Use gen_(high/low)part more consistently.
25585         Fix assertions.
25587 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
25589         PR target/59844
25590         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
25591         endian support, remove tests for WORDS_BIG_ENDIAN.
25592         (p8_mfvsrd_3_<mode>): Likewise.
25593         (reload_gpr_from_vsx<mode>): Likewise.
25594         (reload_gpr_from_vsxsf): Likewise.
25595         (p8_mfvsrd_4_disf): Likewise.
25597 2014-01-16  Richard Biener  <rguenther@suse.de>
25599         PR rtl-optimization/46590
25600         * lcm.c (compute_antinout_edge): Use postorder iteration.
25601         (compute_laterin): Use inverted postorder iteration.
25603 2014-01-16  Nick Clifton  <nickc@redhat.com>
25605         PR middle-end/28865
25606         * varasm.c (output_constant): Return the number of bytes actually
25607         emitted.
25608         (output_constructor_array_range): Update the field size with the
25609         number of bytes emitted by output_constant.
25610         (output_constructor_regular_field): Likewise.  Also do not
25611         complain if the total number of bytes emitted is now greater
25612         than the expected fieldpos.
25613         * output.h (output_constant): Update prototype and descriptive comment.
25615 2014-01-16  Marek Polacek  <polacek@redhat.com>
25617         PR middle-end/59827
25618         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
25619         it is error_mark_node.
25621 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
25623         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
25624         VALID_AVX256_REG_OR_OI_MODE.
25626 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
25628         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
25629         current procedure should be profiled.
25631 2014-01-15  Andrew Pinski  <apinski@cavium.com>
25633         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
25634         of moving from/to the STACK_REG register class.
25636 2014-01-15  Richard Henderson  <rth@redhat.com>
25638         PR debug/54694
25639         * reginfo.c (global_regs_decl): Globalize.
25640         * rtl.h (global_regs_decl): Declare.
25641         * ira.c (do_reload): Diagnose frame_pointer_needed and it
25642         reserved via global_regs.
25644 2014-01-15  Teresa Johnson  <tejohnson@google.com>
25646         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
25648 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
25650         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
25651         and vmulosh rather than call gen_vec_widen_smult_*.
25652         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
25653         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
25654         (vec_widen_smult_even_v16qi): Likewise.
25655         (vec_widen_umult_even_v8hi): Likewise.
25656         (vec_widen_smult_even_v8hi): Likewise.
25657         (vec_widen_umult_odd_v16qi): Likewise.
25658         (vec_widen_smult_odd_v16qi): Likewise.
25659         (vec_widen_umult_odd_v8hi): Likewise.
25660         (vec_widen_smult_odd_v8hi): Likewise.
25661         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
25662         vmuloub rather than call gen_vec_widen_umult_*.
25663         (vec_widen_umult_lo_v16qi): Likewise.
25664         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
25665         vmulosb rather than call gen_vec_widen_smult_*.
25666         (vec_widen_smult_lo_v16qi): Likewise.
25667         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
25668         rather than call gen_vec_widen_umult_*.
25669         (vec_widen_umult_lo_v8hi): Likewise.
25670         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
25671         rather than call gen_vec_widen_smult_*.
25672         (vec_widen_smult_lo_v8hi): Likewise.
25674 2014-01-15  Jeff Law  <law@redhat.com>
25676         PR tree-optimization/59747
25677         * ree.c (find_and_remove_re): Properly handle case where a second
25678         eliminated extension requires widening a copy created for elimination
25679         of a prior extension.
25680         (combine_set_extension): Ensure that the number of hard regs needed
25681         for a destination register does not change when we widen it.
25683 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
25685         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
25686         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
25687         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
25688         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
25689         (avr-*-rtems*): Likewise.
25690         (bfin*-rtems*): Likewise.
25691         (moxie-*-rtems*): Likewise.
25692         (h8300-*-rtems*): Likewise.
25693         (i[34567]86-*-rtems*): Likewise.
25694         (lm32-*-rtems*): Likewise.
25695         (m32r-*-rtems*): Likewise.
25696         (m68k-*-rtems*): Likewise.
25697         (microblaze*-*-rtems*): Likewise.
25698         (mips*-*-rtems*): Likewise.
25699         (powerpc-*-rtems*): Likewise.
25700         (sh-*-rtems*): Likewise.
25701         (sparc-*-rtems*): Likewise.
25702         (sparc64-*-rtems*): Likewise.
25703         (v850-*-rtems*): Likewise.
25704         (m32c-*-rtems*): Likewise.
25706 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
25708         PR rtl-optimization/59511
25709         * ira.c (ira_init_register_move_cost): Use memory costs for some
25710         cases of register move cost calculations.
25711         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
25712         instead of BB frequency.
25713         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
25714         * lra-assigns.c (find_hard_regno_for): Ditto.
25716 2014-01-15  Richard Biener  <rguenther@suse.de>
25718         PR tree-optimization/59822
25719         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
25720         (vectorizable_load): Use it to hoist defs of uses of invariant
25721         loads out of the loop.
25723 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
25724             Kugan Vivekanandarajah  <kuganv@linaro.org>
25726         PR target/59695
25727         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
25728         truncation.
25730 2014-01-15  Richard Biener  <rguenther@suse.de>
25732         PR rtl-optimization/59802
25733         * lcm.c (compute_available): Use inverted postorder to seed
25734         the initial worklist.
25736 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25738         PR target/59803
25739         * config/s390/s390.c (s390_preferred_reload_class): Don't return
25740         ADDR_REGS for invalid symrefs in non-PIC code.
25742 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
25744         PR other/58712
25745         * builtins.c (determine_block_size): Initialize *probable_max_size
25746         even if len_rtx is CONST_INT.
25748 2014-01-14  Andrew Pinski  <apinski@cavium.com>
25750         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
25751         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
25752         (cortexa53_tunings): Likewise.
25753         (aarch64_sched_issue_rate): New function.
25754         (TARGET_SCHED_ISSUE_RATE): Define.
25756 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
25758         * ira-costs.c (find_costs_and_classes): Add missed
25759         ira_init_register_move_cost_if_necessary.
25761 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
25763         PR target/59787
25764         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
25766 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
25768         PR target/59794
25769         * config/i386/i386.c (type_natural_mode): Add a bool parameter
25770         to indicate if type is used for function return value.  Warn ABI
25771         change if the vector mode isn't available for function return value.
25772         (ix86_function_arg_advance): Pass false to type_natural_mode.
25773         (ix86_function_arg): Likewise.
25774         (ix86_gimplify_va_arg): Likewise.
25775         (function_arg_32): Don't warn ABI change.
25776         (ix86_function_value): Pass true to type_natural_mode.
25777         (ix86_return_in_memory): Likewise.
25778         (ix86_struct_value_rtx): Removed.
25779         (TARGET_STRUCT_VALUE_RTX): Likewise.
25781 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25783         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
25784         converting a conditional jump into a conditional return.
25786 2014-01-14  Richard Biener  <rguenther@suse.de>
25788         PR tree-optimization/58921
25789         PR tree-optimization/59006
25790         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
25791         hoisting invariant stmts.
25792         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
25793         invariant loads on the preheader edge if possible.
25795 2014-01-14  Joey Ye  <joey.ye@arm.com>
25797         * doc/plugin.texi (Building GCC plugins): Update to C++.
25799 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
25801         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
25802         (_mm_rcp28_round_ss): Ditto.
25803         (_mm_rsqrt28_round_sd): Ditto.
25804         (_mm_rsqrt28_round_ss): Ditto.
25805         (_mm_rcp28_sd): Ditto.
25806         (_mm_rcp28_ss): Ditto.
25807         (_mm_rsqrt28_sd): Ditto.
25808         (_mm_rsqrt28_ss): Ditto.
25809         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
25810         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
25811         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
25812         (IX86_BUILTIN_RCP28SD): Ditto.
25813         (IX86_BUILTIN_RCP28SS): Ditto.
25814         (IX86_BUILTIN_RSQRT28SD): Ditto.
25815         (IX86_BUILTIN_RSQRT28SS): Ditto.
25816         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
25817         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
25818         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
25819         (ix86_expand_special_args_builtin): Expand new FTYPE.
25820         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
25821         (srcp14<mode>): Make insn unary.
25822         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
25823         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
25824         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
25825         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
25826         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
25827         Fix rounding: make it SAE only.
25828         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
25829         Ditto.
25830         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
25831         Ditto.
25832         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
25833         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
25834         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
25835         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
25836         (round_saeonly_mask_scalar_operand4): Ditto.
25837         (round_saeonly_mask_scalar_op3): Ditto.
25838         (round_saeonly_mask_scalar_op4): Ditto.
25840 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25842         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25843         Implement -maltivec=be for vec_insert and vec_extract.
25845 2014-01-10  DJ Delorie  <dj@redhat.com>
25847         * config/msp430/msp430.md (call_internal): Don't allow memory
25848         references with SP as the base register.
25849         (call_value_internal): Likewise.
25850         * config/msp430/constraints.md (Yc): New.  For memory references
25851         that don't use SP as a base register.
25853         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
25854         "an integer without a # prefix"
25855         * config/msp430/msp430.md (epilogue_helper): Use it.
25857 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
25859         PR target/59617
25860         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
25861         AVX512F gather builtins.
25862         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
25863         on gather decls with INTEGER_TYPE masktype.
25864         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
25865         directly into the builtin rather than hoisting it before loop.
25867         PR tree-optimization/59387
25868         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
25869         (scev_const_prop): If folded_casts and type has undefined overflow,
25870         use force_gimple_operand instead of force_gimple_operand_gsi and
25871         for each added stmt if it is assign with
25872         arith_code_with_undefined_signed_overflow, call
25873         rewrite_to_defined_overflow.
25874         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
25875         gimple-fold.h instead.
25876         (arith_code_with_undefined_signed_overflow,
25877         rewrite_to_defined_overflow): Moved to ...
25878         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
25879         rewrite_to_defined_overflow): ... here.  No longer static.
25880         Include gimplify-me.h.
25881         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
25882         rewrite_to_defined_overflow): New prototypes.
25884 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25886         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
25888 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
25890         * builtins.c (get_object_alignment_2): Minor tweak.
25891         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
25893 2014-01-13  Christian Bruel  <christian.bruel@st.com>
25895         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
25896         optimized non constant lengths.
25898 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
25900         PR libgomp/59194
25901         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
25902         load as __atomic_load_N if possible.
25904 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
25906         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
25907         target parameter.
25908         (rs6000_expand_builtin): Adjust call.
25910 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
25912         PR target/58115
25913         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
25914         * config/rs6000/rs6000.c: Include target-globals.h.
25915         (rs6000_set_current_function): Instead of doing target_reinit
25916         unconditionally, use save_target_globals_default_opts and
25917         restore_target_globals.
25919         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
25920         FPSCR.
25921         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
25922         (rs6000_expand_builtin): Handle mffs and mtfsf.
25923         (rs6000_init_builtins): Define mffs and mtfsf.
25924         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
25925         (rs6000_mffs): New pattern.
25926         (rs6000_mtfsf): New pattern.
25928 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
25930         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
25931         Start narrowing with START.  Apply candidate-use pair
25932         and check overall cost in narrowing.
25933         (iv_ca_prune): Pass new argument.
25935 2014-01-10  Jeff Law  <law@redhat.com>
25937         PR middle-end/59743
25938         * ree.c (combine_reaching_defs): Ensure the defining statement
25939         occurs before the extension when optimizing extensions with
25940         different source and destination hard registers.
25942 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
25944         PR ipa/58585
25945         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
25946         vtables into the type inheritance graph.
25948 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
25950         PR rtl-optimization/59754
25951         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
25952         modes in the REGNO != REGNO case.
25954 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25956         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
25958 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
25960         PR tree-optimization/59745
25961         * tree-predcom.c (tree_predictive_commoning_loop): Call
25962         free_affine_expand_cache if giving up because components is NULL.
25964         * target-globals.c (save_target_globals): Allocate < 4KB structs using
25965         GC in payload of target_globals struct instead of allocating them on
25966         the heap and the larger structs separately using GC.
25967         * target-globals.h (struct target_globals): Make regs, hard_regs,
25968         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
25969         of GTY((skip)) and change type to void *.
25970         (reset_target_globals): Cast loads from those fields to corresponding
25971         types.
25973 2014-01-10  Steve Ellcey  <sellcey@mips.com>
25975         PR plugins/59335
25976         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
25977         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
25978         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
25980 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
25982         PR target/59744
25983         * aarch64-modes.def (CC_Zmode): New flags mode.
25984         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
25985         represents an equality.
25986         (aarch64_get_condition_code): Handle CC_Zmode.
25987         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
25989 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25991         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
25992         extraction in good case.
25994 2014-01-10  Richard Biener  <rguenther@suse.de>
25996         PR tree-optimization/59374
25997         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
25998         checking after SLP discovery.  Mark stmts not participating
25999         in any SLP instance properly.
26001 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26003         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26004         when handling a SET rtx.
26006 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26008         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26009         (cortex-a57): Likewise.
26010         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26012 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26014         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26015         non-iwmmxt builtins.
26017 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
26019         PR ipa/58252
26020         PR ipa/59226
26021         * ipa-devirt.c record_target_from_binfo): Take as argument
26022         stack of binfos and lookup matching one for virtual inheritance.
26023         (possible_polymorphic_call_targets_1): Update.
26025 2014-01-10  Huacai Chen  <chenhc@lemote.com>
26027         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26028         kernel strings for Loongson-2E/2F/3A.
26030 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
26032         PR middle-end/59670
26033         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26034         is_gimple_call before calling gimple_call_internal_p.
26036 2014-01-09  Steve Ellcey  <sellcey@mips.com>
26038         * Makefile.in (TREE_FLOW_H): Remove.
26039         (TREE_SSA_H): Add file names from tree-flow.h.
26040         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26041         * tree.h: Remove tree-flow.h reference.
26042         * hash-table.h: Remove tree-flow.h reference.
26043         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26044         reference with tree-ssa-loop.h.
26046 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26048         * doc/invoke.texi: Add -maltivec={be,le} options, and document
26049         default element-order behavior for -maltivec.
26050         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26051         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26052         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26053         when targeting big endian, at least for now.
26054         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26056 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
26058         PR middle-end/47735
26059         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26060         var satisfies use_register_for_decl, just take into account type
26061         alignment, rather than decl alignment.
26063         PR tree-optimization/59622
26064         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
26065         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26066         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26067         Don't devirtualize for inplace at all.  For targets.length () == 1,
26068         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26070 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
26072         * config/i386/i386.md (cpu): Remove the unused btver1.
26074 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
26076         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26078 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
26080         PR target/58115
26081         * tree-core.h (struct target_globals): New forward declaration.
26082         (struct tree_target_option): Add globals field.
26083         * tree.h (TREE_TARGET_GLOBALS): Define.
26084         (prepare_target_option_nodes_for_pch): New prototype.
26085         * target-globals.h (struct target_globals): Define even if
26086         !SWITCHABLE_TARGET.
26087         * tree.c (prepare_target_option_node_for_pch,
26088         prepare_target_option_nodes_for_pch): New functions.
26089         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26090         * config/i386/i386.c: Include target-globals.h.
26091         (ix86_set_current_function): Instead of doing target_reinit
26092         unconditionally, use save_target_globals_default_opts and
26093         restore_target_globals.
26095 2014-01-09  Richard Biener  <rguenther@suse.de>
26097         PR tree-optimization/59715
26098         * tree-cfg.h (split_critical_edges): Declare.
26099         * tree-cfg.c (split_critical_edges): Export.
26100         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26102 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
26104         * cfgexpand.c (expand_stack_vars): Optionally disable
26105         asan stack protection.
26106         (expand_used_vars): Likewise.
26107         (partition_stack_vars): Likewise.
26108         * asan.c (asan_emit_stack_protection): Optionally disable
26109         after return stack usage.
26110         (instrument_derefs): Optionally disable memory access instrumentation.
26111         (instrument_builtin_call): Likewise.
26112         (instrument_strlen_call): Likewise.
26113         (asan_protect_global): Optionally disable global variables protection.
26114         * doc/invoke.texi: Added doc for new options.
26115         * params.def: Added new options.
26116         * params.h: Likewise.
26118 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
26120         PR rtl-optimization/59724
26121         * ifcvt.c (cond_exec_process_if_block): Don't call
26122         flow_find_head_matching_sequence with 0 longest_match.
26123         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26124         non-active insns if !stop_after.
26125         (try_head_merge_bb): Revert 2014-01-07 changes.
26127 2014-01-08  Jeff Law  <law@redhat.com>
26129         * ree.c (get_sub_rtx): New function, extracted from...
26130         (merge_def_and_ext): Here.
26131         (combine_reaching_defs): Use get_sub_rtx.
26133 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
26135         * cgraph.h (varpool_variable_node): Do not choke on null node.
26137 2014-01-08  Catherine Moore  <clm@codesourcery.com>
26139         * config/mips/mips.md (simple_return): Attempt to use JRC
26140         for microMIPS.
26141         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26143 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
26145         PR rtl-optimization/59137
26146         * reorg.c (steal_delay_list_from_target): Call update_block for
26147         elided insns.
26148         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26150 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26152         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26153         two duplicate entries.
26155 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
26157         Revert:
26158         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
26160         * config/mips/mips.c (mips_truncated_op_cost): New function.
26161         (mips_rtx_costs): Adjust test for BADDU.
26162         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26164         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
26166         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26167         (*baddu_si): ...this new pattern.
26169 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
26171         PR ipa/59722
26172         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26174 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26176         PR middle-end/57748
26177         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26178         inner_reference_p.
26179         (expand_expr, expand_normal): Adjust.
26180         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26181         inner_reference_p. Use inner_reference_p to expand inner references.
26182         (store_expr): Adjust.
26183         * cfgexpand.c (expand_call_stmt): Adjust.
26185 2014-01-08  Rong Xu  <xur@google.com>
26187         * gcov-io.c (gcov_var): Move from gcov-io.h.
26188         (gcov_position): Ditto.
26189         (gcov_is_error): Ditto.
26190         (gcov_rewrite): Ditto.
26191         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26192         only part to libgcc/libgcov.h.
26194 2014-01-08  Marek Polacek  <polacek@redhat.com>
26196         PR middle-end/59669
26197         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26199 2014-01-08  Marek Polacek  <polacek@redhat.com>
26201         PR sanitizer/59667
26202         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26204 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
26206         PR rtl-optimization/59649
26207         * stor-layout.c (get_mode_bounds): For BImode return
26208         0 and STORE_FLAG_VALUE.
26210 2014-01-08  Richard Biener  <rguenther@suse.de>
26212         PR middle-end/59630
26213         * gimple.h (is_gimple_builtin_call): Remove.
26214         (gimple_builtin_call_types_compatible_p): New.
26215         (gimple_call_builtin_p): New overload.
26216         * gimple.c (is_gimple_builtin_call): Remove.
26217         (validate_call): Rename to ...
26218         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
26219         check return types.
26220         (validate_type): New static function.
26221         (gimple_call_builtin_p): New overload and adjust.
26222         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26223         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
26224         (gimple_fold_stmt_to_constant_1): Likewise.
26225         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26227 2014-01-08  Richard Biener  <rguenther@suse.de>
26229         PR middle-end/59471
26230         * gimplify.c (gimplify_expr): Gimplify register-register type
26231         VIEW_CONVERT_EXPRs to separate stmts.
26233 2014-01-07  Jeff Law  <law@redhat.com>
26235         PR middle-end/53623
26236         * ree.c (combine_set_extension): Handle case where source
26237         and destination registers in an extension insn are different.
26238         (combine_reaching_defs): Allow source and destination registers
26239         in extension to be different under limited circumstances.
26240         (add_removable_extension): Remove restriction that the
26241         source and destination registers in the extension are the same.
26242         (find_and_remove_re): Emit a copy from the extension's
26243         destination to its source after the defining insn if
26244         the source and destination registers are different.
26246         PR middle-end/59285
26247         * ifcvt.c (merge_if_block): If we are merging a block with more than
26248         one successor with a block with no successors, remove any BARRIER
26249         after the second block.
26251 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
26253         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26255 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
26257         PR target/59652
26258         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26259         for 14-bit register offsets when INT14_OK_STRICT is false.
26261 2014-01-07  Roland Stigge  <stigge@antcom.de>
26262             Michael Meissner  <meissner@linux.vnet.ibm.com>
26264         PR 57386/target
26265         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26266         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
26268 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
26270         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26271         -mcpu.
26273 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
26275         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26276         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26277         rtx is const0_rtx or not.
26279 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
26281         PR target/58115
26282         * target-globals.c (save_target_globals): Remove this_fn_optab
26283         handling.
26284         * toplev.c: Include optabs.h.
26285         (target_reinit): Temporarily restore the global options if another
26286         set of options are in force.
26288 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
26290         PR rtl-optimization/58668
26291         * cfgcleanup.c (flow_find_cross_jump): Don't count
26292         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
26293         to determine what is counted.
26294         (flow_find_head_matching_sequence): Use active_insn_p to determine
26295         what is counted.
26296         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26297         counting change.
26298         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26299         determine what is counted.
26301         PR tree-optimization/59643
26302         * tree-predcom.c (split_data_refs_to_components): If one dr is
26303         read and one write, determine_offset fails and the write isn't
26304         in the bad component, just put the read into the bad component.
26306 2014-01-07  Mike Stump  <mikestump@comcast.net>
26307             Jakub Jelinek  <jakub@redhat.com>
26309         PR pch/59436
26310         * tree-core.h (struct tree_optimization_option): Change optabs
26311         type from unsigned char * to void *.
26312         * optabs.c (init_tree_optimization_optabs): Adjust
26313         TREE_OPTIMIZATION_OPTABS initialization.
26315 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
26317         PR target/59644
26318         * config/i386/i386.h (struct machine_function): Add
26319         no_drap_save_restore field.
26320         * config/i386/i386.c (ix86_save_reg): Use
26321         !cfun->machine->no_drap_save_restore instead of
26322         crtl->stack_realign_needed.
26323         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26324         this function clears frame_pointer_needed.  Set
26325         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26326         and DRAP reg is needed.
26328 2014-01-06  Marek Polacek  <polacek@redhat.com>
26330         PR c/57773
26331         * doc/implement-c.texi: Mention that other integer types are
26332         permitted as bit-field types in strictly conforming mode.
26334 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
26336         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26337         is newly allocated.
26339 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
26341         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26343 2014-01-06  Martin Jambor  <mjambor@suse.cz>
26345         PR ipa/59008
26346         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26347         to int.
26348         * ipa-prop.c (ipa_print_node_params): Fix indentation.
26350 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
26352         PR debug/59350
26353         PR debug/59510
26354         * var-tracking.c (add_stores): Preserve the value of the source even if
26355         we don't record the store.
26357 2014-01-06  Terry Guo  <terry.guo@arm.com>
26359         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26361 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
26363         PR bootstrap/59541
26364         * config/darwin.c (darwin_function_section): Adjust return values to
26365         correspond to optimisation changes made in r206070.
26367 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
26369         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26370         from prefetch_block tune setting.
26371         (nocona_cost): Correct size of prefetch block to 64.
26373 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
26375         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26376         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26377         used to save the static chain register in the computation of the offset
26378         from which the FP registers need to be restored.
26380 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
26382         PR tree-optimization/59519
26383         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26384         ICE if get_current_def (current_new_name) is already non-NULL, as long
26385         as it is a phi result of some other phi in *new_exit_bb that has
26386         the same argument.
26388         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26389         or vmovdqu* for misaligned_operand.
26390         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26391         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26392         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26393         aligned_mem for AVX512F masked aligned load and store builtins and for
26394         non-temporal moves.
26396 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
26398         PR tree-optimization/59651
26399         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26400         Address range for negative step should be added by TYPE_SIZE_UNIT.
26402 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
26404         * config/m68k/m68k.c (handle_move_double): Handle pushes with
26405         overlapping registers also for registers other than the stack pointer.
26407 2014-01-03  Marek Polacek  <polacek@redhat.com>
26409         PR other/59661
26410         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26411         __builtin_FILE.
26413 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
26415         PR target/59625
26416         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26417         asm goto as jump.
26419         * config/i386/i386.md (MODE_SIZE): New mode attribute.
26420         (push splitter): Use <P:MODE_SIZE> instead of
26421         GET_MODE_SIZE (<P:MODE>mode).
26422         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26423         (mov -1, reg peephole2): Likewise.
26424         * config/i386/sse.md (*mov<mode>_internal,
26425         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26426         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26427         *<code><mode>3, *andnot<mode>3<mask_name>,
26428         <mask_codefor><code><mode>3<mask_name>): Likewise.
26429         * config/i386/subst.md (mask_mode512bit_condition,
26430         sd_mask_mode512bit_condition): Likewise.
26432 2014-01-02  Xinliang David Li  <davidxl@google.com>
26434         PR tree-optimization/59303
26435         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26436         (dump_predicates): Better output format.
26437         (pred_equal_p): New function.
26438         (is_neq_relop_p): Ditto.
26439         (is_neq_zero_form_p): Ditto.
26440         (pred_expr_equal_p): Ditto.
26441         (pred_neg_p): Ditto.
26442         (simplify_pred): Ditto.
26443         (simplify_preds_2): Ditto.
26444         (simplify_preds_3): Ditto.
26445         (simplify_preds_4): Ditto.
26446         (simplify_preds): Ditto.
26447         (push_pred): Ditto.
26448         (push_to_worklist): Ditto.
26449         (get_pred_info_from_cmp): Ditto.
26450         (is_degenerated_phi): Ditto.
26451         (normalize_one_pred_1): Ditto.
26452         (normalize_one_pred): Ditto.
26453         (normalize_one_pred_chain): Ditto.
26454         (normalize_preds): Ditto.
26455         (normalize_cond_1): Remove function.
26456         (normalize_cond): Ditto.
26457         (is_gcond_subset_of): Ditto.
26458         (is_subset_of_any): Ditto.
26459         (is_or_set_subset_of): Ditto.
26460         (is_and_set_subset_of): Ditto.
26461         (is_norm_cond_subset_of): Ditto.
26462         (pred_chain_length_cmp): Ditto.
26463         (convert_control_dep_chain_into_preds): Type change.
26464         (find_predicates): Ditto.
26465         (find_def_preds): Ditto.
26466         (destroy_predicates_vecs): Ditto.
26467         (find_matching_predicates_in_rest_chains): Ditto.
26468         (use_pred_not_overlap_with_undef_path_pred): Ditto.
26469         (is_pred_expr_subset): Ditto.
26470         (is_pred_chain_subset_of): Ditto.
26471         (is_included_in): Ditto.
26472         (is_superset_of): Ditto.
26474 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
26476         Update copyright years.
26478 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
26480         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26481         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26482         config/arc/arc.md, config/arc/arc.opt,
26483         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26484         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26485         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26486         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26487         config/linux-protos.h, config/linux.c, config/winnt-c.c,
26488         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26489         vtable-verify.c, vtable-verify.h: Use the standard form for the
26490         copyright notice.
26492 2014-01-02  Tobias Burnus  <burnus@net-b.de>
26494         * gcc.c (process_command): Update copyright notice dates.
26495         * gcov-dump.c: Ditto.
26496         * gcov.c: Ditto.
26497         * doc/cpp.texi: Bump @copying's copyright year.
26498         * doc/cppinternals.texi: Ditto.
26499         * doc/gcc.texi: Ditto.
26500         * doc/gccint.texi: Ditto.
26501         * doc/gcov.texi: Ditto.
26502         * doc/install.texi: Ditto.
26503         * doc/invoke.texi: Ditto.
26505 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26507         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26509 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
26511         * config/i386/sse.md (*mov<mode>_internal): Guard
26512         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26514         PR rtl-optimization/59647
26515         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26516         new_rtx into UNSIGNED_FLOAT rtxes.
26518 Copyright (C) 2014 Free Software Foundation, Inc.
26520 Copying and distribution of this file, with or without modification,
26521 are permitted in any medium without royalty provided the copyright
26522 notice and this notice are preserved.