* ChangeLog: Fix whitespace.
[official-gcc.git] / gcc / ChangeLog
blob4bb747fdec96573be193d0ce94f5e49941d538ee
1 2013-07-22  Chang  <pchang9@cs.wisc.edu>
3         * df-problems.c (can_move_insns_across): Exit loop once we
4         find a non-fixed, non-global register.
6         * ipa-pure-const.c (propagate_nothrow): Exit loop after
7         setting can_throw.
9         * omega.c (omega_eliminate_red): Break after setting red_found.
10         (omega_problem_has_red_equations): Similarly after setting found.
11         (omega_query_variable): Similarly after setting coupled.
13 2013-07-22  Marek Polacek  <polacek@redhat.com>
15         * gimplify.c: Don't include gimple.h twice.
17 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
20         instead of TARGET_THUMB1.
21         (Pz): New constraint.
22         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
23         encodings.
24         (compare_negsi_si): Likewise.
25         (compare_addsi2_op0): Likewise.
26         (compare_addsi2_op1): Likewise.
27         (addsi3_carryin_<optab>): Likewise.
28         (addsi3_carryin_alt2_<optab>): Likewise.
29         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
30         for arm_restrict_it.
31         (subsi3_carryin): Likewise.
32         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
33         (minmax_arithsi): Disable for arm_restrict_it.
34         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
35         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
36         (satsi_<SAT:code>_shift): Likewise.
37         (arm_shiftsi3): Add alternative for 16-bit encoding.
38         (arm32_movhf): Disable for arm_restrict_it.
39         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
40         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
42 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
44         * config/arm/arm.md (attribute "insn"): Delete.
45         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
46         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
47         (not_shiftsi): Update for attribute change.
48         (not_shiftsi_compare0): Likewise.
49         (not_shiftsi_compare0_scratch): Likewise.
50         (arm_one_cmplsi2): Likewise.
51         (thumb1_one_cmplsi2): Likewise.
52         (notsi_compare0): Likewise.
53         (notsi_compare0_scratch): Likewise.
54         (thumb1_movdi_insn): Likewise.
55         (arm_movsi_insn): Likewise.
56         (movhi_insn_arch4): Likewise.
57         (movhi_bytes): Likewise.
58         (arm_movqi_insn): Likewise.
59         (thumb1_movqi_insn): Likewise.
60         (arm32_movhf): Likewise.
61         (thumb1_movhf): Likewise.
62         (arm_movsf_soft_insn): Likewise.
63         (thumb1_movsf_insn): Likewise.
64         (thumb_movdf_insn): Likewise.
65         (movsicc_insn): Likewise.
66         (movsfcc_soft_insn): Likewise.
67         (and_scc): Likewise.
68         (cond_move): Likewise.
69         (if_move_not): Likewise.
70         (if_not_move): Likewise.
71         (if_shift_move): Likewise.
72         (if_move_shift): Likewise.
73         (if_shift_shift): Likewise.
74         (if_not_arith): Likewise.
75         (if_arith_not): Likewise.
76         (cond_move_not): Likewise.
77         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
78         (neon_mov<mode>): Likewise.
79         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
80         (thumb2_movsi_vfp): Likewise.
81         (movsf_vfp): Likewise.
82         (thumb2_movsf_vfp): Likewise.
83         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
84         change.
85         (cortexa7_older_only): Likewise.
86         (cortexa7_younger): Likewise.
87         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
88         (1020alu_shift_op): Likewise.
89         (1020alu_shift_reg_op): Likewise.
90         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
91         (alu_shift_op): Likewise.
92         (alu_shift_reg_op): Likewise.
93         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
94         (11_alu_shift_op): Likewise.
95         (11_alu_shift_reg_op): Likewise.
96         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
97         (9_alu_shift_reg_op): Likewise.
98         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
99         change.
100         (cortex_a15_alu_shift): Likewise.
101         (cortex_a15_alu_shift_reg): Likewise.
102         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
103         (cortex_a5_alu_shift): Likewise.
104         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
105         change.
106         (cortex_a53_alu_shift): Likewise.
107         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
108         change.
109         (cortex_a7_alu_reg): Likewise.
110         (cortex_a7_alu_shift): Likewise.
111         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
112         (cortex_a8_alu_shift): Likewise.
113         (cortex_a8_alu_shift_reg): Likewise.
114         (cortex_a8_mov): Likewise.
115         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
116         (cortex_a9_dp_shift): Likewise.
117         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
118         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
119         (cortex_r4_mov): Likewise.
120         (cortex_r4_alu_shift): Likewise.
121         (cortex_r4_alu_shift_reg): Likewise.
122         * config/arm/fa526.md (526_alu_op): Update for attribute change.
123         (526_alu_shift_op): Likewise.
124         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
125         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
126         (626te_alu_shift_op): Likewise.
127         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
128         (726te_alu_op): Likewise.
129         (726te_alu_shift_op): Likewise.
130         (726te_alu_shift_reg_op): Likewise.
131         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
132         (mp626_alu_shift_op): Likewise.
133         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
134         (pj4_alu_e1_conds): Likewise.
135         (pj4_alu): Likewise.
136         (pj4_alu_conds): Likewise.
137         (pj4_shift): Likewise.
138         (pj4_shift_conds): Likewise.
139         (pj4_alu_shift): Likewise.
140         (pj4_alu_shift_conds): Likewise.
142 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
144         * config/arm/predicates.md (shiftable_operator_strict_it):
145         New predicate.
146         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
147         Disable cond_exec version for arm_restrict_it.
148         (thumb2_smaxsi3): Convert to generate cond_exec.
149         (thumb2_sminsi3): Likewise.
150         (thumb32_umaxsi3): Likewise.
151         (thumb2_uminsi3): Likewise.
152         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
153         (thumb2_neg_abssi2): Likewise.
154         (thumb2_mov_scc): Add alternative for 16-bit encoding.
155         (thumb2_movsicc_insn): Adjust alternatives.
156         (thumb2_mov_negscc): Disable for arm_restrict_it.
157         (thumb2_mov_negscc_strict_it): New pattern.
158         (thumb2_mov_notscc_strict_it): New pattern.
159         (thumb2_mov_notscc): Disable for arm_restrict_it.
160         (thumb2_ior_scc): Likewise.
161         (thumb2_ior_scc_strict_it): New pattern.
162         (thumb2_cond_move): Adjust for arm_restrict_it.
163         (thumb2_cond_arith): Disable for arm_restrict_it.
164         (thumb2_cond_arith_strict_it): New pattern.
165         (thumb2_cond_sub): Adjust for arm_restrict_it.
166         (thumb2_movcond): Likewise.
167         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
168         (thumb2_zero_extendhisi2_v6): Likewise.
169         (thumb2_zero_extendqisi2_v6): Likewise.
170         (orsi_notsi_si): Likewise.
171         (orsi_not_shiftsi_si): Likewise.
173 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
175         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
176         instruction sequence is 1 byte shorter.
178 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
180         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
181         it is not needed after split.
183 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
185         PR target/51784
186         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
187         second label for nonlocal goto receivers. Don't output pic base labels
188         unless we're producing PIC; mark that action unreachable().
189         (ix86_save_reg): If the function contains a nonlocal label, save the
190         PIC base reg.
191         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
192         * gcc/config/darwin.c (emitted_pic_label_num): New GTY.
193         (update_pic_label_number_if_needed): New.
194         (machopic_output_function_base_name): Adjust for nonlocal receiver
195         case.
196         (machopic_should_output_picbase_label): New.
197         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
198         (nonlocal_goto_receiver): New insn and split.
200 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
202         * config/aarch64/aarch64-builtins.c
203         (aarch64_fold_builtin): Fold abs in all modes.
204         * config/aarch64/aarch64-simd-builtins.def
205         (abs): Enable for all modes.
206         * config/aarch64/arm_neon.h
207         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
208         (vabs_f64): Add missing intrinsic.
210 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
212         * config/aarch64/arm_neon.h (vabs_s64): New function
214 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
216         PR target/57516
217         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
218         * config/avr/avr.md (adjust_len): Add `round'.
219         * config/avr/avr-protos.h (avr_out_round): New prototype.
220         (avr_out_plus): Add `out_label' argument.
221         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
222         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
223         Handle the case where `insn' is just a pattern.
224         (avr_out_bitop): Handle the case where `insn' is just a pattern.
225         (avr_out_round): New function.
226         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
228 2013-07-18  David Holsgrove <david.holsgrove@xilinx.com>
230         * config/microblaze/microblaze.c (microblaze_expand_prologue):
231         Add check for flag_stack_usage to handle -fstack-usage support
233 2013-07-18  Pat Haugen <pthaugen@us.ibm.com>
235         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
236         interaction for new Power8 flags and VSX.
238 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
240         PR middle-end/57698
241         * tree-inline.c (expand_call_inline): Emit errors during
242         early_inlining only if optimization is not turned on.
244 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
246         * passes.def: New.
248         * passes.c (init_optimization_passes): Move the construction of
249         the pass hierarchy into a new passes.def file.
251         * Makefile.in (passes.o): Add dependency on passes.def.
253 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
255         * passes.c (init_optimization_passes): Introduce macros for
256         constructing the tree of passes (INSERT_PASSES_AFTER,
257         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
258         TERMINATE_PASS_LIST).
260 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
261             Wei Mi  <wmi@google.com>
263         PR rtl-optimization/57878
264         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
265         top.
266         (reload_pseudo_compare_func): Check nregs first for reload
267         pseudos.
269 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
271         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
273 2013-07-18  Chang  <pchang9@cs.wisc.edu>
275         * read-rtl.c (validate_const_int): Once an invalid character is
276         seen, quit the loop.
278         * gengtype.c (write_roots): Similarly once we find the "deletable"
279         or "if_marked" option.
281 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
283         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
284         "xtab" and "sat".  Move value "clz" from here to ...
285         (attriubte "type"): ... here.
286         (satsi_<SAT:code>): Delete "insn" attribute.
287         (satsi_<SAT:code>_shift): Likewise.
288         (arm_zero_extendqisi2addsi): Likewise.
289         (arm_extendqisi2addsi): Likewise.
290         (clzsi2): Update for attribute changes.
291         (rbitsi2): Likewise.
292         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
293         attribute.
294         (arm_usatsihi): Likewise.
295         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
297 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
299         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
300         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
301         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
302         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
303         in alphabetical order.
304         (attribute "core_cycles"): Update for attribute changes.
305         (arm_addsi3): Likewise.
306         (addsi3_compare0): Likewise.
307         (addsi3_compare0_scratch): Likewise.
308         (addsi3_compare_op1): Likewise.
309         (addsi3_compare_op2): Likewise.
310         (compare_addsi2_op0): Likewise.
311         (compare_addsi2_op1): Likewise.
312         (addsi3_carryin_shift_<optab>): Likewise.
313         (subsi3_carryin_shift): Likewise.
314         (rsbsi3_carryin_shift): Likewise.
315         (arm_subsi3_insn): Likewise.
316         (subsi3_compare0): Likewise.
317         (subsi3_compare): Likewise.
318         (arm_andsi3_insn): Likewise.
319         (thumb1_andsi3_insn): Likewise.
320         (andsi3_compare0): Likewise.
321         (andsi3_compare0_scratch): Likewise.
322         (zeroextractsi_compare0_scratch
323         (andsi_not_shiftsi_si): Likewise.
324         (iorsi3_insn): Likewise.
325         (iorsi3_compare0): Likewise.
326         (iorsi3_compare0_scratch): Likewise.
327         (arm_xorsi3): Likewise.
328         (thumb1_xorsi3_insn): Likewise.
329         (xorsi3_compare0): Likewise.
330         (xorsi3_compare0_scratch): Likewise.
331         (satsi_<SAT:code>_shift): Likewise.
332         (rrx): Likewise.
333         (arm_shiftsi3): Likewise.
334         (shiftsi3_compare0): Likewise.
335         (not_shiftsi): Likewise.
336         (not_shiftsi_compare0): Likewise.
337         (not_shiftsi_compare0_scratch): Likewise.
338         (arm_one_cmplsi2): Likewise.
339         (thumb_one_complsi2): Likewise.
340         (notsi_compare0): Likewise.
341         (notsi_compare0_scratch): Likewise.
342         (thumb1_zero_extendhisi2): Likewise.
343         (arm_zero_extendhisi2): Likewise.
344         (arm_zero_extendhisi2_v6): Likewise.
345         (arm_zero_extendhisi2addsi): Likewise.
346         (thumb1_zero_extendqisi2): Likewise.
347         (thumb1_zero_extendqisi2_v6): Likewise.
348         (arm_zero_extendqisi2): Likewise.
349         (arm_zero_extendqisi2_v6): Likewise.
350         (arm_zero_extendqisi2addsi): Likewise.
351         (thumb1_extendhisi2): Likewise.
352         (arm_extendhisi2): Likewise.
353         (arm_extendhisi2_v6): Likewise.
354         (arm_extendqisi): Likewise.
355         (arm_extendqisi_v6): Likewise.
356         (arm_extendqisi2addsi): Likewise.
357         (thumb1_extendqisi2): Likewise.
358         (thumb1_movdi_insn): Likewise.
359         (arm_movsi_insn): Likewise.
360         (movsi_compare0): Likewise.
361         (movhi_insn_arch4): Likewise.
362         (movhi_bytes): Likewise.
363         (arm_movqi_insn): Likewise.
364         (thumb1_movqi_insn): Likewise.
365         (arm32_movhf): Likewise.
366         (thumb1_movhf): Likewise.
367         (arm_movsf_soft_insn): Likewise.
368         (thumb1_movsf_insn): Likewise.
369         (movdf_soft_insn): Likewise.
370         (thumb_movdf_insn): Likewise.
371         (arm_cmpsi_insn): Likewise.
372         (cmpsi_shiftsi): Likewise.
373         (cmpsi_shiftsi_swp): Likewise.
374         (arm_cmpsi_negshiftsi_si): Likewise.
375         (movsicc_insn): Likewise.
376         (movsfcc_soft_insn): Likewise.
377         (arith_shiftsi): Likewise.
378         (arith_shiftsi_compare0
379         (arith_shiftsi_compare0_scratch
380         (sub_shiftsi): Likewise.
381         (sub_shiftsi_compare0
382         (sub_shiftsi_compare0_scratch
383         (and_scc): Likewise.
384         (cond_move): Likewise.
385         (if_plus_move): Likewise.
386         (if_move_plus): Likewise.
387         (if_move_not): Likewise.
388         (if_not_move): Likewise.
389         (if_shift_move): Likewise.
390         (if_move_shift): Likewise.
391         (if_shift_shift): Likewise.
392         (if_not_arith): Likewise.
393         (if_arith_not): Likewise.
394         (cond_move_not): Likewise.
395         (thumb1_ashlsi3): Set type attribute.
396         (thumb1_ashrsi3): Likewise.
397         (thumb1_lshrsi3): Likewise.
398         (thumb1_rotrsi3): Likewise.
399         (shiftsi3_compare0_scratch): Likewise.
400         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
401         (neon_mov<mode>): Likewise.
402         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
403         attribute changes.
404         (thumb2_movsi_insn): Likewise.
405         (thumb2_cmpsi_neg_shiftsi): Likewise.
406         (thumb2_extendqisi_v6): Likewise.
407         (thumb2_zero_extendhisi2_v6): Likewise.
408         (thumb2_zero_extendqisi2_v6): Likewise.
409         (thumb2_shiftsi3_short): Likewise.
410         (thumb2_addsi3_compare0_scratch): Likewise.
411         (orsi_not_shiftsi_si): Likewise.
412         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
413         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
414         changes.
415         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
416         (1020alu_shift_op): Likewise.
417         (1020alu_shift_reg_op): Likewise.
418         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
419         (alu_shift_op): Likewise.
420         (alu_shift_reg_op): Likewise.
421         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
422         (11_alu_shift_op): Likewise.
423         (11_alu_shift_reg_op): Likewise.
424         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
425         (9_alu_shift_reg_op): Likewise.
426         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
427         changes.
428         (cortex_a15_alu_shift): Likewise.
429         (cortex_a15_alu_shift_reg): Likewise.
430         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
431         changes.
432         (cortex_a5_alu_shift): Likewise.
433         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
434         changes.
435         (cortex_a53_alu_shift): Likewise.
436         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
437         changes.
438         (cortex_a7_alu_reg): Likewise.
439         (cortex_a7_alu_shift): Likewise.
440         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
441         changes.
442         (cortex_a8_alu_shift): Likewise.
443         (cortex_a8_alu_shift_reg): Likewise.
444         (cortex_a8_mov): Likewise.
445         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
446         (cortex_a9_dp_shift): Likewise.
447         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
448         changes.
449         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
450         changes.
451         (cortex_r4_mov): Likewise.
452         (cortex_r4_alu_shift): Likewise.
453         (cortex_r4_alu_shift_reg): Likewise.
454         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
455         (526_alu_shift_op): Likewise.
456         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
457         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
458         (626te_alu_shift_op): Likewise.
459         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
460         (726te_alu_op): Likewise.
461         (726te_alu_shift_op): Likewise.
462         (726te_alu_shift_reg_op): Likewise.
463         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
464         (mp626_alu_shift_op): Likewise.
465         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
466         (pj4_alu_e1_conds): Likewise.
467         (pj4_alu): Likewise.
468         (pj4_alu_conds): Likewise.
469         (pj4_shift): Likewise.
470         (pj4_shift_conds): Likewise.
471         (pj4_alu_shift): Likewise.
472         (pj4_alu_shift_conds): Likewise.
473         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
474         changes.
475         (cortexa7_older_only): Likewise.
476         (cortexa7_younger): Likewise.
478 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
480         * ipa-pure-const.c (generate_summary): Rename to...
481         (pure_const_generate_summary): ... this.
483 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
485         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
487 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
489         PR target/57909
490         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
491         usage in HI mode.
493 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
495         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
496         enabled without -march=zEC12.
497         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
498         flags to be set.
500 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
502         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
503         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
504         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
505         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
506         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
507         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
508         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
509         ISA_HAS_FP4.
510         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
511         and ISA_HAS_NMADD3_NMSUB3.
512         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
513         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
514         (nmsub4<mode>, nmsub3<mode>): Likewise.
515         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
517 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
519         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
520         TARGET_MIPS5400 checking.
522 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
523             Peter Bergner  <bergner@vnet.ibm.com>
525         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
526         registers in the comment.
527         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
528         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
529         rather than FIRST_PSEUDO_REGISTERS.
531 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
533         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
534         enable extra ISA flags with TARGET_HTM.
536 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
538         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
539         Fix comment typos.
541 2013-07-15  Cong Hou  <congh@google.com>
543         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
544         in compare function for sorting.
546 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
548         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
549         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
550         * config/rs6000/rs6000.opt: Add -mhtm option.
551         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
552         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
553         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
554         __HTM__ if the HTM instructions are available.
555         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
556         htm_spr_reg_operand): New define_predicates.
557         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
558         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
559         Include htm.md.
560         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
561         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
562         HTM builtin functions.
563         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
564         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
565         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
566         (rs6000_builtin_mask_calculate): Likewise.
567         (rs6000_option_override_internal): Likewise.
568         (bdesc_htm): Add new HTM builtin support.
569         (htm_spr_num): New function.
570         (htm_spr_regno): Likewise.
571         (rs6000_htm_spr_icode): Likewise.
572         (htm_expand_builtin): Likewise.
573         (htm_init_builtins): Likewise.
574         (rs6000_expand_builtin): Add support for HTM builtin functions.
575         (rs6000_init_builtins): Likewise.
576         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
577         option.
578         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
579         (TARGET_HTM, MASK_HTM): Define macros.
580         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
581         (FIXED_REGISTERS): Likewise.
582         (CALL_USED_REGISTERS): Likewise.
583         (CALL_REALLY_USED_REGISTERS): Likewise.
584         (REG_ALLOC_ORDER): Likewise.
585         (enum reg_class): Likewise.
586         (REG_CLASS_NAMES): Likewise.
587         (REG_CLASS_CONTENTS): Likewise.
588         (REGISTER_NAMES): Likewise.
589         (ADDITIONAL_REGISTER_NAMES): Likewise.
590         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
591         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
592         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
593         * config/rs6000/htm.md: New file.
594         * config/rs6000/htmintrin.h: New file.
595         * config/rs6000/htmxlintrin.h: New file.
597 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
599         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
600         Define SYMBOL_TINY_GOT, update comment.
601         * config/aarch64/aarch64.c
602         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
603         (aarch64_expand_mov_immediate): Likewise.
604         (aarch64_print_operand): Likewise.
605         (aarch64_classify_symbol): Likewise.
606         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
607         (ldr_got_tiny): Define.
609 2013-07-13  Tobias Grosser  <tobias@grosser.es>
611         PR tree-optimization/54094
612         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
613           scheduling dimension for the parallelism check from the polyhedral
614           information in the AST.
615         * graphite-dependences.c (carries_deps): Do not assume the schedule is
616           in 2D + 1 form.
618 2013-07-13  Jason Merrill  <jason@redhat.com>
620         * print-tree.c (debug_vec_tree): Use debug_raw.
621         (debug_raw (vec<tree, va_gc> &)): New.
622         (debug_raw (vec<tree, va_gc> *)): New.
623         * tree.h: Declare them.
625 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
627         * ifcvt.c (ifcvt_after_combine): New static variable.
628         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
629         for size.
630         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
631         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
632         rest_of_handle_if_after_reload): Pass new argument for if_convert.
634 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
636         * config/mips/mips.c (mips_expand_call): Remove empty statement.
638 2013-07-12  Michael Matz  <matz@suse.de>
640         PR middle-end/55771
641         * convert.c (convert_to_real): Reject non-float inner types.
643 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
645         * config/aarch64/aarch64-protos.h
646         (aarch64_simd_immediate_valid_for_move): Remove.
647         * config/aarch64/aarch64.c (simd_immediate_info): New member.
648         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
649         cases.
650         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
652 2013-07-11  Steve Ellcey  <sellcey@mips.com>
654         * config/mips/mips.c (mips_conditional_register_usage): Do not
655         use t[0-7] registers in MIPS16 mode when optimizing for size.
657 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
659         * config/i386/i386.c (dispatch_function_versions): Fix array
660         indexing of function_version_info to match actual_versions.
662 2013-07-11  Teresa Johnson  <tejohnson@google.com>
664         * vec.h (struct va_gc): Move release out-of-line.
665         (va_gc::release): Call ggc_free on released vec.
667 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
669         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
670         Require GOT register as additional operand in UNSPEC.
671         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
672         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
673         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
674         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
675         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
676         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
677         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
679 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
681         PR target/57631
682         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
683         name seen by assembler/linker rather if available.
685 2013-07-11  Andreas Schwab  <schwab@suse.de>
687         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
689 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
691         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
693 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
695         * doc/tm.texi.in: Move hook documentation to ....
696         * target.def: ... here.
698         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
699         text on @hook line.
700         * doc/tm.texi: Regenerate.
702 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
704         PR c++/57869
705         * doc/invoke.texi: Document -Wconditionally-supported.
707 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
709         PR target/57844
710         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
711         of my_fp.
713 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
715         PR target/57506
716         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
717         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
718         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
719         Remove duplicate devices.
720         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
721         * config/avr/t-multilib: Regenerate.
722         * config/avr/avr-tables.opt: Regenerate.
723         * doc/avr-mmcu.texi: Regenerate.
725 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
727         PR target/56987
728         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
730 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
732         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
733         the cost of MULT when optimizing for size.
735 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
737         * config/cr16/cr16-protos.h: Don't include target.h.
739 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
741         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
742         adjust register size for TDmode and TFmode for VSX registers.
744 2013-07-08  Kai Tietz  <ktietz@redhat.com>
746         PR target/56892
747         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
748         hook_bool_const_tree_true.
750 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
752         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
753         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
754         * config/s390/s390.md: Define FPR*_REGNUM constants.
755         Fix FPR2_REGNUM constant (18 -> 17).
756         ("*trunc<BFP:mode><DFP_ALL:mode>2")
757         ("*trunc<DFP_ALL:mode><BFP:mode>2")
758         ("trunc<BFP:mode><DFP_ALL:mode>2")
759         ("trunc<DFP_ALL:mode><BFP:mode>2")
760         ("*extend<BFP:mode><DFP_ALL:mode>2")
761         ("*extend<DFP_ALL:mode><BFP:mode>2")
762         ("extend<BFP:mode><DFP_ALL:mode>2")
763         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
764         FPR4_REGNUM.
766 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
768         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
770 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
772         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
773         and cfun_fpr_bit_p to cfun_fpr_save_p.
774         (s390_frame_area, s390_register_info, s390_frame_info)
775         (s390_emit_prologue, s390_emit_epilogue)
776         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
777         register numbers.
778         * config/s390/s390.h: Define *_REGNUM macros for floating point
779         register numbers.
781 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
783         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
785 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
787         PR rtl-optimization/57786
788         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
789         and break out of the loop when it is set to false.
791 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
793         PR target/57819
794         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
795         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
796         (const_int 63)) 0)).
797         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
798         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
799         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
801         PR rtl-optimization/57829
802         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
803         mask bits outside of mode are just sign-extension from mode to HWI.
805 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
807         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
808         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
809         adjust_address instead of change_address to keep info about alignment.
810         (emit_strmov): Remove.
811         (emit_memmov): New function.
812         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
813         (expand_movmem_epilogue): Likewise and return updated rtx for
814         destination.
815         (expand_constant_movmem_prologue): Likewise and return updated rtx for
816         destination and source.
817         (decide_alignment): Refactor, handle vector_loop.
818         (ix86_expand_movmem): Likewise.
819         (ix86_expand_setmem): Likewise.
820         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
822 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
824         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
825         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
827 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
829         * config/i386/sse.md (sse_movlhps): Change alternative 3
830         of operand 2 to "m".
832 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
834         PR target/57807
835         * config/i386/sse.md (iptr): New mode attribute.
836         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
837         (<sse>_vm<plusminus_insn><mode>3): Ditto.
838         (<sse>_vmmul<mode>3): Ditto.
839         (<sse>_vmdiv<mode>3): Ditto.
840         (sse_vmrcpv4sf2): Ditto.
841         (<sse>_vmsqrt<mode>2): Ditto.
842         (sse_vmrsqrtv4sf2): Ditto.
843         (<sse>_vm<code><mode>3): Ditto.
844         (avx_vmcmp<mode>3): Ditto.
845         (<sse>_vmmaskcmp<mode>3): Ditto.
846         (<sse>_comi): Ditto.
847         (<sse>_ucomi): Ditto.
848         (*xop_vmfrcz_<mode>): Ditto.
849         (*fmai_fmadd_<mode>): Ditto.
850         (*fmai_fmsub_<mode>): Ditto.
851         (*fmai_fnmadd_<mode>): Ditto.
852         (*fmai_fnmsub_<mode>): Ditto.
853         (*fma4i_vmfmadd_<mode>): Ditto.
854         (*fma4i_vmfmsub_<mode>): Ditto.
855         (*fma4i_vmfnmadd_<mode>): Ditto.
856         (*fma4i_vmfnmsub_<mode>): Ditto.
857         (*xop_vmfrcz_<mode>): Ditto.
858         (sse_cvtps2pi): Ditto.
859         (sse_cvttps2pi): Ditto.
860         (sse_cvtss2si): Ditto.
861         (sse_cvtss2si_2): Ditto.
862         (sse_cvtss2siq_2): Ditto.
863         (sse_cvttss2si): Ditto.
864         (sse_cvttss2siq): Ditto.
865         (sse_cvtsd2si): Ditto.
866         (sse_cvtsd2si_2): Ditto.
867         (sse_cvtsd2siq_2): Ditto.
868         (sse_cvttsd2si): Ditto.
869         (sse_cvttsd2siq): Ditto.
870         (sse_cvtsd2ss): Ditto.
871         (sse_cvtss2sd): Ditto.
872         (avx2_pbroadcast<mode>): Ditto.
873         (avx2_pbroadcast<mode>_1): Ditto.
874         (*avx_vperm_broadcast_v4sf): Ditto.
876         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
877         (sse_movlhps): Ditto.
878         (sse_storehps): Ditto.
879         (sse_loadhps): Ditto.
880         (sse_storelps): Ditto.
881         (sse_loadlps): Ditto.
882         (*vec_concatv4sf): Ditto.
883         (*vec_interleave_highv2df): Ditto.
884         (*vec_interleave_lowv2df): Ditto.
885         (*vec_extractv2df_1_sse): Ditto.
886         (*vec_extractv2df_0_sse): Ditto.
887         (sse2_storelpd): Ditto.
888         (sse2_loadlpd): Ditto.
889         (sse2_movsd): Ditto.
890         (*vec_concatv4si): Ditto.
891         (vec_concatv2di): Ditto.
893         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
894         for Intel asm dialect.
895         (mmx_punpcklwd): Ditto.
896         (mmx_punpckldq): Ditto.
898         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
899         for intel assembler dialect.
901 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
903         PR target/29776
904         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
905         for BUILT_IN_C{LZ,LRSB}*.
906         * tree.h (CASE_INT_FN): Add FN##IMAX case.
907         * tree-vrp.c (extract_range_basic): Handle
908         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
909         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
910         fall thru to code calling set_value*.
911         * builtins.c (expand_builtin): Remove *IMAX cases.
912         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
913         if width is bigger than 2*HWI.
915 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
917         PR rtl-optimization/55342
918         * lra-int.h (lra_subreg_reload_pseudos): New.
919         * lra.c: Add undoing optional reloads to the block diagram.
920         (lra_subreg_reload_pseudos): New.
921         (lra_optional_reload_pseudos): Change comments.
922         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
923         lra_optional_reload_pseudos after undo transformations.
924         * lra-assigns.c (pseudo_prefix_title): New.
925         (lra_setup_reg_renumber): Use it.
926         (spill_for): Ditto.  Check subreg reload pseudos too.
927         (assign_by_spills): Consider subreg reload pseudos too.
928         * lra-constraints.c (simplify_operand_subreg): Use
929         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
930         (curr_insn_transform): Recognize and do optional reloads.
931         (undo_optional_reloads): New.
932         (lra_undo_inheritance): Call undo_optional_reloads.
934 2013-07-05  Thomas Quinot  <quinot@adacore.com>
936         * tree-complex.c (expand_complex_operations_1): Fix typo.
938 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
940         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
941         (tune_params): New member 'const vec_costs'.
942         * config/aarch64/aarch64.c (generic_vector_cost): New.
943         (generic_tunings): New member 'generic_vector_cost'.
944         (aarch64_builtin_vectorization_cost): New.
945         (aarch64_add_stmt_cost): New.
946         (TARGET_VECTORIZE_ADD_STMT_COST): New.
947         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
949 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
951         PR target/57777
952         * config/i386/predicates.md (vsib_address_operand): Disallow
953         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
955 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
957         PR middle-end/55030
958         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
959         expand_builtin_setjmp_receiver.
960         (expand_label): Adjust, call expand_builtin_setjmp_receiver
961         with NULL for the label parameter.
962         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
963         the frame-pointer.  Adjust comments.
964         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
965         only if LABEL is non-NULL.
967 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
969         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
970         (ARM_ABI_AAPCS64): Ditto.
971         (arm_abi): Ditto.
972         (ARM_DEFAULT_ABI): Ditto.
974 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
976         * config/aarch64/aarch64-builtins.c
977         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
978         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
979         (st1): Likewise.
980         * config/aarch64/aarch64-simd.md
981         (aarch64_ld1<VALL:mode>): New.
982         (aarch64_st1<VALL:mode>): Likewise.
983         * config/aarch64/arm_neon.h
984         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
986 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
988         * config/i386/i386.c (gate_insert_vzeroupper): Check if
989         target ISA is AVX.
990         (ix86_option_override_internal):Turn on all -mavx target flags by
991         default as they are dependent on AVX anyway.
993 2013-07-02  Cary Coutant  <ccoutant@google.com>
995         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
996         deterministic hash.
997         (loc_checksum_ordered): Likewise.
998         (hash_loc_operands): Remove inline keyword.
1000 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
1002         PR tree-optimization/57741
1003         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
1004         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
1005         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
1006         Allow REAL_CST step_exprs if flag_associative_math.
1007         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
1009 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
1011         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
1013 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
1015         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
1017 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1019         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
1020         encoding.
1021         (iorsi3_insn): Likewise.
1022         (arm_xorsi3): Likewise.
1024 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
1026         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
1027         to ...
1028         (attribute "type"): ... here, and prefix with "wmmx_".
1029         (attribute "core_cycles"): Update for attribute changes.
1030         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
1031         (tbcstv4hi): Likewise.
1032         (tbcstv2si): Likewise.
1033         (iwmmxt_iordi3): Likewise.
1034         (iwmmxt_xordi3): Likewise.
1035         (iwmmxt_anddi3): Likewise.
1036         (iwmmxt_nanddi3): Likewise.
1037         (iwmmxt_arm_movdi): Likewise.
1038         (iwmmxt_movsi_insn): Likewise.
1039         (mov<mode>_internal): Likewise.
1040         (and<mode>3_iwmmxt): Likewise.
1041         (ior<mode>3_iwmmxt): Likewise.
1042         (xor<mode>3_iwmmxt): Likewise.
1043         (add<mode>3_iwmmxt): Likewise.
1044         (ssaddv8qi3): Likewise.
1045         (ssaddv4hi3): Likewise.
1046         (ssaddv2si3): Likewise.
1047         (usaddv8qi3): Likewise.
1048         (usaddv4hi3): Likewise.
1049         (usaddv2si3): Likewise.
1050         (sub<mode>3_iwmmxt): Likewise.
1051         (sssubv8qi3): Likewise.
1052         (sssubv4hi3): Likewise.
1053         (sssubv2si3): Likewise.
1054         (ussubv8qi3): Likewise.
1055         (ussubv4hi3): Likewise.
1056         (ussubv2si3): Likewise.
1057         (mulv4hi3_iwmmxt): Likewise.
1058         (smulv4hi3_highpart): Likewise.
1059         (umulv4hi3_highpart): Likewise.
1060         (iwmmxt_wmacs): Likewise.
1061         (iwmmxt_wmacsz): Likewise.
1062         (iwmmxt_wmacu): Likewise.
1063         (iwmmxt_wmacuz): Likewise.
1064         (iwmmxt_clrdi): Likewise.
1065         (iwmmxt_clrv8qi): Likewise.
1066         (iwmmxt_clr4hi): Likewise.
1067         (iwmmxt_clr2si): Likewise.
1068         (iwmmxt_uavgrndv8qi3): Likewise.
1069         (iwmmxt_uavgrndv4hi3): Likewise.
1070         (iwmmxt_uavgv8qi3): Likewise.
1071         (iwmmxt_uavgv4hi3): Likewise.
1072         (iwmmxt_tinsrb): Likewise.
1073         (iwmmxt_tinsrh): Likewise.
1074         (iwmmxt_tinsrw): Likewise.
1075         (iwmmxt_textrmub): Likewise.
1076         (iwmmxt_textrmsb): Likewise.
1077         (iwmmxt_textrmuh): Likewise.
1078         (iwmmxt_textrmsh): Likewise.
1079         (iwmmxt_textrmw): Likewise.
1080         (iwmxxt_wshufh): Likewise.
1081         (eqv8qi3): Likewise.
1082         (eqv4hi3): Likewise.
1083         (eqv2si3): Likewise.
1084         (gtuv8qi3): Likewise.
1085         (gtuv4hi3): Likewise.
1086         (gtuv2si3): Likewise.
1087         (gtv8qi3): Likewise.
1088         (gtv4hi3): Likewise.
1089         (gtv2si3): Likewise.
1090         (smax<mode>3_iwmmxt): Likewise.
1091         (umax<mode>3_iwmmxt): Likewise.
1092         (smin<mode>3_iwmmxt): Likewise.
1093         (umin<mode>3_iwmmxt): Likewise.
1094         (iwmmxt_wpackhss): Likewise.
1095         (iwmmxt_wpackwss): Likewise.
1096         (iwmmxt_wpackdss): Likewise.
1097         (iwmmxt_wpackhus): Likewise.
1098         (iwmmxt_wpackwus): Likewise.
1099         (iwmmxt_wpackdus): Likewise.
1100         (iwmmxt_wunpckihb): Likewise.
1101         (iwmmxt_wunpckihh): Likewise.
1102         (iwmmxt_wunpckihw): Likewise.
1103         (iwmmxt_wunpckilb): Likewise.
1104         (iwmmxt_wunpckilh): Likewise.
1105         (iwmmxt_wunpckilw): Likewise.
1106         (iwmmxt_wunpckehub): Likewise.
1107         (iwmmxt_wunpckehuh): Likewise.
1108         (iwmmxt_wunpckehuw): Likewise.
1109         (iwmmxt_wunpckehsb): Likewise.
1110         (iwmmxt_wunpckehsh): Likewise.
1111         (iwmmxt_wunpckehsw): Likewise.
1112         (iwmmxt_wunpckelub): Likewise.
1113         (iwmmxt_wunpckeluh): Likewise.
1114         (iwmmxt_wunpckeluw): Likewise.
1115         (iwmmxt_wunpckelsb): Likewise.
1116         (iwmmxt_wunpckelsh): Likewise.
1117         (iwmmxt_wunpckelsw): Likewise.
1118         (ror<mode>3): Likewise.
1119         (ashr<mode>3_iwmmxt): Likewise.
1120         (lshr<mode>3_iwmmxt): Likewise.
1121         (ashl<mode>3_iwmmxt): Likewise.
1122         (ror<mode>3_di): Likewise.
1123         (ashr<mode>3_di): Likewise.
1124         (lshr<mode>3_di): Likewise.
1125         (ashl<mode>3_di): Likewise.
1126         (iwmmxt_wmadds): Likewise.
1127         (iwmmxt_wmaddu): Likewise.
1128         (iwmmxt_tmia): Likewise.
1129         (iwmmxt_tmiaph): Likewise.
1130         (iwmmxt_tmiabb): Likewise.
1131         (iwmmxt_tmiatb): Likewise.
1132         (iwmmxt_tmiabt): Likewise.
1133         (iwmmxt_tmiatt): Likewise.
1134         (iwmmxt_tmovmskb): Likewise.
1135         (iwmmxt_tmovmskh): Likewise.
1136         (iwmmxt_tmovmskw): Likewise.
1137         (iwmmxt_waccb): Likewise.
1138         (iwmmxt_wacch): Likewise.
1139         (iwmmxt_waccw): Likewise.
1140         (iwmmxt_waligni): Likewise.
1141         (iwmmxt_walignr): Likewise.
1142         (iwmmxt_walignr0): Likewise.
1143         (iwmmxt_walignr1): Likewise.
1144         (iwmmxt_walignr2): Likewise.
1145         (iwmmxt_walignr3): Likewise.
1146         (iwmmxt_wsadb): Likewise.
1147         (iwmmxt_wsadh): Likewise.
1148         (iwmmxt_wsadbz): Likewise.
1149         (iwmmxt_wsadhz): Likewise.
1150         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
1151         (iwmmxt_wabsdiffb): Likewise.
1152         (iwmmxt_wabsdiffh): Likewise.
1153         (iwmmxt_wabsdiffw): Likewise.
1154         (iwmmxt_waddsubhx): Likewise
1155         (iwmmxt_wsubaddhx): Likewise.
1156         (addc<mode>3): Likewise.
1157         (iwmmxt_avg4): Likewise.
1158         (iwmmxt_avg4r): Likewise.
1159         (iwmmxt_wmaddsx): Likewise.
1160         (iwmmxt_wmaddux): Likewise.
1161         (iwmmxt_wmaddsn): Likewise.
1162         (iwmmxt_wmaddun): Likewise.
1163         (iwmmxt_wmulwsm): Likewise.
1164         (iwmmxt_wmulwum): Likewise.
1165         (iwmmxt_wmulsmr): Likewise.
1166         (iwmmxt_wmulumr): Likewise.
1167         (iwmmxt_wmulwsmr): Likewise.
1168         (iwmmxt_wmulwumr): Likewise.
1169         (iwmmxt_wmulwl): Likewise.
1170         (iwmmxt_wqmulm): Likewise.
1171         (iwmmxt_wqmulwm): Likewise.
1172         (iwmmxt_wqmulmr): Likewise.
1173         (iwmmxt_wqmulwmr): Likewise.
1174         (iwmmxt_waddbhusm): Likewise.
1175         (iwmmxt_waddbhusl): Likewise.
1176         (iwmmxt_wqmiabb): Likewise.
1177         (iwmmxt_wqmiabt): Likewise.
1178         (iwmmxt_wqmiatb): Likewise.
1179         (iwmmxt_wqmiatt): Likewise.
1180         (iwmmxt_wqmiabbn): Likewise.
1181         (iwmmxt_wqmiabtn): Likewise.
1182         (iwmmxt_wqmiatbn): Likewise.
1183         (iwmmxt_wqmiattn): Likewise.
1184         (iwmmxt_wmiabb): Likewise.
1185         (iwmmxt_wmiabt): Likewise.
1186         (iwmmxt_wmiatb): Likewise.
1187         (iwmmxt_wmiatt): Likewise.
1188         (iwmmxt_wmiabbn): Likewise.
1189         (iwmmxt_wmiabtn): Likewise.
1190         (iwmmxt_wmiatbn): Likewise.
1191         (iwmmxt_wmiattn): Likewise.
1192         (iwmmxt_wmiawbb): Likewise.
1193         (iwmmxt_wmiawbt): Likewise.
1194         (iwmmxt_wmiawtb): Likewise.
1195         (iwmmxt_wmiawtt): Likewise.
1196         (iwmmxt_wmiawbbn): Likewise.
1197         (iwmmxt_wmiawbtn): Likewise.
1198         (iwmmxt_wmiawtbn): Likewise.
1199         (iwmmxt_wmiawttn): Likewise.
1200         (iwmmxt_wmerge): Likewise.
1201         (iwmmxt_tandc<mode>3): Likewise.
1202         (iwmmxt_torc<mode>3): Likewise.
1203         (iwmmxt_torvsc<mode>3): Likewise.
1204         (iwmmxt_textrc<mode>3): Likewise.
1205         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
1206         (wmmxt_pack): Likewise.
1207         (wmmxt_mult_c1): Likewise.
1208         (wmmxt_mult_c2): Likewise.
1209         (wmmxt_alu_c1): Likewise.
1210         (wmmxt_alu_c2): Likewise.
1211         (wmmxt_alu_c3): Likewise.
1212         (wmmxt_transfer_c1): Likewise.
1213         (wmmxt_transfer_c2): Likewise.
1214         (wmmxt_transfer_c3): Likewise.
1215         (marvell_f_iwmmxt_wstr): Likewise.
1216         (marvell_f_iwmmxt_wldr): Likewise.
1218 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
1220         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
1222 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
1224         Revert:
1225         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
1226         * lra-constraints.c (need_for_split_p): Check call used hard regs
1227         living through calls.
1229         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
1230         call used regs for call insn.
1232 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
1234         PR target/57736
1235         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
1236         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
1238 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1240         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
1242 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
1244         * lra-constraints.c (need_for_split_p): Check call used hard regs
1245         living through calls.
1247 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
1249         PR target/57744
1250         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
1251         to tie with any other modes.  Eliminate Altivec vector mode tests,
1252         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
1253         code, to return 0 if testing MODE2 for a condition, if we've
1254         already tested MODE1 for the same condition.
1256 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1258         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
1259         layout.
1261 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1263         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
1264         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
1266 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1268         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
1269         Define.
1270         (aarch64_symbolic_constant_p): Remove.
1271         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
1272         static.  Fix line length and white space.
1273         (aarch64_symbolic_constant_p): Remove.
1274         * config/aarch64/predicates.md (aarch64_valid_symref):
1275         Use aarch64_classify_symbol_expression.
1277 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1279         * config/arm/constraints.md (Ts): New constraint.
1280         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
1281         16-bit encodings.
1282         (compare_scc): Use "Ts" constraint for operand 0.
1283         (ior_scc_scc): Likewise.
1284         (and_scc_scc): Likewise.
1285         (and_scc_scc_nodom): Likewise.
1286         (ior_scc_scc_cmp): Likewise for operand 7.
1287         (and_scc_scc_cmp): Likewise.
1288         * config/arm/thumb2.md (thumb2_movsi_insn):
1289         Add alternatives for 16-bit encodings.
1290         (thumb2_movhi_insn): Likewise.
1291         (thumb2_movsicc_insn): Likewise.
1292         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
1293         (thumb2_negscc): Use "Ts" constraint.
1294         Move mvn instruction outside cond_exec block.
1295         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
1296         for 16-bit encodings.
1298 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1300         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
1301         encoding.
1302         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
1303         (mulsi3subsi): Likewise.
1304         (mulsidi3adddi): Likewise.
1305         (mulsidi3_v6): Likewise.
1306         (umulsidi3_v6): Likewise.
1307         (umulsidi3adddi_v6): Likewise.
1308         (smulsi3_highpart_v6): Likewise.
1309         (umulsi3_highpart_v6): Likewise.
1310         (mulhisi3tb): Likewise.
1311         (mulhisi3bt): Likewise.
1312         (mulhisi3tt): Likewise.
1313         (maddhisi4): Likewise.
1314         (maddhisi4tb): Likewise.
1315         (maddhisi4tt): Likewise.
1316         (maddhidi4): Likewise.
1317         (maddhidi4tb): Likewise.
1318         (maddhidi4tt): Likewise.
1319         (zeroextractsi_compare0_scratch): Likewise.
1320         (insv_zero): Likewise.
1321         (insv_t2): Likewise.
1322         (anddi_notzesidi_di): Likewise.
1323         (anddi_notsesidi_di): Likewise.
1324         (andsi_notsi_si): Likewise.
1325         (iordi_zesidi_di): Likewise.
1326         (xordi_zesidi_di): Likewise.
1327         (andsi_iorsi3_notsi): Likewise.
1328         (smax_0): Likewise.
1329         (smax_m1): Likewise.
1330         (smin_0): Likewise.
1331         (not_shiftsi): Likewise.
1332         (unaligned_loadsi): Likewise.
1333         (unaligned_loadhis): Likewise.
1334         (unaligned_loadhiu): Likewise.
1335         (unaligned_storesi): Likewise.
1336         (unaligned_storehi): Likewise.
1337         (extv_reg): Likewise.
1338         (extzv_t2): Likewise.
1339         (divsi3): Likewise.
1340         (udivsi3): Likewise.
1341         (arm_zero_extendhisi2addsi): Likewise.
1342         (arm_zero_extendqisi2addsi): Likewise.
1343         (compareqi_eq0): Likewise.
1344         (arm_extendhisi2_v6): Likewise.
1345         (arm_extendqisi2addsi): Likewise.
1346         (arm_movt): Likewise.
1347         (thumb2_ldrd): Likewise.
1348         (thumb2_ldrd_base): Likewise.
1349         (thumb2_ldrd_base_neg): Likewise.
1350         (thumb2_strd): Likewise.
1351         (thumb2_strd_base): Likewise.
1352         (thumb2_strd_base_neg): Likewise.
1353         (arm_negsi2): Add alternative for 16-bit encoding.
1354         (arm_one_cmplsi2): Likewise.
1356 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1358         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
1359         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
1360         (movdfcc): Likewise.
1361         * config/arm/vfp.md (*thumb2_movsf_vfp):
1362         Disable predication for arm_restrict_it.
1363         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
1364         (*thumb2_movdfcc_vfp): Likewise.
1365         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
1366         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
1367         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
1368         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
1369         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
1370         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
1371         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
1372         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
1373         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
1374         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
1375         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
1376         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
1377         Disable predication for arm_restrict_it.
1379 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
1381         * config/i386/bmiintrin.h (_bextr_u32): New.
1382         (_bextr_u64): Ditto.
1384 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
1386         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
1387         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
1388         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
1389         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
1390         * config/mips/n32-elf.h: ...this new file.
1392 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
1394         PR target/57224
1395         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
1396         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
1398 2013-06-27  Catherine Moore <clm@codesourcery.com>
1400         * config/mips/mips-tables.opt: Regenerate.
1401         * config/mips/mips-cpus.def: Add m14ke and m14kec.
1402         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
1403         * doc/invoke.texi: Add -m14kc.
1405 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
1407         PR target/57623
1408         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
1409         constraints of operand 1 and 2.
1411         PR target/57623
1412         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
1413         to match RTL canonicalization.  Swap predicates and
1414         constraints of operand 1 and 2.
1416 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
1418         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
1419         Process OP_INOUT regs for splitting too.
1421 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
1423         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
1424         decl before the loop, initialize to NULL.
1425         (vectorizable_load): Initialize ptr_incr to NULL.
1427 2013-06-27  Martin Jambor  <mjambor@suse.cz>
1429         PR lto/57208
1430         * ipa-ref.h (ipa_maybe_record_reference): Declare.
1431         * ipa-ref.c (ipa_maybe_record_reference): New function.
1432         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
1433         * ipa-cp.c (create_specialized_node): Record potential references from
1434         aggvals.
1435         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
1437 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
1439         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
1440         parameter 'mode' of type 'enum machine_mode mode'; change to pass
1441         'mode' to force_reg.
1442         (aarch64_add_offset): Update calls to aarch64_force_temporary.
1443         (aarch64_expand_mov_immediate): Likewise.
1445 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
1447         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
1448         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
1450 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1452         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
1453         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1454         (struct machine_function): Add tbegin_p.
1455         (s390_canonicalize_comparison): Fold CC mode compares to
1456         conditional jump if possible.
1457         (s390_emit_jump): Return the emitted jump.
1458         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
1459         Handle CCRAWmode compares.
1460         (s390_option_override): Default to -mhtm if available.
1461         (s390_reg_clobbered_rtx): Handle floating point regs as well.
1462         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
1463         FPRs instead of df_regs_ever_live_p.
1464         (s390_optimize_nonescaping_tx): New function.
1465         (s390_init_frame_layout): Extend clobbered_regs array to cover
1466         FPRs as well.
1467         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
1468         (s390_expand_tbegin): New function.
1469         (enum s390_builtin): New enum definition.
1470         (code_for_builtin): New array definition.
1471         (s390_init_builtins): New function.
1472         (s390_expand_builtin): New function.
1473         (TARGET_INIT_BUILTINS): Define.
1474         (TARGET_EXPAND_BUILTIN): Define.
1475         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
1476         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
1477         (s390_alc_comparison): Likewise.
1478         * config/s390/s390-modes.def: Add CCRAWmode.
1479         * config/s390/s390.h (processor_flags): Add PF_TX.
1480         (TARGET_CPU_HTM): Define macro.
1481         (TARGET_HTM): Define macro.
1482         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
1483         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
1484         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1485         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
1486         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
1487         (TBEGIN_MASK, TBEGINC_MASK): New constants.
1488         ("*cc_to_int"): Move up.
1489         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
1490         constants other than 0.
1491         ("*ccraw_to_int"): New insn and splitter definition.
1492         ("tbegin", "tbegin_nofloat", "tbegin_retry")
1493         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
1494         ("tx_assist"): New expander.
1495         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
1496         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
1497         * config/s390/s390.opt: Add -mhtm option.
1498         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
1499         * config/s390/htmxlintrin.h: New file.
1500         * config/s390/htmintrin.h: New file.
1501         * config/s390/s390intrin.h: New file.
1502         * doc/extend.texi: Document htm builtins.
1503         * config.gcc: Add the new header files to extra_headers.
1505 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
1507         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
1508         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
1510 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
1511             Pat Haugen <pthaugen@us.ibm.com>
1512             Peter Bergner <bergner@vnet.ibm.com>
1514         * config/rs6000/power8.md: New.
1515         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
1516         setting for power8 entry.
1517         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
1518         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
1519         test for Power4/Power5 only.
1520         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
1521         support.
1522         (force_new_group): Adjust comment.
1523         * config/rs6000/rs6000.md: Include power8.md.
1525 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
1527         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
1528         * config/arm/arm-protos.h (arm_max_conditional_execute): New
1529         declaration.
1530         (tune_params): Update comment.
1531         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
1532         (arm_max_conditional_execute): New function.
1533         (thumb2_final_prescan_insn): Use max_insn_skipped and
1534         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
1536 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
1538         PR tree-optimization/57705
1539         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
1540         SSA_NAME step, provided that it is not defined inside the loop.
1541         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
1542         (get_initial_def_for_induction): Handle SSA_NAME IV step.
1544 2013-06-25  Martin Jambor  <mjambor@suse.cz>
1546         PR middle-end/57670
1547         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
1548         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
1549         calls in the dump.
1550         (ipa_note_param_call): Initialize member_ptr flag.
1551         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
1552         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
1553         (ipa_write_indirect_edge_info): Stream member_ptr flag.
1554         (ipa_read_indirect_edge_info): Likewise.
1556 2013-06-25  Richard Biener  <rguenther@suse.de>
1558         PR middle-end/56977
1559         * passes.c (init_optimization_passes): Move pass_fold_builtins
1560         and pass_dce earlier with -Og.
1562 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
1564         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
1565         <BIT_FIELD_REF>: Remove trailing TAB.
1566         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
1567         remove blank line.
1569 2013-06-24  Martin Jambor  <mjambor@suse.cz>
1571         PR tree-optimization/57358
1572         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
1573         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
1574         (ipa_analyze_params_uses): Generate pessimistic info when true.
1576 2013-06-24  Martin Jambor  <mjambor@suse.cz>
1578         PR tree-optimization/57539
1579         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
1580         global.inlined_to of the new node to it.  All callers changed.
1581         * ipa-inline-transform.c (clone_inlined_nodes): New variable
1582         inlining_into, pass it to cgraph_clone_node.
1583         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
1584         ipa_free_edge_args_substructures.
1585         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
1586         rdesc linked list.  Do not assert rdesc edges have inlined caller.
1587         Assert we have found an rdesc in the rdesc list.
1589 2013-06-24  Richard Biener  <rguenther@suse.de>
1591         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
1592         (pointer_set_lookup): Declare.
1593         (class pointer_map): New template class implementing a
1594         generic pointer to T map.
1595         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
1596         pointer_map<T>::contains, pointer_map<T>::insert,
1597         pointer_map<T>::traverse): New functions.
1598         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
1599         (pointer_set_lookup): New function.
1600         (pointer_set_contains): Use pointer_set_lookup.
1601         (pointer_set_insert): Likewise.
1602         (insert_aux): Remove.
1603         (struct pointer_map_t): Embed a pointer_set_t.
1604         (pointer_map_create): Adjust.
1605         (pointer_map_destroy): Likewise.
1606         (pointer_map_contains): Likewise.
1607         (pointer_map_insert): Likewise.
1608         (pointer_map_traverse): Likewise.
1609         * tree-streamer.h (struct streamer_tree_cache_d): Use a
1610         pointer_map<unsigned> instead of a pointer_map_t.
1611         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
1612         (streamer_tree_cache_lookup): Likewise.
1613         (streamer_tree_cache_create): Likewise.
1614         (streamer_tree_cache_delete): Likewise.
1615         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
1616         pointer_map<unsigned> instead of a pointer_map_t.
1617         (lto_init_tree_ref_encoder): Adjust.
1618         (lto_destroy_tree_ref_encoder): Likewise.
1619         * lto-section-out.c (lto_output_decl_index): Likewise.
1620         (lto_record_function_out_decl_state): Likewise.
1621         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
1623 2013-06-24  Richard Biener  <rguenther@suse.de>
1625         PR tree-optimization/57488
1626         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
1628 2013-06-24  Alan Modra  <amodra@gmail.com>
1630         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
1631         (gen_easy_altivec_constant): Likewise.
1632         * config/rs6000/predicates.md (easy_vector_constant_add_self,
1633         easy_vector_constant_msb): Likewise.
1635 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
1637         PR target/57688
1638         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
1639         add missing return true.
1641 2013-06-23  Oleg Endo <olegendo@gcc.gnu.org>
1643         PR target/52483
1644         * config/sh/predicates.md (general_extend_operand): Invoke
1645         general_movsrc_operand for memory operands.
1646         (general_movsrc_operand): Allow reg+reg addressing, do not use
1647         general_operand for memory operands.
1649 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
1651         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
1652         when current target options does not apply.
1653         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
1654         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
1655         * config/i386/bmiintrin.h: Pass appropriate target
1656         attributes to header.
1657         * config/i386/mmintrin.h: Ditto.
1658         * config/i386/nmmintrin.h: Ditto.
1659         * config/i386/avx2intrin.h: Ditto.
1660         * config/i386/fxsrintrin.h: Ditto.
1661         * config/i386/tbmintrin.h: Ditto.
1662         * config/i386/xsaveintrin.h: Ditto.
1663         * config/i386/f16cintrin.h: Ditto.
1664         * config/i386/xtestintrin.h: Ditto.
1665         * config/i386/xsaveoptintrin.h: Ditto.
1666         * config/i386/bmi2intrin.h: Ditto.
1667         * config/i386/lzcntintrin.h: Ditto.
1668         * config/i386/smmintrin.h: Ditto.
1669         * config/i386/wmmintrin.h: Ditto.
1670         * config/i386/x86intrin.h: Remove all header include guards.
1671         * config/i386/prfchwintrin.h: Ditto.
1672         * config/i386/pmmintrin.h: Ditto.
1673         * config/i386/tmmintrin.h: Ditto.
1674         * config/i386/xmmintrin.h: Ditto.
1675         * config/i386/popcntintrin.h: Ditto.
1676         * config/i386/rdseedintrin.h: Ditto.
1677         * config/i386/ammintrin.h: Ditto.
1678         * config/i386/emmintrin.h: Ditto.
1679         * config/i386/immintrin.h: Remove all header include guards.
1680         * config/i386/fma4intrin.h: Ditto.
1681         * config/i386/lwpintrin.h: Ditto.
1682         * config/i386/xopintrin.h: Ditto.
1683         * config/i386/ia32intrin.h: Ditto.
1684         * config/i386/avxintrin.h: Ditto.
1685         * config/i386/rtmintrin.h: Ditto.
1686         * config/i386/fmaintrin.h: Ditto.
1687         * config/i386/mm3dnow.h: Ditto.
1689 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
1691         * common/config/i386/i386-common.c: Handle LZCNT.
1693 2013-06-22  Andi Kleen  <ak@linux.intel.com>
1695         * doc/extend.texi: Use __atomic_store_n instead of
1696         __atomic_store in HLE example.
1698 2013-06-22  Oleg Endo <olegendo@gcc.gnu.org>
1700         * config/sh/sh.c: Remove <cstdlib> workaround.
1702 2013-06-21  Andi Kleen  <ak@linux.intel.com>
1704         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
1706 2013-06-21  Andi Kleen  <ak@linux.intel.com>
1708         * doc/extend.texi: Document that __atomic_clear and
1709           __atomic_test_and_set should only be used with bool.
1711 2013-06-20  Jan Hubicka  <jh@suse.cz>
1713         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
1714         types_same_for_odr.
1715         * tree.c (decls_same_for_odr): New function.
1716         (same_for_edr): New function.
1717         (types_same_for_odr): New function.
1718         (get_binfo_at_offset): Use it.
1719         * tree.h (types_same_for_odr): Declare.
1721 2013-06-20  Oleg Endo <olegendo@gcc.gnu.org>
1722             Jason Merrill  <jason@redhat.com>
1724         * system.h: Include <cstdlib> as well as <stdlib.h>.
1726 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
1728         PR target/57655
1729         * config/i386/i386.c (construct_container): Report error if
1730         long double is used with disabled x87 float returns.
1732 2013-06-20  Jan Hubicka  <jh@suse.cz>
1734         * lto-cgraph.c (input_symtab): Do not set cgraph state.
1736 2013-06-20  Joern Rennecke <joern.rennecke@embecosm.com>
1738         PR rtl-optimization/57425
1739         PR rtl-optimization/57569
1740         * alias.c (write_dependence_p): Remove parameters mem_mode and
1741         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
1742         Changed all callers.
1743         (canon_anti_dependence): Get comments and semantics in sync.
1744         Add parameter mem_canonicalized.  Changed all callers.
1745         * rtl.h (canon_anti_dependence): Update prototype.
1747 2013-06-20  Richard Biener  <rguenther@suse.de>
1749         * data-streamer-in.c (streamer_read_uhwi): Optimize single
1750         byte case, inline streamer_read_uchar and defer section
1751         overrun check.
1753 2013-06-20  Richard Biener  <rguenther@suse.de>
1755         PR tree-optimization/57584
1756         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
1757         SSA names into the expanded expression that take part in
1758         abnormal coalescing.
1760 2013-06-19  Sharad Singhai  <singhai@google.com>
1762         * gcov.c (print_usage): Handle new option.
1763         (process_args): Ditto.
1764         (get_gcov_intermediate_filename): New function.
1765         (output_intermediate_file): New function.
1766         (output_gcov_file): New function
1767         (generate_results): Handle new option.
1768         (release_function): Relase demangled name.
1769         (read_graph_file): Handle demangled name.
1770         (output_lines): Ditto.
1771         * doc/gcov.texi: Document gcov intermediate format.
1773 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
1775         PR bootstrap/57604
1776         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
1777         (lra_emit_add): Use the functions.  Add comment about Y as an
1778         address segment.
1780 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
1782         PR driver/57652
1783         * collect2.c (collect_atexit): New.
1784         (collect_exit): Delete.
1785         (main): Register collect_atexit with atexit.
1786         (collect_wait): Change collect_exit to exit.
1787         (do_wait): Same.
1788         * collect2.h (collect_exit): Delete.
1789         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
1791 2013-06-19  Wei Mi  <wmi@google.com>
1793         PR rtl-optimization/57518
1794         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
1795         if regno is used in paradoxical subreg.
1796         (update_equiv_regs): Check pdx_subregs[regno] before
1797         set a reg to be equivalent with a mem.
1799 2013-06-19  Matthias Klose  <doko@ubuntu.com>
1801         PR driver/57651
1802         * file-find.h (find_a_file): Add a mode parameter.
1803         * file-find.c (find_a_file): Likewise.
1804         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
1805         with X_OK for the executables.
1806         * collect2.c (main): Call find_a_file with X_OK.
1808 2013-06-19  Steve Ellcey  <sellcey@mips.com>
1810         PR target/56942
1811         * config/mips/mips.md (casesi_internal_mips16_<mode>):
1812         Use NEXT_INSN instead of next_real_insn.
1814 2013-06-19  Jan Hubicka  <jh@suse.cz>
1816         * cgraph.h (const_value_known_p): Replace by ...
1817         (ctor_for_folding): .. this one.
1818         * cgraphunit.c (process_function_and_variable_attributes): Use it.
1819         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
1820         * expr.c (expand_expr_real_1): Likewise.
1821         (string_constant): Likewise.
1822         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
1823         * ipa.c (process_references): Likewise.
1824         (symtab_remove_unreachable_nodes): Likewise.
1825         * ipa-inline-analysis.c (param_change_prob): Likewise.
1826         * gimple-fold.c (canonicalize_constructor_val): Likewise.
1827         (get_base_constructor): Likwise.
1828         * varpool.c (varpool_remove_node): Likewise.
1829         (varpool_remove_initializer): LIkewise.
1830         (dump_varpool_node): LIkwise.
1831         (const_value_known_p): Rewrite to ...
1832         (ctor_for_folding): ... this one.
1834 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
1836         PR driver/57651
1837         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
1838         PERSONALITY in $PATH derived prefixes.
1840 2013-06-19  Jeff Law  <law@redhat.com>
1842         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
1843         in comment.
1845         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
1846         (simplify_bitwise_binary): Use it to simpify certain binary ops on
1847         booleans.
1849 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
1851         * config/arm/vfp.md: Move VFP instruction classification documentation
1852         to ...
1853         * config/arm/arm.md: ... here.  Update instruction classification
1854         documentation.
1856 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
1858         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
1859         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
1860         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
1862 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
1864         PR target/57609
1865         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1866         with NEXT_INSN.  Use tablejump_p to check for jump table data
1867         insns.
1869 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
1871         PR c++/56544
1872         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
1873         that now in C++ the value is correct per the C++ standards.
1875 2013-06-19  Richard Biener  <rguenther@suse.de>
1877         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
1878         for global context.
1880 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1882         Revert:
1883         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1885         PR target/57609
1886         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1887         with next_active_insn.
1889 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
1891         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
1892         functions are inlined during failures to flag an error.
1893         * tree-inline.c (expand_call_inline): Allow the error to be flagged
1894         in early inline pass.
1896 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
1898         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
1899         in comments.
1901 2013-06-18  Julian Brown  <julian@codesourcery.com>
1903         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
1904         Permit virtual register pre-reload if !strict.
1905         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
1906         change.
1907         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
1908         prototype.
1909         * config/arm/neon.md (movmisalign<mode>): Use
1910         neon_perm_struct_or_reg_operand instead of
1911         neon_struct_or_register_operand.
1912         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
1913         neon_permissive_struct_operand instead of neon_struct_operand.
1914         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
1915         neon_vector_mem_operand.
1916         * config/arm/predicates.md (neon_struct_operand): Adjust call to
1917         neon_vector_mem_operand.
1918         (neon_permissive_struct_operand): New.
1919         (neon_struct_or_register_operand): Rename to...
1920         (neon_perm_struct_or_reg_operand): This. Adjust call to
1921         neon_vector_mem_operand.
1923 2013-06-18  Richard Biener  <rguenther@suse.de>
1925         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
1926         * lto-streamer.h: Include pointer-set.h.
1927         (struct lto_decl_slot): Remove.
1928         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
1929         Remove next_index entry.
1930         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1931         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1932         (lto_init_tree_ref_encoder): Adjust.
1933         (lto_destroy_tree_ref_encoder): Likewise.
1934         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1935         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1936         (lto_output_decl_index): Adjust.
1937         (lto_new_out_decl_state): Likewise.
1938         (lto_record_function_out_decl_state): Likewise.
1939         * lto-streamer-out.c (copy_function): Likewise.
1941 2013-06-18  Richard Biener  <rguenther@suse.de>
1943         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
1944         * cgraphunit.c: Include cfgloop.h.
1945         (init_lowered_empty_function): Initialize the loop tree.
1946         (assemble_thunk): Insert new BBs into loops.
1948 2013-06-18  Richard Biener  <rguenther@suse.de>
1950         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
1951         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
1952         the map from cache entry to cache index optional.
1953         (streamer_tree_cache_replace_tree): Adjust accordingly.
1954         (streamer_tree_cache_append): Likewise.
1955         (streamer_tree_cache_delete): Likewise.
1956         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
1957         streamer cache map from cache entry to cache index.
1958         * lto-streamer-out.c (create_output_block): Adjust.
1960 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
1962         * config/arm/arm.md (attribute "insn"): Move multiplication and
1963         division attributes to...
1964         (attribute "type"): ... here.  Remove mult.
1965         (attribute "mul32"): New attribute.
1966         (attribute "mul64"): Add umaal.
1967         (*arm_mulsi3): Update attributes.
1968         (*arm_mulsi3_v6): Likewise.
1969         (*thumb_mulsi3): Likewise.
1970         (*thumb_mulsi3_v6): Likewise.
1971         (*mulsi3_compare0): Likewise.
1972         (*mulsi3_compare0_v6): Likewise.
1973         (*mulsi_compare0_scratch): Likewise.
1974         (*mulsi_compare0_scratch_v6): Likewise.
1975         (*mulsi3addsi): Likewise.
1976         (*mulsi3addsi_v6): Likewise.
1977         (*mulsi3addsi_compare0): Likewise.
1978         (*mulsi3addsi_compare0_v6): Likewise.
1979         (*mulsi3addsi_compare0_scratch): Likewise.
1980         (*mulsi3addsi_compare0_scratch_v6): Likewise.
1981         (*mulsi3subsi): Likewise.
1982         (*mulsidi3adddi): Likewise.
1983         (*mulsi3addsi_v6): Likewise.
1984         (*mulsidi3adddi_v6): Likewise.
1985         (*mulsidi3_nov6): Likewise.
1986         (*mulsidi3_v6): Likewise.
1987         (*umulsidi3_nov6): Likewise.
1988         (*umulsidi3_v6): Likewise.
1989         (*umulsidi3adddi): Likewise.
1990         (*umulsidi3adddi_v6): Likewise.
1991         (*smulsi3_highpart_nov6): Likewise.
1992         (*smulsi3_highpart_v6): Likewise.
1993         (*umulsi3_highpart_nov6): Likewise.
1994         (*umulsi3_highpart_v6): Likewise.
1995         (mulhisi3): Likewise.
1996         (*mulhisi3tb): Likewise.
1997         (*mulhisi3bt): Likewise.
1998         (*mulhisi3tt): Likewise.
1999         (maddhisi4): Likewise.
2000         (*maddhisi4tb): Likewise.
2001         (*maddhisi4tt): Likewise.
2002         (maddhidi4): Likewise.
2003         (*maddhidi4tb): Likewise.
2004         (*maddhidi4tt): Likewise.
2005         (divsi3): Likewise.
2006         (udivsi3): Likewise.
2007         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
2008         (thumb2_mulsi_short_compare0): Likewise.
2009         (thumb2_mulsi_short_compare0_scratch): Likewise.
2010         * config/arm/arm1020e.md (1020mult1): Update attribute change.
2011         (1020mult2): Likewise.
2012         (1020mult3): Likewise.
2013         (1020mult4): Likewise.
2014         (1020mult5): Likewise.
2015         (1020mult6): Likewise.
2016         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
2017         change.
2018         (cortex_a15_mult64): Likewise.
2019         (cortex_a15_sdiv): Likewise.
2020         (cortex_a15_udiv): Likewise.
2021         * config/arm/arm1026ejs.md (mult1): Update attribute change.
2022         (mult2): Likewise.
2023         (mult3): Likewise.
2024         (mult4): Likewise.
2025         (mult5): Likewise.
2026         (mult6): Likewise.
2027         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
2028         (pj4_ir_div): Likewise.
2029         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
2030         (11_mult2): Likewise.
2031         (11_mult3): Likewise.
2032         (11_mult4): Likewise.
2033         (11_mult5): Likewise.
2034         (11_mult6): Likewise.
2035         (11_mult7): Likewise.
2036         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
2037         (cortex_a8_mla): Likewise.
2038         (cortex_a8_mull): Likewise.
2039         (cortex_a8_smulwy): Likewise.
2040         (cortex_a8_smlald): Likewise.
2041         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
2042         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
2043         (cortex_r4_mul_3): Likewise.
2044         (cortex_r4_mla_4): Likewise.
2045         (cortex_r4_mla_3): Likewise.
2046         (cortex_r4_smlald): Likewise.
2047         (cortex_r4_mull): Likewise.
2048         (cortex_r4_sdiv): Likewise.
2049         (cortex_r4_udiv): Likewise.
2050         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
2051         (cortex_a7_idiv): Likewise.
2052         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
2053         (9_mult2): Likewise.
2054         (9_mult3): Likewise.
2055         (9_mult4): Likewise.
2056         (9_mult5): Likewise.
2057         (9_mult6): Likewise.
2058         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
2059         (cortex_a53_sdiv): Likewise.
2060         (cortex_a53_udiv): Likewise.
2061         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
2062         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
2063         (mp626_mult2): Likewise.
2064         (mp626_mult3): Likewise.
2065         (mp626_mult4): Likewise.
2066         * config/arm/fa526.md (526_mult1): Update attribute change.
2067         (526_mult2): Likewise.
2068         * config/arm/arm-generic.md (mult): Update attribute change.
2069         (mult_ldsched_strongarm): Likewise.
2070         (mult_ldsched): Likewise.
2071         (multi_cycle): Likewise.
2072         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
2073         * config/arm/fa606te.md (606te_mult1): Update attribute change.
2074         (606te_mult2): Likewise.
2075         (606te_mult3): Likewise.
2076         (606te_mult4): Likewise.
2077         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
2078         (cortex_a9_mac16): Likewise.
2079         (cortex_a9_multiply): Likewise.
2080         (cortex_a9_mac): Likewise.
2081         (cortex_a9_multiply_long): Likewise.
2082         * config/arm/fa626te.md (626te_mult1): Update attribute change.
2083         (626te_mult2): Likewise.
2084         (626te_mult3): Likewise.
2085         (626te_mult4): Likewise.
2087 2013-06-18  Richard Biener  <rguenther@suse.de>
2089         PR lto/57334
2090         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
2092 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2094         PR target/57609
2095         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2096         with next_active_insn.
2098 2013-06-18  Alan Modra  <amodra@gmail.com>
2100         * config/rs6000/rs6000.h (enum data_align): New.
2101         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
2102         (DATA_ABI_ALIGNMENT): Define.
2103         (CONSTANT_ALIGNMENT): Correct comment.
2104         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
2105         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
2107 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
2109         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
2110         ATTRIBUTE_UNUSED marking.
2112 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
2114         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
2115         alternative and update.
2116         (aarch64_dup_lanedi): Delete.
2117         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
2118         * config/aarch64/aarch64-simd-builtins.def: Update.
2120 2013-06-17  Richard Biener  <rguenther@suse.de>
2122         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
2123         (lto_input_scc): Declare.
2124         (lto_input_tree_1): Likewise.
2125         (struct lto_stats_d): Add num_tree_bodies_output and
2126         num_pickle_refs_output.
2127         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
2128         (lto_read_tree_1): Split out from ...
2129         (lto_read_tree): ... this.
2130         (lto_input_scc): New function.
2131         (lto_input_tree_1): Split out from ...
2132         (lto_input_tree): ... this.  Handle LTO_tree_scc.
2133         (lto_data_in_create): Create the streamer cache without hashes.
2134         * lto-streamer-out.c (create_output_block): Create the streamer
2135         cache with hashes when not doing WPA.
2136         (lto_write_tree_1): Split out from ...
2137         (lto_write_tree): ... this.
2138         (get_symbol_initial_value): New function.
2139         (lto_output_tree_1): Split out from ...
2140         (lto_output_tree): ... this.  Write trees as series of SCCs
2141         using a DFS walk via DFS_write_tree.
2142         (struct sccs, struct scc_entry): New types.
2143         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
2144         (DFS_write_tree_body): New function.
2145         (DFS_write_tree): Likewise.
2146         (hash_tree): Likewise.
2147         (scc_entry_compare): Likewise.
2148         (hash_scc): Likewise.
2149         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
2150         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
2151         TREE_CHAIN as regular reference.
2152         (streamer_read_integer_cst): Remove.
2153         (streamer_get_pickled_tree): Adjust.
2154         * tree-streamer-out.c (streamer_write_chain): Disable streaming
2155         of DECL_EXTERNALs in BLOCK_VARS for now.
2156         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
2157         reference.
2158         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2159         Add hash value argument and record that if hashes are recorded
2160         in the cache.
2161         (streamer_tree_cache_insert_1): Adjust.
2162         (streamer_tree_cache_insert): Likewise.
2163         (streamer_tree_cache_insert_at): Rename to ...
2164         (streamer_tree_cache_replace_tree): ... this and adjust.
2165         (streamer_tree_cache_append): Adjust.
2166         (record_common_node): Likewise.
2167         (streamer_tree_cache_create): Add argument whether to
2168         record hash values together with trees.
2169         (streamer_tree_cache_delete): Adjust.
2170         * tree-streamer.h (struct streamer_tree_cache_d): Add
2171         vector of hashes.
2172         (streamer_read_integer_cst): Remove.
2173         (streamer_tree_cache_insert): Adjust.
2174         (streamer_tree_cache_append): Likewise.
2175         (streamer_tree_cache_insert_at): Rename to ...
2176         (streamer_tree_cache_replace_tree): ... this and adjust.
2177         (streamer_tree_cache_create): Add argument whether to record hashes.
2178         (streamer_tree_cache_get): Rename to ...
2179         (streamer_tree_cache_get_tree): ... this.
2180         (streamer_tree_cache_get_hash): New function.
2181         * tree.c (cache_integer_cst): New function.
2182         * tree.h (cache_integer_cst): Declare.
2183         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
2184         * lto-symtab.c (lto_varpool_replace_node): Only release
2185         DECL_INITIAL of non-prevailing decls.
2186         * varpool.c (varpool_remove_initializer): Do not release
2187         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
2189 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
2191         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
2192         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
2193         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
2194         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
2195         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
2196         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
2197         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
2198         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
2199         instead of TARGET_64BIT.
2200         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
2201         Require ISA_HAS_<D>DIV.
2203 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
2205         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
2206         (mips*-*-linux*): Move default with_llsc setting to where other
2207         defaults are set.
2208         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
2209         with_arch block.
2210         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
2211         Likewise.  Remove default with_tune setting.  Move default float
2212         setting to its own block.  Handle with_llsc in the same block as above.
2214 2013-06-16  Joern Rennecke <joern.rennecke@embecosm.com>
2216         PR rtl-optimization/57425
2217         PR rtl-optimization/57569
2218         * alias.c (write_dependence_p): Add new parameters mem_mode,
2219         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
2220         Changed all callers.
2221         (canon_anti_dependence): New function.
2222         * cse.c (check_dependence): Use canon_anti_dependence.
2223         * cselib.c (cselib_invalidate_mem): Likewise.
2224         * rtl.h (canon_anti_dependence): Declare.
2226 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
2228         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
2229         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
2230         ".set mips3" for 64-bit targets.
2232 2013-06-15  Dehao Chen  <dehao@google.com>
2234         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
2235         * gimple-low.c (gimple_check_call_matching_types): Likewise.
2236         (gimple_check_call_args): Likewise.
2237         * value-prof.c (check_ic_target): Likewise.
2238         * ipa-inline.c (early_inliner): Likewise.
2239         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
2240         * cgraph.c (cgraph_create_edge_1): Likewise.
2241         (cgraph_make_edge_direct): Likewise.
2243 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
2245         PR target/57615
2246         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
2247         rs6000_output_move_128bit to handle emitting quad memory
2248         operations.  Set attribute length to 8 bytes.
2250 2013-06-14  Vidya Praveen <vidyapraveen@arm.com>
2252         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
2253         New pattern.
2254         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
2255         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
2256         (aarch64_<su>mlsl<mode>): Likewise.
2258 2013-06-14  Mike Stump  <mikestump@comcast.net>
2260         * Makefile.in (TARGET_H): Add insn-codes.h.
2262 2013-06-14  Alan Modra  <amodra@gmail.com>
2264         PR middle-end/57134
2265         PR middle-end/57586
2266         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
2267         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
2268         bitfield expansion when EXPAND_MEMORY.
2269         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
2271 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
2273         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2274         test for clearing quad memory on 32-bit later.
2276 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
2278         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
2279         (fold_negate_expr): Likewise.
2280         (fold_real_zero_addition_p): Handle vectors.
2281         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
2283 2013-06-14  Alan Modra  <amodra@gmail.com>
2285         * varasm.c (force_const_mem): Revert 2013-06-07 change.
2287 2013-06-13  Jan Hubicka  <jh@suse.cz>
2289         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2290         Local comdats are not externally visible.
2291         * symtab.c (dump_symtab_base): Dump externally visible.
2292         (verify_symtab_base): Verify back links in the symtab hash.
2294 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
2296         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
2297         CONVERT_EXPR as equal nodes.
2299 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
2301         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
2303 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
2305         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
2306         Generalize to complex and vector.
2307         * tree.c (build_all_ones_cst): New function.
2308         * tree.h (build_all_ones_cst): Declare it.
2310 2013-06-13  Alan Modra  <amodra@gmail.com>
2312         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
2313         * config/rs6000/rs6000.md (signbittf2): New insn.
2314         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
2315         (abstf2_internal, cmptf_internal2): Likewise.
2316         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
2318 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2319             Pat Haugen <pthaugen@us.ibm.com>
2320             Peter Bergner <bergner@vnet.ibm.com>
2322         * config/rs6000/rs6000.c (emit_load_locked): Add support for
2323         power8 byte, half-word, and quad-word atomic instructions.
2324         (emit_store_conditional): Likewise.
2325         (rs6000_expand_atomic_compare_and_swap): Likewise.
2326         (rs6000_expand_atomic_op): Likewise.
2328         * config/rs6000/sync.md (larx): Add new modes for power8.
2329         (stcx): Likewise.
2330         (AINT): New mode iterator to include TImode as well as normal
2331         integer modes on power8.
2332         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
2333         that VSX registers are not considered.  Use AINT mode iterator
2334         instead of INT1 to allow inclusion of quad word atomic operations
2335         on power8.
2336         (load_locked<mode>): Likewise.
2337         (store_conditional<mode>): Likewise.
2338         (atomic_compare_and_swap<mode>): Likewise.
2339         (atomic_exchange<mode>): Likewise.
2340         (atomic_nand<mode>): Likewise.
2341         (atomic_fetch_<fetchop_name><mode>): Likewise.
2342         (atomic_nand_fetch<mode>): Likewise.
2343         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
2344         each type.
2345         (ATOMIC): On power8, add QImode, HImode modes.
2346         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
2347         modes that promote to SImode.
2348         (load_lockedti): Convert TImode arguments to PTImode, so that we
2349         get a guaranteed even/odd register pair.
2350         (load_lockedpti): Likewise.
2351         (store_conditionalti): Likewise.
2352         (store_conditionalpti): Likewise.
2354         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
2355         atomic load/store instructions.
2356         (HSI): Likewise.
2358 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
2360         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
2361         loads.
2362         (insn_count): New attribute, with most cases extracted from...
2363         (length): ...here.  Redefine most cases in terms of insn_count.
2364         (single_insn): Delete.
2365         (can_delay): Use insn_count to check for single instructions.
2366         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
2367         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
2368         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
2369         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
2370         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
2371         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
2372         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
2373         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
2374         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
2375         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
2376         rather than "length".
2377         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
2378         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
2379         Use "insn_count" rather than "length".
2380         * config/mips/mips-dsp.md
2381         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
2382         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
2383         length attributes.
2385 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
2387         PR tree-optimization/57361
2388         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
2390 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
2392         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
2393         to split.
2394         (aarch64_simd_combine<mode>): New instruction expansion.
2395         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
2396         function prototype.
2397         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
2398         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
2400 2013-06-12  Jan Hubicka  <jh@suse.cz>
2402         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
2403         decl has when in streaming stage.
2404         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
2405         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
2407 2013-06-12  Roland Stigge <stigge@antcom.de>
2409         PR target/57578
2410         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
2412 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
2414         PR tree-optimization/57537
2415         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
2416         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
2418 2013-06-12  Richard Biener  <rguenther@suse.de>
2420         * data-streamer.h (streamer_write_char_stream): CSE
2421         obs->current_pointer.
2422         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
2423         streamer_write_char_stream manually and optimize the resulting loop.
2424         (streamer_write_hwi_stream): Likewise.
2426 2013-06-12  Jan Hubicka  <jh@suse.cz>
2428         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
2429         * cgraph.h (varpool_create_empty_node): Declare.
2430         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
2431         duplicated nodes.
2432         * symtab.c (symtab_unregister_node): Be lax about missin entries
2433         in node hash.
2434         (symtab_get_node): Update comment.
2435         * varpool.c (varpool_create_empty_node): Break out from ...
2436         (varpool_node_for_decl): ... here.
2437         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
2439 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
2441         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
2442         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
2443         part.  Use straight-line flow at the end.
2444         <COMPONENT_REF>: Remove superfluous else.
2445         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
2447 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
2449         PR target/56564
2450         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
2451         target hook even for !TREE_PUBLIC decls.  If no resolution info
2452         is available, return false for common and external decls.
2454 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2456         * config/rl78/constraints.md (U): New constraint.
2457         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
2458         valloc attribute.
2460 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
2462         PR target/57589
2463         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
2464         to allow returning address to AT_PLATFORM name.
2466 2013-06-11  Jan Hubicka  <jh@suse.cz>
2468         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
2469         * cgraph.h (symtab_node_base): Add weakref flag.
2470         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
2471         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
2472         (output_weakrefs): Use weakref flag.
2473         * fold-const.c (simple_operand_p): Handle WEAK.
2474         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
2475         * ipa.c (varpool_externally_visible_p): Drop weakref.
2476         (function_and_variable_visibility): Update comment; fix weakref
2477         sanity checks; do not clear DECL_WEAK on them.
2478         * lto-cgraph.c (lto_output_node): update.
2479         (lto_output_varpool_node): Update.
2480         (input_overwrite_node): Update.
2481         (input_node): Update.
2482         (input_varpool_node): Update.
2483         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
2484         (lto_symtab_merge_symbols): Add sanity check.
2485         (lto_symtab_prevailing_decl): Do not special case weakrefs.
2486         * passes.c (rest_of_decl_compilation): Set static flag, too.
2487         * symtab.c (dump_symtab_base): Dump weakref.
2488         (verify_symtab_base): Sanity check weakrefs.
2489         (symtab_make_decl_local): Remove duplicated code.
2490         (symtab_alias_ultimate_target): Simplify.
2491         * varpool.c (varpool_create_variable_alias): Set weakref flag.
2493 2013-06-11  DJ Delorie  <dj@redhat.com>
2495         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
2496         (rl78_unwind_word_mode): New.
2498 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
2500         * final.c (debug_prefix_maps): Make static.
2502 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
2504         * function.c (initial_trampoline): Remove stray copy.
2506 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
2508         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
2510 2013-06-11  Martin Jambor  <mjambor@suse.cz>
2512         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
2513         within bounds at the beginning of the function.
2515 2013-06-11  Alan Modra  <amodra@gmail.com>
2517         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
2518         reporting.
2519         (get_named_section): Don't NULL !DECL_P decl.
2521 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
2523         * doc/invoke.texi (core-avx2): Document.
2524         (slm): Likewise.
2525         (atom): Updated with MOVBE.
2527 2013-06-11  Richard Biener  <rguenther@suse.de>
2529         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
2531 2013-06-11  Anton Blanchard  <anton@samba.org>
2533         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
2534         correct shift value in little-endian mode.
2536 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
2538         PR target/56564
2539         * varasm.c (get_variable_align): Move #endif to the right place.
2541 2013-06-10  Cary Coutant  <ccoutant@google.com>
2543         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
2544         for hash so that hash table traversal order is deterministic.
2546 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2547             Pat Haugen <pthaugen@us.ibm.com>
2548             Peter Bergner <bergner@vnet.ibm.com>
2550         * config/rs6000/vector.md (GPR move splitter): Do not split moves
2551         of vectors in GPRS if they are direct moves or quad word load or
2552         store moves.
2554         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
2555         declaration.
2556         (direct_move_p): Likewise.
2557         (quad_load_store_p): Likewise.
2559         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
2560         classes into bins based on the physical register type.
2561         (reg_class_to_reg_type): Likewise.
2562         (IS_STD_REG_TYPE): Likewise.
2563         (IS_FP_VECT_REG_TYPE): Likewise.
2564         (reload_fpr_gpr): Arrays to determine what insn to use if we can
2565         use direct move instructions.
2566         (reload_gpr_vsx): Likewise.
2567         (reload_vsx_gpr): Likewise.
2568         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
2569         information that is a simplification of register classes.  Also
2570         precalculate direct move reload helpers.
2571         (direct_move_p): New function to return true if the operation can
2572         be done as a direct move instruciton.
2573         (quad_load_store_p): New function to return true if the operation
2574         is a quad memory operation.
2575         (rs6000_legitimize_address): If quad memory, only allow register
2576         indirect for TImode addresses.
2577         (rs6000_legitimate_address_p): Likewise.
2578         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
2579         (rs6000_reload_register_type): Likewise.
2580         (register_to_reg_type): Return register type.
2581         (rs6000_secondary_reload_simple_move): New helper function for
2582         secondary reload and secondary memory needed to identify anything
2583         that is a simple move, and does not need reloading.
2584         (rs6000_secondary_reload_direct_move): New helper function for
2585         secondary reload to identify cases that can be done with several
2586         instructions via the direct move instructions.
2587         (rs6000_secondary_reload_move): New helper function for secondary
2588         reload to identify moves between register types that can be done.
2589         (rs6000_secondary_reload): Add support for quad memory operations
2590         and for direct move.
2591         (rs6000_secondary_memory_needed): Likewise.
2592         (rs6000_debug_secondary_memory_needed): Change argument names.
2593         (rs6000_output_move_128bit): New function to return the move to
2594         use for 128-bit moves, including knowing about the various
2595         limitations of quad memory operations.
2597         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
2598         memory operations.  call rs6000_output_move_128bit for the actual
2599         instruciton(s) to generate.
2600         (vsx_movti_64bit): Likewise.
2602         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
2603         (UNSPEC_P8V_MTVSRWZ): Likewise.
2604         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
2605         (UNSPEC_P8V_MTVSRD): Likewise.
2606         (UNSPEC_P8V_XXPERMDI): Likewise.
2607         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
2608         (UNSPEC_FUSION_GPR): Likewise.
2609         (FMOVE128_GPR): New iterator for direct move.
2610         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
2611         (f32_sv): Likewise.
2612         (f32_dm): Likewise.
2613         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
2614         loads and direct move instructions.
2615         (zero_extendsidi2_lfiwzx): Likewise.
2616         (extendsidi2_lfiwax): Likewise.
2617         (extendsidi2_nocell): Likewise.
2618         (floatsi<mode>2_lfiwax): Likewise.
2619         (lfiwax): Likewise.
2620         (floatunssi<mode>2_lfiwzx): Likewise.
2621         (lfiwzx): Likewise.
2622         (fix_trunc<mode>_stfiwx): Likewise.
2623         (fixuns_trunc<mode>_stfiwx): Likewise.
2624         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
2625         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
2626         (parity<mode>2_cmpb): Set length/type attr.
2627         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
2628         for 'mr.' to fast_compare.
2629         (bpermd_<mode>): Change type attr to popcnt.
2630         (p8_fmrgow_<mode>): New insns for power8 direct move support.
2631         (p8_mtvsrwz_1): Likewise.
2632         (p8_mtvsrwz_2): Likewise.
2633         (reload_fpr_from_gpr<mode>): Likewise.
2634         (p8_mtvsrd_1): Likewise.
2635         (p8_mtvsrd_2): Likewise.
2636         (p8_xxpermdi_<mode>): Likewise.
2637         (reload_vsx_from_gpr<mode>): Likewise.
2638         (reload_vsx_from_gprsf): Likewise.
2639         (p8_mfvsrd_3_<mode>): LIkewise.
2640         (reload_gpr_from_vsx<mode>): Likewise.
2641         (reload_gpr_from_vsxsf): Likewise.
2642         (p8_mfvsrd_4_disf): Likewise.
2643         (multi-word GPR splits): Do not split direct moves or quad memory
2644         operations.
2646 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
2648         * tree-into-ssa.c (interesting_blocks): Make static.
2650 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
2652         PR target/56564
2653         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
2654         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
2655         Use DATA_ABI_ALIGNMENT for that case instead if defined.
2656         (get_variable_align): New function.
2657         (get_variable_section, emit_bss, emit_common,
2658         assemble_variable_contents, place_block_symbol): Use
2659         get_variable_align instead of DECL_ALIGN.
2660         (assemble_noswitch_variable): Add align argument, use it
2661         instead of DECL_ALIGN.
2662         (assemble_variable): Adjust caller.  Use get_variable_align
2663         instead of DECL_ALIGN.
2664         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
2665         caller.
2666         (DATA_ABI_ALIGNMENT): Define.
2667         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
2668         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
2669         opt is false, only return the psABI mandated alignment increase.
2670         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
2671         (DATA_ABI_ALIGNMENT): ... this.
2672         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
2673         (DATA_ABI_ALIGNMENT): ... this.
2674         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
2675         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
2676         (DATA_ABI_ALIGNMENT): ... this.
2677         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
2678         * doc/tm.texi: Regenerated.
2680 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
2682         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
2683         cmp_code to construct REG_EQUAL note.
2685 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
2687         PR target/57568
2688         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
2689         that operands[2] doesn't overlap with operands[0].
2691 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
2692             Jan Hubicka  <jh@suse.cz>
2694         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
2695         hack to mark symbols as used.
2697 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
2699         PR rtl-optimization/57559
2700         * lra-constraints.c (process_alt_operands): Don't discourage
2701         memory with known offset for offsetable memory constraint.
2702         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
2704 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
2706         * varasm.c (struct oc_local_state): Reorder fields.
2707         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
2708         and adjust accordingly.
2709         (output_constructor): Reorder initialization code and adjust call to
2710         output_constructor_bitfield.
2712 2013-06-07  Jan Hubicka  <jh@suse.cz>
2714         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
2716 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
2718         * tree-object-size.c (unknown): Make const.
2720 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2722         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
2723         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
2724         for last alternative in the cpu_facility attribute.
2726 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2728         PR target/56315
2729         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
2730         (xordi3): Change operand 2 constraint to arm_xordi_operand.
2731         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
2732         * config/arm/constraints.md (Dg): New constraint.
2733         * config/arm/neon.md (xordi3_neon): Remove.
2734         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
2735         * config/arm/predicates.md (arm_xordi_operand): New predicate.
2737 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2739         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
2740         Clean up alternatives.
2742 2013-06-07  Alan Modra  <amodra@gmail.com>
2744         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
2745         va_list_gpr_size.
2747 2013-06-07  Alan Modra  <amodra@gmail.com>
2749         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
2751 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2753         * config/arm/constraints.md (Df): New constraint.
2754         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
2755         Correct length attribute for last two alternatives.
2757 2013-06-07  Alan Modra  <amodra@gmail.com>
2759         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
2760         override user -mfp-in-toc.
2761         (offsettable_ok_by_alignment): Consider just the current access
2762         rather than the whole object, unless BLKmode.  Handle
2763         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
2764         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
2765         for -mcmodel=medium.
2766         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
2767         override user -mfp-in-toc or -msum-in-toc.  Default to
2768         -mno-fp-in-toc for -mcmodel=medium.
2770 2013-06-06  DJ Delorie  <dj@redhat.com>
2772         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
2773         TARGET_VALID_POINTER_MODE.
2775 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
2776             Pat Haugen <pthaugen@us.ibm.com>
2777             Peter Bergner <bergner@vnet.ibm.com>
2779         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
2780         Document new power8 builtins.
2782         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
2783         condition code register, to allow 128-bit logical operations to be
2784         done in the VSX or GPR registers.
2785         (nor<mode>3): Use the canonical form for nor.
2786         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
2787         vclz*, and vpopcnt* vector instructions.
2788         (nand<mode>3): Likewise.
2789         (orc<mode>3): Likewise.
2790         (clz<mode>2): LIkewise.
2791         (popcount<mode>2): Likewise.
2793         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
2794         that only the GPRs are recognized.
2796         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2797         support for new power8 builtins.
2799         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
2800         builtin functions.
2801         (xscvdpspn): Likewise.
2802         (vclz): Likewise.
2803         (vclzb): Likewise.
2804         (vclzh): Likewise.
2805         (vclzw): Likewise.
2806         (vclzd): Likewise.
2807         (vpopcnt): Likewise.
2808         (vpopcntb): Likewise.
2809         (vpopcnth): Likewise.
2810         (vpopcntw): Likewise.
2811         (vpopcntd): Likewise.
2812         (vgbbd): Likewise.
2813         (vmrgew): Likewise.
2814         (vmrgow): Likewise.
2815         (eqv): Likewise.
2816         (eqv_v16qi3): Likewise.
2817         (eqv_v8hi3): Likewise.
2818         (eqv_v4si3): Likewise.
2819         (eqv_v2di3): Likewise.
2820         (eqv_v4sf3): Likewise.
2821         (eqv_v2df3): Likewise.
2822         (nand): Likewise.
2823         (nand_v16qi3): Likewise.
2824         (nand_v8hi3): Likewise.
2825         (nand_v4si3): Likewise.
2826         (nand_v2di3): Likewise.
2827         (nand_v4sf3): Likewise.
2828         (nand_v2df3): Likewise.
2829         (orc): Likewise.
2830         (orc_v16qi3): Likewise.
2831         (orc_v8hi3): Likewise.
2832         (orc_v4si3): Likewise.
2833         (orc_v2di3): Likewise.
2834         (orc_v4sf3): Likewise.
2835         (orc_v2df3): Likewise.
2837         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
2838         allow power8 quad mode in 64-bit.
2839         (rs6000_builtin_vectorized_function): Add support to vectorize
2840         ISA 2.07 count leading zeros, population count builtins.
2841         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
2842         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
2843         (builtin_function_type): Add vgbbd builtin function which takes an
2844         unsigned argument.
2845         (altivec_expand_vec_perm_const): Add support for new power8 merge
2846         instructions.
2848         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
2849         that does not include TImdoe for use with 32-bit.
2850         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
2851         instructions.
2852         (UNSPEC_VSX_CVDPSPN): Likewise.
2853         (vsx_xscvdpspn): Likewise.
2854         (vsx_xscvspdpn): Likewise.
2855         (vsx_xscvdpspn_scalar): Likewise.
2856         (vsx_xscvspdpn_directmove): Likewise.
2857         (vsx_and<mode>3): Split logical operations into 32-bit and
2858         64-bit. Add support to do logical operations on TImode as well as
2859         VSX vector types.  Allow logical operations to be done in either
2860         VSX registers or in general purpose registers in 64-bit mode.  Add
2861         splitters if GPRs were used. For AND, add clobber of CCmode to
2862         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
2863         encoding.
2864         (vsx_and<mode>3_32bit): Likewise.
2865         (vsx_and<mode>3_64bit): Likewise.
2866         (vsx_ior<mode>3): Likewise.
2867         (vsx_ior<mode>3_32bit): Likewise.
2868         (vsx_ior<mode>3_64bit): Likewise.
2869         (vsx_xor<mode>3): Likewise.
2870         (vsx_xor<mode>3_32bit): Likewise.
2871         (vsx_xor<mode>3_64bit): Likewise.
2872         (vsx_one_cmpl<mode>2): Likewise.
2873         (vsx_one_cmpl<mode>2_32bit): Likewise.
2874         (vsx_one_cmpl<mode>2_64bit): Likewise.
2875         (vsx_nor<mode>3): Likewise.
2876         (vsx_nor<mode>3_32bit): Likewise.
2877         (vsx_nor<mode>3_64bit): Likewise.
2878         (vsx_andc<mode>3): Likewise.
2879         (vsx_andc<mode>3_32bit): Likewise.
2880         (vsx_andc<mode>3_64bit): Likewise.
2881         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
2882         and xxlorc instructions.
2883         (vsx_eqv<mode>3_64bit): Likewise.
2884         (vsx_nand<mode>3_32bit): Likewise.
2885         (vsx_nand<mode>3_64bit): Likewise.
2886         (vsx_orc<mode>3_32bit): Likewise.
2887         (vsx_orc<mode>3_64bit): Likewise.
2889         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
2891         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
2892         instruction.
2893         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
2894         (p8_vmrgow): Likewise.
2895         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
2896         GPRs to be split under VSX.
2897         (p8v_clz<mode>2): Add power8 count leading zero support.
2898         (p8v_popcount<mode>2): Add power8 population count support.
2899         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
2900         support.
2902         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
2903         instruction.
2905         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
2906         builtin functions.
2907         (vec_nand): Likewise.
2908         (vec_vclz): Likewise.
2909         (vec_vclzb): Likewise.
2910         (vec_vclzd): Likewise.
2911         (vec_vclzh): Likewise.
2912         (vec_vclzw): Likewise.
2913         (vec_vgbbd): Likewise.
2914         (vec_vmrgew): Likewise.
2915         (vec_vmrgow): Likewise.
2916         (vec_vpopcnt): Likewise.
2917         (vec_vpopcntb): Likewise.
2918         (vec_vpopcntd): Likewise.
2919         (vec_vpopcnth): Likewise.
2920         (vec_vpopcntw): Likewise.
2922 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
2924         PR rtl-optimization/57468
2925         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
2926         spilled pseudos.
2928 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
2930         PR rtl-optimization/57459
2931         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
2932         type when setting live regs.
2934 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
2936         * config/s390/s390.opt (mlra): New option.
2937         * config/s390/s390.c (s390_decompose_address): Check displacement
2938         for all registers for LRA.
2939         (s390_secondary_reload): Don't used secondary reloads for LRA.
2940         (s390_lra_p): New function.
2941         (TARGET_LRA_P): Define.
2942         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
2943         of attribute cpu_facility to zarch for the last alternative.
2944         (*cmpmem_short): Ditto.
2946 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
2948         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
2949         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
2950         (arm_expand_prologue): Likewise.
2952 2013-06-06  Teresa Johnson  <tejohnson@google.com>
2954         PR c++/53743
2955         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
2956         as this is now done by redirect_edge_and_branch_force.
2957         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
2958         barriers, and fix interaction with splitting.
2959         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
2960         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
2961         reflect changes made in the routine.
2962         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
2963         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
2964         since this is called in cfglayout mode, and replace partition fixup
2965         with assert as that is now done by force_nonfallthru_and_redirect.
2966         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
2967         already be marked with region crossing note.
2968         (insert_section_boundary_note): Make non-static, gate on flag
2969         has_bb_partition, rewrite to also check for multiple partitions.
2970         (rest_of_handle_reorder_blocks): Remove call to
2971         insert_section_boundary_note, now done later during free_cfg.
2972         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
2973         * bb-reorder.h (insert_section_boundary_note): Declare.
2974         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
2975         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
2976         invoke insert_section_boundary_note.
2977         (try_redirect_by_replacing_jump): Remove unnecessary
2978         check for region crossing note.
2979         (fixup_partition_crossing): New function.
2980         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
2981         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
2982         in non-cfglayout mode.
2983         (force_nonfallthru_and_redirect): Fixup partition boundaries,
2984         remove old code that tried to do this. Emit barrier correctly
2985         when we are in cfglayout mode.
2986         (last_bb_in_partition): New function.
2987         (rtl_split_edge): Correctly fixup partition boundaries.
2988         (commit_one_edge_insertion): Remove old code that tried to
2989         fixup region crossing edge since this is now handled in
2990         split_block, and set up insertion point correctly since
2991         block may now end in a jump.
2992         (verify_hot_cold_block_grouping): Guard against checking when not in
2993         linearized RTL mode.
2994         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
2995         notes.
2996         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
2997         rtl_verify_flow_info, so not called in cfglayout mode.
2998         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
2999         (fixup_reorder_chain): Remove old code that attempted to fixup region
3000         crossing note as this is now handled in force_nonfallthru_and_redirect.
3001         (duplicate_insn_chain): Don't duplicate switch section notes.
3002         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
3003         note.
3004         * basic-block.h (emit_barrier_after_bb): Declare.
3006 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3008         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
3009         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
3010         arm_usatsihi): Adjust alternatives for arm_restrict_it.
3012 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3014         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
3015         where appropriate.
3016         * config/arm/ldmstm.md: Regenerate.
3018 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3020         * config/arm/sync.md (atomic_loaddi_1):
3021         Disable predication for arm_restrict_it.
3022         (arm_load_exclusive<mode>): Likewise.
3023         (arm_load_exclusivesi): Likewise.
3024         (arm_load_exclusivedi): Likewise.
3025         (arm_load_acquire_exclusive<mode>): Likewise.
3026         (arm_load_acquire_exclusivesi): Likewise.
3027         (arm_load_acquire_exclusivedi): Likewise.
3028         (arm_store_exclusive<mode>): Likewise.
3029         (arm_store_exclusive<mode>): Likewise.
3030         (arm_store_release_exclusivedi): Likewise.
3031         (arm_store_release_exclusive<mode>): Likewise.
3033 2013-06-06  Richard Biener  <rguenther@suse.de>
3035         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
3036         after LTO_null.
3037         (lto_tag_is_tree_code_p): Adjust.
3038         (lto_tag_is_gimple_code_p): Likewise.
3039         (lto_gimple_code_to_tag): Likewise.
3040         (lto_tag_to_gimple_code): Likewise.
3041         (lto_tree_code_to_tag): Likewise.
3042         (lto_tag_to_tree_code): Likewise.
3043         * data-streamer.h (streamer_write_hwi_in_range): Use
3044         uhwi streaming to stream the normalized range.
3045         (streamer_read_hwi_in_range): Likewise.
3047 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3049         * config/arm/arm.md (enabled_for_depr_it): New attribute.
3050         (predicable_short_it): Likewise.
3051         (predicated): Likewise.
3052         (enabled): Handle above.
3053         (define_cond_exec): Set predicated attribute to yes.
3055 2013-06-05  Mike Stump  <mikestump@comcast.net>
3057         * gdbinit.in (__FUNCTION__): Add.
3059 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
3061         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
3062         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
3064 2013-06-05  Jan Hubicka  <jh@suse.cz>
3066         * varasm.c (mark_decl_referenced): Revert the removal until targets
3067         are fixed.
3069 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
3071         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
3072         instead of mark_decl_referenced.
3074 2013-06-05  Jan Hubicka  <jh@suse.cz>
3076         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
3077         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
3078         and symtab_used_from_object_file_p.
3079         (cgraph_make_node_local_1): Clear forced_by_abi.
3080         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
3081         * cgraph.h (symtab_node_base): Add forced_by_abi.
3082         (decide_is_variable_needed): Remove.
3083         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
3084         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
3085         (decide_is_symbol_needed): ... this one; handle symbols in general;
3086         always analyze virtuals; honnor forced_by_abi.
3087         (cgraph_finalize_function): Update.
3088         (varpool_finalize_decl): Update.
3089         (symbol_defined_and_needed): Remove.
3090         (analyze_functions): Update.
3091         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3092         output_refs, input_overwrite_node): Handle forced_by_abi.
3093         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
3094         (address_taken_from_non_vtable_p): ... this one.
3095         (comdat_can_be_unshared_p_1): New function.
3096         (cgraph_comdat_can_be_unshared_p): Rename to ...
3097         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
3098         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
3099         (function_and_variable_visibility): Clear forced_by_abi as needed.
3100         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
3101         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
3102         * symtab.c (dump_symtab_base): Dump forced_by_abi.
3103         * varpool.c (decide_is_variable_needed): Remove.
3105 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3107         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
3108         (arm_option_override): Override arm_restrict_it where appropriate.
3109         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
3110         * config/arm/arm.opt (mrestrict-it): New command-line option.
3111         * doc/invoke.texi: Document -mrestrict-it.
3113 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
3115         * tsan.c (tsan_atomic_table): Make const.
3117 2013-06-05  Richard Biener  <rguenther@suse.de>
3119         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
3120         index associated with the tree we are supposed to replace.
3121         * tree-streamer-out.c (pack_ts_base_value_fields): Output
3122         TREE_ASM_WRITTEN as zero for everything but SSA names.
3124 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
3126         * tree-ssa-structalias.c (call_stmt_vars): Make static.
3128 2013-06-04  Jan Hubicka  <jh@suse.cz>
3130         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
3131         (input_node, input_varpool_node): Handle correctly external same
3132         body aliases.
3133         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
3134         nodes at ltrans stage.
3136 2013-06-04  Jan Hubicka  <jh@suse.cz>
3138         * ipa-inline.c (update_caller_keys): Fix availability test.
3139         (update_callee_keys): Likewise.
3140         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
3141         to follow ELF standard.
3143 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
3145         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
3146         (mips64r5900el-*-elf*): New configurations.
3147         * config/mips/mips-cpus.def (r5900): New processor.
3148         * config/mips/mips-tables.opt: Regenerate.
3149         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
3150         (mips_issue_rate): Handle PROCESSOR_R5900.
3151         (mips_reorg_process_insns): Force reorder mode for the R5900.
3152         * config/mips/mips.h (TARGET_MIPS5900): Define.
3153         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
3154         TARGET_MIPS5900.
3155         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
3156         TARGET_MIPS5900.
3157         * config/mips/mips.md (processor): Add r5900.
3158         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
3160 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
3162         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
3163         into function to generate MOVI instruction.
3164         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
3165         (aarch64_preferred_simd_mode): Turn into wrapper.
3166         (aarch64_output_scalar_simd_mov_immediate): New function.
3167         * config/aarch64/aarch64-protos.h: Add prototype for above.
3169 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
3171         * config/aarch64/aarch64.c (simd_immediate_info): Remove
3172         element_char member.
3173         (sizetochar): Return signed char.
3174         (aarch64_simd_valid_immediate): Remove elchar and other
3175         unnecessary variables.
3176         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
3177         Calculate element_char as required.
3178         * config/aarch64/aarch64-protos.h: Update and move prototype
3179         for aarch64_output_simd_mov_immediate.
3180         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
3181         Update arguments.
3183 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
3185         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
3186         information completed by aarch64_simd_valid_immediate.
3187         (aarch64_legitimate_constant_p): Update arguments.
3188         (aarch64_simd_valid_immediate): Work with struct rather than many
3189         pointers.
3190         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
3191         (aarch64_simd_make_constant): Update arguments.
3192         (aarch64_output_simd_mov_immediate): Work with struct rather than
3193         many pointers.  Output immediate directly rather than as operand.
3194         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3195         Update prototype.
3196         * config/aarch64/constraints.md (Dn): Update arguments.
3198 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
3200         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
3201         longer static.
3202         (aarch64_simd_immediate_valid_for_move): Remove.
3203         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
3204         (aarch64_simd_make_constant): Update call.
3205         (aarch64_output_simd_mov_immediate): Update call.
3206         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3207         Add prototype.
3208         * config/aarch64/constraints.md (Dn): Update call.
3210 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
3212         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
3213         return type to bool for prototype.
3214         (aarch64_legitimate_constant_p): Check for true instead of not -1.
3215         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
3216         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
3218 2013-06-04  Catherine Moore  <clm@codesourcery.com>
3220         * config/mips/mips.opt (meva): New.
3221         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
3222         (ASM_SPEC): Handle -meva.
3223         * doc/invoke.texi (meva):  Document.
3225 2013-06-04  Alan Modra  <amodra@gmail.com>
3227         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
3228         constant output.
3230 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3232         * rtl.def: Add extra fourth optional field to define_cond_exec.
3233         * gensupport.c (process_one_cond_exec): Process attributes from
3234         define_cond_exec.
3235         * doc/md.texi: Document fourth field in define_cond_exec.
3237 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
3239         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
3240         out the processing order as in store_bit_field_1.
3242 2013-06-04  Jan Hubicka  <jh@suse.cz>
3244         PR middle-end/57500
3245         * cgraphunit.c (cgraph_process_same_body_aliases): Create
3246         non-VAR_DECL node if it does not exist yet.
3248 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
3250         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
3251         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
3252         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
3253         target_cpu_default setting.
3255 2013-06-03  Teresa Johnson  <tejohnson@google.com>
3257         * dumpfile.c (opt_info_switch_p): Change -fopt-info
3258         default to -fopt-info=optimized instead of all.
3259         * doc/invoke.texi: Ditto.
3260         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
3261         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
3262         (execute_vect_slp): Emit BB vectorization success under
3263         MSG_OPTIMIZED_LOCATIONS.
3264         * tree-vect-slp.c (vect_slp_transform_bb): Change
3265         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
3266         * tree-vect-loop.c (vect_transform_loop): Ditto.
3268 2013-06-03  Jason Merrill  <jason@redhat.com>
3270         PR c++/57415
3271         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3272         Use TARGET_EXPR for C++.
3274 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
3276         PR rtl-optimization/57268
3277         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
3278         if DEBUG_INSN_P (insn).
3280         Reapply
3281         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
3283         PR rtl-optimization/57268
3284         * sched-deps.c (sched_analyze_2): Flush dependence lists if
3285         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3287 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
3289         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
3290         (ix86_avoid_lea_for_addr): Likewise.
3291         (exact_dependency_1): Likewise.
3292         (ix86_adjust_cost): Likewise.
3293         (swap_top_of_ready_list): Fix formatting and !reload_completed check
3294         removed.
3295         (do_reorder_for_imul): Fix typo, formatting and
3296         !reload_completed check removed.
3297         (ix86_sched_reorder): Fix typo and formatting.
3298         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
3299         list.
3301 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
3303         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
3305 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
3307         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
3308         <STRING_CST>: Likewise.
3309         <VECTOR_CST>: Likewise.
3311 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
3312             Mikael Morin  <mikael@gcc.gnu.org>
3314         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
3315         * config.in: Regenerated.
3316         * configure: Regenerated.
3318 2013-06-01  Jan Hubicka  <jh@suse.cz>
3320         PR middle-end/57366
3321         * cgraphunit.c (compile): When weakref is not supported,
3322         set up transparent aliases before final output pass.
3323         * varasm.c (assemble_alias): Do not try to do it here.
3325 2013-06-01  Jan Hubicka  <jh@suse.cz>
3327         PR middle-end/57467
3328         * passes.c (for_per_function): Skip unanalyzed functions.
3330 2013-06-01  Jan Hubicka  <jh@suse.cz>
3332         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
3333         (lto_symtab_merge_symbols_1): ... this one.
3334         (lto_symtab_merge_cgraph_nodes): Rename to ...
3335         (lto_symtab_merge_symbols): ... this one; simplify.
3336         * cgraph.c (same_body_aliases_done): Rename to ...
3337         (cpp_implicit_aliases_done): ... this one.
3338         (cgraph_create_function_alias): Update.
3339         (cgraph_same_body_alias): Update.
3340         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
3341         (verify_edge_corresponds_to_fndecl): Simplify.
3342         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
3343         (cgraph_node): Remove same_body_alias.
3344         (varpool_node): Remove alias_of and extra_name_alias.
3345         (same_body_aliases_done): Rename to ..
3346         (cpp_implicit_aliases_done): ... this one.
3347         (symtab_alias_ultimate_target): Add default parameter.
3348         (symtab_resolve_alias): New function.
3349         (fixup_same_cpp_alias_visibility): Declare.
3350         (cgraph_function_node): Add default parameter.
3351         (cgraph_node_asm_name): Likewise.
3352         (cgraph_function_or_thunk_node): Add default parameter; do
3353         not ICE when it is NULL.
3354         (varpool_variable_node): Likewise.
3355         * tree-emutls.c (create_emultls_var): Update.
3356         (ipa_lower_emutls): Update.
3357         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
3358         (cgraph_reset_node): Reset alias info.
3359         (cgraph_finalize_function): Update.
3360         (fixup_same_cpp_alias_visibility): Move to symtab.c.
3361         (analyze_function): Simplify.
3362         (cgraph_process_same_body_aliases): Simplify.
3363         (analyze_functions): Fixup same body aliases.
3364         (handle_alias_pairs): Simplify.
3365         (assemble_thunk): Update.
3366         (assemble_thunks_and_aliases): Update.
3367         (output_weakrefs): Rewrite.
3368         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
3369         (lto_output_varpool_node): Likewise.
3370         (compute_ltrans_boundary): Remve assert.
3371         (get_alias_symbol): New functoin.
3372         (input_node): Rewrite alias handling.
3373         (input_varpool_node): Likewise.
3374         * ipa-pure-const.c (propagate_pure_const): Fix formating.
3375         * ipa.c (process_references): Handle weakrefs correctly.
3376         (symtab_remove_unreachable_nodes): Likewise.
3377         * trans-mem.c (get_cg_data): Update.
3378         (ipa_tm_create_version_alias): Update.
3379         (ipa_tm_execute): Update.
3380         * symtab.c (dump_symtab_base): Dump aliases.
3381         (verify_symtab_base): Verify aliases.
3382         (symtab_node_availability): New function.
3383         (symtab_alias_ultimate_target): Simplify.
3384         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
3385         handle all the fixup cases.
3386         (symtab_resolve_alias): New function.
3387         * passes.c (ipa_write_summaries): Handle weakrefs.
3388         * varpool.c (varpool_analyze_node): Simplify.
3389         (assemble_aliases): Update.
3390         (varpool_create_variable_alias): Simplify.
3391         (varpool_extra_name_alias): Simplify.
3392         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
3393         (lto_symtab_merge_symbols): ... this one.
3395 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
3397         Revert
3398         PR rtl-optimization/57268
3399         * sched-deps.c (sched_analyze_2): Flush dependence lists if
3400         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3402 2013-06-01  Tobias Burnus  <burnus@net-b.de>
3404         Partially reverted:
3405         2013-05-31  Tobias Burnus  <burnus@net-b.de>
3407         PR middle-end/57073
3408         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
3409         further up.
3411 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
3413         PR rtl-optimization/57268
3414         * sched-deps.c (sched_analyze_2): Flush dependence lists if
3415         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3417 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
3419         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
3420         unordered comparison operators when -fno-trapping-math is in effect
3421         on the e500.
3422         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
3423         and implement unordered comparison operators properly on the e500.
3425 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
3427         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
3428         for constant scalar integers.
3429         (simplify_relational_operation_1): Likewise.
3431 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
3433         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
3434         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
3435         Fix comment.
3437 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
3438             Igor Zamyatin  <igor.zamyatin@intel.com>
3440         Silvermont (SLM) architecture performance tuning.
3441         * config/i386/i386.h (enum ix86_tune_indices): Add
3442         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
3443         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
3445         * config/i386/i386.c (initial_ix86_tune_features)
3446         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
3447         (ix86_lea_outperforms): Handle Silvermont tuning.
3448         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
3449         call.
3450         (ix86_use_lea_for_mov): Likewise.
3451         (ix86_avoid_lea_for_addr): Likewise.
3452         (ix86_lea_for_add_ok): Likewise.
3453         (exact_dependency_1): New function.
3454         (exact_store_load_dependency): Likewise.
3455         (ix86_adjust_cost): Handle Silvermont tuning.
3456         (do_reoder_for_imul): Likewise.
3457         (swap_top_of_ready_list): New function.
3458         (ix86_sched_reorder): Changed to handle Silvermont tuning.
3460         * config/i386/i386.md (peepholes that split memory operand in fp
3461         converts): New.
3463 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3465         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3466         Remove un-necessary braces.
3468 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3470         * config/aarch64/aarch64.c (aarch64_classify_symbol):
3471         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
3473 2013-05-31  Tobias Burnus  <burnus@net-b.de>
3475         PR middle-end/57073
3476         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
3478 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3480         PR target/56315
3481         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
3482         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
3483         * config/arm/neon.md (iordi3_neon): Remove.
3484         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
3485         * config/arm/predicates.md (imm_for_neon_logic_operand):
3486         Move to earlier in the file.
3487         (neon_logic_op2): Likewise.
3488         (arm_iordi_operand_neon): New predicate.
3490 2013-05-31  Richard Biener  <rguenther@suse.de>
3492         PR tree-optimization/57478
3493         PR tree-optimization/57453
3494         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
3495         are life as well.
3497 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
3499         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
3500         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
3502 2013-05-30  Tobias Burnus  <burnus@net-b.de>
3503             Thomas Koenig  <tkoenig@gcc.gnu.org>
3505         PR middle-end/57073
3506         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
3507         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
3509 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
3511         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
3513 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
3515         * target.def (register_usage_leveling_p): New hook.
3516         * targhooks.c (default_register_usage_leveling_p): New.
3517         * targhooks.h (default_register_usage_leveling_p): New prototype.
3518         * lra-assigns.c (register_usage_leveling_p): Use the hook.
3519         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
3520         * doc/tm.texi: Update.
3521         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
3523 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
3525         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
3526         (*insv_reg<mode>): New define_insn.
3528 2013-05-30  Joern Rennecke <joern.rennecke@embecosm.com>
3530         PR rtl-optimization/57439
3531         * postreload.c (move2add_valid_value_p): Check that we have
3532         a zero subreg_regno_offset when accessing the register in
3533         the requested mode.
3535 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
3536             Igor Zamyatin  <igor.zamyatin@intel.com>
3538         Silvermont (SLM) architecture pipeline model, tuning and
3539         insn selection.
3540         * config.gcc: Add slm config options and target.
3542         * config/i386/slm.md: New.
3544         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
3546         * gcc/config/i386/i386-c.c (ix86_target_macros_internal):  New case
3547         PROCESSOR_SLM.
3548         (ix86_target_macros_internal): Likewise.
3550         * gcc/config/i386/i386.c (slm_cost): New cost.
3551         (m_SLM): New macro flag.
3552         (initial_ix86_tune_features): Set m_SLM.
3553         (x86_accumulate_outgoing_args): Likewise.
3554         (x86_arch_always_fancy_math_387): Likewise.
3555         (processor_target_table): Add slm cost.
3556         (cpu_names): Add slm cpu name.
3557         (x86_option_override_internal): Set SLM ISA.
3558         (ix86_issue_rate): New case PROCESSOR_SLM.
3559         (ia32_multipass_dfa_lookahead): Likewise.
3560         (fold_builtin_cpu): Add slm.
3562         * config/i386/i386.h (TARGET_SLM): New target macro.
3563         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
3564         (processor_type): Add PROCESSOR_SLM.
3566         * config/i386/i386.md (cpu): Add new value "slm".
3567         (slm.md): Include slm.md.
3569 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
3570             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3572         * config/arm/arm-protos.h: Add and update function protos.
3573         * config/arm/arm.c (use_simple_return_p): New added.
3574         (thumb2_expand_return): Check simple_return flag.
3575         * config/arm/arm.md: Add simple_return and conditional simple_return.
3576         * config/arm/iterators.md: Add iterator for return and simple_return.
3578 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3580         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
3581         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
3582         (arm_emit_vfp_multi_reg_pop): Likewise.
3583         (thumb2_emit_ldrd_pop): Likewise.
3584         (arm_expand_epilogue): Add misc REG_CFA notes.
3585         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
3587 2013-05-29  Lawrence Crowl  <crowl@google.com>
3589         * config/arm/t-arm: Update for below.
3591         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
3592         Change type to hash_table.  Update dependent calls and types.
3594         * config/i386/t-cygming: Update for below.
3596         * config/i386/t-interix: Update for below.
3598         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
3599         Change type to hash_table.  Update dependent calls and types.
3600         (i386_find_on_wrapper_list::wrappers): Likewise.
3602         * config/ia64/t-ia64: Update for below.
3604         * config/ia64/ia64.c (bundle_state_table):
3605         Change type to hash_table.  Update dependent calls and types.
3607         * config/mips/mips.c (mips_reorg_process_insns::htab):
3608         Change type to hash_table.  Update dependent calls and types.
3610         * config/sol2.c (solaris_comdat_htab):
3611         Change type to hash_table.  Update dependent calls and types.
3613         * config/t-sol2: Update for above.
3615 2013-05-29  Teresa Johnson  <tejohnson@google.com>
3617         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
3618         functions are not yet marked as defined.
3620 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
3621             Pat Haugen <pthaugen@us.ibm.com>
3622             Peter Bergner <bergner@vnet.ibm.com>
3624         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
3625         instructions.
3626         (VEC_A): Likewise.
3627         (VEC_C): Likewise.
3628         (vrotl<mode>3): Likewise.
3629         (vashl<mode>3): Likewise.
3630         (vlshr<mode>3): Likewise.
3631         (vashr<mode>3): Likewise.
3633         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3634         support for power8 V2DI builtins.
3636         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
3637         power8 V2DI builtins.
3638         (vupkhsw): Likewise.
3639         (vupklsw): Likewise.
3640         (vaddudm): Likewise.
3641         (vminsd): Likewise.
3642         (vmaxsd): Likewise.
3643         (vminud): Likewise.
3644         (vmaxud): Likewise.
3645         (vpkudum): Likewise.
3646         (vpksdss): Likewise.
3647         (vpkudus): Likewise.
3648         (vpksdus): Likewise.
3649         (vrld): Likewise.
3650         (vsld): Likewise.
3651         (vsrd): Likewise.
3652         (vsrad): Likewise.
3653         (vsubudm): Likewise.
3654         (vcmpequd): Likewise.
3655         (vcmpgtsd): Likewise.
3656         (vcmpgtud): Likewise.
3657         (vcmpequd_p): Likewise.
3658         (vcmpgtsd_p): Likewise.
3659         (vcmpgtud_p): Likewise.
3660         (vupkhsw): Likewise.
3661         (vupklsw): Likewise.
3662         (vaddudm): Likewise.
3663         (vmaxsd): Likewise.
3664         (vmaxud): Likewise.
3665         (vminsd): Likewise.
3666         (vminud): Likewise.
3667         (vpksdss): Likewise.
3668         (vpksdus): Likewise.
3669         (vpkudum): Likewise.
3670         (vpkudus): Likewise.
3671         (vrld): Likewise.
3672         (vsld): Likewise.
3673         (vsrad): Likewise.
3674         (vsrd): Likewise.
3675         (vsubudm): Likewise.
3677         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
3678         support for power8 V2DI instructions.
3680         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
3681         power8 V2DI instructions.  Combine pack and unpack insns to use an
3682         iterator for each mode.  Check whether a particular mode supports
3683         Altivec instructions instead of just checking TARGET_ALTIVEC.
3684         (UNSPEC_VPKUWUM): Likewise.
3685         (UNSPEC_VPKSHSS): Likewise.
3686         (UNSPEC_VPKSWSS): Likewise.
3687         (UNSPEC_VPKUHUS): Likewise.
3688         (UNSPEC_VPKSHUS): Likewise.
3689         (UNSPEC_VPKUWUS): Likewise.
3690         (UNSPEC_VPKSWUS): Likewise.
3691         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
3692         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
3693         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
3694         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
3695         (UNSPEC_VUPKHSB): Likewise.
3696         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
3697         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
3698         (UNSPEC_VUPKHSH): Likewise.
3699         (UNSPEC_VUPKLSB): Likewise.
3700         (UNSPEC_VUPKLSH): Likewise.
3701         (VI2): Likewise.
3702         (VI_char): Likewise.
3703         (VI_scalar): Likewise.
3704         (VI_unit): Likewise.
3705         (VP): Likewise.
3706         (VP_small): Likewise.
3707         (VP_small_lc): Likewise.
3708         (VU_char): Likewise.
3709         (add<mode>3): Likewise.
3710         (altivec_vaddcuw): Likewise.
3711         (altivec_vaddu<VI_char>s): Likewise.
3712         (altivec_vadds<VI_char>s): Likewise.
3713         (sub<mode>3): Likewise.
3714         (altivec_vsubcuw): Likewise.
3715         (altivec_vsubu<VI_char>s): Likewise.
3716         (altivec_vsubs<VI_char>s): Likewise.
3717         (altivec_vavgs<VI_char>): Likewise.
3718         (altivec_vcmpbfp): Likewise.
3719         (altivec_eq<mode>): Likewise.
3720         (altivec_gt<mode>): Likewise.
3721         (altivec_gtu<mode>): Likewise.
3722         (umax<mode>3): Likewise.
3723         (smax<mode>3): Likewise.
3724         (umin<mode>3): Likewise.
3725         (smin<mode>3): Likewise.
3726         (altivec_vpkuhum): Likewise.
3727         (altivec_vpkuwum): Likewise.
3728         (altivec_vpkshss): Likewise.
3729         (altivec_vpkswss): Likewise.
3730         (altivec_vpkuhus): Likewise.
3731         (altivec_vpkshus): Likewise.
3732         (altivec_vpkuwus): Likewise.
3733         (altivec_vpkswus): Likewise.
3734         (altivec_vpks<VI_char>ss): Likewise.
3735         (altivec_vpks<VI_char>us): Likewise.
3736         (altivec_vpku<VI_char>us): Likewise.
3737         (altivec_vpku<VI_char>um): Likewise.
3738         (altivec_vrl<VI_char>): Likewise.
3739         (altivec_vsl<VI_char>): Likewise.
3740         (altivec_vsr<VI_char>): Likewise.
3741         (altivec_vsra<VI_char>): Likewise.
3742         (altivec_vsldoi_<mode>): Likewise.
3743         (altivec_vupkhsb): Likewise.
3744         (altivec_vupkhs<VU_char>): Likewise.
3745         (altivec_vupkls<VU_char>): Likewise.
3746         (altivec_vupkhsh): Likewise.
3747         (altivec_vupklsb): Likewise.
3748         (altivec_vupklsh): Likewise.
3749         (altivec_vcmpequ<VI_char>_p): Likewise.
3750         (altivec_vcmpgts<VI_char>_p): Likewise.
3751         (altivec_vcmpgtu<VI_char>_p): Likewise.
3752         (abs<mode>2): Likewise.
3753         (vec_unpacks_hi_v16qi): Likewise.
3754         (vec_unpacks_hi_v8hi): Likewise.
3755         (vec_unpacks_lo_v16qi): Likewise.
3756         (vec_unpacks_hi_<VP_small_lc>): Likewise.
3757         (vec_unpacks_lo_v8hi): Likewise.
3758         (vec_unpacks_lo_<VP_small_lc>): Likewise.
3759         (vec_pack_trunc_v8h): Likewise.
3760         (vec_pack_trunc_v4si): Likewise.
3761         (vec_pack_trunc_<mode>): Likewise.
3763         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
3764         V2DI builtins.
3765         (vec_vmaxsd): Likewise.
3766         (vec_vmaxud): Likewise.
3767         (vec_vminsd): Likewise.
3768         (vec_vminud): Likewise.
3769         (vec_vpksdss): Likewise.
3770         (vec_vpksdus): Likewise.
3771         (vec_vpkudum): Likewise.
3772         (vec_vpkudus): Likewise.
3773         (vec_vrld): Likewise.
3774         (vec_vsld): Likewise.
3775         (vec_vsrad): Likewise.
3776         (vec_vsrd): Likewise.
3777         (vec_vsubudm): Likewise.
3778         (vec_vupkhsw): Likewise.
3779         (vec_vupklsw): Likewise.
3781 2013-05-29  Jan Hubicka  <jh@suse.cz>
3783         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
3784         flags; reorder rest of fields in more consistent way.
3785         (varpool_node): Remove analyzed, finalized and alias.
3786         (cgraph_ndoe): Likewise.
3787         (symtab_alias_ultimate_target): New function.
3788         (cgraph_function_node): Move offline.
3789         (cgraph_reset_node): Declare.
3790         (cgraph_comdat_can_be_unshared_p): Remove.
3791         (varpool_remove_initializer): Declare.
3792         (varpool_first_defined_variable, varpool_next_defined_variable
3793         cgraph_first_defined_function, cgraph_next_defined_function): Update.
3794         (cgraph_function_with_gimple_body_p): Update.
3795         (varpool_all_refs_explicit_p): Update.
3796         (symtab_alias_target): New function.
3797         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
3798         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
3799         (cgraph_function_or_thunk_node): Simplify using
3800         symtab_alias_ultimate_target.
3801         (varpool_variable_node): Likewise.
3802         * cgraph.c (cgraph_create_function_alias): Update.
3803         (cgraph_add_thunk): Update.
3804         (cgraph_remove_node): Update.
3805         (dump_cgraph_node): Do not dump removed flags.
3806         (cgraph_function_body_availability): Update.
3807         (cgraph_propagate_frequency): Update.
3808         (verify_cgraph_node): Check sanity of local flag.
3809         (cgraph_function_node): Move here from cgraph.h; revamp for
3810         cgraph_function_or_thunk_node.
3811         * lto-symtab.c (lto_varpool_replace_node): Update.
3812         (lto_symtab_resolve_can_prevail_p): Update.
3813         (lto_symtab_merge_cgraph_nodes): Update.
3814         * ipa-cp.c (determine_versionability, initialize_node_lattices,
3815         propagate_constants_accross_call, devirtualization_time_bonus,
3816         ipcp_propagate_stage): Update.
3817         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
3818         * ipa-inline-transform.c (clone_inlined_nodes,
3819         preserve_function_body_p): Update.
3820         * ipa-reference.c (propagate): Update.
3821         (write_node_summary_p): Update.
3822         * toplev.c (wrapup_global_declaration_2): Update.
3823         * cgraphunit.c (cgraph_analyze_function): Rename to ...
3824         (analyze_function) ... this one.
3825         (cgraph_process_new_functions): Update.
3826         (cgraph_reset_node): Export.
3827         (cgraph_finalize_function): Update.
3828         (cgraph_add_new_function): Update.
3829         (process_function_and_variable_attributes): Update.
3830         (varpool_finalize_decl): Update.
3831         (symbol_finalized): Remove.
3832         (symbol_finalized_and_needed): Rename to ...
3833         (symbol_defined_and_needed): ... update.
3834         (cgraph_analyze_functions): Update.
3835         (handle_alias_pairs): Update.
3836         (mark_functions_to_output): Update.
3837         (assemble_thunk): Update.
3838         (output_in_order): Update.
3839         (output_weakrefs): Update.
3840         (finalize_compilation_unit): Update.
3841         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
3842         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
3843         input_node, input_varpool_node): Update.
3844         * dbxout.c (dbxout_expand_expr): Update.
3845         * cgraphclones.c (cgraph_clone_node): Update.
3846         (cgraph_copy_node_for_versioning): Update.
3847         (cgraph_materialize_clone): Update.
3848         (cgraph_materialize_all_clones): Update.
3849         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
3850         propagate_pure_const, propagate_nothrow): Update.
3851         * lto-streamer-out.c (lto_output, write_symbol): Update.
3852         * ipa-utils.c (ipa_reverse_postorder): Update.
3853         * ipa-inline.c (can_inline_edge_p): Update.
3854         (update_caller_keys, ipa_inline): Update.
3855         * dwarf2out.c (reference_to_unused,
3856         premark_types_used_by_global_vars_helper): Update.
3857         * tree-eh.c (tree_could_trap_p): Update.
3858         * ipa-split.c (consider_split, execute_split_functions): Update.
3859         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
3860         has_addr_references_p): Update; move ahead in file for better
3861         readability.
3862         (process_references): Simplify.
3863         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
3864         bodies are removed.
3865         (cgraph_comdat_can_be_unshared_p): Make static.
3866         (cgraph_externally_visible_p): Update.
3867         (varpool_externally_visible_p): Update.
3868         (function_and_variable_visibility): Update.
3869         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
3870         ipa_tm_mark_force_output_node): Update.
3871         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
3872         estimate_edge_devirt_benefit, inline_generate_summary,
3873         inline_write_summary): Update.
3874         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
3875         * ipa-prop.c (ipa_compute_jump_functions): Update.
3876         (ipa_print_node_params, ipa_prop_read_section,
3877         ipa_update_after_lto_read, read_replacements_section): Update.
3878         * varasm.c (mark_decl_referenced): Update.
3879         (assemble_alias, dump_tm_clone_pairs): Update.
3880         * tree-inline.c (copy_bb): Update.
3881         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
3882         Update.
3883         * symtab.c (dump_symtab_base): Print new flags.
3884         (verify_symtab_base): Verify new flags.
3885         (symtab_alias_ultimate_target): New function.
3886         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
3887         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
3888         Update.
3889         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
3890         Update.
3891         * i386.c (ix86_get_function_versions_dispatcher,
3892         ix86_generate_version_dispatcher_body): Update.
3893         (fold_builtin_cpu): Use varpool_add_new_variable.
3894         * varpool.c (varpool_remove_initializer): Break out from ...
3895         (varpool_remove_node): ... this one.
3896         (dump_varpool_node, varpool_node_for_asm,
3897         cgraph_variable_initializer_availability, varpool_analyze_node,
3898         varpool_assemble_decl, varpool_remove_unreferenced_decls,
3899         varpool_finalize_named_section_flags, varpool_create_variable_alias):
3900         Update.
3902 2013-05-29  Jan Hubicka  <jh@suse.cz>
3904         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
3906 2013-05-29  Easwaran Raman  <eraman@google.com>
3908         PR tree-optimization/57442
3909         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
3910         when control exits the main loop.
3912 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
3914         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
3915         and RX600.
3916         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
3917         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
3918         * rx/t-rx: Add rx100 under multi library matches option for nofpu
3919         option.
3921 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3923         PR tree-optimization/57441
3924         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
3925         Don't limit size of incr_vec to number of candidates.
3927 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
3929         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
3930         and mips16 directories.
3931         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
3932         (MULTILIB_DIRNAMES): Ditto.
3933         (MULTILIB_EXCEPTIONS): Add new exceptions.
3934         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
3935         (MULTILIB_DIRNAMES): Ditto.
3936         (MULTILIB_EXCEPTIONS): Add new exceptions.
3938 2012-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3939             Marcus Shawcroft  <marcus.shawcroft@arm.com>
3941         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3942         SYMBOL_TINY_ABSOLUTE.
3943         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
3944         SYMBOL_TINY_ABSOLUTE.
3945         (aarch64_expand_mov_immediate): Likewise.
3946         (aarch64_classify_symbol): Likewise.
3947         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
3948         Permit SYMBOL_TINY_ABSOLUTE.
3949         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
3951 2013-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3952             Marcus Shawcroft  <marcus.shawcroft@arm.com>
3954         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
3955         Refactor if/switch.  Replace gcc_assert with if.
3957 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3959         * config/i386/i386.c (initial_ix86_tune_features): Enable
3960         FP Reassociation for AMD bdver1 and bdver2.
3962 2013-05-29  Martin Jambor  <mjambor@suse.cz>
3964         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
3965         and IMAGPART_EXPR do not occur within other handled_components.
3967 2013-05-29  Richard Biener  <rguenther@suse.de>
3969         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
3970         access on whether the use is in the BB we currently try to
3971         vectorize.
3972         (vect_bb_vectorization_profitable_p): Pass the BB we currently
3973         vectorize to vect_bb_slp_scalar_cost.
3975 2013-05-29  Richard Biener  <rguenther@suse.de>
3977         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
3978         computing scalar cost offsetted by stmts that are kept live
3979         by scalar uses.
3980         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
3981         for computation of scalar cost.
3983 2013-05-28  Steve Ellcey  <sellcey@mips.com>
3985         * config/mips/mips-cpus.def (mips32r2): Change processor type.
3987 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3989         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
3990         array notation built-in reduction functions.
3991         * doc/passes.texi (Passes): Added documentation about changes done
3992         for Cilk Plus.
3993         * doc/invoke.texi (C Dialect Options): Added documentation about
3994         the -fcilkplus flag.
3995         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
3996         (BUILTINS_DEF): Depend on cilkplus.def.
3997         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
3998         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
3999         * cilkplus.def: New file.
4001 2013-05-28  Joern Rennecke <joern.rennecke@embecosm.com>
4003         PR rtl-optimization/57439
4004         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
4006 2013-05-28  Easwaran Raman  <eraman@google.com>
4008         PR tree-optimization/57337
4009         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
4010         (find_insert_point): Correctly identify the insertion point
4011         when two statements with the same UID is compared.
4013 2013-05-28  Richard Biener  <rguenther@suse.de>
4015         PR tree-optimization/56787
4016         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
4017         from the list of data references.
4018         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4019         clobbers.
4020         (vect_analyze_loop_operations): Likewise.
4021         (vect_transform_loop): Remove clobbers.
4023 2013-05-28  Martin Jambor  <mjambor@suse.cz>
4025         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
4026         and REALPART_EXPRs have scalar type.
4028 2013-05-28  Richard Biener  <rguenther@suse.de>
4030         PR tree-optimization/57411
4031         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
4032         virtual operands.
4033         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
4034         virtual operand propagation.
4036 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
4038         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
4039         destination register for bmasksi_vis.
4040         (vector_init_bshuffle): Likewise.
4041         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
4043 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
4045         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
4046         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
4047         mode if the instruction isn't available in the original mode.
4048         * config/sparc/sparc.opt (mfix-ut699): New option.
4049         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
4050         (divdf3): Turn into expander.
4051         (divdf3_nofix): New insn.
4052         (divdf3_fix): Likewise.
4053         (divsf3): Disable if -mfix-ut699.
4054         (sqrtdf2): Turn into expander.
4055         (sqrtdf2_nofix): New insn.
4056         (sqrtdf2_fix): Likewise.
4057         (sqrtsf2): Disable if -mfix-ut699.
4059 2013-05-27  Richard Biener  <rguenther@suse.de>
4061         PR middle-end/57412
4062         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
4063         block for the new loop.
4065 2013-05-27  Richard Biener  <rguenther@suse.de>
4067         PR tree-optimization/57343
4068         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
4069         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
4070         (number_of_iterations_cond): Do not build the folded tree.
4072 2013-05-27  Richard Biener  <rguenther@suse.de>
4074         Revert
4075         PR middle-end/57381
4076         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4077         OEP_CONSTANT_ADDRESS_OF retained.
4079         PR tree-optimization/57417
4080         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
4081         for unchanged base.
4082         (set_ssa_val_to): Compare addresses using
4083         get_addr_base_and_unit_offset.
4085 2013-05-27  Joern Rennecke <joern.rennecke@embecosm.com>
4087         PR rtl-optimization/56833
4088         * postreload.c (move2add_record_mode): New function.
4089         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
4090         (move2add_use_add2_insn): Use move2add_record_sym_value.
4091         (move2add_use_add3_insn): Likewise.
4092         (reload_cse_move2add): Use move2add_valid_value_p and
4093         move2add_record_mode.  Invalidate call-clobbered and REG_INC
4094         affected regs by setting reg_mode to VOIDmode.
4095         (move2add_note_store): Don't pretend the inside of a SUBREG is
4096         the actual destination.  Invalidate single/leading registers by
4097         setting reg_mode to VOIDmode.
4098         Use move2add_record_sym_value, move2add_valid_value_p and
4099         move2add_record_mode.
4101 2013-05-27  Richard Biener  <rguenther@suse.de>
4103         PR tree-optimization/57396
4104         * tree-affine.c (double_int_constant_multiple_p): Properly
4105         return false for val == 0 and div != 0.
4107 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
4109         * config/mips/mips.h: Use #elif in preprocessor conditions.
4111 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
4113         PR target/53916
4114         * config/mips/constraints.md (kl): New constraint.
4115         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
4116         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
4117         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
4118         from LO for MIPS16.
4119         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
4121 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
4123         PR target/55777
4124         * config/mips/mips.c (mips_can_inline_p): New function.
4125         (TARGET_CAN_INLINE_P): Define.
4127 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
4129         * sched-int.h (ds_t, dw_t): Make unsigned int.
4130         Fix documentation that describes how all the ds_t bits are used.
4131         Reserve the last bit for delayed-branch scheduling.
4132         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
4133         (BITS_PER_DEP_WEAK): Fix definition and documentation.
4134         (gen_dep_weak_1): Remove prototype.
4135         * sched-deps.c (get_dep_weak_1): Make static.
4136         * target.def (speculate_insn, needs_block_p, gen_spec_check,
4137         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
4138         * doc/tm.texi: Regenerate.
4139         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
4141 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
4143         PR debug/56950
4144         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
4146 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
4147             Sandra Loosemore  <sandra@codesourcery.com>
4149         * config.gcc (powerpc-*): Allow native for with-cpu.
4151 2013-05-24  Jeff Law  <law@redhat.com>
4153         PR tree-optimization/57124
4154         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
4155         conversion feeding a condition if the range has an overflow
4156         if -fstrict-overflow.  Add warnings for when we do make the
4157         transformation.
4159 2013-05-24  Dehao Chen  <dehao@google.com>
4161         * tree-cfg.c (locus_discrim_map): Fix the typo.
4162         (locus_discrim_hasher): Likewise.
4163         (locus_discrim_hasher::hash): Likewise.
4164         (locus_discrim_hasher::equal): Likewise.
4166 2013-05-24  Martin Jambor  <mjambor@suse.cz>
4168         PR tree-optimization/57294
4169         * cgraph.h (ipa_record_stmt_references): Declare.
4170         * cgraphbuild.c (ipa_record_stmt_references): New function.
4171         (build_cgraph_edges): Use ipa_record_stmt_references.
4172         (rebuild_cgraph_edges): Likewise.
4173         (cgraph_rebuild_references): Likewise.
4174         * ipa-prop.c (ipa_modify_call_arguments): Discard references
4175         associated with the old statement and build references from the
4176         newly built statements.
4177         * ipa-ref.c (ipa_remove_stmt_references): New function.
4178         * ipa-ref.h (ipa_remove_stmt_references): Declare.
4180 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4182         * lra-constraints.c (emit_spill_move): Use smaller mode for
4183         mem-mem moves.
4184         (check_and_process_move): Consider mem-reg moves for secondary
4185         too.
4186         (curr_insn_transform): Don't lose insns emitted before for
4187         secondary memory moves.
4188         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
4189         reg set up in the current insn.
4191 2013-05-24  Dehao Chen  <dehao@google.com>
4193         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
4194         hash function.
4195         (locus_descrim_hasher::equal): Likewise.
4196         (build_gimple_cfg): New discriminator assignment algorithm.
4197         (make_edges): Likewise.
4198         (next_discriminator_for_locus): Likewise.
4199         (same_line_p): Likewise.
4200         (assign_discriminators): Likewise.
4201         (make_cond_expr_edges): Likewise.
4202         (make_gimple_switch_edges): Likewise.
4203         (make_goto_expr_edges): Likewise.
4204         (make_gimple_asm_edges): Likewise.
4206 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
4208         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
4209         X format specifier to only display bottom 16 bits.
4210         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
4211         immediate to match for operand 2, since it will be masked.
4213 2013-05-24  Richard Biener  <rguenther@suse.de>
4215         PR tree-optimization/57287
4216         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
4217         all SSA names that occur in abnormal PHIs.
4219 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4221         PR tree-ssa/57385
4222         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
4223         that index is not negative.
4225 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4227         PR rtl-optimization/55177
4228         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
4229         (simplify_byte_swapping_operation): New.
4230         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
4231         (simplify_relational_operation_1): Deal with BSWAP.
4233 2013-05-23  Richard Henderson  <rth@redhat.com>
4235         PR target/56742
4236         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
4237         (ix86_reorg): Call it.
4239 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
4241         PR target/57379
4242         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
4243         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
4244         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
4246 2013-05-23  Christian Bruel  <christian.bruel@st.com>
4248         PR debug/57351
4249         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
4251 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4252             Marcus Shawcroft  <marcus.shawcroft@arm.com>
4254         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
4255         * config/aarch64/constraints.md (Usa): Remove.
4256         * doc/md.texi (AArch64 Usa): Remove.
4258 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4259             Marcus Shawcroft  <marcus.shawcroft@arm.com>
4261         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
4262         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
4263         * config/aarch64/predicates.md (aarch64_const_address): Remove.
4264         (aarch64_mov_operand): Use aarch64_mov_operand_p.
4266 2013-05-23  Vidya Praveen <vidyapraveen@arm.com>
4268         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
4269         instruction (AdvSIMD).
4270         * config/aarch64/aarch64-builtins.c
4271         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
4272         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
4274 2013-05-23  Martin Jambor  <mjambor@suse.cz>
4276         PR middle-end/57347
4277         * tree.h (contains_bitfld_component_ref_p): Declare.
4278         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
4279         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
4280         caller.
4281         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
4282         not access a bit-field.  Assert all final offsets are byte-aligned.
4284 2013-05-23  Richard Biener  <rguenther@suse.de>
4286         PR tree-optimization/57380
4287         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
4288         least one invariant or re-used load.
4289         * passes.c (init_optimization_passes): Move pass_phiprop before
4290         pass_forwprop.
4292 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
4294         * config/aarch64/aarch64-simd.md
4295         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
4297 2013-05-23  Richard Biener  <rguenther@suse.de>
4299         PR middle-end/57381
4300         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4301         OEP_CONSTANT_ADDRESS_OF retained.
4303 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
4305         PR middle-end/57344
4306         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
4307         don't lower unit.  Handle unit not being always BITS_PER_WORD.
4309 2013-05-23  Richard Biener  <rguenther@suse.de>
4311         PR rtl-optimization/57341
4312         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
4313         instead of true_dependence.
4315 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
4317         * bb-reorder.c (branch_threshold): Make const.
4318         (exec_threshold): Ditto.
4320 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
4321             Pat Haugen <pthaugen@us.ibm.com>
4322             Peter Bergner <bergner@vnet.ibm.com>
4324         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
4325         documentation for the power8 crypto builtins.
4327         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
4329         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
4330         macros for defining power8 builtin functions.
4331         (BU_P8V_AV_2): Likewise.
4332         (BU_P8V_AV_P): Likewise.
4333         (BU_P8V_VSX_1): Likewise.
4334         (BU_P8V_OVERLOAD_1): Likewise.
4335         (BU_P8V_OVERLOAD_2): Likewise.
4336         (BU_CRYPTO_1): Likewise.
4337         (BU_CRYPTO_2): Likewise.
4338         (BU_CRYPTO_3): Likewise.
4339         (BU_CRYPTO_OVERLOAD_1): Likewise.
4340         (BU_CRYPTO_OVERLOAD_2): Likewise.
4341         (XSCVSPDP): Fix typo, point to the correct instruction.
4342         (VCIPHER): Add power8 crypto builtins.
4343         (VCIPHERLAST): Likewise.
4344         (VNCIPHER): Likewise.
4345         (VNCIPHERLAST): Likewise.
4346         (VPMSUMB): Likewise.
4347         (VPMSUMH): Likewise.
4348         (VPMSUMW): Likewise.
4349         (VPERMXOR_V2DI): Likewise.
4350         (VPERMXOR_V4SI: Likewise.
4351         (VPERMXOR_V8HI: Likewise.
4352         (VPERMXOR_V16QI: Likewise.
4353         (VSHASIGMAW): Likewise.
4354         (VSHASIGMAD): Likewise.
4355         (VPMSUM): Likewise.
4356         (VPERMXOR): Likewise.
4357         (VSHASIGMA): Likewise.
4359         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4360         __CRYPTO__ if the crypto instructions are available.
4361         (altivec_overloaded_builtins): Add support for overloaded power8
4362         builtins.
4364         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
4365         support for power8 crypto builtins.
4366         (builtin_function_type): Likewise.
4367         (altivec_init_builtins): Add support for builtins that take vector
4368         long long (V2DI) arguments.
4370         * config/rs6000/crypto.md: New file, define power8 crypto
4371         instructions.
4373 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
4374             Pat Haugen <pthaugen@us.ibm.com>
4375             Peter Bergner <bergner@vnet.ibm.com>
4377         * doc/invoke.texi (Option Summary): Add power8 options.
4378         (RS/6000 and PowerPC Options): Likewise.
4380         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
4381         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
4382         wm, wn, wr documentation.
4384         * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
4385         registers if direct move instructions are enabled.
4386         (wn): New constraint for no registers.
4387         (wq): New constraint for quad word even GPR registers.
4388         (wr): New constraint if 64-bit instructions are enabled.
4389         (wv): New constraint if power8 vector instructions are enabled.
4390         (wQ): New constraint for quad word memory locations.
4392         * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
4393         constraint for 0..15 for crypto instructions.
4394         (gpc_reg_operand): If VSX allow registers in VSX registers as well
4395         as GPR and floating point registers.
4396         (int_reg_operand): New predicate to match only GPR registers.
4397         (base_reg_operand): New predicate to match base registers.
4398         (quad_int_reg_operand): New predicate to match even GPR registers
4399         for quad memory operations.
4400         (vsx_reg_or_cint_operand): New predicate to allow vector logical
4401         operations in both GPR and VSX registers.
4402         (quad_memory_operand): New predicate for quad memory operations.
4403         (reg_or_indexed_operand): New predicate for direct move support.
4405         * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
4406         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
4407         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
4408         (POWERPC_MASKS): Add power8 options.
4409         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
4410         various options.
4412         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
4413         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
4415         * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
4416         (-mpower8-fusion): New power8 options.
4417         (-mpower8-fusion-sign): Likewise.
4418         (-mpower8-vector): Likewise.
4419         (-mcrypto): Likewise.
4420         (-mdirect-move): Likewise.
4421         (-mquad-memory): Likewise.
4423         * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
4424         power8.
4425         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
4426         registers.
4427         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
4428         (rs6000_debug_vector_unit): Add p8_vector.
4429         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
4430         definitions.  Also print fusion state.
4431         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
4432         (rs6000_builtin_mask_calculate): Add power8 builtin support.
4433         (rs6000_option_override_internal): Add support for power8.
4434         (rs6000_common_init_builtins): Add debugging for skipped builtins
4435         if -mdebug=builtin.
4436         (rs6000_adjust_cost): Add power8 support.
4437         (rs6000_issue_rate): Likewise.
4438         (insn_must_be_first_in_group): Likewise.
4439         (insn_must_be_last_in_group): Likewise.
4440         (force_new_group): Likewise.
4441         (rs6000_register_move_cost): Likewise.
4442         (rs6000_opt_masks): Likewise.
4444         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
4445         power8 capable assembler, default to power7 options.
4446         (TARGET_DIRECT_MOVE): Likewise.
4447         (TARGET_CRYPTO): Likewise.
4448         (TARGET_P8_VECTOR): Likewise.
4449         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
4450         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
4451         (VECTOR_MEM_P8_VECTOR_P): Likewise.
4452         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
4453         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
4454         (TARGET_XSCVDPSPN): Likewise.
4455         (TARGET_XSCVSPDPN): Likewsie.
4456         (TARGET_SYNC_HI_QI): Likewise.
4457         (TARGET_SYNC_TI): Likewise.
4458         (MASK_CRYPTO): Likewise.
4459         (MASK_DIRECT_MOVE): Likewise.
4460         (MASK_P8_FUSION): Likewise.
4461         (MASK_P8_VECTOR): Likewise.
4462         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
4463         temporary used by some of the direct move instructions to get two FP
4464         temporary registers does not force creation of a stack frame.
4465         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
4466         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
4467         that any VSX registers are tieable, even if they are also an
4468         Altivec vector mode.
4469         (r6000_reg_class_enum): Add wm, wr, wv constraints.
4470         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
4471         (RS6000_BTM_CRYPTO): Likewise.
4472         (RS6000_BTM_COMMON): Likewise.
4474         * config/rs6000/rs6000.md (cpu attribute): Add power8.
4475         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
4476         (enum rs6000_vector): Add power8 vector support.
4478 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4480         PR target/19599
4481         PR target/57340
4482         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
4483         (any_sibcall_could_use_r3): this and handle indirect calls.
4484         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
4486 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4488         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
4490 2013-05-22  Richard Biener  <rguenther@suse.de>
4492         PR middle-end/57349
4493         * profile.c (branch_prob): Do not split blocks that are
4494         abnormally receiving from ECF_RETURNS_TWICE functions.
4496 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
4498         * recog.c (offsettable_address_addr_space_p): Fix calculation of
4499         address mode.  Move pointer mode initialization to the same place.
4501 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4503         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
4504         while it has any effect.
4506 2013-05-21  Easwaran Raman  <eraman@google.com>
4508         PR tree-optimization/57322
4509         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
4510         UID of the statement added to the BB to be 1.
4512 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
4514         PR tree-optimization/57331
4515         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
4516         of conversion from pointer type to integral type with integer.
4518 2013-05-21  Martin Jambor  <mjambor@suse.cz>
4520         PR lto/57289
4521         * ipa-prop.c (ipa_read_node_info): Process param_used and
4522         controlled_uses in the same order as when writing.
4524 2013-05-21  Magnus Granberg  <baldrick@free.fr>
4526         PR plugins/56754
4527         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
4529 2013-05-21  Richard Biener  <rguenther@suse.de>
4531         PR tree-optimization/57318
4532         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
4533         estimate stmts with side-effects as likely eliminated.
4535 2013-05-21  Richard Biener  <rguenther@suse.de>
4537         PR tree-optimization/57330
4538         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
4539         preserve the call stmts fntype.
4541 2013-05-21  Richard Biener  <rguenther@suse.de>
4543         PR tree-optimization/57303
4544         * tree-ssa-sink.c (statement_sink_location): Improve killing
4545         stmt detection and properly handle self-assignments.
4547 2013-05-21  Christian Bruel  <christian.bruel@st.com>
4549         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
4550         spanning registers. LEAF_REG_REMAP is supported only for contiguous
4551         registers. Set register size out of the PARALLEL loop.
4553 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
4555         PR target/56547
4556         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
4557         (*fmasf4, *fmasf4_media): New insns.
4559 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
4561         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
4562         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
4563         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
4564         (mips_idiv_insns): Update the comments to say that the returned
4565         instruction counts are in units of BASE_INSN_LENGTH.
4566         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
4567         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
4568         using 2 rather than 4 as the length of indirect MIPS16 and
4569         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
4570         length of a NOP.  Don't divide MIPS16 lengths by 2.
4571         (mips16_split_long_branches): Assume a branch is long if the
4572         length is greater than 4 rather than 8.
4573         * config/mips/mips.md (length): Give MIPS16 lengths directly,
4574         rather than multiplying them by 2.  Multiply instruction counts
4575         by BASE_INSN_LENGTH rather than 4.
4576         (*jump_mips16, tls_get_tp_mips16_<mode>)
4577         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
4579 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
4581         * config/mips/mips.md (extended_mips16): Remove branch case.
4582         (length): Remove duplicated extended_mips16 test.
4584 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
4586         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
4588 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
4590         * recog.h (Recog_data): Rename to...
4591         (recog_data_d): ...this.
4592         (recog_data): Update accordingly.
4593         * recog.c (recog_data): Likewise.
4594         * reload.c (save_recog_data): Likewise.
4595         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
4596         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
4598 2013-05-17  Julian Brown  <julian@codesourcery.com>
4600         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
4601         found in a REG_EQUAL note, invalidate it.
4603 2013-05-17  Easwaran Raman  <eraman@google.com>
4605         * tree-ssa-reassoc.c (find_insert_point): New function.
4606         (insert_stmt_after): Likewise.
4607         (get_def_stmt): Likewise.
4608         (ensure_ops_are_available): Likewise.
4609         (not_dominated_by): Likewise.
4610         (rewrite_expr_tree): Do not move statements beyond what is
4611         necessary. Remove call to swap_ops_for_binary_stmt...
4612         (reassociate_bb): ... and move it here.
4613         (build_and_add_sum): Assign UIDs for new statements.
4614         (linearize_expr): Likewise.
4615         (do_reassoc): Renumber gimple statement UIDs.
4617 2013-05-17  Jan Hubicka  <jh@suse.cz>
4619         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
4620         weakrefs.
4621         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
4622         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
4623         weakrefs.
4624         (output_weakrefs): Update.
4626 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
4627             Martin Jambor  <mjambor@suse.cz>
4629         PR middle-end/57276
4630         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
4631         value that corresponds to the given aggval is found in values vector.
4633 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
4635         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
4636         sse, sse2, sse3, ssse3 and sse4a flags to options.
4638 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
4640         * gengtype-state.c: (s_expr_writer): New class, to handle
4641         prettifying of output layout of s-expressions.
4642         (state_writer): New class, to write out gtype.state.
4643         (state_written_type_count): Move this variable into member data of
4644         state_writer.
4645         (s_expr_writer::s_expr_writer): New code: constructor for new class
4646         (state_writer::state_writer(): ditto
4647         (s_expr_writer::write_new_line): New function
4648         (s_expr_writer::write_any_indent): ditto
4649         (s_expr_writer::begin_s_expr): ditto
4650         (s_expr_writer::end_s_expr): ditto
4651         (write_state_fileloc): convert to method of state_writer...
4652         (state_writer:: write_state_fileloc): ...and use methods of
4653         s_expr_writer to write indentation into the gtype.state output file
4654         to visually represent the hierarchical structure of the list
4655         structures
4656         (write_state_fields): ditto, renaming to...
4657         (state_writer::write_state_fields)
4658         (write_state_a_string): ditto, renaming to...
4659         (state_writer::write_state_a_string)
4660         (write_state_string_option): ditto, renaming to...
4661         (state_writer::write_state_string_option)
4662         (write_state_type_option): ditto, renaming to...
4663         (state_writer::write_state_type_option)
4664         (write_state_nested_option): ditto, renaming to...
4665         (state_writer::write_state_nested_option)
4666         (write_state_option): ditto, renaming to...
4667         (state_writer::write_state_option)
4668         (write_state_options): ditto, renaming to...
4669         (state_writer::write_state_options)
4670         (write_state_lang_bitmap): ditto, renaming to...
4671         (state_writer::write_state_lang_bitmap)
4672         (write_state_version): ditto, renaming to...
4673         (state_writer::write_state_version)
4674         (write_state_scalar_type): ditto, renaming to...
4675         (state_writer::write_state_scalar_type)
4676         (write_state_string_type): ditto, renaming to...
4677         (state_writer::write_state_string_type)
4678         (write_state_undefined_type): ditto, renaming to...
4679         (state_writer::write_state_undefined_type)
4680         (write_state_struct_union_type): ditto, renaming to...
4681         (state_writer::write_state_struct_union_type)
4682         (write_state_struct_type): ditto, renaming to...
4683         (state_writer::write_state_struct_type)
4684         (write_state_user_struct_type): ditto, renaming to...
4685         (state_writer::write_state_user_struct_type)
4686         (write_state_lang_struct_type): ditto, renaming to...
4687         (state_writer::write_state_lang_struct_type)
4688         (write_state_param_struct_type): ditto, renaming to...
4689         (state_writer::write_state_param_struct_type)
4690         (write_state_pointer_type): ditto, renaming to...
4691         (state_writer::write_state_pointer_type)
4692         (write_state_array_type): ditto, renaming to...
4693         (state_writer::write_state_array_type)
4694         (write_state_gc_used): ditto, renaming to...
4695         (state_writer::write_state_gc_used)
4696         (write_state_common_type_content): ditto, renaming to...
4697         (state_writer::write_state_common_type_content)
4698         (write_state_type): ditto, renaming to...
4699         (state_writer::write_state_type)
4700         (write_state_pair_list): ditto, renaming to...
4701         (state_writer::write_state_pair_list)
4702         (write_state_pair): ditto, renaming to...
4703         (state_writer::write_state_pair)
4704         (write_state_typedefs): ditto, renaming to...
4705         (state_writer::write_state_typedefs)
4706         (write_state_structures): ditto, renaming to...
4707         (state_writer::write_state_structures)
4708         (write_state_param_structs): ditto, renaming to...
4709         (state_writer::write_state_param_structs)
4710         (write_state_variables): ditto, renaming to...
4711         (state_writer::write_state_variables)
4712         (write_state_srcdir): ditto, renaming to...
4713         (state_writer::write_state_srcdir)
4714         (write_state_files_list): ditto, renaming to...
4715         (state_writer::write_state_files_list)
4716         (write_state_languages): ditto, renaming to...
4717         (state_writer::write_state_languages)
4718         (write_state): create a state_writer instance and use it when
4719         writing out the state file
4721 2013-05-17  Mike Stump  <mikestump@comcast.net>
4723         PR rtl-optimization/57304
4724         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
4725         accessing DF_REF_REAL_LOC.
4727 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
4729         PR rtl-optimization/57281
4730         PR rtl-optimization/57300
4731         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
4732         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
4733         what the other splitter did if the registers are dead.
4735 2013-05-17  Richard Biener  <rguenther@suse.de>
4737         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
4738         MEM_REF offsets.
4740 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
4742         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
4743         linking.
4745 2013-05-17  Marek Polacek  <polacek@redhat.com>
4747         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
4748         length when doing non-zero store of storing '\0' to '\0'.
4750 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
4752         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
4753         vect_external_def oprnd1 with loop_vinfo, try to emit
4754         optional cast, negation and and stmts on the loop preheader
4755         edge instead of into the pattern def seq.
4757         PR tree-optimization/57051
4758         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
4759         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
4761 2013-05-16  Nick Clifton  <nickc@redhat.com>
4763         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
4764         (rl78_is_naked_func): New function.
4765         (rl78_expand_prologue): Skip prologue generation for naked functions.
4766         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
4767         * doc/extend.texi (naked): Add RL78 to the list of processors
4768         that supports this attribute.
4770 2013-05-16  Jeff Law  <law@redhat.com>
4772         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
4774 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
4776         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
4777         cache parameters using detect_caches_amd also for CYRIX,
4778         NSC and TM2 signatures.
4780 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
4781             Dzianis Kahanovich  <mahatma@eu.by>
4783         PR target/45359
4784         PR target/46396
4785         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4786         VIA/Centaur processors and determine their cache parameters
4787         using detect_caches_amd.
4789 2013-05-16  Teresa Johnson  <tejohnson@google.com>
4791         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
4792         (rtl_verify_edges): New function.
4793         (rtl_verify_bb_insns): Ditto.
4794         (rtl_verify_bb_pointers): Ditto.
4795         (rtl_verify_bb_insn_chain): Ditto.
4796         (rtl_verify_fallthru): Ditto.
4797         (rtl_verify_bb_layout): Ditto.
4798         (rtl_verify_flow_info_1): Outline checks into new functions.
4799         (rtl_verify_flow_info): Ditto.
4801 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
4803         * cfghooks.c (copy_bbs): Add update_dominance argument.
4804         * cfghooks.h (copy_bbs): Update prototype.
4805         * tree-cfg.c (gimple_duplicate_sese_region):
4806         Add update_dominance argument.
4807         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
4808         * tree-ssa-loop-ch.c (copy_loop_headers): Update
4809         gimple_duplicate_sese_region call.
4810         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
4811         Update copy_bbs call.
4812         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
4813         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
4815 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
4817         * tree-vectorizer.h (NUM_PATTERNS): Increment.
4818         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
4819         vect_recog_rotate_pattern.
4820         (vect_recog_rotate_pattern): New function.
4822 2013-05-16  Jason Merrill  <jason@redhat.com>
4824         * Makefile.in (LLINKER): New variable.
4825         (mostlyclean): Remove link mutex.
4826         * configure.ac: Handle --enable-link-mutex.
4827         * lock-and-run.sh: New script.
4829 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4831         PR target/19599
4832         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
4833         for NULL decl.
4835 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4837         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
4839 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
4841         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
4842         * config/arm/arm.c (next_consecutive_mem): New function.
4843         (gen_movmem_ldrd_strd): Likewise.
4844         * config/arm/arm.md (movmemqi): Update condition and code.
4845         (unaligned_loaddi, unaligned_storedi): New patterns.
4847 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4849         * config.gcc: Obsolete *-*-solaris2.9*.
4850         * doc/install.texi (Specific, *-*-solaris2*): Document it.
4852 2013-05-16  Richard Biener  <rguenther@suse.de>
4854         * passes.c (init_optimization_passes): Move pass_parallelize_loops
4855         earlier, after GRAPHITE transforms and IV canonicalization.
4857 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
4859         * omp-low.c (extract_omp_for_data): For collapsed loops,
4860         if at least one of the loops is known at compile time to
4861         iterate zero times, set count to 0.
4862         (expand_omp_regimplify_p): New function.
4863         (expand_omp_for_generic): For collapsed loops, if at least
4864         one of the loops isn't known to iterate at least once,
4865         add runtime check with setting count to 0.
4866         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4867         For unsigned types if it isn't known at compile time that
4868         the loop will iterate at least once, add runtime check to bypass
4869         the whole loop if initial condition isn't true.
4871 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
4873         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
4875 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
4877         PR middle-end/57286
4878         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
4879         transformations to avoid an infinite loop.
4881 2013-05-16  Marek Polacek  <polacek@redhat.com>
4883         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
4885 2013-05-15  Leif Ekblad  <leif@rdos.net>
4887         * config/i386/i386.c (ix86_decompose_address): Use
4888         DEFAULT_TLS_SEG_REG to access TLS segment register.
4889         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
4890         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
4891         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
4893 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
4895         PR target/57260
4896         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
4897         sibling calls to functions that would normally be lazily bound,
4898         unless $gp is call-clobbered.
4900 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
4902         * config/i386/i386.c (ix86_option_override_internal): Update
4903         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
4904         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
4905         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
4906         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
4907         of TARGET_3DNOW.
4908         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
4910 2013-05-15  Andreas Schwab  <schwab@suse.de>
4912         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
4913         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
4914         third operand.
4916 2013-05-15  Teresa Johnson  <tejohnson@google.com>
4918         * loop-unroll.c (report_unroll_peel): Check decision before
4919         emitting unroll/peel message.
4921 2013-05-15  Teresa Johnson  <tejohnson@google.com>
4923         * function.h (has_bb_partition): New rtl_data flag.
4924         (bb_reorder_complete): Ditto.
4925         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
4926         instead of flag_reorder_blocks_and_partition.
4927         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
4928         with some enhancements.
4929         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
4930         * bb-reorder.c (connect_traces): Check for has_bb_partition
4931         instead of flag_reorder_blocks_and_partition.
4932         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
4933         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
4934         verify_hot_cold_block_grouping.
4935         (partition_hot_cold_basic_blocks): Set has_bb_partition.
4937 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4939         PR target/19599
4940         * config/arm/predicates.md (call_insn_operand): New predicate.
4941         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
4942         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
4943         if insn is not a tail call.
4944         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
4945         registers.
4946         * config/arm/arm.h (enum reg_class): New caller save register class.
4947         (REG_CLASS_NAMES): Likewise.
4948         (REG_CLASS_CONTENTS): Likewise.
4949         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
4950         without decls.
4952 2013-05-15  Richard Biener  <rguenther@suse.de>
4954         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
4955         of MSG_OPTIMIZED_LOCATIONS.
4956         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
4957         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
4958         message.
4959         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
4960         of MSG_OPTIMIZED_LOCATIONS.
4961         (execute_vect_slp): Likewise.
4962         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
4963         (vect_create_cond_for_alias_checks): Likewise.
4964         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
4965         (vect_recog_widen_mult_pattern): Likewise.
4966         (vect_recog_widen_sum_pattern): Likewise.
4967         (vect_recog_over_widening_pattern): Likewise.
4968         (vect_recog_widen_shift_pattern): Likewise.
4969         (vect_recog_vector_vector_shift_pattern): Likewise.
4970         (vect_recog_divmod_pattern): Likewise.
4971         (vect_recog_mixed_size_cond_pattern): Likewise.
4972         (vect_recog_bool_pattern): Likewise.
4973         (vect_pattern_recog_1): Likewise.
4975 2013-05-15  Martin Jambor  <mjambor@suse.cz>
4977         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
4978         non-functions to builtin_unreachable.
4979         * ipa-inline-transform.c (inline_call): Do not assert estimates were
4980         correct when new direct edges were discovered.
4982 2013-05-15  Martin Jambor  <mjambor@suse.cz>
4984         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
4985         header, print symbol order instead of node uid, print more information
4986         about indirect edge targets.
4987         (ipa_make_edge_direct_to_target): Print symbol order instead of node
4988         uids.
4989         (ipa_make_edge_direct_to_target): Likewise.
4990         (remove_described_reference): Likewise.
4991         (propagate_controlled_uses): Likewise.
4992         (ipa_print_node_params): Also print symbol order.
4993         (ipcp_transform_function): Print symbol order instead of node uids.
4994         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
4995         (cgraph_get_create_real_symbol_node): Likewise.
4996         * ipa-cp.c (print_lattice): Likewise.
4997         (print_all_lattices): Likewise.
4998         (determine_versionability): Likewise.
4999         (initialize_node_lattices): Likewise.
5000         (estimate_local_effects): Likewise.
5001         (update_profiling_info): Likewise.
5002         (create_specialized_node): Likewise.
5003         (perhaps_add_new_callers): Likewise.
5004         (decide_about_value): Likewise.
5005         (decide_whether_version_node): Likewise.
5006         (identify_dead_nodes): Likewise.
5007         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
5008         (dump_inline_summary): Likewise.
5009         (estimate_node_size_and_time): Likewise.
5010         (inline_analyze_function): Likewise.
5011         * ipa-inline.c (report_inline_failed_reason): Likewise.
5012         (want_early_inline_function_p): Likewise.
5013         (edge_badness): Likewise.
5014         (update_edge_key): Likewise.
5015         (inline_small_functions): Likewise.  Add dumping of order to two other
5016         dumps.
5017         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
5018         instead of node uids.
5019         (propagate_pure_const): Likewise.
5020         (propagate_pure_const): Likewise.
5021         * ipa-utils.c (dump_cgraph_node_set): Likewise.
5022         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
5023         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
5024         of node uids.
5025         * tree-pretty-print.c (dump_function_header): Likewise.
5026         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
5027         Print symbol order instead of node uids.
5029 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5031         * config/s390/s390.c (s390_register_move_cost): Don't impose the
5032         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
5034 2013-05-15  Richard Biener  <rguenther@suse.de>
5036         PR tree-optimization/57275
5037         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
5038         return value for fail to do runtime alias checks for gather loads.
5040 2013-05-15  Jan Hubicka  <jh@suse.cz>
5042         PR lto/57038
5043         PR lto/47375
5044         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
5045         weakrefs are not external.
5046         (lto_symtab_merge_decls): Fix thinko when dealing with
5047         non-lto_symtab decls.
5048         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
5049         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
5050         * varpool.c (dump_varpool_node): Dump more flags.
5052 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
5054         * config/i386/i386.c (processor_alias_table): Add instruction
5055         FSGSBASE for AMD bdver3 architecture.
5057 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
5059         * tree.c (warn_deprecated_use): Print file:line using locus color.
5060         * diagnostic.c (diagnostic_report_current_module): Print file:line
5061         and file:line:column using locus color.
5063 2013-05-14  Mike Stump  <mikestump@comcast.net>
5065         * gdbinit.in: Add __null.
5067 2013-05-14  Mike Stump  <mikestump@comcast.net>
5069         * recog.h: Rename struct recog_data to Recog_data.
5070         * recog.c: Likewise.
5071         * reload.c (can_reload_into): Likewise.
5072         * config/picochip/picochip.c: Likewise.
5074 2013-05-14  Mike Stump  <mikestump@comcast.net>
5076         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
5078 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
5080         * resource.h (struct resources): Remove unch_memory member.
5081         (CLEAR_RESOURCE): Don't clear unch_memory.
5082         * resource.c (mark_referenced_resources): Don't set it.
5083         (mark_set_resources): Likewise.
5084         (mark_target_live_regs): Don't clear it.
5085         (init_resource_info): Likewise.
5086         * reorg.c (resource_conflicts_p): Don't compare it.
5087         (redundant_insn): Don't set it.
5089         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
5090         Remove prototypes.
5091         * emit-rtl.c (next_label): Remove unused function.
5092         (skip_consecutive_labels, link_cc0_insns): Move to ...
5093         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
5094         only place where these functions are used, and make them static.
5096 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
5098         * fold-const.c (fold_negate_expr): Handle vectors.
5099         (fold_truth_not_expr): Make it static.
5100         (fold_invert_truthvalue): New static function.
5101         (invert_truthvalue_loc): Handle vectors. Do not call
5102         fold_truth_not_expr directly.
5103         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
5104         <TRUTH_NOT_EXPR>: Do not cast to boolean.
5105         (fold_comparison): Handle vector constants.
5106         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
5107         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
5108         * tree.h (fold_truth_not_expr): Remove declaration.
5110 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
5112         * config/aarch64/aarch64-simd.md
5113         (aarch64_vcond_internal<mode>): Rename to...
5114         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
5115         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
5116         float modes. Clarify all iterator modes.
5117         (vcond<mode><mode>): Use new name for vcond expanders.
5118         (vcond<v_cmp_result><mode>): Likewise.
5119         (vcondu<mode><mode>: Likewise.
5120         * config/aarch64/iterators.md (VDQF_COND): New.
5122 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
5124         PR bootstrap/57266
5125         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
5126         variable for the shift amount. Check that we shift by non-negative
5127         amounts.
5129 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
5131         PR target/42017
5132         * config/arm/arm.h (EPILOGUE_USES): Only return true
5133         for LR_REGNUM after epilogue_completed.
5135 2013-05-14  Joern Rennecke <joern.rennecke@embecosm.com>
5137         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
5138         is error_mark_node.
5140 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5142         PR target/57261
5143         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
5144         and Solaris 11+/x86 with gld.
5145         * configure: Regenerate.
5147 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
5149         * expmed.c (expand_shift_1): Canonicalize rotates by
5150         constant bitsize / 2 to bitsize - 1.
5151         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
5152         case ROTATERT>: Likewise.
5154         Revert:
5155         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
5157         * config/i386/i386.md (rotateinv): New code attr.
5158         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5159         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5160         roll $31, %eax, etc.
5162 2013-05-14  Richard Biener  <rguenther@suse.de>
5164         PR middle-end/57235
5165         * tree-eh.c (sink_clobbers): Give up for successors with
5166         multiple predecessors and no virtual uses.
5168 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
5170         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
5171         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
5173 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
5175         PR middle-end/57251
5176         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
5177         the case when both op0 and op1 have VOIDmode.
5179 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
5181         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
5182         in multiply-accumulate mode.
5184 2013-05-13  Guozhi Wei  <carrot@google.com>
5186         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
5188 2013-05-13  Kai Tietz  <ktietz@redhat.com>
5190         PR target/56975
5191         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
5192         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
5193         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
5194         * config/i386/i386.c (ix86_option_override_internal): Likewise.
5195         (ix86_expand_prologue): Likewise.
5196         (ix86_expand_split_stack_prologue): Likewise.
5197         (legitimate_pic_address_disp_p): Likewise.
5198         (legitimize_pic_address): Likewise.
5199         (legitimize_tls_address): Likewise.
5200         (legitimize_pe_coff_symbol): Likewise.
5201         (output_pic_addr_const): Likewise.
5202         (construct_plt_address): Likewise.
5203         (ix86_expand_call): Likewise.
5204         (x86_output_mi_thunk): Likewise.
5205         (x86_function_profiler): Likewise.
5207 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
5209         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
5210         similar switch cases.
5211         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
5212         (aarch64_simd_mov_to_<mode>low): Delete.
5213         (aarch64_simd_mov_to_<mode>high): Delete.
5214         (move_lo_quad_<mode>): Add w<-r alternative.
5215         (aarch64_simd_move_hi_quad_<mode>): Likewise.
5216         (aarch64_simd_mov_from_*): Update type attribute.
5217         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
5218         statement.
5220 2013-05-13  Jan Hubicka  <jh@suse.cz>
5222         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
5223         * config/i386/i386.c (ix86_compute_frame_layout,
5224         ix86_expand_epilogue, emit_i387_cw_initialization,
5225         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
5226         ix86_local_alignment): Fix use of size/speed predicates.
5228 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
5230         PR tree-optimization/45216
5231         PR tree-optimization/57157
5232         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
5233         the (-Y) & (B - 1) variant if OP is |.
5234         * expmed.c (expand_shift_1): For rotations by const0_rtx just
5235         return shifted.  Use (-op1) & (prec - 1) as other_amount
5236         instead of prec - op1.
5238 2013-05-13  Martin Jambor  <mjambor@suse.cz>
5240         PR middle-end/42371
5241         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
5242         (ipa_constant_data): New type.
5243         (ipa_jump_func): Use ipa_constant_data to hold information about
5244         constant jump functions.
5245         (ipa_get_jf_constant): Adjust to jump function type changes.
5246         (ipa_get_jf_constant_rdesc): New function.
5247         (ipa_param_descriptor): New field controlled_uses.
5248         (ipa_get_controlled_uses): New function.
5249         (ipa_set_controlled_uses): Likewise.
5250         * ipa-ref.h (ipa_find_reference): Declare.
5251         * ipa-prop.c (ipa_cst_ref_desc): New type.
5252         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
5253         changes.
5254         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
5255         New parameter cs.  Adjust all callers.
5256         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
5257         (remove_described_reference): New function.
5258         (jfunc_rdesc_usable): Likewise.
5259         (try_make_edge_direct_simple_call): Decrement controlled use count,
5260         attempt to remove reference if it hits zero.
5261         (combine_controlled_uses_counters): New function.
5262         (propagate_controlled_uses): Likewise.
5263         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
5264         (ipa_edge_duplication_hook): Duplicate reference descriptions.
5265         (ipa_print_node_params): Print described use counter.
5266         (ipa_write_jump_function): Adjust to jump function type changes.
5267         (ipa_read_jump_function): New parameter CS, pass it to
5268         ipa_set_jf_constant.  Adjust caller.
5269         (ipa_write_node_info): Stream controlled use count
5270         (ipa_read_node_info): Likewise.
5271         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
5272         asserting.
5273         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
5274         count.  Remove cloning-added reference if it reaches zero.
5275         * ipa-ref.c (ipa_find_reference): New function.
5277 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
5279         * config/i386/i386.c (processor_target_table): Modified default
5280         alignment values for AMD BD and BT architectures.
5282 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
5284         * tree-vect-generic.c (uniform_vector_p): Move ...
5285         * tree.c (uniform_vector_p): ... here.
5286         * tree.h (uniform_vector_p): Declare it.
5287         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
5288         into a scalar.
5290 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
5292         PR tree-optimization/57230
5293         * tree-ssa-strlen.c (handle_char_store): Record length for
5294         array store from STRING_CST.
5296         PR tree-optimization/57230
5297         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
5298         check.
5300 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
5302         * config/epiphany/epiphany.c (epiphany_init): Check size of
5303         NUM_MODES_FOR_MODE_SWITCHING.
5304         (epiphany_expand_prologue):
5305         Remove CONFIG_REGNUM initial value handling code.
5306         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
5307         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
5308         (emit_set_fp_mode, epiphany_mode_after): Likewise.
5309         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
5310         Don't return 1 for FP_MODE_NONE.
5311         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
5312         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
5313         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
5314         * config/epiphany/epiphany.md (save_config): New pattern.
5316 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
5318         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
5320 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
5322         * config/i386/i386.md (memory): Handle sseishft1.
5323         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
5324         (*vec_extractv2di_1): Ditto.
5326 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
5328         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
5329         saved registers.
5331 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5333         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
5334         Add mthumb/march=armv7-a multilib.
5335         Add mthumb/march=armv7-r multilib.
5336         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
5338 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
5340         * config/v850/t-rtems: Add more multilibs.
5342 2013-05-10  Richard Biener  <rguenther@suse.de>
5344         PR tree-optimization/57214
5345         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
5346         not propagate from SSA names that occur in abnormal PHI nodes.
5348 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
5350         * stor-layout.c (element_precision): New function.
5351         * machmode.h (element_precision): Declare it.
5352         * tree.c (build_minus_one_cst): New function.
5353         (element_precision): Likewise.
5354         * tree.h (build_minus_one_cst): Declare new function.
5355         (element_precision): Likewise.
5356         * fold-const.c (operand_equal_p): Use element_precision.
5357         (fold_binary_loc): Handle vector types.
5358         * convert.c (convert_to_integer): Use element_precision.
5359         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
5360         separately.
5362 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
5364         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
5365         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
5366         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
5367         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5368         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
5369         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
5370         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
5371         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5372         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
5373         (Uuw8): New constraints.
5374         (Usb4): Move into alphabetical order.
5375         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
5376         (sd8_operand, ub8_operand, uw8_operand): New predicates.
5377         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
5378         previously unnamed patterns.
5379         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
5380         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
5381         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
5382         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
5383         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
5384         of specific lengths.
5386 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
5388         * config/i386/i386.md (rotateinv): New code attr.
5389         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5390         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5391         roll $31, %eax, etc.
5393         PR tree-optimization/45216
5394         PR tree-optimization/57157
5395         * tree-ssa-forwprop.c (simplify_rotate): New function.
5396         (ssa_forward_propagate_and_combine): Call it.
5398 2013-05-10  Richard Biener  <rguenther@suse.de>
5400         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
5401         disable peeling when we version for aliasing.
5402         (vector_alignment_reachable_p): Honor explicit user alignment.
5403         (vect_supportable_dr_alignment): Likewise.
5404         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
5405         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
5406         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
5407         then peeling to arrange for the cost-model check to come first.
5409 2013-05-10  Alan Modra  <amodra@gmail.com>
5411         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
5412         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
5413         * configure: Regenerate.
5415 2013-05-10  Alan Modra  <amodra@gmail.com>
5417         PR target/55033
5418         * varasm.c (default_elf_select_section): Move !DECL_P check..
5419         (get_named_section): ..to here before calling get_section_name.
5420         Adjust assertion.
5421         (default_section_type_flags): Add DECL_P check.
5422         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
5423         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
5425 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
5427         * config/epiphany/epiphany.c (epiphany_expand_prologue):
5428         When using gen_stack_adjust_str with a register offset, add a
5429         REG_FRAME_RELATED_EXPR note.
5431 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
5433         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
5434         (*vec_extractv4si_zext_mem): Ditto.
5435         (*vec_extractv2di): Add 0->x and x->x alternatives.
5436         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
5437         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
5439 2013-05-09  Jason Merrill  <jason@redhat.com>
5441         N3639 C++1y VLA support
5442         * gimplify.c (gimplify_vla_decl): Don't touch an existing
5443         DECL_VALUE_EXPR.
5445         * tree.c (build_constructor_va): New.
5446         * tree.h: Declare it.
5448 2013-05-09  Martin Jambor  <mjambor@suse.cz>
5450         PR lto/57084
5451         * gimple-fold.c (canonicalize_constructor_val): Call
5452         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
5454 2013-05-09  Jan Hubicka  <jh@suse.cz>
5455             Richard Biener  <rguenther@suse.de>
5457         PR lto/54095
5458         * symtab.c (symtab_make_decl_local): Do not add private names.
5460 2013-05-09  Jan Hubicka  <jh@suse.cz>
5462         PR lto/54095
5463         * symtab.c (insert_to_assembler_name_hash): Handle clones.
5464         (unlink_from_assembler_name_hash): Likewise.
5465         (symtab_prevail_in_asm_name_hash, symtab_register_node,
5466         symtab_unregister_node, symtab_initialize_asm_name_hash,
5467         change_decl_assembler_name): Update.
5469 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
5471         * config/aarch64/aarch64.md: New movtf split.
5472         (*movtf_aarch64): Update.
5473         (aarch64_movdi_tilow): Handle TF modes and rename to
5474         aarch64_movdi_<mode>low.
5475         (aarch64_movdi_tihigh): Handle TF modes and rename to
5476         aarch64_movdi_<mode>high
5477         (aarch64_movtihigh_di): Handle TF modes and rename to
5478         aarch64_mov<mode>high_di
5479         (aarch64_movtilow_di): Handle TF modes and rename to
5480         aarch64_mov<mode>low_di
5481         (aarch64_movtilow_tilow): Remove spurious whitespace.
5482         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
5483         splits.
5484         (aarch64_print_operand): Update.
5486 2013-05-09  Alan Modra  <amodra@gmail.com>
5488         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
5489         powerpc64le.
5490         * configure: Regenerate.
5492 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
5494         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
5495         splitter preparation statements.
5496         * config/i386/sse.md (*vec_extract* splitters): Ditto.
5497         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
5498         adjust_address_nv.
5500 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5502         * gimple-ssa-strength-reduction.c (count_candidates): Change
5503         return value to int.
5504         (analyze_candidates_and_replace): Change type of length to int.
5506 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
5508         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
5509         (*vec_extract<mode>): Use VI12_128 mode iterator.
5510         (*vec_extract<mode>_mem): Ditto.
5511         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
5512         attribute.
5514 2013-05-08  Diego Novillo  <dnovillo@google.com>
5516         PR bootstrap/54659
5518         Revert:
5519         2012-08-17  Diego Novillo  <dnovillo@google.com>
5521         PR bootstrap/54281
5522         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
5523         * config.in: Regenerate.
5524         * configure: Regenerate.
5525         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
5527 2013-05-08  Jan Hubicka  <jh@suse.cz>
5529         PR lto/54095
5530         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
5531         * cgraph.h (symtab_node_base): Add unique_name.
5532         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
5533         input_overwrite_node, input_varpool_node): Stream unique_name.
5534         * cgraphclones.c (cgraph_create_virtual_clone,
5535         cgraph_function_versioning): Set unique_name.
5536         * ipa.c (function_and_variable_visibility): Set unique_name.
5538 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5540         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
5541         (alloc_cand_and_find_basis): Restrict conditional candidate
5542         processing to CAND_MULTs.
5544 2013-05-08  Jan Hubicka  <jh@suse.cz>
5546         PR lto/54095
5547         lto-symtab.c (lto_symtab_symbol_p): New function.
5548         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
5549         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
5550         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
5551         Skip static symbols.
5553 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
5555         PR tree-optimization/57200
5556         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
5557         Only call inform if the preceding warning_at returns true.
5559 2013-05-07  Han Shen  <shenhan@google.com>
5561         * cfgexpand.c (record_or_union_type_has_array_p): New function.
5562         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
5563         * common.opt (fstack-protector-strong): New option.
5564         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
5565         * doc/invoke.texi (Optimization Options): Document
5566         "-fstack-protector-strong".
5567         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
5569 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
5571         * config/mips/mips.c (mips_machine_reorg2): Return 0.
5573 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
5575         * ira.c (update_equiv_regs): Add insn having equiv memory even if
5576         it is not lhs of the insn.
5577         (setup_reg_equiv): Remove insn having equiv memory which it is not
5578         lhs of the insn.
5579         * lra-constraints.c (process_address): Try to improve generation
5580         code for address base + disp.
5581         (lra_constraints): Make correct the code for checking insn setting
5582         up backward equivalence.  Remove insn only if it is in the init
5583         insn list.
5584         * lra-eliminations.c (update_reg_eliminate): Change return value.
5585         (lra_eliminate): Use the result.
5587 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
5589         * config/i386/sse.md (ssescalarnummask): New mode attribute.
5590         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
5591         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
5592         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
5593         register target operands.
5594         (*vec_extractv8hi_sse2): New pattern.
5595         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
5596         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
5597         (*vec_extract<mode>_mem): New insn and split pattern.
5599 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
5601         * config/arm/arm.c (arm_asan_shadow_offset): New function.
5602         (TARGET_ASAN_SHADOW_OFFSET): Define.
5603         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
5604         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
5606 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5608         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
5609         (incr_vec_index): Return -1 if increment not found.
5610         (create_add_on_incoming_edge): Assert if increment not found.
5611         (record_increment): Limit number of increments recorded.
5612         (all_phi_incrs_profitable): Return false if an increment not found.
5613         (replace_profitable_candidates): Don't process increments that were
5614         not recorded.
5615         (analyze_candidates_and_replace): Limit size of incr_vec.
5617 2013-05-07  Richard Biener  <rguenther@suse.de>
5619         * calls.c (special_function_p): setjmp-like functions are leaf.
5620         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
5621         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
5623 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
5625         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
5626         (aarch64_simd_mov<mode>): New expander.
5627         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
5628         (aarch64_simd_mov_to_<mode>high): Likewise.
5629         (aarch64_simd_mov_from_<mode>low): Likewise.
5630         (aarch64_simd_mov_from_<mode>high): Likewise.
5631         (aarch64_dup_lane<mode>): Update.
5632         (aarch64_dup_lanedi): New instruction pattern.
5633         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
5634         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
5636 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5638         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
5639         (replace_mult_candidate): Remove unnecessary argument; remove
5640         unnecessary parameter from call to introduce_cast_before_cand.
5641         (replace_unconditional_candidate): Remove unnecessary parameter
5642         from call to replace_mult_candidate.
5643         (replace_conditional_candidate): Likewise.
5644         (insert_initializers): Use make_temp_ssa_name.
5645         (introduce_cast_before_cand): Remove unnecessary argument; use
5646         make_temp_ssa_name.
5647         (replace_one_candidate): Remove unnecessary argument; remove
5648         unnecessary parameter from calls to introduce_cast_before_cand.
5649         (replace_profitable_candidates): Remove unnecessary parameters
5650         from calls to replace_one_candidate.
5652 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5654         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
5655         phi def as possibly hiding a basis for a CAND_ADD whose operands
5656         have been commuted in the analysis.
5657         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
5659 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5661         * config/aarch64/aarch64.md
5662         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
5663         shift value between 0-4.
5665 2013-05-07  Richard Biener  <rguenther@suse.de>
5667         * double-int.h (rshift): New overload.
5668         * double-int.c (rshift): New function.
5669         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
5670         (create_reference_ops_from_ref): Remove.
5671         (vn_reference_insert): Use shared ops for constructing the
5672         reference and copy it.
5674 2013-05-07  Richard Biener  <rguenther@suse.de>
5676         PR middle-end/57190
5677         * tree-eh.c (sink_clobbers): Properly propagate
5678         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
5680 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
5682         PR tree-optimization/57149
5683         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
5684         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
5685         collect_phi_def_edges, execute_late_warn_uninitialized): Use
5686         uninit_undefined_value_p instead of ssa_undefined_value_p.
5688         PR debug/57184
5689         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
5690         for modifier == EXPAND_INITIALIZER.
5692 2013-05-07  Anton Blanchard  <anton@samba.org>
5694         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
5695         for powerpc64 little endian.
5696         * configure: Regenerate.
5698 2013-05-06  Graham Stott  <grahams@btinternet.com>
5700         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
5701         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
5702         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
5703         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
5705 2013-05-06  Graham Stott  <grahams@btinternet.com>
5707         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
5708         codes which allow non-lvalues.
5710 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
5712         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
5713         components are all 1s.
5714         (integer_minus_onep): New function.
5715         * tree.h (integer_minus_onep): Declare it.
5716         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
5717         integer_minus_onep instead of integer_all_onesp.
5719 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5721         PR target/52933
5722         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
5723         variations of these patterns.
5725 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
5727         * config/i386/i386.md (isa): Add x64_sse4 member.
5728         (enabled): Handle x64_sse4.
5729         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
5730         instruction for 64bit SSE4_1 targets.  Update insn attributes.
5731         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
5732         instruction for SSE4_1 targets.  Update insn attributes.
5733         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5734         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
5735         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
5736         const_1 selector.
5737         (*vec_extractv4si): Rename from *sse4_1_pextrd.
5738         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
5739         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
5741 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5743         PR target/57108
5744         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
5746 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
5748         * final.c (do_assembler_dialects): Don't handle curly braces and
5749         vertical bar escaped by % as dialect delimiters.
5750         (output_asm_insn): Print curly braces and vertical bar if escaped
5751         by % and ASSEMBLER_DIALECT defined.
5752         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
5753         * doc/tm.texi: Regenerated.
5755 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
5757         * config/mips/mips.c: Include tree-pass.h.
5758         (mips_reorg): Split in pre- and post-dbr_schedule parts.
5759         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
5760         (pass_mips_machine_reorg2): New machine specific pass.
5761         (insert_pass_mips_machine_reorg2): New pass plugin definition.
5762         (mips_option_override): Register the new pass.
5763         * rtl.h (cleanup_barriers): Remove prototype.
5764         (dbr_schedule): Likewise.
5765         * jump.c (cleanup_barriers): Make static.
5766         * reorg.c (dbr_schedule): Likewise.
5768 2013-05-06  Richard Biener  <rguenther@suse.de>
5770         PR tree-optimization/57185
5771         * tree-parloops.c (add_field_for_reduction): Handle anonymous
5772         SSA names properly.
5774 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
5776         PR target/57106
5777         * config/i386/i386.c (add_parameter_dependencies): Add dependence
5778         between "first_arg" and "insn", not "last" and "insn".
5780 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5782         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
5783         (find_candidates_in_block): Re-enable slsr_process_phi.
5784         (create_phi_basis): Fix double counting of candidate adjustment.
5786 2013-05-06  Richard Biener  <rguenther@suse.de>
5788         PR middle-end/57147
5789         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
5790         the edge is also fallthru, preserve it and just clear the
5791         abnormal flag.
5792         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
5793         also complex, preserve that and just clear the fallthru flag.
5794         * tree-inline.c (update_ssa_across_abnormal_edges): Also
5795         update virtual operands.
5797 2013-05-06  Alan Modra  <amodra@gmail.com>
5799         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
5800         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
5801         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
5802         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
5803         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5804         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
5806 2013-05-06  Alan Modra  <amodra@gmail.com>
5808         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
5809         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
5810         (DEFAULT_ASM_ENDIAN): Define.
5811         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5812         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
5813         Update -K PIC clause from sysv4.h.
5814         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
5815         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
5817 2013-05-06  Alan Modra  <amodra@gmail.com>
5819         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
5820         twice for little-endian.
5821         (ashrdi3_no_power, ashrdi3): Support little-endian.
5823 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5825         PR target/55303
5826         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
5827         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
5828         related expanders.
5829         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
5830         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
5831         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
5832         New predicates.
5834 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
5835             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5837         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
5838         * config/pa/pa.opt: Make mbig-switch a no-op.
5839         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
5840         (CASE_VECTOR_MODE): Always return SImode.
5841         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
5842         for the !TARGET_BIG_SWITCH case.
5843         * config/pa/pa-linux.h: Likewise.
5844         * config/pa/pa-openbsd.h: Likewise.
5845         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
5846         * config/pa/pa.md (short_jump): Remove define_insn.
5847         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
5848         (casesi0): Remove define_insn.
5849         (type): Remove btable_branch.
5850         (pa_combine_type): Likewise.
5851         (in_nullified_branch_delay): Likewise.
5852         (in_call_delay): Likewise.
5853         (define_delay): Likewise.
5854         (define_insn_reservation "Z3"): Likewise.
5855         (define_insn_reservation "Z4"): Likewise.
5856         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
5857         (pa_adjust_insn_length): Remove adjustment for btable branches.
5858         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
5859         and mno-big-switch
5861 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
5863         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5864         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
5865         Add m->r,x alternatives.
5866         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
5867         splitters using SWI48x mode iterator.
5868         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
5869         TARGET_64BIT.  Add m->x alternative.
5870         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
5871         Add o->x alternative.  Enable for TARGET_SSE.
5872         (sse_storeq): Remove expander.
5873         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
5874         with memory input operand.
5875         (*vec_extractv2di_1 splitter): New.
5876         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
5877         * config/i386/i386.md (ssevecmodelower): New mode attribute.
5879 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
5881         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
5882         (INT_LOWPART): Delete.
5883         (extract_MB): Adjust.
5884         (extract_ME): Adjust.
5885         (print_operand): Adjust.
5887 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
5889         * config/rs6000/predicates.md (reg_or_add_cint_operand,
5890         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5891         (reg_or_logical_cint_operand, easy_fp_constant,
5892         logical_const_operand): Delete "CONST_DOUBLE" case.
5893         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
5894         "HOST_BITS_PER_WIDE_INT == 64" test.
5895         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
5896         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
5897         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
5898         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
5899         test.
5900         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
5901         CONST_DOUBLE DImode/VOIDmode case.
5902         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
5903         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
5904         CONST_DOUBLE VOIDmode case.
5905         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5906         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
5907         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
5908         Delete CONST_DOUBLE case.
5909         (splitters for mov FMOVE64 const_double): Delete
5910         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
5911         "HOST_BITS_PER_WIDE_INT >= 64" test.
5912         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
5913         case.
5914         (mov DI const_double): Delete.
5916 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
5918         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
5919         on op shows all bits zero in mode of a lowpart subreg, return zero.
5921 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
5923         PR target/57150
5924         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
5925         to save TFmode registers and DImode to save TImode registers for
5926         caller save operations.
5927         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
5928         mark being partially clobbered since they only use the first
5929         double word.
5931         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
5932         and TDmode only use the upper 64-bits of each VSX register.
5934 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5936         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
5937         (find_candidates_in_block): Disable slsr_process_phi.
5939 2013-05-03  Guozhi Wei  <carrot@google.com>
5941         * coverage.c (coverage_obj_init): Move the construction of gcov
5942         constructor to ...
5943         (build_init_ctor): ... here.
5945 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5947         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
5948         (slsr_cand_d): Redefine def_phi.
5949         (stride_status, phi_adjust_status, count_phis_status): New enums.
5950         (find_phi_def): New.
5951         (find_basis_for_base_expr): New.
5952         (find_basis_for_candidate): Handle hidden bases.
5953         (alloc_cand_and_find_basis): Handle phi candidates.
5954         (slsr_process_phi): New.
5955         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
5956         (create_mul_imm_cand): Likewise.
5957         (create_add_ssa_cand): Exclude phi base candidates.
5958         (create_add_imm_cand): Likewise.
5959         (slsr_process_cast): Likewise.
5960         (slsr_process_copy): Likewise.
5961         (find_candidates_in_block): Handle phi candidates.
5962         (dump_candidate): Likewise.
5963         (unconditional_cands): Delete.
5964         (unconditional_cands_with_known_stride_p): Delete.
5965         (phi_dependent_cand_p): New.
5966         (cand_increment): Handle phi-dependent candidates.
5967         (replace_dependent): Delete.
5968         (replace_mult_candidate): New.
5969         (replace_unconditional_candidate): New.
5970         (incr_vec_index): Move to avoid forward reference.
5971         (create_add_on_incoming_edge): New.
5972         (create_phi_basis): New.
5973         (replace_dependents): Delete.
5974         (replace_conditional_candidate): New.
5975         (phi_add_costs): New.
5976         (replace_uncond_cands_and_profitable_phis): New.
5977         (record_increment): Handle phi adjustments.
5978         (record_phi_increments): New.
5979         (record_increments): Handle phi adjustments.
5980         (phi_incr_cost): New.
5981         (lowest_cost_path): Handle phis.
5982         (total_savings): Likewise.
5983         (analyze_increments): Likewise.
5984         (ncd_with_phi): New.
5985         (ncd_of_cand_and_phis): New.
5986         (nearest_common_dominator_for_cands): Handle phi increments.
5987         (all_phi_incrs_profitable): New.
5988         (replace_profitable_candidates): Handle phi-dependent candidates.
5989         (analyze_candidates_and_replace): Likewise.
5991 2013-05-03  Teresa Johnson  <tejohnson@google.com>
5993         PR bootstrap/57154
5994         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
5995         do not exceed REG_BR_PROB_BASE.
5997 2013-05-03  Jeff Law  <law@redhat.com>
5999         PR tree-optimization/57144
6000         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
6001         operand of the condition will bit into the new type when eliminating
6002         a cast feeding a condition.
6004 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
6006         PR rtl-optimization/57130
6007         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
6008         of COMPARE as in_code to the recursive call if needed.
6010 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
6012         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
6013         (enabled): Handle new members.
6014         * config/i386/sse.md (*vec_concatv2si): Merge from
6015         *vec_concatv2si_sse2 and vec_concatv2si_sse.
6016         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
6018 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
6020         PR tree-optimization/57027
6021         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
6022         for fnms opportunity, check we got the prerequisite kind
6023         of tree / gimple before using accessor functions.
6025 2013-05-03  Richard Biener  <rguenther@suse.de>
6027         * double-int.h (lshift): New overload without precision
6028         and arith argument.
6029         (operator *=, operator +=, operator -=): Move ...
6030         * double-int.c (operator *=, operator +=, operator -=): ... here
6031         and implement more efficiently.
6032         (mul_double_with_sign): Remove.
6033         (lshift_double): Adjust to take unsinged shift argument, push
6034         dispatching code to callers.
6035         (mul_double_wide_with_sign): Add early out for callers that
6036         are not interested in high parts or overflow.
6037         (lshift): New function.
6038         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
6039         dispatch code here.
6040         (lrotate, rrotate): Use logical shifts.
6041         * expr.c (get_inner_reference): Use lshift.
6042         * fixed-value.c (do_fixed_divide): Likewise.
6043         * tree-dfa.c (get_ref_base_and_extent): Likewise.
6044         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6045         (indirect_refs_may_alias_p): Likewise.
6046         (stmt_kills_ref_p_1): Likewise.
6048 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
6050         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
6052 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
6054         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
6055         scalar form of FABD instruction.
6057 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
6059         * lra-constraints.c (process_alt_operands): Add checking alt
6060         number to choose the best alternative.
6062 2013-05-02  Richard Biener  <rguenther@suse.de>
6064         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
6065         bitmap and its handling.
6066         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
6068 2013-05-02  Richard Biener  <rguenther@suse.de>
6070         PR middle-end/57140
6071         * tree-inline.c (copy_loops): Properly handle removed loops.
6072         (copy_cfg_body): Mark destination loops for fixup if source
6073         loops needed fixup.
6075 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
6077         PR target/56732
6078         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
6079         generating simple_return for naked functions.
6081 2013-05-02  Martin Jambor  <mjambor@suse.cz>
6083         PR middle-end/56988
6084         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
6085         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
6086         flags match.
6087         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
6088         ipa_agg_replacement_value structures.
6089         (known_aggs_to_agg_replacement_list): Likewise.
6090         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
6091         (read_agg_replacement_chain): Likewise.
6092         (ipcp_transform_function): Also check that by_ref flags match.
6094 2013-05-02  Richard Biener  <rguenther@suse.de>
6096         * graphds.h (struct graph): Add obstack member.
6097         * graphds.c (new_graph): Initialize obstack and allocate
6098         vertices from it.
6099         (add_edge): Allocate edge from the obstack.
6100         (free_graph): Free the obstack instead of all edges and vertices.
6102 2013-05-02  Teresa Johnson  <tejohnson@google.com>
6104         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
6105         divides.
6106         * cfg.c (update_bb_profile_for_threading): Ditto.
6107         * tree-inline.c (copy_bb): Ditto.
6108         (copy_edges_for_bb): Ditto.
6109         (initialize_cfun): Ditto.
6110         (copy_cfg_body): Ditto.
6111         (expand_call_inline): Ditto.
6112         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
6113         (estimate_node_size_and_time): Ditto.
6114         (inline_merge_summary): Ditto.
6115         * cgraphclones.c (cgraph_clone_edge): Ditto.
6116         (cgraph_clone_node): Ditto.
6117         * sched-rgn.c (compute_dom_prob_ps): Ditto.
6118         (compute_trg_info): Ditto.
6120 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
6122         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
6123         S reg when fp attribute set.
6124         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
6126 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
6128         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
6129         New pattern.
6130         (*and_one_cmplsi3_compare0_uxtw): Likewise.
6131         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
6132         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
6134 2013-05-02  Richard Biener  <rguenther@suse.de>
6136         * tree-scalar-evolution.c (scev_info_hasher): Remove.
6137         (struct instantiate_cache_entry): New type.
6138         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
6139         (struct instantiate_cache_type): New type.
6140         (set_instantiated_value, get_instantiated_value): Remove.
6141         (get_instantiated_value_entry): New function.
6142         (instantiate_scev_name): Use the new cache and adjust.
6143         (instantiate_scev_poly): Adjust.
6144         (instantiate_scev_binary): Likewise.
6145         (instantiate_array_ref): Likewise.
6146         (instantiate_scev_convert): Likewise.
6147         (instantiate_scev_not): Likewise.
6148         (instantiate_scev_3): Likewise.
6149         (instantiate_scev_2): Likewise.
6150         (instantiate_scev_r): Likewise.
6151         (instantiate_scev): Likewise.
6152         (resolve_mixers): Likewise.
6154 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
6156         PR target/57091
6157         * lra-constraints.c (best_small_class_operands_num): Remove.
6158         (process_alt_operands): Remove small_class_operands_num.  Take
6159         small classes operands into losers and only if the operand is not
6160         matched.  Modify debugging output.
6161         (curr_insn_transform): Remove best_small_class_operands_num.
6162         Print insn name.
6164 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6166         * config/aarch64/aarch64-builtins.c
6167         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
6168         * config/aarch64/aarch64-simd-builtins.def
6169         (reduc_splus_): Add new modes.
6170         (reduc_uplus_): New.
6171         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
6172         (reduc_uplus_v4sf): Likewise.
6173         (reduc_splus_v4sf): Likewise.
6174         (aarch64_addv<mode>): Likewise.
6175         (reduc_uplus_<mode>): Likewise.
6176         (reduc_splus_<mode>): Likewise.
6177         (aarch64_addvv2di): Likewise.
6178         (reduc_uplus_v2di): Likewise.
6179         (reduc_splus_v2di): Likewise.
6180         (aarch64_addvv2si): Likewise.
6181         (reduc_uplus_v2si): Likewise.
6182         (reduc_splus_v2si): Likewise.
6183         (reduc_<sur>plus_<mode>): New.
6184         (reduc_<sur>plus_v2di): Likewise.
6185         (reduc_<sur>plus_v2si): Likewise.
6186         (reduc_<sur>plus_v4sf): Likewise.
6187         (aarch64_addpv4sf): Likewise.
6188         * config/aarch64/arm_neon.h
6189         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
6190         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
6191         add UNSPEC_SADDV, UNSPEC_UADDV.
6192         (SUADDV): New.
6193         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
6195 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6197         * config/aarch64/arm_neon.h
6198         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
6200 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6202         * config/aarch64/aarch64-builtins
6203         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
6205 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6207         * config/aarch64/aarch64-simd-builtins.def
6208         (reduc_smax_): New.
6209         (reduc_smin_): Likewise.
6210         (reduc_umax_): Likewise.
6211         (reduc_umin_): Likewise.
6212         (reduc_smax_nan_): Likewise.
6213         (reduc_smin_nan_): Likewise.
6214         (fmax): Remove.
6215         (fmin): Likewise.
6216         (smax): Update for V2SF, V4SF and V2DF modes.
6217         (smin): Likewise.
6218         (smax_nan): New.
6219         (smin_nan): Likewise.
6220         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
6221         (<su><maxmin><mode>3): ...This, refactor.
6222         (s<maxmin><mode>3): New.
6223         (<maxmin_uns><mode>3): Likewise.
6224         (reduc_<maxmin_uns>_<mode>): Refactor.
6225         (reduc_<maxmin_uns>_v4sf): Likewise.
6226         (reduc_<maxmin_uns>_v2si): Likewise.
6227         (aarch64_<fmaxmin><mode>: Remove.
6228         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
6229         new builtin names.
6230         (vmin<q>_f<32,64>): Likewise.
6231         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6232         (FMAXMIN): New.
6233         (su): Add mappings for smax, smin, umax, umin.
6234         (maxmin): New.
6235         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6236         (FMAXMIN): Rename as...
6237         (FMAXMIN_UNS): ...This.
6238         (maxminv): Remove.
6239         (fmaxminv): Likewise.
6240         (fmaxmin): Likewise.
6241         (maxmin_uns): New.
6242         (maxmin_uns_op): Likewise.
6244 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6246         * config/aarch64/arm_neon.h
6247         (vac<ge, gt><sd>_f<32, 64>): Rename to...
6248         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
6249         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
6251 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6253         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
6254         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
6256 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6258         * config/aarch64/aarch64-simd.md
6259         (vcond<mode>_internal): Handle special cases for constant masks.
6260         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
6261         (vcondu<mode><mode>): Likewise.
6262         (vcond<v_cmp_result><mode>): New.
6264 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6266         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
6267         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
6268         * config/aarch64/aarch64-simd-builtins.def
6269         (cmeq): Update to BUILTIN_VALLDI.
6270         (cmgt): Likewise.
6271         (cmge): Likewise.
6272         (cmle): Likewise.
6273         (cmlt): Likewise.
6274         * config/aarch64/arm_neon.h
6275         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
6276         to builtins or C as appropriate.
6278 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6280         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
6281         (cmgeu): ...This.
6282         (cmhi): Rename to...
6283         (cmgtu): ...This.
6284         * config/aarch64/aarch64-simd.md
6285         (simd_mode): Add SF.
6286         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
6287         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
6288         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
6289         (cstore<mode>_neg): ...This.
6290         * config/aarch64/iterators.md
6291         (VALLF): new.
6292         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
6293         (COMPARISONS): New.
6294         (UCOMPARISONS): Likewise.
6295         (optab): Add missing comparisons.
6296         (n_optab): New.
6297         (cmp_1): Likewise.
6298         (cmp_2): Likewise.
6299         (CMP): Likewise.
6300         (cmp): Remove.
6301         (VCMP_S): Likewise.
6302         (VCMP_U): Likewise.
6303         (V_cmp_result): Add DF, SF modes.
6304         (v_cmp_result): Likewise.
6305         (v): Likewise.
6306         (vmtype): Likewise.
6307         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
6309 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
6311         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
6312         define_insn to define_insn_and_split.
6313         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
6314         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
6315         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
6316         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
6317         (thumb2_negscc): Likewise.
6319 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
6321         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
6323 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
6325         * config/arm/thumb2.md: Remove trailing whitespaces.
6327 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
6329         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
6330         Use gen_int_mode rather than GEN_INT.
6332 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
6334         * value-prof.c (stream_in_histogram_value): Remove the strayed
6335         debug_gimple_stmt.
6337 2013-04-30  Richard Biener  <rguenther@suse.de>
6339         PR middle-end/57122
6340         * cfghooks.c (split_edge): Properly check for the loop latch edge.
6342 2013-04-30  Richard Biener  <rguenther@suse.de>
6344         PR middle-end/57107
6345         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
6347 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
6349         PR rtl-optimization/56957
6350         PR rtl-optimization/57105
6351         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
6352         variable.  Use just INSN_UID for determining whether an insn
6353         should be only disconnected from the insn stream.
6354         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
6356 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
6358         PR tree-optimization/57104
6359         * tsan.c (instrument_expr): Don't instrument accesses to
6360         DECL_HARD_REGISTER VAR_DECLs.
6362 2013-04-30  Richard Biener  <rguenther@suse.de>
6364         * function.h (loops_for_fn): New inline function.
6365         (set_loops_for_fn): Likewise.
6366         * cfgloop.h (place_new_loop): Add struct function parameter.
6367         (get_loop): Likewise.
6368         (get_loops): Likewise.
6369         (number_of_loops): Likewise.
6370         (fel_next): Adjust.
6371         (fel_init): Likewise.
6372         * cfg.c (get_loop_copy): Adjust.
6373         * cfgloop.c (flow_loops_dump): Likewise.
6374         (record_loop_exits): Likewise.
6375         (verify_loop_structure): Likewise.
6376         * cfgloopanal.c (mark_irreducible_loops): Likewise.
6377         (estimate_reg_pressure_cost): Likewise.
6378         (mark_loop_exit_edges): Likewise.
6379         * cfgloopmanip.c (place_new_loop): Likewise.
6380         (add_loop): Likewise.
6381         (duplicate_loop): Likewise.
6382         * graph.c (draw_cfg_nodes): Likewise.
6383         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
6384         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
6385         (extract_affine_chrec): Likewise.
6386         (build_scop_iteration_domain): Likewise.
6387         * graphite.c (graphite_initialize): Likewise.
6388         * ira-build.c (create_loop_tree_nodes): Likewise.
6389         (more_one_region_p): Likewise.
6390         (rebuild_regno_allocno_maps): Likewise.
6391         (mark_loops_for_removal): Likewise.
6392         (mark_all_loops_for_removal): Likewise.
6393         (remove_unnecessary_regions): Likewise.
6394         (ira_build): Likewise.
6395         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
6396         * loop-init.c (fix_loop_structure): Likewise.
6397         (gate_rtl_move_loop_invariants): Likewise.
6398         (gate_rtl_unswitch): Likewise.
6399         (gate_rtl_unroll_and_peel_loops): Likewise.
6400         (rtl_doloop): Likewise.
6401         * lto-streamer-in.c (input_cfg): Likewise.
6402         * lto-streamer-out.c (output_cfg): Likewise.
6403         * modulo-sched.c (sms_schedule): Likewise.
6404         * predict.c (tree_estimate_probability): Likewise.
6405         (tree_estimate_probability_driver): Likewise.
6406         (estimate_loops): Likewise.
6407         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
6408         (move_sese_region_to_fn): Likewise.
6409         (debug_loop_num): Likewise.
6410         * tree-chrec.c (chrec_evaluate): Likewise.
6411         (hide_evolution_in_other_loops_than_loop): Likewise.
6412         (chrec_component_in_loop_num): Likewise.
6413         (reset_evolution_in_loop): Likewise.
6414         (evolution_function_is_invariant_rec_p): Likewise.
6415         * tree-if-conv.c (main_tree_if_conversion): Likewise.
6416         * tree-inline.c (copy_loops): Likewise.
6417         (copy_cfg_body): Likewise.
6418         (tree_function_versioning): Likewise.
6419         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
6420         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6421         Likewise.
6422         (add_to_evolution_1): Likewise.
6423         (scev_const_prop): Likewise.
6424         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
6425         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6426         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6427         (tree_ssa_lim_initialize): Likewise.
6428         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
6429         (verify_loop_closed_ssa): Likewise.
6430         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
6431         (tree_ssa_loop_im): Likewise.
6432         (tree_ssa_loop_unswitch): Likewise.
6433         (tree_vectorize): Likewise.
6434         (check_data_deps): Likewise.
6435         (tree_ssa_loop_ivcanon): Likewise.
6436         (tree_ssa_loop_bounds): Likewise.
6437         (tree_complete_unroll): Likewise.
6438         (tree_complete_unroll_inner): Likewise.
6439         (tree_parallelize_loops): Likewise.
6440         (tree_ssa_loop_prefetch): Likewise.
6441         (tree_ssa_loop_ivopts): Likewise.
6442         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
6443         * tree-vectorizer.c (vectorize_loops): Likewise.
6445 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
6447         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
6448         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
6449         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
6450         with EABI_LINK_SPEC.
6452 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
6454         PR target/44578
6455         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
6456         alternative.
6458 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
6460         PR target/57097
6461         * lra-constraints.c (process_alt_operands): Discourage a bit more
6462         using memory for pseudos.  Print cost dump for alternatives.
6463         Modify cost values for conflicts with early clobbers.
6464         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
6466 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
6468         PR target/57098
6469         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
6471 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
6473         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
6474         from/to S register.
6475         (movdi_aarch64): Support LDR/STR from/to D register.
6477 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
6479         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
6480         or higher by default.
6482 2013-04-29  Richard Biener  <rguenther@suse.de>
6484         PR middle-end/57075
6485         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
6486         even if not adding abnormal edges for calls that can make
6487         abnormal gotos.
6489 2013-04-29  Richard Biener  <rguenther@suse.de>
6491         PR middle-end/57103
6492         * tree-cfg.c (move_stmt_op): Fix condition under which to update
6493         TREE_BLOCK.
6494         (move_stmt_r): Remove redundant checking.
6496 2013-04-29  Teresa Johnson  <tejohnson@google.com>
6498         PR bootstrap/57077
6499         * basic-block.h (apply_scale): New function.
6500         (apply_probability): Use apply_scale.
6501         * gimple-streamer-in.c (input_bb): Ditto.
6502         * lto-streamer-in.c (input_cfg): Ditto.
6503         * lto-cgraph.c (merge_profile_summaries): Ditto.
6504         * tree-optimize.c (execute_fixup_cfg): Ditto.
6505         * tree-inline.c (copy_bb): Update comment to use apply_scale.
6506         (copy_edges_for_bb): Ditto.
6507         (copy_cfg_body): Ditto.
6509 2013-04-29  Tom de Vries  <tom@codesourcery.com>
6511         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
6512         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
6513         (tail_merge_optimize): Handle current_loops == NULL.
6515 2013-04-26  Jeff Law  <law@redhat.com>
6517         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
6518         (simplify_cond_using_ranges): Generalize code to simplify
6519         COND_EXPRs where one argument is a constant and the other
6520         is an SSA_NAME created by an integral type conversion.
6522 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6524         * config/arm/arm.md (store_minmaxsi): Use only when
6525         optimize_insn_for_size_p.
6527 2013-04-29  Christian Bruel  <christian.bruel@st.com>
6529         PR target/57108
6530         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
6532 2013-04-29  Richard Biener  <rguenther@suse.de>
6534         PR middle-end/57089
6535         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
6536         loop tree make sure to schedule a fixup for the child as well.
6537         (expand_omp_for_generic): Properly add loops.
6538         (expand_omp_for_static_nochunk): Likewise.
6539         (expand_omp_for_static_chunk): Likewise.
6540         (expand_omp_for): For the degenerate case fixup loops.
6541         (expand_omp_sections): Fix default bb placement in loops.
6542         (expand_omp_atomic_pipeline): Properly add loops.
6544 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6546         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
6548 2013-04-29  Tom de Vries  <tom@codesourcery.com>
6550         * tree-ssa-tail-merge.c: Update header comment.
6552 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
6554         * config/aarch64/arm_neon.h
6555         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
6556         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
6557         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
6558         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
6559         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
6560         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
6561         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
6562         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
6564 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
6566         * config/aarch64/aarch64-simd.md
6567         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
6568         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
6569         fix_trunc, fixuns_trunc.
6570         (ftrunc<VDQF:mode>2): New.
6571         * config/aarch64/iterators.md (optab): Add fix, fixuns.
6572         (fix_trunc_optab): New.
6574 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
6576         * config/aarch64/aarch64-builtins.c
6577         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
6578         iceilf, lround, iroundf.
6580 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
6582         PR target/54349
6583         * config/i386/i386.h (enum ix86_tune_indices)
6584         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
6585         New, split from X86_TUNE_INTER_UNIT_MOVES.
6586         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
6587         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
6588         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
6589         (TARGET_INTER_UNIT_MOVES): Remove.
6590         * config/i386/i386.c (initial_ix86_tune_features): Update.
6591         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
6592         (ix86_expand_convert_uns_didf_sse): Use
6593         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
6594         (ix86_expand_vector_init_one_nonzero): Ditto.
6595         (ix86_expand_vector_init_interleave): Ditto.
6596         (inline_secondary_memory_needed): Return true for moves from SSE class
6597         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
6598         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
6599         * config/i386/constraints.md (Yi, Ym): Depend on
6600         TARGET_INTER_UNIT_MOVES_TO_VEC.
6601         (Yj, Yn): New constraints.
6602         * config/i386/i386.md (*movdi_internal): Change constraints of
6603         operand 1 from Yi to Yj and from Ym to Yn.
6604         (*movsi_internal): Ditto.
6605         (*movdf_internal): Ditto.
6606         (*movsf_internal): Ditto.
6607         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
6608         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
6609         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
6610         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
6611         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
6612         * config/i386/sse.md (movdi_to_sse): Ditto.
6613         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
6614         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
6615         TARGET_INTER_UNIT_MOVES.
6616         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
6617         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
6618         instead of TARGET_INTER_UNIT_MOVES.
6619         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
6620         operand 1 from Yi to Yj and from Ym to Yn.
6622 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
6624         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
6625         (float_truncate_hi_): Likewise.
6626         (float_extend_lo_): Likewise.
6627         (float_truncate_lo_): Likewise.
6628         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
6629         (aarch64_float_extend_lo_v2df): Likewise.
6630         (vec_unpacks_hi_v4sf): Likewise.
6631         (aarch64_float_truncate_lo_v2sf): Likewise.
6632         (aarch64_float_truncate_hi_v4sf): Likewise.
6633         (vec_pack_trunc_v2df): Likewise.
6634         (vec_pack_trunc_df): Likewise.
6636 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
6638         * config/aarch64/aarch64-builtins.c
6639         (aarch64_fold_builtin): Fold float conversions.
6640         * config/aarch64/aarch64-simd-builtins.def
6641         (floatv2si, floatv4si, floatv2di): New.
6642         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
6643         * config/aarch64/aarch64-simd.md
6644         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
6645         * config/aarch64/iterators.md (FLOATUORS): New.
6646         (optab): Add float, floatuns.
6647         (su_optab): Likewise.
6649 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
6651         * config/aarch64/aarch64-builtins.c
6652         (aarch64_builtin_vectorized_function): Use new names for
6653         fcvt builtins.
6654         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
6655         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
6656         (fcvtzu): Split as...
6657         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
6658         (fcvtas): Split as...
6659         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
6660         (fcvtau): Split as...
6661         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
6662         (fcvtps): Split as...
6663         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
6664         (fcvtpu): Split as...
6665         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
6666         (fcvtms): Split as...
6667         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
6668         (fcvtmu): Split as...
6669         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
6670         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
6671         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
6672         (lfrintnusf, lfrintnudf): Likewise.
6673         * config/aarch64/aarch64-simd.md
6674         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
6675         define_insn.
6676         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
6677         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
6678         (fcvt_pattern): Likewise.
6680 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
6682         * config/aarch64/aarch64-simd.md
6683         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
6684         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
6686 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
6688         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
6689         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
6690         (vrnd<a,m,n,p>_f32): Implement using builtins.
6691         (vrnd<i,x><q>_f<32, 64>): New.
6693 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
6695         * config/aarch64/aarch64-builtins.c
6696         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
6697         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
6698         (frintz): Rename to...
6699         (btrunc): ...this.
6700         (frintp): Rename to...
6701         (ceil): ...this.
6702         (frintm): Rename to...
6703         (floor): ...this.
6704         (frinti): Rename to...
6705         (nearbyint): ...this.
6706         (frintx): Rename to...
6707         (rint): ...this.
6708         (frinta): Rename to...
6709         (round): ...this.
6710         * config/aarch64/aarch64-simd.md
6711         (aarch64_frint<frint_suffix><mode>): Delete.
6712         (<frint_pattern><mode>2): Convert to insn.
6713         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
6714         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
6715         (frint_pattern): Likewise.
6716         (frint_suffix): Likewise.
6718 2013-04-29  Richard Biener  <rguenther@suse.de>
6720         PR tree-optimization/57081
6721         * loop-init.c: Include tree-flow.h.
6722         (loop_optimizer_finalize): Free number of iteration estimates.
6723         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
6725 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
6727         PR tree-optimization/57083
6728         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
6729         non-singleton shift count range, zero extend low_bound for uns case.
6731         * config/i386/predicates.md (general_vector_operand): New predicate.
6732         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
6733         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
6734         if they aren't nonimmediate operands.  If their original values
6735         satisfy const_vector_equal_evenodd_p, don't shift them.
6736         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
6737         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
6738         if not nonimmediate_operand.
6739         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
6740         instead of register_operand.
6741         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
6743 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
6745         * stor-layout.c (finalize_size_functions): Allocate a structure and
6746         reset cfun before dumping the functions.
6748 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
6750         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
6752         PR target/56866
6753         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
6754         use xop_pmacsdqh if uns_p.
6755         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
6756         the immediate rotate count.
6758 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
6760         * rtl.h (struct rtx_def): Add comment for field jump.
6761         (LRA_SUBREG_P): New macro.
6762         * recog.c (register_operand): Check LRA_SUBREG_P.
6763         * lra.c (lra): Add note at the end of RTL code. Align non-empty
6764         stack frame.
6765         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6766         (lra_final_code_change): Skip subreg change for operators.
6767         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6768         if there are no operand changes.
6769         * lra-constraints.c (curr_insn_set): New.
6770         (match_reload): Set LRA_SUBREG_P.
6771         (emit_spill_move): Ditto.
6772         (check_and_process_move): Use curr_insn_set. Process only single
6773         set insns.  Don't initialize sec_mem_p and change_p.
6774         (simplify_operand_subreg): Use LRA_SUBREG_P.
6775         (reg_in_class_p): New function.
6776         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
6777         of #ifdef.  Add code to remove cycling.
6778         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6779         non-null disp.  Reload inner instead of disp when base and index
6780         are null.  Try to put lo_sum into register.
6781         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6782         (check_and_process_move): Move code for move cost check to
6783         simple_move_p.  Remove equiv_substitution.
6784         (simple_move_p): New function.
6785         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
6786         curr_insn_set.  Call check_and_process_move only for single set
6787         insns.  Use the new function.  Move call of check_and_process_move
6788         after operand equiv substitution and address process.
6790 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
6792         PR go/57045
6793         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
6794         with nonlocal goto receivers or returns twice calls, ignore
6795         unininitialized values from abnormal edges to nl goto receiver
6796         or returns twice call.
6798 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
6800         PR tree-optimization/57051
6801         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
6802         and VEC_RSHIFT_EXPR if shift count is a multiple of element
6803         bitsize.
6805 2013-04-26  Richard Biener  <rguenther@suse.de>
6807         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
6808         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
6809         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
6810         (fixup_loop_arrays_after_move): New function.
6811         (move_sese_region_to_fn): Properly outline the loop tree parts
6812         of the SESE region.
6814 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
6816         * config/i386/i386.md (type, unit): Fix long lines.
6818 2013-04-26  Richard Biener  <rguenther@suse.de>
6820         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
6821         (lto-streamer-out.o): Likewise.
6822         * cfgloop.c (init_loops_structure): Export, add struct function
6823         argument and adjust.
6824         (flow_loops_find): Adjust.
6825         * cfgloop.h (enum loop_estimation): Add EST_LAST.
6826         (init_loops_structure): Declare.
6827         * lto-streamer-in.c: Include cfgloop.h.
6828         (input_cfg): Input the loop tree.
6829         * lto-streamer-out.c: Include cfgloop.h.
6830         (output_cfg): Output the loop tree.
6831         (output_struct_function_base): Do not drop PROP_loops.
6833 2013-03-26  Richard Biener  <rguenther@suse.de>
6835         * tree-cfg.c (execute_build_cfg): Build the loop tree.
6836         (pass_build_cfg): Provide PROP_loops.
6837         (move_sese_region_to_fn): Remove loops that are outlined into fn
6838         for now.
6839         * tree-inline.c: Include cfgloop.h.
6840         (initialize_cfun): Do not drop PROP_loops.
6841         (copy_loops): New function.
6842         (copy_cfg_body): Copy loop structure.
6843         (tree_function_versioning): Initialize destination loop tree.
6844         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
6845         (pass_parallelize_loops): Do IL verification.
6846         * loop-init.c (loop_optimizer_init): Fixup loops if required.
6847         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
6848         the CFG make sure we fixup loops as well.
6849         * tree-ssa-tail-merge.c: Include cfgloop.h.
6850         (replace_block_by): When merging loop latches mark loops for fixup.
6851         * lto-streamer-out.c (output_struct_function_base): Drop
6852         PROP_loops for now.
6853         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
6854         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
6855         * ipa-split.c: Include cfgloop.h.
6856         (split_function): Add the new return block to the loop tree root.
6857         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
6858         whether we have removed the forwarder block.
6859         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
6860         * cfgloop.h (place_new_loop): Declare.
6861         * cfgloopmanip.c (place_new_loop): Export.
6862         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
6863         (tree-switch-conversion.o): Likewise.
6864         (tree-complex.o): Likewise.
6865         (tree-inline.o): Likewise.
6866         (tree-ssa-tailmerge.o): Likewise.
6867         (ipa-split.o): Likewise.
6868         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
6869         (tree-ssa-copy.o): Likewise.
6870         * tree-switch-conversion.c: Include cfgloop.h
6871         (process_switch): If we emit a bit-test cascade, schedule loops
6872         for fixup.
6873         * tree-complex.c: Include cfgloop.h.
6874         (expand_complex_div_wide): Properly add new basic-blocks to loops.
6875         * asan.c: Include cfgloop.h.
6876         (create_cond_insert_point): Properly add new basic-blocks to
6877         loops, schedule loop fixup.
6878         * cfgloop.c (verify_loop_structure): Check that looks are not
6879         marked for fixup.
6880         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
6881         to loops.
6882         (expand_omp_for_generic): Likewise.
6883         (expand_omp_sections): Likewise.
6884         (expand_omp_atomic_pipeline): Schedule loops for fixup.
6885         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
6886         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
6887         is initialized, not when loops are present.
6888         * tree-parloops.c (parallelize_loops): Remove checking here.
6889         * passes.c (init_optimization_passes): Schedule a copy-propagation
6890         pass before complete unrolling of inner loops.
6892 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
6894         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
6895         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
6896         (colorize_init): Add argument to _WIN32 version.
6897         * toplev.c: Include diagnostic-color.h.
6898         (process_options): Default to -fdiagnostics-color=auto if
6899         GCC_COLORS env var is in the environment.
6900         * common.opt (fdiagnostics-color=): Add Var and Init.
6901         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
6902         env var is in the environment, the default is auto rather than never.
6904         * diagnostic.h (file_name_as_prefix): Add context argument.
6905         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
6906         the string as locus.
6907         * langhooks.c (lhd_print_error_function): Adjust caller.
6909 2013-04-25  Lawrence Crowl  <crowl@google.com>
6911         * var-tracking.c (shared_hash_def::htab):
6912         Change type to hash_table.  Update dependent calls and types.
6914 2013-04-25  Lawrence Crowl  <crowl@google.com>
6916         * Makefile.in: Update as needed below.
6918         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
6919         Move declaration to after the type's method definitons.
6921         * attribs.c (htab_t scoped_attributes::attribute_hash):
6922         Change type to hash_table.  Update dependent calls and types.
6924         * bitmap.c (htab_t bitmap_desc_hash):
6925         Change type to hash_table.  Update dependent calls and types.
6927         * cselib.c (htab_t cselib_hash_table):
6928         Change type to hash_table.  Update dependent calls and types.
6930         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
6931         (hash_string_slot_node): Move implementation into lto-streamer.h
6932         struct string_slot_hasher.
6933         (eq_string_slot_node): Likewise.
6935         * data-streamer-out.c: Update output_block::string_hash_table
6936         dependent calls and types.
6938         * dwarf2cfi.c (htab_t trace_index):
6939         Change type to hash_table.  Update dependent calls and types.
6941         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
6942         Change type to hash_table.  Update dependent calls and types.
6943         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
6944         (htab_t optimize_external_refs::map): Likewise.
6945         (htab_t output_comp_unit::extern_map): Likewise.
6946         (htab_t output_comdat_type_unit::extern_map): Likewise.
6947         (htab_t output_macinfo::macinfo_htab): Likewise.
6948         (htab_t optimize_location_lists::htab): Likewise.
6949         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
6951         * except.c (htab_t ehspec_hash_type):
6952         Change type to hash_table.  Update dependent calls and types.
6953         (assign_filter_values::ttypes): Likewise.
6954         (assign_filter_values::ehspec): Likewise.
6955         (sjlj_assign_call_site_values::ar_hash): Likewise.
6956         (convert_to_eh_region_ranges::ar_hash): Likewise.
6958         * gcse.c (htab_t pre_ldst_table):
6959         Change type to hash_table.  Update dependent calls and types.
6961         * ggc-common.c (htab_t saving_htab):
6962         Change type to hash_table.  Update dependent calls and types.
6963         (htab_t loc_hash): Likewise.
6964         (htab_t ptr_hash): Likewise.
6965         (call_count): Rename ggc_call_count.
6966         (call_alloc): Rename ggc_call_alloc.
6967         (loc_descriptor): Rename make_loc_descriptor.
6968         (add_statistics): Rename ggc_add_statistics.
6970         * ggc-common.c (saving_htab):
6971         Change type to hash_table.  Update dependent calls and types.
6973         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
6974         (push_gimplify_context): Likewise.
6975         (pop_gimplify_context): Likewise.
6976         (struct gimple_temp_hash_elt): Added.
6977         (struct gimplify_hasher): Likewise.
6978         (struct gimplify_ctx.temp_htab):
6979         Change type to hash_table.  Update dependent calls and types.
6981         * gimple-fold.c: Include gimplify-ctx.h.
6983         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
6984         Change type to hash_table.  Update dependent calls and types.
6985         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
6986         avoid potential global name collision.
6988         * gimplify.c: Include gimplify-ctx.h.
6989         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
6990         (htab_t gimplify_ctx::temp_htab):
6991         Update dependent calls and types for new type hash_table.
6992         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
6993         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
6995         * gimplify-ctx.h: New.
6996         (struct gimple_temp_hash_elt): Move from gimplify.c.
6997         (class gimplify_hasher): New.
6998         (struct gimplify_ctx): Move from gimple.h.
6999         (htab_t gimplify_ctx::temp_htab):
7000         Change type to hash_table.  Update dependent calls and types.
7002         * graphite-clast-to-gimple.c: Include graphite-htab.h.
7003         (htab_t ivs_params::newivs_index):
7004         Change type to hash_table.  Update dependent calls and types.
7005         (htab_t ivs_params::params_index): Likewise.
7006         (htab_t print_generated_program::params_index): Likewise.
7007         (htab_t gloog::newivs_index): Likewise.
7008         (htab_t gloog::params_index): Likewise.
7010         * graphite.c: Include graphite-htab.h.
7011         4htab_t graphite_transform_loops::bb_pbb_mapping):
7012         Change type to hash_table.  Update dependent calls and types.
7014         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
7015         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
7016         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
7018         * graphite-dependences.c: Include graphite-htab.h.
7019         (loop_is_parallel_p): Change hash table type of parameter.
7021         * graphite-htab.h: New.
7022         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
7023         (extern find_pbb_via_hash): Move from graphite-poly.h.
7024         (extern loop_is_parallel_p): Move from graphite-poly.h.
7025         (extern get_loop_body_pbbs): Move from graphite-poly.h.
7027         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
7028         (extern loop_is_parallel_p): Move to graphite-htab.h.
7029         (extern get_loop_body_pbbs): Move to graphite-htab.h.
7031         * haifa-sched.c (htab_t delay_htab):
7032         Change type to hash_table.  Update dependent calls and types.
7033         (htab_t delay_htab_i2): Likewise.
7035         * ira-color.c (htab_t allocno_hard_regs_htab):
7036         Change type to hash_table.  Update dependent calls and types.
7038         * ira-costs.c (htab_t cost_classes_htab):
7039         Change type to hash_table.  Update dependent calls and types.
7041         * loop-invariant.c (htab_t merge_identical_invariants::eq):
7042         Change type to hash_table.  Update dependent calls and types.
7044         * loop-iv.c (htab_t bivs):
7045         Change type to hash_table.  Update dependent calls and types.
7047         * loop-unroll.c (htab_t opt_info::insns_to_split):
7048         Change type to hash_table.  Update dependent calls and types.
7049         (htab_t opt_info::insns_with_var_to_expand): Likewise.
7051         * lto-streamer.h (struct string_slot): Move from data-streamer.h
7052         (struct string_slot_hasher): New.
7053         (htab_t output_block::string_hash_table):
7054         Change type to hash_table.  Update dependent calls and types.
7056         * lto-streamer-in.c (freeing_string_slot_hasher): New.
7057         (htab_t file_name_hash_table):
7058         Change type to hash_table.  Update dependent calls and types.
7060         * lto-streamer-out.c: Update output_block::string_hash_table dependent
7061         calls and types.
7063         * lto-streamer.c (htab_t tree_htab):
7064         Change type to hash_table.  Update dependent calls and types.
7066         * omp-low.c: Include gimplify-ctx.h.
7068         * passes.c (htab_t name_to_pass_map):
7069         Change type to hash_table.  Update dependent calls and types.
7070         (pass_traverse): Rename to passes_pass_traverse.
7072         * plugin.c (htab_t event_tab):
7073         Change type to hash_table.  Update dependent calls and types.
7075         * postreload-gcse.c (htab_t expr_table):
7076         Change type to hash_table.  Update dependent calls and types.
7077         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
7079         * sese.c (debug_rename_map_1): Make extern.
7080         (htab_t copy_bb_and_scalar_dependences::rename_map):
7081         Change type to hash_table.  Update dependent calls and types.
7083         * sese.h (extern debug_rename_map): Move to .c file.
7085         * store-motion.c (htab_t store_motion_mems_table):
7086         Change type to hash_table.  Update dependent calls and types.
7088         * trans-mem.c (htab_t tm_new_mem_hash):
7089         Change type to hash_table.  Update dependent calls and types.
7091         * tree-browser.c (htab_t TB_up_ht):
7092         Change type to hash_table.  Update dependent calls and types.
7094         * tree-cfg.c (htab_t discriminator_per_locus):
7095         Change type to hash_table.  Update dependent calls and types.
7097         * tree-complex.c: Include tree-hasher.h
7098         (htab_t complex_variable_components):
7099         Change type to hash_table.  Update dependent calls and types.
7101         * tree-eh.c (htab_t finally_tree):
7102         Change type to hash_table.  Update dependent calls and types.
7104         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
7105         struct int_tree_hasher.
7106         (extern int_tree_map_eq): Likewise.
7107         (uid_decl_map_hash): Removed.
7108         (extern decl_tree_map_eq): Likewise.
7110         * tree-hasher.h: New.
7111         (struct int_tree_hasher): New.
7112         (typedef int_tree_htab_type): New.
7114         * tree-inline.c: Include gimplify-ctx.h.
7116         * tree-mudflap.c: Include gimplify-ctx.h.
7118         * tree-parloops.c: Include tree-hasher.h.
7119         (htab_t eliminate_local_variables_stmt::decl_address):
7120         Change type to hash_table.  Update dependent calls and types.
7121         (htab_t separate_decls_in_region::decl_copies): Likewise.
7123         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
7124         Change type to hash_table.  Update dependent calls and types.
7126         * tree-sra.c (candidates):
7127         Change type to hash_table.  Update dependent calls and types.
7129         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
7130         in tree-flow.h.
7131         (int_tree_map_hash): Likewise.
7133         * tree-ssa-dom.c (htab_t avail_exprs):
7134         Change type to hash_table.  Update dependent calls and types.
7136         * tree-ssa-live.c (var_map_base_init::tree_to_index):
7137         Change type to hash_table.  Update dependent calls and types.
7139         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
7140         Change type to hash_table.  Update dependent calls and types.
7142         * tree-ssa-phiopt.c (seen_ssa_names):
7143         Change type to hash_table.  Update dependent calls and types.
7145         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
7146         Change type to hash_table.  Update dependent calls and types.
7148         * tree-ssa-uncprop.c (equiv):
7149         Change type to hash_table.  Update dependent calls and types.
7151 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
7153         PR rtl-optimization/57003
7154         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
7155         call note_stores with kill_clobbered_value callback again after
7156         killing regs_invalidated_by_call.
7158 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
7160         * config/aarch64/aarch64-simd.md
7161         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
7162         (aarch64_simd_bsl<mode>): Likewise.
7163         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
7165 2013-04-25  Marek Polacek  <polacek@redhat.com>
7167         PR tree-optimization/57066
7168         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
7170 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
7172         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
7174 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
7176         * config/aarch64/aarch64-builtins.c
7177         (aarch64_fold_builtin): New.
7178         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
7179         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
7180         * config/aarch64/aarch64-simd-builtins.def (abs): New.
7181         * config/aarch64/arm_neon.h
7182         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
7184 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
7185             Tejas Belagod  <tejas.belagod@arm.com>
7187         * config/aarch64/aarch64-builtins.c
7188         (aarch64_gimple_fold_builtin): New.
7189         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
7190         * config/aarch64/aarch64-simd-builtins.def (addv): New.
7191         * config/aarch64/aarch64-simd.md (addpv4sf): New.
7192         (addvv4sf): Update.
7193         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7195 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7197         * config/aarch64/aarch64.md
7198         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
7200 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7202         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
7203         (*ngcsi_uxtw): New pattern.
7205 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7206             Julian Brown  <julian@codesourcery.com>
7208         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
7209         (TB_DREG): Add T_V4HF.
7210         (v4hf_UP): New macro.
7211         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7212         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7213         Handle initialisation of V4HF. Adjust initialisation of reinterpret
7214         built-ins.
7215         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7216         (arm_vector_mode_supported_p): Handle V4HF.
7217         (arm_mangle_map): Handle V4HFmode.
7218         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
7219         * config/arm/arm_neon_builtins.def: Add entries for
7220         vcvtv4hfv4sf, vcvtv4sfv4hf.
7221         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
7222         (neon_vcvtv4hfv4sf): Likewise.
7223         * config/arm/neon-gen.ml: Handle half-precision floating point
7224         features.
7225         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
7226         * config/arm/arm_neon.h: Regenerate.
7227         * config/arm/neon.ml (type elts): Add F16.
7228         (type vectype): Add T_float16x4, T_floatHF.
7229         (type vecmode): Add V4HF.
7230         (type features): Add Requires_FP_bit feature.
7231         (elt_width): Handle F16.
7232         (elt_class): Likewise.
7233         (elt_of_class_width): Likewise.
7234         (mode_of_elt): Refactor.
7235         (type_for_elt): Handle F16, fix error messages.
7236         (vectype_size): Handle T_float16x4.
7237         (vcvt_sh): New function.
7238         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
7239         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
7240         (string_of_mode): Handle V4HF.
7241         * doc/arm-neon-intrinsics.texi: Regenerate.
7243 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
7245         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
7246         format specifier in 'X' case.
7248 2013-04-25  Alan Modra  <amodra@gmail.com>
7250         PR target/57052
7251         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
7252         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
7253         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
7254         Repeat for many other rotate/shift and mask patterns using subregs.
7255         Name lshiftrt insns.
7256         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
7257         on WORDS_BIG_ENDIAN.
7259 2013-04-25  Alan Modra  <amodra@gmail.com>
7261         * config.gcc: Support little-endian powerpc-linux targets.
7262         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
7263         (LINK_OS_LINUX_SPEC): Define.
7264         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
7265         Preserve MASK_LITTLE_ENDIAN.
7266         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
7267         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
7268         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
7269         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
7270         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
7271         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
7272         Correct fp word order for little-endian.  Don't shift toc entries
7273         smaller than a word for little-endian.
7274         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
7275         (bswapdi2 splits): Correct low-part subreg for little-endian.
7276         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
7277         low/high where such is correct only for be.
7278         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
7279         little-endian for -mcall-aixdesc.
7281 2013-04-25  Alan Modra  <amodra@gmail.com>
7283         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
7284         replace_equiv_address_nv.
7286 2013-04-25  Alan Modra  <amodra@gmail.com>
7288         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
7290 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
7292         Revert:
7293         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
7294         * rtl.h (struct rtx_def): ...
7296 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
7298         PR rtl-optimizations/57046
7299         * lra-constraints (split_reg): Set up lra_risky_transformations_p
7300         for multi-reg splits.
7302 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
7304         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
7306 2013-04-24  Sterling Augustine  <saugustine@google.com>
7308         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
7309         (comp_dir_string, debug_str_dwo_section): New.
7310         (DEBUG_STR_DWO_SECTION): Rename to ...
7311         (DEBUG_DWO_STR_SECTION): ... this.
7312         (DEBUG_NORM_STR_SECTION): Delete.
7313         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
7314         (DEBUG_STR_DWO_SECTION_FLAGS): New.
7315         (find_AT_string): Move most logic to ...
7316         (find_AT_string_in_table): ... here.  New.
7317         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
7318         add_skeleton_AT_string.  Delete logic.
7319         (output_skeleton_debug_sections): Remove call to
7320         add_top_level_skeleton_die_attrs.
7321         (add_comp_dir_attribute): Move logic to comp_dir_string.
7322         (dwarf2out_init): Initialize debug_str_dwo_section.
7323         (output_indirect_string): Call find_string_form.
7324         (output_indirect_strings): Rewrite.
7325         (prune_unused_types): Empty skeleton_debug_str_hash.
7326         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
7327         (dwarf2out_finish):  Call output_indirect_strings.
7329 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
7331         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
7333 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
7335         * rtl.h (struct rtx_def): Add comment for field jump.
7336         (LRA_SUBREG_P): New macro.
7337         * recog.c (register_operand): Check LRA_SUBREG_P.
7338         * lra.c (lra): Add note at the end of RTL code. Align non-empty
7339         stack frame.
7340         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7341         (lra_final_code_change): Skip subreg change for operators.
7342         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7343         if there are no operand changes.
7344         * lra-constraints.c (curr_insn_set): New.
7345         (match_reload): Set LRA_SUBREG_P.
7346         (emit_spill_move): Ditto.
7347         (check_and_process_move): Use curr_insn_set. Process only single
7348         set insns.  Don't initialize sec_mem_p and change_p.
7349         (simplify_operand_subreg): Use LRA_SUBREG_P.
7350         (reg_in_class_p): New function.
7351         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
7352         of #ifdef.  Add code to remove cycling.
7353         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7354         non-null disp.  Reload inner instead of disp when base and index
7355         are null.  Try to put lo_sum into register.
7356         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
7357         (check_and_process_move): Move code for move cost check to
7358         simple_move_p.  Remove equiv_substitution.
7359         (simple_move_p): New function.
7360         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
7361         curr_insn_set.  Call check_and_process_move only for single set
7362         insns.  Use the new function.  Move call of check_and_process_move
7363         after operand equiv substitution and address process.
7365 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
7367         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
7368         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
7369         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
7371 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
7373         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
7375 2013-04-24  Marek Polacek  <polacek@redhat.com>
7377         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
7378         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
7379         (select_loops_exit_conditions): Likewise.
7380         (number_of_iterations_for_all_loops): Likewise.
7381         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
7382         (scev_analysis): Likewise.
7384 2013-04-02  Catherine Moore  <clm@codesourcery.com>
7385             Chao-ying Fu <fu@mips.com>
7387         * config/mips/micromips.md (jraddiusp): New pattern.
7388         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
7389         instruction if possible.
7391 2013-04-24  Alan Modra  <amodra@gmail.com>
7393         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
7395 2013-04-24  Julian Brown  <julian@codesourcery.com>
7396             Chung-Lin Tang  <cltang@codesourcery.com>
7398         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
7399         dependency behavior in enumeration type DIE generation. Add TODO note
7400         to comments about future DW_FORM_sdata/udata re-work of related code.
7402 2013-04-23  Lawrence Crowl  <crowl@google.com>
7404         * Makefile.in: Update as needed below.
7406         * hash-table.h (class hash_table):
7407         Correct many methods with parameter types compare_type to the correct
7408         value_type.  (Correct code was unlikely to notice the change.)
7409         (hash_table::elements_with_deleted) New.
7410         (class hashtable::iterator): New.
7411         (hashtable::begin()): New.
7412         (hashtable::end()): New.
7413         (FOR_EACH_HASH_TABLE_ELEMENT): New.
7415         * statistics.c (statistics_hashes):
7416         Change type to hash_table.  Update dependent calls and types.
7418         * tree-into-ssa.c (var_infos):
7419         Change type to hash_table.  Update dependent calls and types.
7421         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
7422         Change type to hash_table.  Update dependent calls and types.
7424         * tree-ssa-loop-im.c (struct mem_ref.refs):
7425         Change type to hash_table.  Update dependent calls and types.
7427         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
7428         Change type to hash_table.  Update dependent calls and types.
7430         * tree-ssa-sccvn.c (vn_tables_s::nary):
7431         Change type to hash_table.  Update dependent calls and types.
7432         (vn_tables_s::phis): Likewise.
7433         (vn_tables_s::references): Likewise.
7435         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
7436         (vn_reference_eq): Update parameter and return types.
7438         * tree-ssa-structalias.c (pointer_equiv_class_table):
7439         Change type to hash_table.  Update dependent calls and types.
7440         (location_equiv_class_table): Likewise.
7442         * tree-vect-data-refs.c: Consequential changes for making
7443         peeling a hash_table.
7445         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
7446         (destroy_loop_vec_info): Dependent hash_table update.
7448         * tree-vectorizer.h (peeling_htab):
7449         Change type to hash_table.  Update dependent calls and types.
7451 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
7453         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
7454         to check the register content is equal or not.
7455         * lra-constraints.c (match_reload): Use lra_assign_reg_val
7456         to assign register content record.
7457         * lra-eliminations.c (update_reg_eliminate): Use
7458         lra_update_reg_val_offset to update register content offset.
7459         * lra-int.h (struct lra_reg): Add offset member.
7460         (lra_reg_val_equal_p): New static inline function.
7461         (lra_update_reg_val_offset): New static inline function.
7462         (lra_assign_reg_val): New static inline function.
7463         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
7464         to assign register content record.
7465         (initialize_lra_reg_info_element): Initial offset to zero.
7467 2013-04-23  Catherine Moore  <clm@codesourcery.com>
7469         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
7470         operands.  Record compression.
7472 2013-04-23  Xinliang David Li  <davidxl@google.com>
7474         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
7476 2013-04-23  Richard Biener  <rguenther@suse.de>
7478         PR middle-end/57036
7479         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
7480         parameter, only add abnormal goto edges from the copied body
7481         if the call could perform abnormal gotos.
7482         (copy_cfg_body): Adjust.
7484 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
7486         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
7488 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
7490         * coretypes.h (gimple_stmt_iterator): Add struct to make
7491         compatible with C.
7493 2013-04-23  Richard Biener  <rguenther@suse.de>
7495         PR tree-optimization/57026
7496         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
7497         from SSA names occuring in abnormal PHI nodes.
7499 2013-04-22  Andi Kleen  <ak@linux.intel.com>
7501         * lto/lto.c (print_lto_report_1): Fix LTO report names.
7503 2013-04-22  Andi Kleen  <ak@linux.intel.com>
7505         * lto/lto.c (print_lto_report_1): Declare early.
7506         (read_cgraph_and_symbols): Call print_lto_report_1 early.
7508 2013-04-22  Andi Kleen  <ak@linux.intel.com>
7510         * common.opt (-flto-report-wpa): Add.
7511         * doc/invoke.texi (-flto-report-wpa): Add.
7512         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
7513         (lto_main): dito.
7515 2013-04-22  Xinliang David Li  <davidxl@google.com>
7517         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
7518         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
7519         * Makefile.in: New dependency
7521             David Daney <ddaney.cavm@gmail.com>
7523         * configure.ac (gcc_cv_as_micromips_support):  Use the
7524         --fatal-warnings option.
7525         * configure: Regenerate.
7527 2013-04-22  Marek Polacek  <polacek@redhat.com>
7529         PR sanitizer/56990
7530         * tsan.c (instrument_expr): Don't instrument expression
7531         in case its size is zero.
7533 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
7535         PR target/57032
7536         Revert:
7537         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
7539         * config/alpha/alpha.c (TARGET_LRA_P): New define.
7541 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
7543         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
7544         (gimple_stmt_iterator): New typedef.
7545         * gimple.h (gimple_stmt_iterator): Rename to...
7546         (gimple_stmt_iterator_d): ... This.
7547         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
7548         trees be valid for GIMPLE and GENERIC.
7549         (TARGET_GIMPLE_FOLD_BUILTIN): New.
7550         * gimple-fold.c (gimple_fold_call): Call target hook
7551         gimple_fold_builtin.
7552         * hooks.c (hook_bool_gsiptr_false): New.
7553         * hooks.h (hook_bool_gsiptr_false): New.
7554         * target.def (fold_stmt): New.
7555         * doc/tm.texi: Regenerate.
7557 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
7559         PR target/57018
7560         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
7561         a set sp if no stack realignment.
7563 2013-04-22  Nick Clifton  <nickc@redhat.com>
7565         * config.gcc (tilegx-linux): Extend extra_objs rather than
7566         overwriting it.
7567         (tilepro-linux): Likewise.
7569 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
7571         * config/aarch64/aarch64-builtins.c
7572         (CF): Remove.
7573         (CF0, CF1, CF2, CF3, CF4, CF10): New.
7574         (VAR<1-12>): Add MAP parameter.
7575         (BUILTIN_*): Likewise.
7576         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
7577         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
7578         (aarch64_ushl_n<mode>): Likewise.
7579         (aarch64_sshr_n<mode>): Likewise.
7580         (aarch64_ushr_n<mode>): Likewise.
7581         (aarch64_<maxmin><mode>): Likewise.
7582         (aarch64_sqrt<mode>): Likewise.
7583         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
7584         (vshr<q>_n_*): Likewise.
7586 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
7588         * config/aarch64/aarch64-builtins.c
7589         (aarch64_simd_builtin_type_mode): Handle SF types.
7590         (sf_UP): Define.
7591         (BUILTIN_GPF): Define.
7592         (aarch64_init_simd_builtins): Handle SF types.
7593         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
7594         (frecps): Likewise.
7595         (frecpx): Likewise.
7596         * config/aarch64/aarch64-simd.md
7597         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
7598         (aarch64_frecpe<mode>): New.
7599         (aarch64_frecps<mode>): Likewise.
7600         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
7601         (v8type): Add frecp<esx>.
7602         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
7603         (aarch64_frecps<mode>): Likewise.
7604         * config/aarch64/iterators.md (FRECP): New.
7605         (frecp_suffix): Likewise.
7606         * config/aarch64/arm_neon.h
7607         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
7609 2013-04-22  Christian Bruel  <christian.bruel@st.com>
7611         PR target/56995
7612         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
7613         (REG_CLASS_NAMES): Idem.
7614         (REG_CLASS_CONTENTS): Idem.
7615         (REGCLASS_HAS_FP_REG): Idem.
7616         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
7617         (sh_conditional_register_usage): Idem.
7619 2013-04-21  Jeff Law  <law@redhat.com>
7621         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
7622         (ssa_forward_propagate_and_combine): Use it.
7624 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
7626         * lra.c: Update the flow chart diagram.
7628 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
7630         PR rtl-optimization/56847
7631         * lra-constraints.c (process_alt_operands): Discourage alternative
7632         with non-matche doffsettable memory constraint fro memory with
7633         known offset.
7635 2013-04-19  Richard Biener  <rguenther@suse.de>
7637         PR tree-optimization/56982
7638         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
7639         function.
7640         * gimplify.c (gimplify_call_expr): Notice special calls.
7641         (gimplify_modify_expr): Likewise.
7642         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
7643         abnormal control flow receivers.
7644         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
7645         in the same way as cfun->has_nonlocal_labels.
7646         (gimple_purge_dead_abnormal_call_edges): Likewise.
7647         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
7648         receivers start a basic-block.
7650 2013-04-19  Richard Biener  <rguenther@suse.de>
7652         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
7653         member ...
7654         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
7655         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
7656         (SLP_TREE_LOAD_PERMUTATION): Add.
7657         (vect_transform_slp_perm_load): Adjust prototype.
7658         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
7659         (vect_free_slp_instance): Likewise.
7660         (vect_create_new_slp_node): Likewise.
7661         (vect_supported_slp_permutation_p): Remove.
7662         (vect_slp_rearrange_stmts): Adjust.
7663         (vect_supported_load_permutation_p): Likewise.  Inline
7664         vect_supported_slp_permutation_p here.
7665         (vect_analyze_slp_instance): Compute load permutations per
7666         slp node instead of per instance.
7667         (vect_get_slp_defs): Adjust.
7668         (vect_transform_slp_perm_load): Likewise.
7669         (vect_schedule_slp_instance): Remove redundant code.
7670         (vect_schedule_slp): Remove hack for PR56270, add it ...
7671         * tree-vect-stmts.c (vectorizable_load): ... here, do not
7672         CSE loads for SLP.  Adjust.
7674 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
7676         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
7677         spelling in two comments.
7679 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
7681         PR target/56797
7682         * config/arm/arm.c (load_multiple_sequence): Require SP
7683         as base register for loads if SP is in the register list.
7685 2013-04-19  Martin Jambor  <mjambor@suse.cz>
7687         PR tree-optimization/56718
7688         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
7689         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
7690         and made public.  Adjusted all callers.
7691         (ipa_intraprocedural_devirtualization): New function.
7692         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
7693         (ipa_intraprocedural_devirtualization): Likewise.
7694         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
7696 2013-04-19  Richard Biener  <rguenther@suse.de>
7698         PR tree-optimization/57000
7699         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
7701 2013-04-19  Terry Guo  <terry.guo@arm.com>
7703         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
7704         Replace with ...
7705         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
7706         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
7707         (cortex_m4_fmacs): Use new reservations.
7708         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
7710 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
7712         PR rtl-optimization/56999
7713         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
7714         related code.
7715         (lra_coalesce): Remove split_origin_bitmap and related code.
7716         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
7717         ranges if necessary.
7719 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
7721         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
7722         New array.
7723         (ix86_expand_call): Remove clobbered_registers array and use
7724         x86_64_ms_sysv_extra_clobbered_registers instead.
7725         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
7726         Declare here.
7727         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
7728         predicate.
7729         * config/i386/i386.md (*call_rex64_ms_sysv): Use
7730         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
7731         (*call_value_rex64_ms_sysv): Ditto.
7733 2013-04-18  Cary Coutant  <ccoutant@google.com>
7735         * dwarf2out.c (output_pubnames): Check die_perennial_p of
7736         parent instead of die_mark.
7738 2013-04-18  Diego Novillo  <dnovillo@google.com>
7740         * gimple.c (create_gimple_tmp): New.
7741         (get_expr_type): New.
7742         (build_assign): New.
7743         (build_type_cast): New.
7744         * gimple.h (enum ssa_mode): Define.
7745         (gimple_seq_set_location): New.
7746         * asan.c (build_check_stmt): Change some gimple_build_* calls
7747         to use build_assign and build_type_cast.
7749 2013-04-18  Richard Biener  <rguenther@suse.de>
7751         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
7752         handle negative step.  Remove redundant checks.
7753         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
7754         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
7755         for negative step and grouped loads fail to vectorize.
7757 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
7759         * emit-rtl.c (reset_insn_used_flags): New function.
7760         (reset_all_used_flags): Use it.
7761         (verify_insn_sharing): New function.
7762         (verify_rtl_sharing): Fix verification for SEQUENCEs.
7764 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
7766         PR tree-optimization/56984
7767         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
7768         and (x >> M) >= N don't register any assertion if N << M is the
7769         minimum value.
7771 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
7773         * lower-subreg.c (resolve_simple_move): If called self-recursive,
7774         do not delete_insn insns that have not yet been emitted, only
7775         unlink them with remove_insn.
7776         * df-scan.c (df_insn_delete): Revert r197492.
7778 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
7780         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
7781         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
7783 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
7785         * config/arm/arm.md (movsicc_insn): Convert define_insn into
7786         define_insn_and_split.
7787         (and_scc,ior_scc,negscc): Likewise.
7788         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
7790 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
7792         * config/arm/arm.c (use_return_insn): Return 0 for targets that
7793         can benefit from using a sequence of LDRD instructions in epilogue
7794         instead of a single LDM instruction.
7796 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7798         PR 45688
7799         * doc/extend.texi: Fix typo.
7801 2013-04-17  Richard Biener  <rguenther@suse.de>
7803         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
7804         (vect_build_slp_tree): ... here.
7805         (vect_build_slp_tree_1): Compute which stmts of the SLP group
7806         match.  Remove special-casing of mismatched complex loads.
7807         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
7808         re-try the match with swapped commutative operands.
7809         (vect_supported_load_permutation_p): Remove special-casing of
7810         mismatched complex loads.
7811         (vect_analyze_slp_instance): Adjust.
7813 2013-04-17  Richard Biener  <rguenther@suse.de>
7815         PR rtl-optimization/56921
7816         * cfgloop.h (struct loop): Add simple_loop_desc member.
7817         (struct niter_desc): Mark with GTY(()).
7818         (simple_loop_desc): Do not use aux field but simple_loop_desc.
7819         * loop-iv.c (get_simple_loop_desc): Likewise.
7820         (free_simple_loop_desc): Likewise.
7822         Revert
7823         2013-04-16  Richard Biener  <rguenther@suse.de>
7825         PR rtl-optimization/56921
7826         * loop-init.c (pass_rtl_move_loop_invariants): Add
7827         TODO_do_not_ggc_collect to todo_flags_finish.
7828         (pass_rtl_unswitch): Same.
7829         (pass_rtl_unroll_and_peel_loops): Same.
7830         (pass_rtl_doloop): Same.
7832 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
7834         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
7835         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
7836         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
7837         references.
7838         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
7839         * tree-streamer.c (record_common_node): Adjust reference in comment.
7841 2013-04-17  Terry Guo  <terry.guo@arm.com>
7843         * config/arm/cortex-m4.md: Add a new bypass.
7845 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7847         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
7848         New pattern.
7849         (*subs_<optab><mode>_multp2): New pattern.
7850         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7851         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7853 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7855         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
7856         (*subs_mul_imm_<mode>): New pattern.
7858 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
7860         PR target/56948
7861         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
7862         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
7863         (vsx_movti_32bit): Change j->wa to O->wa.
7865 2013-04-16  Richard Biener  <rguenther@suse.de>
7867         PR rtl-optimization/56921
7868         * loop-init.c (pass_rtl_move_loop_invariants): Add
7869         TODO_do_not_ggc_collect to todo_flags_finish.
7870         (pass_rtl_unswitch): Same.
7871         (pass_rtl_unroll_and_peel_loops): Same.
7872         (pass_rtl_doloop): Same.
7874 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
7876         * config/arm/arm.c (emit_multi_reg_push): New declaration
7877         for an existing function.
7878         (arm_emit_strd_push): New function.
7879         (arm_expand_prologue): Used here.
7880         (arm_emit_ldrd_pop): New function.
7881         (arm_expand_epilogue): Used here.
7882         (arm_get_frame_offsets): Update condition.
7883         (arm_emit_multi_reg_pop): Add a special case for load of a single
7884         register with writeback.
7886 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
7888         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
7889         description.
7891 2013-04-16  Richard Biener  <rguenther@suse.de>
7893         PR tree-optimization/56756
7894         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
7895         (first_mem_ref_loc): New.
7896         (execute_sm): Place the load temporarily before a previous
7897         access instead of in the latch edge to ensure its SSA dependencies
7898         are defined at points dominating the load.
7900 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
7902         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
7903         correct fix by moving header and footer insn to the footer of
7904         the merged basic block.  Clear BB_END of the merged-away block.
7906         PR middle-end/43631
7907         * emit-rtl.c (make_note_raw): New function.
7908         (link_insn_into_chain): New static inline function.
7909         (add_insn): Use it.
7910         (add_insn_before, add_insn_after): Factor insn chain linking code...
7911         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
7912         using link_insn_into_chain.
7913         (note_outside_basic_block_p): New helper function for emit_note_after
7914         and emit_note_before.
7915         (emit_note_after): Use nobb variant of add_insn_after if the note
7916         should not be contained in a basic block.
7917         (emit_note_before): Use nobb variant of add_insn_before if the note
7918         should not be contained in a basic block.
7919         (emit_note_copy): Use make_note_raw.
7920         (emit_note): Likewise.
7921         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
7922         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
7923         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
7924         the moved barrier the tail of the basic block it follows.
7925         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
7927 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
7929         PR tree-optimization/56962
7930         * gimple-ssa-strength-reduction.c (record_increment): Only set
7931         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
7932         either rhs1 or rhs2 is equal to c->base_expr.
7934 2013-04-15  Richard Biener  <rguenther@suse.de>
7936         PR tree-optimization/56933
7937         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
7938         member.
7939         (GROUP_READ_WRITE_DEPENDENCE): Remove.
7940         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
7941         * tree-vect-data-refs.c (vect_analyze_group_access): Move
7942         dependence check ...
7943         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
7944         ... here.
7945         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
7946         GROUP_READ_WRITE_DEPENDENCE.
7948 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7950         * emit-rtl.c (reset_all_used_flags): New function.
7951         (verify_rtl_sharing): Call reset_all_used_flags before and after
7952         performing the checks.
7954 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7956         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
7957         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
7958         * config/arm/constraints.md (De): New constraint.
7959         * config/arm/neon.md (anddi3_neon): Delete.
7960         (neon_vand<mode>): Expand to standard anddi3 pattern.
7961         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
7962         Move earlier in the file.
7963         (neon_inv_logic_op2): Likewise.
7964         (arm_anddi_operand_neon): New predicate.
7966 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7968         * configure.ac (gcc_cv_ld_as_needed): Set
7969         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
7970         Use -z ignore, -z record on *-*-solaris2*.
7971         (HAVE_LD_AS_NEEDED): Update comment.
7972         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
7973         * configure: Regenerate.
7974         * config.in: Regenerate.
7975         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
7976         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
7977         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
7978         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
7979         equivalents.  Fix markup.
7980         * doc/tm.texi: Regenerate.
7982 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
7984         * config/i386/i386.opt: New option mstack-protector-guard=.
7985         * config/i386/i386-opts.h: Add enum stack_protector_guard.
7986         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
7987         TARGET_SSP_TLS_GUARD.
7988         * config/i386/i386.c (ix86_option_override_internal): Set
7989         ix86_stack_protector_guard.
7990         * config/i386/i386.md (stack_protect_set): Enable for
7991         TARGET_SSP_TLS_GUARD only.
7992         (stack_protect_set_<mode>): Ditto.
7993         (stack_protect_test): Ditto.
7994         (stack_protect_test_<mode>): Ditto.
7995         * doc/invoke.texi (i386 Option): Document.
7997 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7999         PR target/56890
8000         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
8001         (S_MODES): Set H_MODE bit.
8002         (SF_MODES): Set only S_MODE and SF_MODE bits.
8003         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
8004         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
8005         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
8006         <MODE_FLOAT>: Likewise.
8008 2013-04-15  Joey Ye  <joey.ye@arm.com>
8010         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
8012 2013-04-15  Joey Ye  <joey.ye@arm.com>
8014         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
8015         for real far jump.
8016         (thumb_far_jump_used_p): Count instruction size and set
8017         far_jump_used.
8019 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
8021         * reorg.c (fill_simple_delay_slots): Reindent block of code.
8022         * resource.c (mark_target_live_regs): Reformat conditional block.
8024 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
8026         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
8027         notes, they are emitted only just before final.
8028         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
8030 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
8032         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
8033         * cfgrtl.c (delete_insn): Call it here instead.
8034         * lra-spills.c (lra_final_code_change): Use delete_insn.
8035         * haifa-sched.c (sched_remove_insn): Likewise.
8036         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
8037         returning to the nop pool.
8038         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
8039         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
8041 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
8043         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
8044         * doc/tm.texi: Regenerated.
8046 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
8048         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
8049         QImode checks.
8051 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
8053         * df-core.c (df_find_def): Compare register numbers.
8054         (df_find_use): Likewise.
8056 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
8058         PR target/56903
8059         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
8060         lra_in_progress for return.
8062 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
8064         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
8065         define_insn into define_insn_and_split and emit movsicc patterns.
8067 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
8069         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
8071 2013-04-12  Richard Biener  <rguenther@suse.de>
8073         * tree-pass.h (TODO_do_not_ggc_collect): New.
8074         * passes.c (execute_one_ipa_transform_pass): Honor
8075         TODO_do_not_ggc_collect.
8076         (execute_one_pass): Likewise.
8078         Revert
8079         2013-04-10  Richard Biener  <rguenther@suse.de>
8081         * passes.c (init_optimization_passes): Remove reload pass.
8082         * ira.c (do_reload): Merge into ...
8083         (ira): ... this.
8084         (rest_of_handle_reload): Remove.
8085         (pass_reload): Likewise.
8086         * config/i386/i386.c (ix86_option_override): Refer to ira instead
8087         of reload for vzeroupper pass placement.
8089 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
8091         PR tree-optimization/56918
8092         PR tree-optimization/56920
8093         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
8094         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
8095         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
8096         use wide_mul_with_sign method.
8098 2013-04-12  Richard Biener  <rguenther@suse.de>
8100         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
8101         not be considered a gimple constant.
8103 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
8105         * fold-const.c (const_binop): Handle vector shifts by a scalar.
8106         (fold_binary_loc): Call const_binop also for mixed vector-scalar
8107         operations.
8109 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8110             Jakub Jelinek  <jakub@redhat.com>
8112         * opts.c: Include diagnostic-color.h.
8113         (common_handle_option): Handle OPT_fdiagnostics_color_.
8114         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
8115         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
8116         (diagnostic-color.o): New.
8117         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
8118         (diagnostic_color_rule): New enum.
8119         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
8120         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
8121         the location string.
8122         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
8123         either NULL, or color kind.
8124         * diagnostic-color.c: New file.
8125         * diagnostic-color.h: New file.
8126         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
8127         arguments.
8128         * doc/invoke.texi (-fdiagnostics-color): Document.
8129         * pretty-print.h (pp_show_color): Define.
8130         (struct pretty_print_info): Add show_color field.
8131         * diagnostic.c: Include diagnostic-color.h.
8132         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
8133         macros.  Colorize error:, warning: etc. strings and also the location
8134         string.
8135         (diagnostic_show_locus): Colorize the caret line.
8136         * pretty-print.c: Include diagnostic-color.h.
8137         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
8138         inside of %< %> quotes or quoted through q format modifier.
8140 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8142         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
8144 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8146         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
8147         code in CC_NZ mode.
8148         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
8149         pattern.
8151 2013-04-11  Marek Polacek  <polacek@redhat.com>
8153         PR tree-optimization/48184
8154         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
8156 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
8158         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
8159         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
8160         (skip_simple_arithmetic): Tidy up.
8161         * tree.h (skip_simple_constant_arithmetic): Declare.
8163 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8165         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
8167 2013-04-11  Richard Biener  <rguenther@suse.de>
8169         * tree-vect-loop.c (get_initial_def_for_induction): Properly
8170         generate vector constants.
8172 2013-04-11  Richard Biener  <rguenther@suse.de>
8174         PR tree-optimization/56878
8175         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
8176         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
8177         New function.
8178         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8179         Prefer to align the DR with the most invariant base address.
8181 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8183         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
8184         comment.
8186 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
8188         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
8189         floating-point vector comparisons against 0.
8191 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
8193         PR tree-optimization/56899
8194         * fold-const.c (extract_muldiv_1): Apply distributive law
8195         only if TYPE_OVERFLOW_WRAPS (ctype).
8197 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
8199         PR target/56124
8200         * ira-costs.c (scan_one_insn): Check whether the source rtx of
8201         loading has side effect.
8203 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
8205         * config/sparc/sparc.c: Include tree-pass.h.
8206         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
8207         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
8208         head of file.  Change return type.  Split off gate function.
8209         (sparc_gate_work_around_errata): New function.
8210         (pass_work_around_errata): New pass definition.
8211         (insert_pass_work_around_errata) New pass insert definition to
8212         insert pass_work_around_errata just after delayed-branch scheduling.
8213         (sparc_option_override): Insert the pass.
8214         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
8216 2013-04-10  David S. Miller  <davem@davemloft.net>
8218         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
8219         or -mcpu=hypersparc.
8221         * target.def (cstore_mode): New hook.
8222         * target.h: Include insn-codes.h
8223         * targhooks.c: Likewise.
8224         (default_cstore_mode): New function.
8225         * targhooks.h: Declare it.
8226         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
8227         * doc/tm.texi: Rebuild.
8228         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
8229         target hook, rather than inspecting the insn_data.
8230         * config/sparc/sparc.c (sparc_cstore_mode): New function.
8231         (TARGET_CSTORE_MODE): Redefine.
8232         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
8233         result patterns.
8234         * config/sparc/predicates.md (cstore_result_operand): New special
8235         predicate.
8236         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
8237         Use it for operand 0.
8238         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
8239         (*snesi_special): Likewise.
8240         (*snesi_zero): Likewise.
8241         (*seqsi_zero): Likewise.
8242         (*sltu_insn): Likewise.
8243         (*sgeu_insn): Likewise.
8244         (*seqdi_special): Make operand 0 and comparison operation be of
8245         DImode.
8246         (*snedi_special): Likewise.
8247         (*snedi_special_vis3): Likewise.
8248         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
8249         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
8250         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
8251         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
8252         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
8253         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
8254         (*sltu_extend_sp64): Likewise.
8255         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
8256         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
8257         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
8258         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
8259         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
8261 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
8263         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
8264         (aarch64_start_file): Use the new function.
8266 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8267             Jason Merrill  <jason@redhat.com>
8269         * common.opt: Add -gdwarf.
8270         * opts.c (common_handle_option): Handle it.
8271         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
8273 2013-04-10  Richard Biener  <rguenther@suse.de>
8275         * passes.c (execute_todo): Do not call ggc_collect conditional here.
8276         (execute_one_ipa_transform_pass): But unconditionally here.
8277         (execute_one_pass): And here.
8278         (init_optimization_passes): Remove reload pass.
8279         * tree-pass.h (TODO_ggc_collect): Remove.
8280         (pass_reload): Likewise.
8281         * ira.c (do_reload): Merge into ...
8282         (ira): ... this.
8283         (rest_of_handle_reload): Remove.
8284         (pass_reload): Likewise.
8285         * config/i386/i386.c (ix86_option_override): Refer to ira instead
8286         of reload for vzeroupper pass placement.
8287         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
8288         and todo_flags_finish of all passes.
8290 2013-04-10  Richard Biener  <rguenther@suse.de>
8292         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
8293         first_const_oprnd field, rename first_def_type to first_op_type.
8294         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
8295         (vect_get_and_check_slp_defs): Always use the type of the
8296         operand.  Allow mixed vect_external_def, vect_constant_def types.
8297         (vect_get_constant_vectors): Handle mixed vect_external_def,
8298         vect_constant_def types.
8300 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
8302         PR tree-optimization/55524
8303         * tree-ssa-math-opts.c
8304         (convert_mult_to_fma): Don't use an fms construct
8305         when we don't have an fms operation, but fnma, and it looks
8306         likely that we'll be able to use the latter.
8308 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
8310         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
8311         function.
8312         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
8313         inline fail caused by overwritable functions.
8315 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
8317         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
8318         unnecessary bits in the constant power of two case.
8320 2013-04-10  Richard Biener  <rguenther@suse.de>
8322         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
8323         broken code swapping operands.
8324         (vect_build_slp_tree): Do not compute load permutations here.
8325         (vect_analyze_slp_instance): Compute load permutations here,
8326         after building the SLP tree.
8328 2013-04-09  Christian Bruel  <christian.bruel@st.com>
8330         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
8331         of next/prev_real_insn.
8333 2013-04-09  Jan Hubicka  <jh@suse.cz>
8335         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
8336         Drop aliased parameter.
8337         (function_and_variable_visibility): Do not handle alias pairs.
8338         * cgraph.c (varpool_externally_visible_p): Update prototype.
8339         * varpool.c (varpool_add_new_variable): Update.
8341 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8343         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
8345 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
8347         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
8349         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
8351 2013-04-09  Marek Polacek  <polacek@redhat.com>
8353         PR tree-optimization/48762
8354         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
8356 2013-04-09  Richard Biener  <rguenther@suse.de>
8358         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
8359         dealing with cost.
8360         (vect_build_slp_tree): Likewise.
8361         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
8362         calculating the cost of a SLP instance.
8363         (vect_analyze_slp_instance): Use it from here, after building
8364         the SLP tree.
8366 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
8368         PR middle-end/56883
8369         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
8370         expand_omp_for_static_chunk): Use simple_p = true in
8371         force_gimple_operand_gsi calls when assigning to addressable decls.
8373 2013-04-09  Jeff Law  <law@redhat.com>
8375         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
8376         when the boolean was created by converting a wider object which
8377         had a boolean range.
8379 2013-04-09  Richard Biener  <rguenther@suse.de>
8381         * tree-vectorizer.h (slp_void_p): Remove.
8382         (slp_tree): Typedef before _slp_tree declaration.
8383         (struct _slp_tree): Use a vector of slp_tree as children.
8384         (vect_get_place_in_interleaving_chain): Remove.
8385         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
8386         Move ...
8387         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
8388         and make static.
8389         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
8390         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
8391         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
8392         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
8393         Use slp_node instead of slp_void_p and adjust.
8395 2013-04-09  Richard Biener  <rguenther@suse.de>
8397         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
8398         work that is not necessary.
8400 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
8402         PR tree-optimization/56854
8403         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
8404         forward into clobber stmts if it would change MEM_REF lhs into
8405         non-MEM_REF.
8407 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
8409         * tree.c (type_hash_lookup, type_hash_add): Make static.
8410         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
8412 2013-04-09  Richard Biener  <rguenther@suse.de>
8414         * tree.h (unsave_expr_now): Remove.
8415         * tree-inline.c (mark_local_for_remap_r): Remove.
8416         (unsave_expr_1): Likewise.
8417         (unsave_r): Likewise.
8418         (unsave_expr_now): Likewise.
8419         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
8420         (propagate_tree_value): Likewise.
8422 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
8424         * doc/rtl.texi (sequence): Rewrite documentation to match the
8425         current use of SEQUENCE rtl objects.
8426         * rtl.def (SEQUENCE): Likewise.
8428         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
8429         Update documentation.
8430         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
8431         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
8433         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
8435 2013-04-08  Teresa Johnson  <tejohnson@google.com>
8437         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
8438         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
8439         methods.
8440         (estimate_edge_size_and_time): Add comment to suggest using rounding
8441         methods.
8442         (estimate_node_size_and_time): Ditto.
8443         (remap_edge_change_prob): Use helper rounding divide methods.
8444         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
8445         (gimple_mod_pow2_value_transform): Ditto.
8446         (gimple_mod_subtract_transform): Ditto.
8447         (gimple_ic_transform): Ditto.
8448         (gimple_stringops_transform): Ditto.
8449         * stmt.c (conditional_probability): Ditto.
8450         (emit_case_dispatch_table): Ditto.
8451         * lto-cgraph.c (merge_profile_summaries): Ditto.
8452         * tree-optimize.c (execute_fixup_cfg): Ditto.
8453         * cfgcleanup.c (try_forward_edges): Ditto.
8454         * cfgloopmanip.c (scale_loop_profile): Ditto.
8455         (loopify): Ditto.
8456         (duplicate_loop_to_header_edge): Ditto.
8457         (lv_adjust_loop_entry_edge): Ditto.
8458         * tree-vect-loop.c (vect_transform_loop): Ditto.
8459         * profile.c (compute_branch_probabilities): Ditto.
8460         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
8461         * lto-streamer-in.c (input_cfg): Ditto.
8462         * gimple-streamer-in.c (input_bb): Ditto.
8463         * ipa-cp.c (update_profiling_info): Ditto.
8464         (update_specialized_profile): Ditto.
8465         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
8466         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
8467         rounding methods.
8468         * sched-rgn.c (compute_dom_prob_ps): Ditto.
8469         (compute_trg_info): Ditto.
8470         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
8471         (purge_dead_edges): Ditto.
8472         * loop-unswitch.c (unswitch_loop): Ditto.
8473         * cgraphclones.c (cgraph_clone_edge): Ditto.
8474         (cgraph_clone_node): Ditto.
8475         * tree-inline.c (copy_bb): Ditto.
8476         (copy_edges_for_bb): Ditto.
8477         (initialize_cfun): Ditto.
8478         (copy_cfg_body): Ditto.
8479         (expand_call_inline): Ditto.
8481 2013-04-08  Kai Tietz  <ktietz@redhat.com>
8483         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
8484         TARGET_CYGWIN64 by TARGET_64BIT.
8486 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
8488         * config/epiphany/epiphany.md (GPR_1): New constant.
8489         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
8490         * config/epiphany/epiphany.c (gen_compare_reg):
8491         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
8492         is already in place.
8493         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
8494         Don't require being called during rtl expansion; If y operlaps r0,
8495         return 0.
8496         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
8497         (epiphany_expand_epilogue): Likewise.
8499         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
8500         Don't use CC_FPmode for ORDERED / UNORDERED.
8501         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8503         * config/epiphany/constraints.md (CnL): New constraint.
8504         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
8505         * config/epiphany/predicates.md (add_operand): Allow 1024.
8507         * config/epiphany/epiphany.md (logical_op): New code iterator.
8508         (op_mnc): New code attribute.
8509         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
8510         (mov_f+1, mov_f+2): New peephole2 patterns.
8512         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
8513         (cstoresi4): Also allow re-use of zero result when doing a NE
8514         comparison to a non-zero operand.
8515         Use (clobber (scratch)) for first insn if the gpr output is not needed.
8517         * config/epiphany/epiphany.md (<insn_opname>v2si3):
8518         Use gen_addsi3_i / gen_subsi3_i.
8520 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
8522         PR c++/34949
8523         PR c++/50243
8524         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
8525         contain anything but clobbers, at most one __builtin_stack_restore,
8526         optionally debug stmts and final resx, and if it has at least one
8527         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
8528         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
8529         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
8530         which isn't defaut definition, remove them.
8531         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
8532         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
8533         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
8534         with MEM_REF LHS with SSA_NAME address.
8536 2013-04-08  Jeff Law  <law@redhat.com>
8538         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
8540 2013-04-08  Richard Biener  <rguenther@suse.de>
8542         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
8543         extra newline.
8544         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
8545         determined vector type.
8546         (vect_analyze_data_refs): Likewise.
8547         (vect_get_new_vect_var): Adjust.
8548         (vect_create_destination_var): Preserve SSA name versions.
8549         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
8550         not dump anything here.
8552 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
8554         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
8555         Add member lr_slot_known.
8556         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
8557         if necessary.
8558         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
8559         Remove code that sets lr_slot_offset according to what a previous
8560         version of epiphany_emit_save_restore used to do.
8561         (epiphany_emit_save_restore): When doing an lr save or restore,
8562         set/verify lr_slot_known and lr_slot_offset.
8564 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
8566         PR target/54338
8567         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
8568         in ALL_REGS.
8570 2013-04-08  Richard Biener  <rguenther@suse.de>
8572         * alias.c (find_base_term): Fix thinko in previous change.
8574 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
8576         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
8577         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
8578         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
8579         if possible to compute val.
8580         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
8581         For QImode integers don't require anything about precision.  Use
8582         const_with_all_bytes_same to find out if the constant doesn't have
8583         repeated bytes in it.
8585 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8587         * config/s390/s390.c (s390_expand_insv): Only accept insertions
8588         within mode size.
8590 2013-04-08  Marek Polacek  <polacek@redhat.com>
8592         PR rtl-optimization/48182
8593         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
8594         value to 1.
8596 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8598         PR target/55487
8599         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
8600         nuses, make sure we have a label.
8602 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8604         PR target/56843
8605         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
8606         (rs6000_emit_swdiv_low_precision): Remove.
8607         (rs6000_emit_swdiv): Rewrite to handle between one and four
8608         iterations of Newton-Raphson generally; modify required number of
8609         iterations for some cases.
8610         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
8612 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
8614         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
8615         set-but-unused variable.
8617         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
8618         basic blocks of released function bodies garbage-collectable.
8620         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
8621         (struct rtl_opt_pass): Add TODO_df_finish.
8623         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
8625 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
8627         * config/arm/constraints.md (q): New constraint.
8628         * config/arm/ldrdstrd.md: New file.
8629         * config/arm/arm.md (ldrdstrd.md) New include.
8630         (arm_movdi): Use "q" instead of "r" constraint
8631         for double-word memory access.
8632         (movdf_soft_insn): Likewise.
8633         * config/arm/vfp.md (movdi_vfp): Likewise.
8634         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
8635         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
8636         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
8637         (mem_ok_for_ldrd_strd): Likewise.
8638         (output_move_double): Update assertion.
8640 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
8642         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
8644 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
8646         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
8647         define_insn_and_split.
8648         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
8650 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
8652         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
8653         define_insn_and_split.
8654         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
8655         (shiftsi3_compare): New pattern.
8656         (rrx): New pattern.
8657         * config/arm/unspecs.md (UNSPEC_RRX): New.
8659 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
8661         * config/arm/arm.md (negdi_extendsidi): New pattern.
8662         (negdi_zero_extendsidi): Likewise.
8664 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
8666         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
8667         define_insn_and_split.
8668         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
8669         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
8671 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
8673         * config/arm/arm.md (arm_subdi3): Convert define_insn into
8674         define_insn_and_split.
8675         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
8676         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
8678 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
8680         * config/arm/arm.md (subsi3_carryin): New pattern.
8681         (subsi3_carryin_const): Likewise.
8682         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
8683         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
8685 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
8687         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
8689 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
8691         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
8692         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
8694 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8696         * config/arm/arm.c (arm_expand_builtin): Change fcode
8697         type to unsigned int.
8699 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8701         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
8703 2013-04-04  Ian Lance Taylor  <iant@google.com>
8705         * doc/standards.texi (Standards): The Go frontend supports the Go 1
8706         language standard.
8708 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
8710         PR middle-end/56729
8711         * df-scan.c (df_insn_delete): Disable failing assert.
8713 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8715         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
8716         New function prototype.
8717         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
8718         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
8719         (arm_builtin_vectorized_function): New function.
8721 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8723         * config/arm/arm_neon_builtins.def: New file.
8724         * config/arm/arm.c (neon_builtin_data): Move contents to
8725         arm_neon_builtins.def.
8726         (enum arm_builtins): Include neon builtin definitions.
8727         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
8728         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
8730 2013-04-04  Marek Polacek  <polacek@redhat.com>
8732         PR tree-optimization/48186
8733         * predict.c (maybe_hot_frequency_p): Return false if
8734         HOT_BB_FREQUENCY_FRACTION is 0.
8735         (cgraph_maybe_hot_edge_p): Likewise.
8737 2013-04-04  Richard Biener  <rguenther@suse.de>
8739         PR tree-optimization/56826
8740         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
8741         more accurately.
8743 2013-04-04  Richard Biener  <rguenther@suse.de>
8745         PR tree-optimization/56213
8746         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
8747         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
8749 2013-04-04  Richard Biener  <rguenther@suse.de>
8751         PR tree-optimization/56837
8752         * tree-loop-distribution.c (classify_partition): For non-zero
8753         values require that the value has the same precision as its
8754         mode to be useful as memset value.
8756 2013-04-03  Nick Clifton  <nickc@redhat.com>
8758         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
8759         (fmssf4): Use fmsf.s on E3V5 architectures.
8760         (fnmasf4): Use fnmaf.s on E3V5 architectures.
8761         (fnmssf4): Use fnmsf.s on E3V5 architectures.
8763 2013-04-03  Jeff Law  <law@redhat.com>
8765         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
8766         (lra-eliminations.o): Likewise.
8768 2013-04-03  Teresa Johnson  <tejohnson@google.com>
8770         * gcov-io.c (compute_working_sets): Moved most of body of old
8771         compute_working_sets here from profile.c.
8772         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
8773         (gcov_working_set_t): Moved typedef here from basic-block.h
8774         (compute_working_set): Declare.
8775         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
8776         (get_working_sets): Renamed from compute_working_set,
8777         replace most of body with call to new compute_working_sets.
8778         (get_exec_counts): Replace call to compute_working_sets
8779         to get_working_sets.
8780         * profile.h (get_working_sets): Renamed from compute_working_set.
8781         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
8782         to get_working_sets.
8783         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
8784         * gcov-dump.c (dump_working_sets): New function.
8786 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
8788         * hwint.c (sext_hwi, zext_hwi): New functions.
8789         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
8790         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
8791         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
8792         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
8793         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
8794         (sext_hwi, zext_hwi): New functions.
8796 2013-04-03  Jeff Law  <law@redhat.com>
8798         PR tree-optimization/56799
8799         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
8800         back test for widening conversion erroneously dropped in prior change.
8802 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8804         PR target/56809
8805         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
8806         instead of next_real_insn.
8808 2013-04-03  Marek Polacek  <polacek@redhat.com>
8810         PR sanitizer/55702
8811         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
8813 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8815         PR target/56809
8816         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
8817         next_real_insn.
8818         (thumb1_output_casesi): Likewise.
8819         (thumb2_output_casesi): Likewise.
8821 2013-04-03  Richard Biener  <rguenther@suse.de>
8823         PR tree-optimization/56817
8824         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8825         Split out ...
8826         (tree_unroll_loops_completely_1): ... new function to manually
8827         walk the loop tree, properly defering outer loops of unrolled
8828         loops to later iterations.
8830 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
8832         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
8833         (vectorizable_load): Likewise.
8834         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
8835         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
8837 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
8839         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
8840         BIT_FIELD_REF.
8842 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8844         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
8846 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
8848         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
8850 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
8852         PR tree-optimization/56790
8853         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
8854         folding.
8856 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
8858         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8859         Handle VEC_MERGE.
8860         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
8861         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
8862         equal arguments.
8864 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
8866         PR c/19449
8867         * tree.h (force_folding_builtin_constant_p): New decl.
8868         * builtins.c (force_folding_builtin_constant_p): New variable.
8869         (fold_builtin_constant_p): Fold immediately also if
8870         force_folding_builtin_constant_p.
8872 2013-04-03  Richard Biener  <rguenther@suse.de>
8874         PR tree-optimization/56812
8875         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
8876         DRs of the same interleaving chain are independent.
8878 2013-04-02  Jason Merrill  <jason@redhat.com>
8880         * gdbinit.in (pbb): Use debug fn.
8882 2013-04-02  Lawrence Crowl  <crowl@google.com>
8884         * sese.h (struct ivtype_map_elt_s): Remove unused.
8885         (extern debug_ivtype_map): Remove unused.
8886         (extern eq_ivtype_map_elts): Remove unused.
8887         * sese.c (debug_ivtype_map): Removed unused.
8888         (debug_ivtype_map_1): Removed unused.
8889         (debug_ivtype_elt): Remove unused.
8890         (eq_ivtype_map_elts): Remove unused.
8893 2013-04-02  Kai Tietz  <ktietz@redhat.com>
8895         PR target/52790
8896         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
8897         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
8898         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
8899         function.
8900         (legitimize_pe_coff_symbol): Likewise.
8901         (is_imported_p): New helper-function.
8902         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
8903         for Windows x64 targets.
8904         (ix86_expand_prologue): Optimize for pe-coff targets.
8905         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
8906         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
8907         medium/large code-model.
8908         (legitimize_pic_address): Likewise.
8909         (legitimize_tls_address): Likewise.
8910         (ix86_expand_call): Likewise.
8911         (x86_output_mi_thunk): Likewise.
8912         (get_dllimport_decl): Add new beimport argument.
8913         (construct_plt_address): Don't assert for x64 pe-coff targets.
8914         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
8915         targets.
8916         (SYMBOL_FLAG_STUBVAR): New macro.
8917         (SYMBOL_REF_STUBVAR_P): Likewise.
8918         * config/i386/winnt.c (stub_list): New structure.
8919         (stub_head): New local variable.
8920         (i386_pe_record_stub): New function.
8921         (i386_pe_file_end): Emit refptr-stubs.
8923 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
8925         PR rtl-optimization/56745
8926         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
8927         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
8929         PR c++/34949
8930         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
8931         and both of them are MEM_REFs, just compare first argument for
8932         equality and attempt to deal even with differing offsets.
8934         PR c++/34949
8935         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
8936         of gimple_clobber_p to be MEM_REF.
8937         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
8938         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
8939         after gimplification.
8940         * asan.c (get_mem_ref_of_assignment): Don't instrument
8941         gimple_clobber_p stmts.
8942         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
8943         gimple_clobber_p stmt if they have MEM_REF lhs and
8944         are dead because of another gimple_clobber_p stmt.
8945         * tree-ssa-live.c (clear_unused_block_pointer): Treat
8946         gimple_clobber_p stmts like debug stmts.
8947         (remove_unused_locals): Remove clobbers with MEM_REF lhs
8948         that refer to unused VAR_DECLs or uninitialized values.
8949         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
8950         gimple_clobber_p stmts if they refer to removed parameters.
8951         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
8952         formatting.
8954 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
8956         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
8957         using SWI48 mode attribute.
8959 2013-04-02  Wei Mi  <wmi@google.com>
8961         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
8962         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
8963         *<rotate_insn><mode>3_mask in i386.md.
8965 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8967         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
8969 2013-04-02  Richard Biener  <rguenther@suse.de>
8971         PR tree-optimization/56778
8972         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8973         Runtime alias tests are not supported for gather loads.
8974         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
8975         stmts referenced from SSA operands before updating SSA form.
8977 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
8978             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8980         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
8981         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
8982         * config/arm/cortex-a53.md: New file.
8983         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
8984         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
8985         * config/arm/arm.c (arm_issue_rate): Likewise.
8986         * config/arm/arm-tune.md: Regenerate
8987         * config/arm/arm-tables.opt: Regenerate.
8988         * config/arm/arm-cores.def: Add cortex-a53.
8990 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8992         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
8993         non-static link.
8995 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
8997         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
8998         scalar load/store operations using B/H registers.
8999         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
9001 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
9003         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
9004         scalar move.
9005         * config/aarch64/aarch64.c
9006         (aarch64_simd_scalar_immediate_valid_for_move): New.
9007         * config/aarch64/aarch64-protos.h
9008         (aarch64_simd_scalar_immediate_valid_for_move): New.
9009         * config/aarch64/constraints.md (Dh, Dq): New.
9010         * config/aarch64/iterators.md (hq): New.
9012 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
9014         * reorg.c (get_branch_condition): Deal with conditional returns.
9015         (fill_simple_delay_slots): Remove dead code dealing with jumps.
9017 2013-04-01  Wei Mi  <wmi@google.com>
9019         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
9020         Truncate operand 2 using %b asm operand modifier.
9021         (*<shift_insn><mode>3_mask): Ditto.
9022         (*<rotate_insn><mode>3_mask): Ditto.
9024 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
9026         PR middle-end/56798
9027         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
9029 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
9031         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
9032         of next_real_insn.
9033         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
9035 2013-03-30  Lawrence Crowl  <crowl@google.com>
9037         * dse.c (clear_alias_sets): Remove never set.
9038         (disqualified_clear_alias_sets): Remove never set.
9039         (clear_alias_mode_pool): Remove never set.
9040         (dse_step0): Remove condition that is never true.
9041         (canon_address): Remove condition that is never true.
9042         (dse_step7): Remove condition that is never true.
9043         (rest_of_handle_dse): Remove condition that is never true.
9044         (rest_of_handle_dse::did_global): Remove never read from above.
9045         (dse_step2_spill): Remove never called from above.
9046         (dse_step5_spill): Remove never called from above.
9048 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
9050         * doc/md.texi (Standard Names) <casesi>: Update documentation for
9051         JUMP_TABLE_DATA changes.
9052         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
9053         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
9054         (Insns) <jump_table_data>: New entry.
9055         * doc/tm.texi: Regenerate.
9057         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
9059         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
9060         for table jump at the end of a basic block using tablejump_p.
9061         * targhooks.c (default_invalid_within_doloop): Likewise.
9062         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
9063         target hook implementation that is identical to the default hook.
9064         (rs6000_invalid_within_doloop): Remove.
9066         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
9067         unused variable from tablejump_p call.
9069         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
9070         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
9071         (INSN_DELETED_P): Likewise.
9072         (emit_jump_table_data): New prototype.
9073         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
9074         after 4th as unused.
9075         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
9076         * sched-vis.c (print_insn): Likewise.
9077         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
9078         insn for compatibility with back ends that use next_active_insn to
9079         identify jump table data.
9080         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
9081         (remove_insn): Likewise.
9082         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
9083         to be emitted.
9084         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
9085         (emit_jump_table_data): New function.
9087         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
9088         basic block, a JUMP_TABLE_DATA never is.
9089         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
9090         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
9091         off from code handling real insns.
9092         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
9093         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
9094         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
9095         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
9096         is not a NONDEBUG_INSN_P.
9097         * ira-costs.c (scan_one_insn): Likewise.
9098         * jump.c (mark_all_labels): Likewise.
9099         (mark_jump_label_1): Likewise.
9100         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9101         * lra.c (get_insn_freq): Expect all insns reaching here to be in
9102         a basic block.
9103         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
9104         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
9105         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
9106         JUMP_TABLE_DATA_P insns.
9107         (calculate_elim_costs_all_insns): Likewise.
9108         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
9109         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
9110         (delete_output_reload): Code style fixups.
9111         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
9112         insn flags on this non-insn.
9113         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
9114         as scheduling barriers, for pre-change compatibility.
9115         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
9116         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
9118         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
9119         redundant JUMP_TABLE_DATA_P test.
9120         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
9121         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9122         (frv_for_each_packet): Likewise.
9123         * config/i386/i386.c (min_insn_size): Likewise.
9124         (ix86_avoid_jump_mispredicts): Likewise.
9125         * config/m32r/m32r.c (m32r_is_insn): Likewise.
9126         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
9127         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9128         (mips16_insn_length): Robustify.
9129         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
9130         (mips16_split_long_branches): Likewise.
9131         * config/pa/pa.c (pa_combine_instructions): Likewise.
9132         * config/rs6000/rs6000.c (get_next_active_insn): Treat
9133         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
9134         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
9135         as contributing to pool range lengths.
9136         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
9137         Remove redundant JUMP_TABLE_DATA_P test.
9138         (sh_loop_align): Likewise.
9139         (split_branches): Likewise.
9140         (sh_insn_length_adjustment): Likewise.
9141         * config/spu/spu.c (get_branch_target): Likewise.
9143 2013-03-29  Jan Hubicka  <jh@suse.cz>
9145         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
9146         gcov streaming; stream hot bb threshold to ltrans.
9147         * predict.c (get_hot_bb_threshold): Break out from ....
9148         (maybe_hot_count_p): ... here.
9149         (set_hot_bb_threshold): New function.
9150         * lto-section-in.c (lto_section_name): Add profile.
9151         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
9152         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
9153         and data-streamer.h
9154         (histogram_entry): New structure.
9155         (histogram, histogram_pool): New global vars.
9156         (histogram_hash): New structure.
9157         (histogram_hash::hash): New method.
9158         (histogram_hash::equal): Likewise.
9159         (account_time_size): New function.
9160         (cmp_counts): New function.
9161         (dump_histogram): New function.
9162         (ipa_profile_generate_summary): New function.
9163         (ipa_profile_write_summary): New function.
9164         (ipa_profile_read_summary): New function.
9165         (ipa_profile): Decide on threshold.
9166         (pass_ipa_profile): Add ipa_profile_write_summary and
9167         ipa_profile_read_summary.
9168         * Makefile.in (ipa.o): Update dependencies.
9169         * lto-streamer.h (LTO_section_ipa_profile): New section.
9171 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9173         * tree.h (VAR_P): New.
9175 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
9177         PR lto/56777
9178         * doc/invoke.texi ([-fwhole-program]): Fix typo.
9180 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
9182         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
9183         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9184         (control_flow_insn_p): Likewise.
9185         * cfgrtl.c (duplicate_insn_chain): Likewise.
9186         * final.c (get_attr_length_1): Likewise.
9187         (shorten_branches): Likewise.
9188         (final_scan_insn): Likewise.
9189         * function.c (instantiate_virtual_regs): Likewise.
9190         * gcse.c (insert_insn_end_basic_block): Likewise.
9191         * ira-costs.c (scan_one_insn): Likewise.
9192         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9193         * lra.c (check_rtl): Likewise.
9194         * reload1.c (elimination_costs_in_insn): Likewise.
9195         * reorg.c (follow_jumps): Likewise.
9197         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
9198         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9199         (thumb_far_jump_used_p): Likewise.
9200         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
9201         (workaround_speculation): Likewise.
9202         (add_sched_insns_for_speculation): Likewise.
9203         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
9204         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9205         (frv_for_each_packet): Likewise.
9206         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
9207         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
9208         (final_emit_insn_group_barriers): Likewise.
9209         * config/m32r/m32r.c (m32r_is_insn): Likewise.
9210         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9211         (mips16_insn_length): Likewise.
9212         * config/pa/pa.c (pa_reorg): Likewise.
9213         (pa_combine_instructions): Likewise.
9214         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
9215         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
9216         (sh_reorg): Likewise.
9217         (split_branches): Likewise.
9218         * config/spu/spu.c (get_branch_target): Likewise.
9220         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
9221         JUMP_TABLE_DATA_P.
9223 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
9225         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
9226         Fix declaration name.
9228 2013-03-28  Lawrence Crowl  <crowl@google.com>
9230         * graphds.h (struct graph.indicies): Remove unused.
9231         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
9232         (SCOP_ORIGINAL_PDDRS): Remove unused.
9233         * sese.h (extern insert_loop_close_phis): Removed unused.
9234         (extern insert_guard_phis): Removed unused.
9235         (extern ivtype_map_elt_info): Removed unused.
9236         (new_ivtype_map_elt): Removed unused.
9237         * sese.c (ivtype_map_elt_info): Removed unused.
9239 2013-03-28  Lawrence Crowl  <crowl@google.com>
9241         * Makefile.in: Add several missing include dependences.
9242         (DUMPFILE_H): New.
9243         (test-dump.o): New.  This object is not added to any executable,
9244         but is present for ad-hoc testing.
9245         * bitmap.c
9246         (debug (const bitmap_head_def &)): New.
9247         (debug (const bitmap_head_def *)): New.
9248         * bitmap.h
9249         (extern debug (const bitmap_head_def &)): New.
9250         (extern debug (const bitmap_head_def *)): New.
9251         * cfg.c
9252         (debug (edge_def &)): New.
9253         (debug (edge_def *)): New.
9254         * cfghooks.c
9255         (debug (basic_block_def &)): New.
9256         (debug (basic_block_def *)): New.
9257         * dumpfile.h
9258         (dump_node (const_tree, int, FILE *)): Correct source file.
9259         * dwarf2out.c
9260         (debug (die_struct &)): New.
9261         (debug (die_struct *)): New.
9262         * dwarf2out.h
9263         (extern debug (die_struct &)): New.
9264         (extern debug (die_struct *)): New.
9265         * gimple-pretty-print.c
9266         (debug (gimple_statement_d &)): New.
9267         (debug (gimple_statement_d *)): New.
9268         * gimple-pretty-print.h
9269         (extern debug (gimple_statement_d &)): New.
9270         (extern debug (gimple_statement_d *)): New.
9271         * ira-build.c
9272         (debug (ira_allocno_copy &)): New.
9273         (debug (ira_allocno_copy *)): New.
9274         (debug (ira_allocno &)): New.
9275         (debug (ira_allocno *)): New.
9276         * ira-int.h
9277         (extern debug (ira_allocno_copy &)): New.
9278         (extern debug (ira_allocno_copy *)): New.
9279         (extern debug (ira_allocno &)): New.
9280         (extern debug (ira_allocno *)): New.
9281         * ira-lives.c
9282         (debug (live_range &)): New.
9283         (debug (live_range *)): New.
9284         * lra-int.h
9285         (debug (lra_live_range &)): New.
9286         (debug (lra_live_range *)): New.
9287         * lra-lives.c
9288         (debug (lra_live_range &)): New.
9289         (debug (lra_live_range *)): New.
9290         * omega.c
9291         (debug (omega_pb_d &)): New.
9292         (debug (omega_pb_d *)): New.
9293         * omega.h
9294         (extern debug (omega_pb_d &)): New.
9295         (extern debug (omega_pb_d *)): New.
9296         * print-rtl.c
9297         (debug (const rtx_def &)): New.
9298         (debug (const rtx_def *)): New.
9299         * print-tree.c
9300         (debug_tree (tree): Move within file.
9301         (debug_raw (const tree_node &)): New.
9302         (debug_raw (const tree_node *)): New.
9303         (dump_tree_via_hooks (const tree_node *, int)): New.
9304         (debug (const tree_node &)): New.
9305         (debug (const tree_node *)): New.
9306         (debug_verbose (const tree_node &)): New.
9307         (debug_verbose (const tree_node *)): New.
9308         (debug_head (const tree_node &)): New.
9309         (debug_head (const tree_node *)): New.
9310         (debug_body (const tree_node &)): New.
9311         (debug_body (const tree_node *)): New.
9312         (debug_vec_tree (tree): Move and reimplement in terms of dump.
9313         (debug (vec<tree, va_gc> &)): New.
9314         (debug (vec<tree, va_gc> *)): New.
9315         * rtl.h
9316         (extern debug (const rtx_def &)): New.
9317         (extern debug (const rtx_def *)): New.
9318         * sbitmap.c
9319         (debug_raw (simple_bitmap_def &)): New.
9320         (debug_raw (simple_bitmap_def *)): New.
9321         (debug (simple_bitmap_def &)): New.
9322         (debug (simple_bitmap_def *)): New.
9323         * sbitmap.h
9324         (extern debug (simple_bitmap_def &)): New.
9325         (extern debug (simple_bitmap_def *)): New.
9326         (extern debug_raw (simple_bitmap_def &)): New.
9327         (extern debug_raw (simple_bitmap_def *)): New.
9328         * sel-sched-dump.c
9329         (debug (vinsn_def &)): New.
9330         (debug (vinsn_def *)): New.
9331         (debug_verbose (vinsn_def &)): New.
9332         (debug_verbose (vinsn_def *)): New.
9333         (debug (expr_def &)): New.
9334         (debug (expr_def *)): New.
9335         (debug_verbose (expr_def &)): New.
9336         (debug_verbose (expr_def *)): New.
9337         (debug (vec<rtx> &)): New.
9338         (debug (vec<rtx> *)): New.
9339         * sel-sched-dump.h
9340         (extern debug (vinsn_def &)): New.
9341         (extern debug (vinsn_def *)): New.
9342         (extern debug_verbose (vinsn_def &)): New.
9343         (extern debug_verbose (vinsn_def *)): New.
9344         (extern debug (expr_def &)): New.
9345         (extern debug (expr_def *)): New.
9346         (extern debug_verbose (expr_def &)): New.
9347         (extern debug_verbose (expr_def *)): New.
9348         (extern debug (vec<rtx> &)): New.
9349         (extern debug (vec<rtx> *)): New.
9350         * sel-sched-ir.h
9351         (_list_iter_cond_expr): Make inline instead of static.
9352         * sreal.c
9353         (debug (sreal &)): New.
9354         (debug (sreal *)): New.
9355         * sreal.h
9356         (extern debug (sreal &)): New.
9357         (extern debug (sreal *)): New.
9358         * tree.h
9359         (extern debug_raw (const tree_node &)): New.
9360         (extern debug_raw (const tree_node *)): New.
9361         (extern debug (const tree_node &)): New.
9362         (extern debug (const tree_node *)): New.
9363         (extern debug_verbose (const tree_node &)): New.
9364         (extern debug_verbose (const tree_node *)): New.
9365         (extern debug_head (const tree_node &)): New.
9366         (extern debug_head (const tree_node *)): New.
9367         (extern debug_body (const tree_node &)): New.
9368         (extern debug_body (const tree_node *)): New.
9369         (extern debug (vec<tree, va_gc> &)): New.
9370         (extern debug (vec<tree, va_gc> *)): New.
9371         * tree-cfg.c
9372         (debug (struct loop &)): New.
9373         (debug (struct loop *)): New.
9374         (debug_verbose (struct loop &)): New.
9375         (debug_verbose (struct loop *)): New.
9376         * tree-dump.c: Add header dependence.
9377         * tree-flow.h
9378         (extern debug (struct loop &)): New.
9379         (extern debug (struct loop *)): New.
9380         (extern debug_verbose (struct loop &)): New.
9381         (extern debug_verbose (struct loop *)): New.
9382         * tree-data-ref.c
9383         (debug (data_reference &)): New.
9384         (debug (data_reference *)): New.
9385         (debug (vec<data_reference_p> &)): New.
9386         (debug (vec<data_reference_p> *)): New.
9387         (debug (vec<ddr_p> &)): New.
9388         (debug (vec<ddr_p> *)): New.
9389         * tree-data-ref.h
9390         (extern debug (data_reference &)): New.
9391         (extern debug (data_reference *)): New.
9392         (extern debug (vec<data_reference_p> &)): New.
9393         (extern debug (vec<data_reference_p> *)): New.
9394         (extern debug (vec<ddr_p> &)): New.
9395         (extern debug (vec<ddr_p> *)): New.
9396         * tree-ssa-alias.c
9397         (debug (pt_solution &)): New.
9398         (debug (pt_solution *)): New.
9399         * tree-ssa-alias.h
9400         (extern debug (pt_solution &)): New.
9401         (extern debug (pt_solution *)): New.
9402         * tree-ssa-alias.c
9403         (debug (_var_map &)): New.
9404         (debug (_var_map *)): New.
9405         (debug (tree_live_info_d &)): New.
9406         (debug (tree_live_info_d *)): New.
9407         * tree-ssa-alias.h
9408         (extern debug (_var_map &)): New.
9409         (extern debug (_var_map *)): New.
9410         (extern debug (tree_live_info_d &)): New.
9411         (extern debug (tree_live_info_d *)): New.
9413 2013-03-28  Jan Hubicka  <jh@suse.cz>
9415         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
9417 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
9419         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
9420         record only when desired or required.
9422 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
9424         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
9425         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
9427 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9429         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
9430         (*andsi3_compare0_uxtw): New pattern.
9431         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
9432         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
9434 2013-03-28  Jan Hubicka  <jh@suse.cz>
9436         * data-streamer-in.c (streamer_read_gcov_count): New function.
9437         * gimple-streamer-out.c: Include value-prof.h.
9438         (output_gimple_stmt): Output histogram.
9439         (output_bb): Use streamer_write_gcov_count.
9440         * value-prof.c: Include data-streamer.h
9441         (dump_histogram_value): Add HIST_TYPE_MAX.
9442         (stream_out_histogram_value): New function.
9443         (stream_in_histogram_value): New function.
9444         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
9445         (stream_out_histogram_value, stream_in_histogram_value): Declare.
9446         * data-streamer-out.c (streamer_write_gcov_count): New function.
9447         (streamer_write_gcov_count_stream): New function.
9448         * lto-cgraph.c (lto_output_edge): Update counter streaming.
9449         (lto_output_node): Likewise.
9450         (input_node, input_edge): Likewise.
9451         * lto-streamer-out.c (output_cfg): Update streaming.
9452         * lto-streamer-in.c (input_cfg): Likewise.
9453         * data-streamer.h (streamer_write_gcov_count,
9454         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
9455         * gimple-streamer-in.c: Include value-prof.h
9456         (input_gimple_stmt): Input histograms.
9457         (input_bb): Update profile streaming.
9459 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
9461         * genmodes.c (emit_max_int): New function.
9462         (emit_insn_modes_h): Added call to emit_max_function.
9463         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
9464         Added doc.
9465         * machmode.def: Fixed comment.
9467 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
9469         * combine.c (try_combine): Removed useless assert.
9470         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
9472 2013-03-28  Marek Polacek  <polacek@redhat.com>
9473             Richard Biener  <rguenther@suse.de>
9475         PR tree-optimization/56695
9476         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
9477         build signed result of a vector comparison.
9478         * tree-cfg.c (verify_gimple_comparison): Check that a result
9479         of a vector comparison has signed type.
9481 2013-03-28  Richard Biener  <rguenther@suse.de>
9483         PR tree-optimization/37021
9484         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
9485         do not restrict gaps between groups.
9486         * tree-vect-stmts.c (vectorizable_load): Properly account for
9487         a gap between groups.
9489 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
9491         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
9492         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
9493         is not enabled.
9495 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
9497         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
9498         * doc/extend.texi (Named Address Spaces): Ditto.
9499         (Variable Attributes): Ditto.
9501 2013-03-27  Kai Tietz  <ktietz@redhat.com>
9503         * config.build: Add support for cygwin x64 target.
9504         * config.gcc: Likewise.
9505         * config.host: Likewise.
9506         * configure.ac: Likewise
9507         * configure: Regenerated.
9509 2013-03-27  Kai Tietz  <ktietz@redhat.com>
9511         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
9512         * config/i386/t-cygwin-w64: New file.
9513         * config/i386/cygwin-w64.h: New file.
9514         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
9515         and add support for x64-cygwin target.
9516         (CPP_SPEC): Likewise.
9517         (CXX_WRAP_SPEC_LIST): Undefine before define.
9518         (LIBGCJ_SONAME): Use 15 as version.
9520 2013-03-27  Richard Biener  <rguenther@suse.de>
9522         PR tree-optimization/56716
9523         * tree-ssa-structalias.c (perform_var_substitution): Adjust
9524         dumping for ref nodes.
9526 2013-03-27  Martin Jambor  <mjambor@suse.cz>
9528         PR tree-optimization/55334
9529         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
9530         restricted pointers to arrays.
9532 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9534         * Makefile.in (.SUFFIXES): Add .cc.
9535         (.c.o): Apply same recipe for implicit rule .cc.o.
9537 2013-03-27  Richard Biener  <rguenther@suse.de>
9539         PR tree-optimization/37021
9540         * tree-vect-data-refs.c (vect_check_strided_load): Allow
9541         REALPART/IMAGPART_EXPRs around the supported refs.
9542         * tree-ssa-structalias.c (find_func_aliases): Assume that
9543         floating-point values are not used to transfer pointers.
9545 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9547         * target.def (TARGET_HAS_IFUNC_P): New target hook.
9548         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
9549         * doc/tm.texi: Regenerate.
9550         * targhooks.h (default_has_ifunc_p): New.
9551         * targhooks.c (default_has_ifunc_p): Ditto.
9552         * config/linux-protos.h: New file.
9553         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
9554         this hook for linux which disables support of indirect functions in
9555         android.
9556         * config/linux-android.c: New file.
9557         * config/t-linux-android.c: Ditto.
9558         * config.gcc: Added new object file linux-android.o.
9559         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
9560         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
9561         * varasm.c (do_assemble_alias): Likewise.
9562         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
9563         doesn't support indirect functions.
9564         * configure: Regenerate.
9566 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
9568         PR target/56102
9569         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
9570         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
9571         mult-word mode.
9573 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9575         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
9577 2013-03-27  Terry Guo  <terry.guo@arm.com>
9579         * config/arm/arm-cores.def: Added core cortex-r7.
9580         * config/arm/arm-tune.md: Regenerated.
9581         * config/arm/arm-tables.opt: Regenerated.
9582         * doc/invoke.texi: Added entry for core cortex-r7.
9584 2013-03-27  Walter Lee  <walt@tilera.com>
9586         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
9587         double-decrement of next_scratch_regno.
9589 2013-03-27  Walter Lee  <walt@tilera.com>
9591         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9592         input operands.
9593         (insn_v1mulus): Ditto.
9594         (insn_v2muls): Ditto.
9596 2013-03-27  Walter Lee  <walt@tilera.com>
9598         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
9599         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
9601 2013-03-27  Walter Lee  <walt@tilera.com>
9603         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
9604         (*sibcall_value): Ditto.
9606 2013-03-27  Walter Lee  <walt@tilera.com>
9608         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
9609         (insn_mnz_v8qi): ... this ...
9610         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
9611         vector equivalent.
9612         (insn_v<n>mnz): Replaced by ...
9613         (insn_v1mnz): ... this ...
9614         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
9615         equivalent.
9616         (insn_mz_<mode>): Replaced by ...
9617         (insn_mz_v8qi): ... this ...
9618         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
9619         vector equivalent.
9620         (insn_v<n>mz): Replaced by ...
9621         (insn_v1mz): ... this ...
9622         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
9623         equivalent.
9625 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
9627         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
9629 2013-03-26  Roland McGrath  <mcgrathr@google.com>
9631         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
9632         than fprintf with a non-constant, non-format string.
9634 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
9636         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
9637         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
9638         operand 0 predicate.
9639         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
9640         attribute.  Use general_x64nomem_operand as operand 1 predicate.
9641         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
9642         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
9643         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
9644         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
9645         (mov<mode>_insv_1): Remove expander.  Merge insn with
9646         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
9647         Use general_x64nomem_operand as operand 1 predicate.
9648         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
9649         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
9650         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
9651         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
9652         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
9653         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
9654         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
9655         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
9656         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
9657         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
9658         (general_x64nomem_operand): Ditto.
9660 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9662         * config/rtems.opt: Add -pthread option.
9664 2013-03-26  Richard Biener  <rguenther@suse.de>
9666         * alias.c (find_base_term): Avoid redundant and not used recursion.
9667         (base_alias_check): Get the initial base term from the caller.
9668         (true_dependence_1): Compute and pass base terms to base_alias_check.
9669         (write_dependence_p): Likewise.
9670         (may_alias_p): Likewise.
9672 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
9674         * config/aarch64/aarch64.c (aarch64_classify_address): Support
9675         PC-relative load in SI modes and above only.
9677 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
9679         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
9680         * config/arm/iwmmxt.md (WCGR0): Update.
9681         (WCGR1, WCGR2, WCGR3): Likewise.
9683 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
9685         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
9686         Use x64 and nox64 isa attributes.
9688 2013-03-26  Richard Biener  <rguenther@suse.de>
9690         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
9691         alignment computations and rely on get_object_alignment_1
9692         for the !TYPE_P case.
9693         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
9695 2013-03-26  Walter Lee  <walt@tilera.com>
9697         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
9698         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
9700 2013-03-25  Jeff Law  <law@redhat.com>
9702         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
9703         check for INTEGRAL_TYPE_P that was missing due to checking in
9704         wrong version of prior patch.
9706 2013-03-25  Walter Lee  <walt@tilera.com>
9708         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
9709         TILEGX_INSN_SHUFFLEBYTES1.
9710         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
9711         shufflebytes1.
9712         (tilegx_builtins): Ditto.
9713         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
9715 2013-03-25  Walter Lee  <walt@tilera.com>
9717         * config/tilegx/tilegx.md (floatsisf2): New pattern.
9718         (floatunssisf2): New pattern.
9719         (floatsidf2): New pattern.
9720         (floatunssidf2): New pattern.
9722 2013-03-25  Walter Lee  <walt@tilera.com>
9724         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
9725         tests for constraint J, K, N, P.
9727 2013-03-25  Walter Lee  <walt@tilera.com>
9729         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
9730         Use indirect/pcrel encoding.
9731         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
9732         Ditto.
9734 2013-03-25  Steve Ellcey  <sellcey@mips.com>
9736         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
9737         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
9738         * config/mips/mips.c (mips_option_override): Set IMADD default.
9739         * config/mips/mips.h (PTF_AVOID_IMADD): New.
9740         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
9741         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
9742         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
9743         * doc/invoke.texi (-mimadd/-mno-imadd): New.
9745 2013-03-25  Jeff Law  <law@redhat.com>
9747         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
9748         slightly to avoid creating and folding useless trees.  Simplify
9749         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
9751 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
9753         * config/i386/i386.md (*zero_extendsidi2): Merge with
9754         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
9755         * config/i386/predicates.md (x86_64_zext_operand): Rename from
9756         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
9757         targets.  Clarify comment.
9759 2013-03-25  Martin Jambor  <mjambor@suse.cz>
9761         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
9762         pass-through jump functions differently.
9763         (ipa_read_jump_function): Likewise.  Also use setter functions to set
9764         up jump functions.
9766 2013-03-25  Martin Jambor  <mjambor@suse.cz>
9768         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
9769         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
9770         process it.
9771         (ipa_get_indirect_edge_target): New function.
9772         (devirtualization_time_bonus): New parameter known_aggs, pass it to
9773         ipa_get_indirect_edge_target.  Update all callers.
9774         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
9775         ipa_get_indirect_edge_target_1 instead of calling
9776         ipa_get_indirect_edge_target.
9777         (create_specialized_node): Pass aggvlas to
9778         ipcp_discover_new_direct_edges.
9780 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9782         * config/arm/arm.md (f_sels, f_seld): New types.
9783         (*cmov<mode>): New pattern.
9784         * config/arm/predicates.md (arm_vsel_comparison_operator): New
9785         predicate.
9787 2013-03-25  Kai Tietz  <ktietz@redhat.com>
9789         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
9790         POSIX-printf for mingw-hosted  builds.
9792 2013-03-25  Richard Biener  <rguenther@suse.de>
9794         PR middle-end/56694
9795         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
9796         must-not-throw stmt location.
9798 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9800         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
9801         Emit load-acquire versions when acq is true.
9802         (arm_emit_store_exclusive): Add rel parameter.
9803         Emit store-release versions when rel is true.
9804         (arm_split_compare_and_swap): Use acquire-release instructions
9805         instead.
9806         of barriers when appropriate.
9807         (arm_split_atomic_op): Likewise.
9808         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
9809         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
9810         (VUNSPEC_SLX): Likewise.
9811         (VUNSPEC_LDA): Likewise.
9812         (VUNSPEC_STL): Likewise.
9813         * config/arm/sync.md (atomic_load<mode>): New pattern.
9814         (atomic_store<mode>): Likewise.
9815         (arm_load_acquire_exclusive<mode>): Likewise.
9816         (arm_load_acquire_exclusivesi): Likewise.
9817         (arm_load_acquire_exclusivedi): Likewise.
9818         (arm_store_release_exclusive<mode>): Likewise.
9820 2013-03-25  Catherine Moore  <clm@codesourcery.com>
9822         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
9823         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
9824         * config/mip/predicates.md (lwsp_swsp_operand,
9825         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
9826         sb16_operand, db4_operand, db7_operand, ib3_operand,
9827         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
9828         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
9829         andi16_operand): New predicates.
9830         * config/mips/mips.md (compression): New attribute.
9831         (enabled): New attribute.
9832         (length): Consider compression in computing length.
9833         (shift_compression): New code attribute.
9834         (*add<mode>3): New operands. Record compression.
9835         (sub<mode>3): Likewise.
9836         (one_cmpl<mode>2): Likewise.
9837         (*and<mode>3): Likewise.
9838         (*ior<mode>3): Likewise.
9839         (unnamed pattern for xor): Likewise.
9840         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
9841         (*<optab><mode>3): Likewise.
9842         (*mov<mode>_internal: Likewise.
9843         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
9844         (mips_unsigned_immediate_p): New.
9845         (umips_lwsp_swsp_address_p): New.
9846         (m16_based_address_p): New.
9847         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
9848         (mips_unsigned_immediate_p): New prototype.
9849         (lwsp_swsp_address_p): New prototype.
9850         (m16_based_address_p): New prototype.
9851         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
9852         (mips_signed_immediate_p): New function.
9853         (m16_based_address_p): New function.
9854         (lwsp_swsp_address_p): New function.
9855         (mips_print_operand_punctuation): Recognize short delay slot insns
9856         for microMIPS.add<mode>3"
9858 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9860         PR target/56720
9861         * config/arm/iterators.md (v_cmp_result): New mode attribute.
9862         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
9864 2013-03-25  Richard Biener  <rguenther@suse.de>
9866         PR tree-optimization/56689
9867         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
9868         any edge.
9870 2013-03-25  Richard Biener  <rguenther@suse.de>
9872         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
9873         of bitmap.
9874         (memory_references): Likewise.
9875         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
9876         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
9877         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
9878         (gather_mem_refs_in_loops): Fold into ...
9879         (analyze_memory_references): ... this.  Move initialization
9880         to tree_ssa_lim_initialize.
9881         (fill_always_executed_in): Rename to ...
9882         (fill_always_executed_in_1): ... this.
9883         (fill_always_executed_in): Move contains_call computation to
9884         this new function from ...
9885         (tree_ssa_lim_initialize): ... here.
9886         (tree_ssa_lim): Call fill_always_executed_in.
9888 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
9890         * postreload.c (reload_combine): Fix code detecting returns.
9892 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
9894         * function.c (emit_use_return_register_into_block): On cc0 targets,
9895         do not emit the sequence between cc0 setter and user.
9897 2013-03-25  Kai Tietz  <ktietz@redhat.com>
9899         * config/i386/predicates.md (local_symbolic_operand): Interpret
9900         dll-imported symbols as none-local.
9902 2013-03-25  Richard Biener  <rguenther@suse.de>
9904         * tree-ssa-loop-im.c (struct depend): Remove.
9905         (struct lim_aux_data): Make depends a vec of gimples.
9906         (free_lim_aux_data): Adjust.
9907         (add_dependency): Likewise.
9908         (set_level): Likewise.
9910 2013-03-25  Richard Biener  <rguenther@suse.de>
9912         PR middle-end/56434
9913         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
9914         the pointer returned by calls with ECF_MALLOC set.
9916 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
9918         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
9920 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
9922         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
9923         using MMXMODE mode iterator.
9924         (*move<mode>_internal): Merge with *movv2sf_internal and
9925         *movv2sf_internal_rex64 using MMXMODE mode iterator.
9927 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
9929         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
9930         (record_last_mem_set_info): Likewise.
9932         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
9933         of XNEWVEC followed by memset.
9934         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
9936 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
9938         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
9939         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
9940         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
9941         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
9942         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
9943         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
9944         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
9945         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
9946         BARRIER_P instead of GET_CODE.
9948 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
9950         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
9951         inaccuracy in the probing code.
9953         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
9954         (ctrapdi4): Likewise.
9956 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
9958         * calls.c (expand_call): Add missing guard to code handling return
9959         of non-BLKmode structures in MSB.
9960         * function.c (expand_function_end): Likewise.
9962 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
9964         * combine.c (try_combine): Adjust comment.  Do not add the set of
9965         insn #0 if the destination indirectly is set or dies in insn #2.
9966         Tidy up code to distribute a new note.
9968 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
9970         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
9971         also for alternatives 16 and 17.
9973 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
9975         * config/i386/sse.md (*mov<mode>_internal): Merge with
9976         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
9977         Emit insn template depending on type attribute.  Use
9978         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9979         movd instead of movq mnemonic for interunit moves.  Rewrite mode
9980         attribute calculation.  Remove unit attribute calculation.
9981         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
9982         Set prefix_data16 attribute for DImode ssemov types.
9983         Use Ym instead of y for SSE-MMX conversion alternatives.
9984         Reorder operand constraints.
9986 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
9988         * df.h (df_insn_delete): Adjust prototype.
9989         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
9990         and let it decide whether mark the basic block dirty.
9991         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
9992         * df-scan.c (df_insn_info_delete): New helper function, split
9993         off from df_insn_delete.
9994         (df_scan_free_bb_info): Use it.
9995         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
9996         Likewise.
9997         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
9998         that the insn is actually an insn and it has a non-NULL basic block.
9999         Do not mark basic block dirty if only deleting a DEBUG_INSN.
10001 2013-03-22  Richard Biener  <rguenther@suse.de>
10003         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
10004         dep_ref members.
10005         (mem_ref_alloc): Do not allocate them.
10006         (refs_independent_p): Do not query or maintain a cache.
10008 2013-03-22  Richard Biener  <rguenther@suse.de>
10010         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
10011         (gather_mem_refs_in_loops): Do not compute it.
10012         (analyze_memory_references): Do not allocate it.
10013         (tree_ssa_lim_finalize): Do not free it.
10014         (for_all_locs_in_loop): Do not query all_refs_in_loop.
10016 2013-03-22  Richard Biener  <rguenther@suse.de>
10018         * is-a.h (as_a): Use gcc_checking_assert.
10020 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
10022         * config/aarch64/aarch64.c (aarch64_print_operand): New
10023         format specifier for printing a constant in hex.
10024         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
10025         format specifier for printing second operand.
10027 2013-03-22  Richard Biener  <rguenther@suse.de>
10029         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
10030         bitmaps.
10031         (gather_mem_refs_in_loops): Perform store accumulation here.
10032         (create_vop_ref_mapping_loop): Remove.
10033         (create_vop_ref_mapping): Likewise.
10034         (analyze_memory_references): Initialize refs_stored_in_loop.
10035         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
10036         (record_indep_loop): Remove.
10037         (record_dep_loop): New function.
10038         (ref_indep_loop_p_1): Adjust to only walk over references
10039         in the loop, not its subloops.
10040         (ref_indep_loop_p): Rename to ...
10041         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
10042         maintaining a more fine-grained cache.
10043         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
10044         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
10046 2013-03-22  Richard Biener  <rguenther@suse.de>
10048         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
10049         (struct mem_ref): Make accesses_in_loop a vec of a vec of
10050         aggregate mem_ref_loc.
10051         (free_mem_ref_locs): Inline into ...
10052         (memref_free): ... this and adjust.
10053         (mem_ref_alloc): Adjust.
10054         (mem_ref_locs_alloc): Remove.
10055         (record_mem_ref_loc): Adjust.
10056         (get_all_locs_in_loop): Rewrite into ...
10057         (for_all_locs_in_loop): ... this iterator.
10058         (rewrite_mem_ref_loc): New functor.
10059         (rewrite_mem_refs): Use for_all_locs_in_loop.
10060         (sm_set_flag_if_changed): New functor.
10061         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
10062         (ref_always_accessed): New functor.
10063         (ref_always_accessed_p): Use for_all_locs_in_loop.
10065 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
10067         * tree-pass.h (PROP_gimple_lvec): New.
10068         * passes.c (dump_properties): Handle PROP_gimple_lvec.
10069         (init_optimization_passes): Move pass_lower_vector.
10070         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
10071         PROP_gimple_lvec.
10072         (pass_lower_vector): Provide PROP_gimple_lvec.
10073         (pass_lower_vector_ssa): Likewise.
10074         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
10076 2013-03-21  Mark Wielaard  <mjw@redhat.com>
10078         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
10080 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
10082         * config/i386/i386.md (*movdi_internal): Disparage slightly
10083         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
10084         conversion alternatives.
10086 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
10088         PR middle-end/48087
10089         * diagnostic.def (DK_WERROR): New kind.
10090         * diagnostic.h (werrorcount): Define.
10091         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
10092         promoted to DK_ERROR, increment DK_WERROR counter instead of
10093         DK_ERROR counter.
10094         * toplev.c (toplev_main): Call print_ignored_options even if
10095         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
10096         even if just werrorcount is non-zero.
10098         PR debug/55608
10099         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
10100         on failure.
10101         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
10102         (string_cst_pool_decl): New function.
10103         (optimize_one_addr_into_implicit_ptr): New function.
10104         (resolve_addr_in_expr): Optimize DWARF location expression
10105         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
10106         which doesn't live in memory, but has DW_AT_location or
10107         DW_AT_const_value, or refers to a string literal, into
10108         DW_OP_GNU_implicit_pointer.
10109         (optimize_location_into_implicit_ptr): New function.
10110         (resolve_addr): If removing DW_AT_location of a variable because
10111         it was DW_OP_addr of address of the variable, but the variable doesn't
10112         live in memory, try to emit const value attribute for the initializer.
10114 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
10116         * tree.h (VECTOR_TYPE_P): New macro.
10117         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
10118         TYPE_MODE): Use it.
10119         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
10120         VEC_COND_EXPR cannot be lvalues.
10121         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
10123 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
10125         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
10126         Restrict the transformation to equal modes.
10128 2013-03-21  Richard Biener  <rguenther@suse.de>
10130         PR tree-optimization/39326
10131         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
10132         (MEM_ANALYZABLE): Adjust.
10133         (record_mem_ref_loc): Move bitmap ops ...
10134         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
10135         unanalyzable refs, do not record locations for it.
10136         (analyze_memory_references): Allocate ref zero as shared
10137         unanalyzable ref.
10138         (refs_independent_p): Do not test for unanalyzed mems here.
10139         (ref_indep_loop_p_1): Special-case disambiguation against
10140         the unanalyzed ref.
10141         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
10143 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
10145         * config/arm/arm-protos.h (tune_params): Add
10146         prefer_neon_for_64bits field.
10147         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
10148         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
10149         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
10150         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
10151         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
10152         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
10153         (arm_option_override): Handle -mneon-for-64bits new option.
10154         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
10155         (prefer_neon_for_64bits): Declare new variable.
10156         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
10157         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
10158         (arch_enabled): Handle new arch types. Remove support for onlya8
10159         and nota8.
10160         (one_cmpldi2): Use new arch names.
10161         (zero_extend<mode>di2, extend<mode>di2): Ditto.
10162         * config/arm/arm.opt (mneon-for-64bits): Add option.
10163         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
10164         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
10165         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
10166         of onlya8.
10167         * doc/invoke.texi (-mneon-for-64bits): Document.
10169 2013-03-21  Richard Biener  <rguenther@suse.de>
10171         PR tree-optimization/39326
10172         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
10173         (sort_bbs_in_loop_postorder_cmp): New function.
10174         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
10176 2013-03-21  Richard Biener  <rguenther@suse.de>
10178         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
10179         (vect_insert_into_interleaving_chain): Likewise.
10180         (vect_drs_dependent_in_basic_block): Inline ...
10181         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
10182         split out from ...
10183         (vect_analyze_data_ref_dependence): ... here.  Simplify.
10184         (vect_check_interleaving): Simplify.
10185         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
10186         (vect_slp_analyze_data_ref_dependences): ... this new function.
10187         (dr_group_sort_cmp): New function.
10188         (vect_analyze_data_ref_accesses): Compute data-reference groups
10189         here instead of in vect_analyze_data_ref_dependence.  Use
10190         a more efficient algorithm.
10191         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
10192         vect_slp_analyze_data_ref_dependences.  Call
10193         vect_analyze_data_ref_accesses earlier.
10194         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10195         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
10196         (vect_slp_analyze_data_ref_dependences): New prototype.
10198 2013-03-21  Richard Biener  <rguenther@suse.de>
10200         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
10201         ref is stored in the loop.
10202         (find_refs_for_sm): Walk only over all stores.
10203         (store_motion_loop): Allocate from lim_bitmap_obstack.
10204         (store_motion): Likewise.
10206 2013-03-21  Richard Biener  <rguenther@suse.de>
10208         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
10209         Update virtual SSA form.
10211 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10213         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
10214         * configure: Regenerate.
10215         * config.in: Regenerate.
10216         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
10217         if !HAVE_LD_EH_FRAME_CIEV3.
10219 2013-03-21  Richard Biener  <rguenther@suse.de>
10221         * tree-cfg.c (verify_expr_no_block): New function.
10222         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
10223         nor DECL_VALUE_EXPR have locations with associated blocks.
10224         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
10225         (clear_unused_block_pointer): Remove code dealing with
10226         blocks in DECL_DEBUG_EXPR locations.
10228 2013-03-21  Richard Biener  <rguenther@suse.de>
10230         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
10231         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
10232         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
10233         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
10234         instead of DECL_DEBUG_EXPR_IS_FROM.
10235         * gimplify.c (gimplify_modify_expr): Likewise.
10236         * tree-cfg.c (verify_expr_location_1): Likewise.
10237         * tree-complex.c (create_one_component_var): Likewise.
10238         * tree-sra.c (create_access_replacement): Likewise.
10239         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
10240         (clear_unused_block_pointer): Likewise.
10241         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
10242         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10243         * var-tracking.c (var_debug_decl): Likewise.
10244         (track_expr_p): Likewise.
10245         * tree-inline.c (add_local_variables): Likewise.  Set
10246         DECL_HAS_DEBUG_EXPR_P after copying it.
10247         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
10248         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
10250 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
10252         PR bootstrap/56656
10253         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
10254         * configure: Regenerate.
10255         * config.in: Regenerate.
10256         * config/i386/i386.md (*movdf_internal): Use
10257         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10258         movd instead of movq mnemonic for interunit moves.
10259         (*movdi_internal): Ditto.
10261 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10263         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
10264         (abd<mode>_3): New pattern.
10265         (aba<mode>_3): New pattern.
10266         (fabd<mode>_3): New pattern.
10268 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10270         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
10271         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
10272         occurrence of REGISTER_PREFIX as its empty string.
10274 2013-03-20  Jeff Law  <law@redhat.com>
10276         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
10277         addititional equivalences for equality comparisons between an SSA_NAME
10278         and a constant where the SSA_NAME was set from a widening conversion.
10280 2013-03-20  Walter Lee  <walt@tilera.com>
10282         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
10284 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
10286         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
10287         depending on type attribute.
10288         (*movti_internal): Ditto.
10289         (*movtf_internal): Ditto.
10290         (*movxf_internal): Ditto.
10291         (*movdf_internal): Ditto.
10292         (*movsf_internal): Ditto.
10294 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
10296         * config/i386/i386.md (*movti_internal): Set prefix attribute to
10297         maybe_vex for sselog1 and ssemov types.
10298         (*movdi_internal): Reorder operand constraints.
10299         (*movsi_internal): Ditto.  Set prefix attribute to
10300         maybe_vex for sselog1 and ssemov types.
10301         (*movtf_internal): Set prefix attribute to maybe_vex
10302         for sselog1 and ssemov types.
10303         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
10304         DImode ssemov types.  Reorder operand constraints.
10305         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
10306         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
10307         attribute for SImode ssemov types.  Reorder operand constraints.
10309 2013-03-20  Martin Jambor  <mjambor@suse.cz>
10311         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
10312         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
10314 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
10316         * config/rs6000/predicates.md (indexed_address, update_address_mem
10317         update_indexed_address_mem): New predicates.
10318         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
10319         attribute for load/store instructions.
10320         * config/rs6000/dfp.md (movsd_store): Likewise.
10321         (movsd_load): Likewise.
10322         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
10323         (unnamed HI->DI extend define_insn): Likewise.
10324         (unnamed SI->DI extend define_insn): Likewise.
10325         (unnamed QI->SI extend define_insn): Likewise.
10326         (unnamed QI->HI extend define_insn): Likewise.
10327         (unnamed HI->SI extend define_insn): Likewise.
10328         (unnamed HI->SI extend define_insn): Likewise.
10329         (extendsfdf2_fpr): Likewise.
10330         (movsi_internal1): Likewise.
10331         (movsi_internal1_single): Likewise.
10332         (movhi_internal): Likewise.
10333         (movqi_internal): Likewise.
10334         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
10335         attribute for load/store instructions.
10336         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
10337         instructions.
10338         (mov<mode>_softfloat): Likewise.
10339         (mov<mode>_hardfloat32): Likewise.
10340         (mov<mode>_hardfloat64): Likewise.
10341         (mov<mode>_softfloat64): Likewise.
10342         (movdi_internal32): Likewise.
10343         (movdi_internal64): Likewise.
10344         (probe_stack_<mode>): Likewise.
10346 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
10348         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
10349         floating point, and decimal floating point to reload iterator.
10351         * config/rs6000/constraints.md (wl constraint): New constraints to
10352         return FLOAT_REGS if certain options are used to reduce the number
10353         of separate patterns that exist in the file.
10354         (wx constraint): Likewise.
10355         (wz constraint): Likewise.
10357         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10358         -mdebug=reg, print wg, wl, wx, and wz constraints.
10359         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10360         Initialize the reload functions for 64-bit binary/decimal floating
10361         point types.
10362         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10363         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10364         create the buffer on the stack to overcome not having a 32-bit
10365         load and store.
10366         (rs6000_emit_move): Likewise.
10367         (rs6000_secondary_memory_needed_rtx): Likewise.
10368         (rs6000_alloc_sdmode_stack_slot): Likewise.
10369         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10370         via xxlxor, just like DFmode 0.0.
10372         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
10373         define as 1 if we are running on a power7 or newer.
10374         (enum r6000_reg_class_enum): Add new constraints.
10376         * config/rs6000/dfp.md (movsd): Delete, combine with binary
10377         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
10378         with other moves by using conditional constraits (wg).  Use LFIWZX
10379         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
10380         (movsd splitter): Likewise.
10381         (movsd_hardfloat): Likewise.
10382         (movsd_softfloat): Likewise.
10384         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
10385         binary and decimal floating point moves.
10386         (fmove_ok): New attributes to combine binary and decimal floating
10387         point moves, and to combine power6x (mfpgpr) moves along normal
10388         floating moves.
10389         (real_value_to_target): Likewise.
10390         (f32_lr): Likewise.
10391         (f32_lm): Likewise.
10392         (f32_li): Likewise.
10393         (f32_sr): Likewise.
10394         (f32_sm): Likewise.
10395         (f32_si): Likewise.
10396         (movsf): Combine binary and decimal floating point moves.  Combine
10397         power6x (mfpgpr) moves with other moves by using conditional
10398         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
10399         (mov<mode> for SFmode/SDmode); Likewise.
10400         (SFmode/SDmode splitters): Likewise.
10401         (movsf_hardfloat): Likewise.
10402         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
10403         (movsf_softfloat): Likewise.
10404         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
10406         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
10407         wx and wz constraints.
10409         * config/rs6000/constraints.md (wg constraint): New constraint to
10410         return FLOAT_REGS if -mmfpgpr (power6x) was used.
10412         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
10413         constraint.
10415         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10416         -mdebug=reg, print wg, wl, wx, and wz constraints.
10417         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10418         Initialize the reload functions for 64-bit binary/decimal floating
10419         point types.
10420         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10421         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10422         create the buffer on the stack to overcome not having a 32-bit
10423         load and store.
10424         (rs6000_emit_move): Likewise.
10425         (rs6000_secondary_memory_needed_rtx): Likewise.
10426         (rs6000_alloc_sdmode_stack_slot): Likewise.
10427         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10428         via xxlxor, just like DFmode 0.0.
10430         * config/rs6000/dfp.md (movdd): Delete, combine with binary
10431         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
10432         with other moves by using conditional constraits (wg).  Use LFIWZX
10433         and STFIWX for loading SDmode on power7.
10434         (movdd splitters): Likewise.
10435         (movdd_hardfloat32): Likewise.
10436         (movdd_softfloat32): Likewise.
10437         (movdd_hardfloat64_mfpgpr): Likewise.
10438         (movdd_hardfloat64): Likewise.
10439         (movdd_softfloat64): Likewise.
10441         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
10442         64-bit binary and decimal floating point moves.
10443         (FMOVE64X): Likewise.
10444         (movdf): Combine 64-bit binary and decimal floating point moves.
10445         Combine power6x (mfpgpr) moves with other moves by using
10446         conditional constraits (wg).
10447         (mov<mode> for DFmode/DDmode): Likewise.
10448         (DFmode/DDmode splitters): Likewise.
10449         (movdf_hardfloat32): Likewise.
10450         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
10451         (movdf_softfloat32): Likewise.
10452         (movdf_hardfloat64_mfpgpr): Likewise.
10453         (movdf_hardfloat64): Likewise.
10454         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
10455         (movdf_softfloat64): Likewise.
10456         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
10457         (reload_<mode>_load): Move to later in the file so they aren't in
10458         the middle of the floating point move insns.
10459         (reload_<mode>_store): Likewise.
10461         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
10462         constraint.
10464         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
10465         constraint if -mdebug=reg.
10466         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
10467         Enable using dd reload support if needed.
10469         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
10470         binary and decimal floating point moves in rs6000.md.
10471         (movtd_internal): Likewise.
10473         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
10474         decimal floating point moves.
10475         (movtf): Likewise.
10476         (movtf_internal): Likewise.
10477         (mov<mode>_internal, TDmode/TFmode): Likewise.
10478         (movtf_softfloat): Likewise.
10479         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
10481         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
10482         movdi_internal64, using wg constraint for move direct operations.
10483         (movdi_internal64): Likewise.
10485         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
10486         MODES_TIEABLE_P for selected modes.  Print the numerical value of
10487         the various virtual registers. Use GPR/FPR first/last values,
10488         instead of hard coding the register numbers.  Print which modes
10489         have reload functions registered.
10490         (rs6000_option_override_internal): If -mdebug=reg, trace the options
10491         settings before/after setting cpu, target and subtarget settings.
10492         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
10493         and for secondary reload failures in rs6000_secondary_reload_inner.
10494         (rs6000_secondary_reload_fail): Likewise.
10495         (rs6000_secondary_reload_inner): Likewise.
10497         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
10498         macros for first/last GPR and FPR registers.
10499         (LAST_GPR_REGNO): Likewise.
10500         (FIRST_FPR_REGNO): Likewise.
10501         (LAST_FPR_REGNO): Likewise.
10503         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
10504         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
10505         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
10506         (vcond<mode><mode>): Likewise.
10507         (vcondu<mode><mode>): Likewise.
10508         (vector_gtu<mode>): Likewise.
10509         (vector_gte<mode>): Likewise.
10510         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
10511         to prevent the compiler from converting DImode operations to TImode.
10512         (ior<mode>3): Likewise.
10513         (and<mode>3): Likewise.
10514         (one_cmpl<mode>2): Likewise.
10515         (nor<mode>3): Likewise.
10516         (andc<mode>3): Likewise.
10518         * config/rs6000/constraints.md (wt constraint): New constraint
10519         that returns VSX_REGS if TImode is allowed in VSX registers.
10521         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
10522         constant under VSX.
10524         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
10525         similar to TImode, but it is restricted to being in the GPRs.
10527         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
10528         TImode to occupy a single VSX register.
10530         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
10531         -mvsx-timode for power7/power8.
10532         (power7 cpu): Likewise.
10533         (power8 cpu): Likewise.
10535         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
10536         sure that TFmode/TDmode take up two registers if they are ever
10537         allowed in the upper VSX registers.
10538         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
10539         registers.
10540         (rs6000_init_hard_regno_mode_ok): Likewise.
10541         (rs6000_debug_reg_global): Add debugging for PTImode and wt
10542         constraint.  Print if LRA is turned on.
10543         (rs6000_option_override_internal): Give an error if -mvsx-timode
10544         and VSX is not enabled.
10545         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
10546         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
10547         to reg+offset addressing.  Use PTImode when checking offset
10548         addresses for validity.
10549         (reg_offset_addressing_ok_p): Likewise.
10550         (rs6000_legitimate_offset_address_p): Likewise.
10551         (rs6000_legitimize_address): Likewise.
10552         (rs6000_legitimize_reload_address): Likewise.
10553         (rs6000_legitimate_address_p): Likewise.
10554         (rs6000_eliminate_indexed_memrefs): Likewise.
10555         (rs6000_emit_move): Likewise.
10556         (rs6000_secondary_reload): Likewise.
10557         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
10558         reloads to fpr registers to continue to use reg+offset addressing,
10559         but 64-bit reloads to altivec registers need reg+reg addressing.
10560         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
10561         it.  Treat LO_SUM like a PLUS operation.
10562         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
10563         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
10564         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
10565         registers to share a register with a smaller sized type, since VSX
10566         puts scalars in the upper 64-bits.
10567         (print_operand): Add support for PTImode.
10568         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
10569         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
10570         registers, but don't have arithmetic support.
10571         (rs6000_memory_move_cost): Add test for VSX.
10572         (rs6000_opt_masks): Add -mvsx-timode.
10574         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
10575         for TImode.
10576         (VSs): Likewise.
10577         (VSr): Use wt constraint for TImode.
10578         (VSv): Drop TImode support.
10579         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
10580         (vsx_movti_64bit): Likewise.
10581         (vsx_movti_32bit): Likewise.
10582         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
10583         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
10584         one '?' on the appropriate output constraint.  Do not allow TImode
10585         logical operations on 32-bit systems.
10586         (vsx_ior<mode>3): Likewise.
10587         (vsx_xor<mode>3): Likewise.
10588         (vsx_one_cmpl<mode>2): Likewise.
10589         (vsx_nor<mode>3): Likewise.
10590         (vsx_andc<mode>3): Likewise.
10591         (vsx_concat_<mode>): Likewise.
10592         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
10594         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
10595         OPTION_MASK_VSX_TIMODE.
10596         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
10597         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
10599         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
10600         (TI2 iterator): New iterator for TImode, PTImode.
10601         (wd mode attribute): Add values for vector types.
10602         (movti_string): Replace TI move operations with operations for TImode
10603         and PTImode.  Add support for TImode being allowed in VSX registers.
10604         (mov<mode>_string, TImode/PTImode): Likewise.
10605         (movti_ppc64): Likewise.
10606         (mov<mode>_ppc64, TImode/PTImode): Likewise.
10607         (TI mode splitters): Likewise.
10609         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
10610         constraint.
10612 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
10614         PR tree-optimization/56355
10615         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
10616         Also handle integers with undefined overflow.
10618 2013-03-20  Catherine Moore  <clm@codesourcery.com>
10619             Maciej W. Rozycki  <macro@codesourcery.com>
10620             Tom de Vries  <tom@codesourcery.com>
10621             Nathan Sidwell <nathan@codesourcery.com>
10622             Iain Sandoe  <iain@codesourcery.com>
10623             Nathan Froyd  <froydnj@codesourcery.com>
10624             Chao-ying Fu <fu@mips.com>
10626         * doc/extend.texi: (micromips, nomicromips, nocompression):
10627         Document new function attributes.
10628         * doc/invoke.texi (minterlink-compressed, mmicromips,
10629         m14k, m14ke, m14kec): Document new options.
10630         (minterlink-mips16): Update documentation.
10631         * doc/md.texi (ZC, ZD): Document new constraints.
10632         * configure.ac (gcc_cv_as_micromips): Check if linker
10633         supports the .set micromips directive.
10634         * configure: Regenerate.
10635         * config.in: Regenerate.
10636         * config/mips/mips-tables.opt: Regenerate.
10637         * config/mips/micromips.md: New file.
10638         * constraints.md (ZC, ZD): New constraints.
10639         * config/mips/predicates.md (movep_src_register): New predicate.
10640         (movep_src_operand): New predicate.
10641         (non_volatile_mem_operand): New predicate.
10642         * config/mips/mips.md (multimem): New type.
10643         (length): Differentiate between 17-bit and 18-bit branch offsets.
10644         (MOVEP1, MOVEP2): New mode iterator.
10645         (mov_<load>l): Use ZC constraint.
10646         (mov_<load>r): Likewise.
10647         (mov_<store>l): Likewise.
10648         (mov_<store>r): Likewise.
10649         (*branch_equality<mode>_inverted): Add microMIPS support.
10650         (*branch_equality<mode>): Likewise.
10651         (*jump_absolute): Likewise.
10652         (indirect_jump_<mode>): Likewise.
10653         (tablejump_<mode>): Likewise.
10654         (<optab>_internal): Likewise.
10655         (sibcall_internal): Likewise.
10656         (sibcall_value_internal): Likewise.
10657         (prefetch): Use constraint ZD.
10658         * config/mips/mips.opt (minterlink-compressed): New option.
10659         (minterlink-mips16): Now an alias for minterlink-compressed.
10660         (mmicromips): New option.
10661         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10662         (compare_and_swap_12): Likewise.
10663         (sync_add<mode>): Likewise.
10664         (sync_<optab>_12): Likewise.
10665         (sync_old_<optab>_12): Likewise.
10666         (sync_new_<optab>_12): Likewise.
10667         (sync_nand_12): Likewise.
10668         (sync_old_nand_12): Likewise.
10669         (sync_new_nand_12): Likewise.
10670         (sync_sub<mode>): Likewise.
10671         (sync_old_add<mode>): Likewise.
10672         (sync_old_sub<mode>): Likewise.
10673         (sync_new_add<mode>): Likewise.
10674         (sync_new_sub<mode>): Likewise.
10675         (sync_<optab><mode>): Likewise.
10676         (sync_old_<optab><mode>): Likewise.
10677         (sync_new_<optab><mode>): Likewise.
10678         (sync_nand<mode>): Likewise.
10679         (sync_old_nand<mode>): Likewise.
10680         (sync_new_nand<mode>): Likewise.
10681         (sync_lock_test_and_set<mode>): Likewise.
10682         (test_and_set_12): Likewise.
10683         (atomic_compare_and_swap<mode>): Likewise.
10684         (atomic_exchange<mode>_llsc): Likewise.
10685         (atomic_fetch_add<mode>_llsc): Likewise.
10686         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10687         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10688         (umips_save_restore_pattern_p): Likewise.
10689         (umips_load_store_pair_p): Likewise.
10690         (umips_output_load_store_pair): Likewise.
10691         (umips_movep_target_p): Likewise.
10692         (umips_12bit_offset_address_p): Likewise.
10693         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10694         (mips_base_mips16): Rename this...
10695         (mips_base_compression_flags): ...to this. Update all uses.
10696         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10697         (mips_mips16_decl_p): Delete.
10698         (mips_nomips16_decl_p): Delete.
10699         (mips_get_compress_on_flags): New function.
10700         (mips_get_compress_off_flags): New function.
10701         (mips_get_compress_mode): New function.
10702         (mips_get_compress_on_name): New function.
10703         (mips_get_compress_off_name): New function.
10704         (mips_insert_attributes): Support multiple compression types.
10705         (mips_merge_decl_attributes): Likewise.
10706         (umips_12bit_offset_address_p): New function.
10707         (mips_start_function_definition): Emit .set micromips directive.
10708         (mips_call_may_need_jalx_p): New function.
10709         (mips_function_ok_for_sibcall): Add microMIPS support.
10710         (mips_print_operand_punctuation): Support short delay slots and
10711         compact jumps.
10712         (umips_swm_mask, umips_swm_encoding): New.
10713         (umips_build_save_restore): New function.
10714         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10715         (was_mips16_p): Remove.
10716         (old_compression_mode): New.
10717         (mips_set_compression_mode): New function.
10718         (mips_set_current_function): Add microMIPS support.
10719         (mips_option_override): Likewise.
10720         (umips_save_restore_pattern_p): New function.
10721         (umips_output_save_restore): New function.
10722         (umips_load_store_pair_p_1): New function.
10723         (umips_load_store_pair_p): New function.
10724         (umips_output_load_store_pair_1): New function.
10725         (umips_output_load_store_pair): New function.
10726         (umips_movep_target_p) New function.
10727         (mips_prepare_pch_save): Add microMIPS support.
10728         * config/mips/mips.h (TARGET_COMPRESSION): New.
10729         (TARGET_CPU_CPP_BUILTINS): Update macro
10730         to use new compression flags and to support microMIPS.
10731         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10732         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10733         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10734         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10735         (ASM_SPEC): Support mmicromips and mno-micromips.
10736         (M16STORE_REG_P): New macro.
10737         (MIPS_CALL): Support TARGET_MICROMIPS.
10738         (MICROMIPS_J): New macro.
10739         (mips_base_mips16): Rename this...
10740         (mips_base_compression_flags): ...to this.
10741         (UMIPS_12BIT_OFFSET_P): New macro.
10742         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10743         (MULTILIB_DIRNAMES): Likewise.
10744 2013-03-20  Richard Biener  <rguenther@suse.de>
10746         PR tree-optimization/56661
10747         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
10748         the result does not have to be distinct.
10750 2013-03-20  Richard Biener  <rguenther@suse.de>
10752         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
10753         remap_gimple_op_r.
10755 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10756             Steven Bosscher <steven@gcc.gnu.org>
10758         PR rtl-optimization/56605
10759         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
10761 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
10763         PR bootstrap/56656
10764         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
10765         that require movd instead of movq.
10767 2013-03-20  Richard Biener  <rguenther@suse.de>
10769         * tree-ssa-structalias.c (struct variable_info): Add pointer
10770         to the first field of an aggregate with sub-vars.  Make
10771         this and the pointer to the next subfield its ID.
10772         (vi_next): New function.
10773         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
10774         storedanything_id, integer_id): Increment by one.
10775         (new_var_info, get_call_vi, lookup_call_clobber_vi,
10776         get_call_clobber_vi): Adjust.
10777         (solution_set_expand): Simplify and speedup.
10778         (solution_set_add): Inline into ...
10779         (set_union_with_increment): ... this.  Adjust accordingly.
10780         (do_sd_constraint): Likewise.
10781         (do_ds_constraint): Likewise.
10782         (do_complex_constraint): Simplify.
10783         (build_pred_graph): Adjust.
10784         (solve_graph): Likewise.  Simplify and speedup.
10785         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
10786         get_constraint_for_component_ref, get_constraint_for_1,
10787         first_vi_for_offset, first_or_preceding_vi_for_offset,
10788         create_function_info_for, create_variable_info_for_1,
10789         create_variable_info_for, intra_create_variable_infos): Adjust.
10790         (init_base_vars): Push NULL for ID zero.
10791         (compute_points_to_sets): Adjust.
10793 2013-03-20  Richard Biener  <rguenther@suse.de>
10795         * cfgloop.c (verify_loop_structure): Streamline and avoid
10796         ICEing on corrupt loop tree.
10797         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
10798         loop tree.
10800 2013-03-20  Richard Biener  <rguenther@suse.de>
10802         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
10803         check whether an SSA update is needed.
10805 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
10807         * config/mips/constraints.md (T): Rename to...
10808         (Yf): ...this.
10809         (U): Rename to...
10810         (Yd): ...this.
10811         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
10812         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
10814 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
10816         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
10817         (*subsi3_carryin_uxtw): Likewise.
10819 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
10821         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
10822         (*rorsi3_insn_uxtw): Likewise.
10824 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
10826         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
10827         (*extrsi5_insn_uxtw): Likewise.
10829 2013-03-19  Richard Biener  <rguenther@suse.de>
10831         PR tree-optimization/56273
10832         * passes.c (init_optimization_passes): Move second VRP after DOM.
10834 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
10836         * config/i386/i386.md (*movti_internal): Merge from
10837         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
10838         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
10839         nox64 isa attributes.
10841 2013-03-18  Richard Biener  <rguenther@suse.de>
10843         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
10844         (unite): Likewise.
10845         (merge_node_constraints): Likewise.
10846         (build_succ_graph): Likewise.
10847         (valid_graph_edge): Inline into single caller.
10848         (unify_nodes): Likewise.  Use bitmap_set_bit return value
10849         and cache varinfo.
10850         (scc_visit): Fix formatting and variable use.
10851         (do_sd_constraint): Use gcc_checking_assert.
10852         (do_ds_constraint): Likewise.
10853         (do_complex_constraint): Likewise.
10854         (condense_visit): Likewise.  Cleanup.
10855         (dump_pred_graph): New function.
10856         (perform_var_substitution): Dump the pred-graph before
10857         variable substitution.
10858         (find_equivalent_node): Use gcc_checking_assert.
10859         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
10861 2013-03-18  Richard Biener  <rguenther@suse.de>
10863         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
10864         Remove cond_expr_stmt_list argument and do not gimplify the
10865         built expression.
10866         (vect_loop_versioning): Adjust.
10867         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10868         Cleanup to use less temporaries.
10869         (vect_create_data_ref_ptr): Cleanup.
10871 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
10873         PR tree-optimization/56635
10874         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
10875         require types_compatible_p types.
10877 2013-03-18  Nick Clifton  <nickc@redhat.com>
10879         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
10880         spurious backslash.
10882         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
10883         Add missing line to comment describing function.
10885 2013-03-18  Richard Biener  <rguenther@suse.de>
10887         PR tree-optimization/56210
10888         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10889         Handle string / character search functions.
10890         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10892 2013-03-18  Richard Biener  <rguenther@suse.de>
10894         PR middle-end/56483
10895         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
10896         and implement properly.
10897         * gimple.h (gimple_cond_single_var_p): Remove.
10899 2013-03-18  Richard Biener  <rguenther@suse.de>
10901         * tree-data-ref.h (find_data_references_in_loop): Declare.
10902         * tree-data-ref.c (get_references_in_stmt): Use a stack
10903         vector pre-allocated in the callers.
10904         (find_data_references_in_stmt): Adjust.
10905         (graphite_find_data_references_in_stmt): Likewise.
10906         (create_rdg_vertices): Likewise.
10907         (find_data_references_in_loop): Export.
10908         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
10909         Compute dependences here...
10910         (vect_analyze_data_refs): ...not here.  When we encounter
10911         a non-vectorizable data reference in basic-block vectorization
10912         truncate the data reference vector.  Do not bother to
10913         fixup data-dependence information for gather loads.
10914         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
10915         of data references, as reported.
10917 2013-03-18  Richard Biener  <rguenther@suse.de>
10919         PR tree-optimization/3713
10920         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
10921         has_constants and expr.
10922         (stmt_has_constants): Properly valueize SSA names when deciding
10923         whether the stmt has constants.
10925 2013-03-18  Richard Biener  <rguenther@suse.de>
10927         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
10928         whole function when there is nothing to do.
10929         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
10930         * tree-vectorizer.c (vectorize_loops): Update virtual and
10931         loop-closed SSA once.
10932         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
10934 2013-03-18  Richard Biener  <rguenther@suse.de>
10936         PR middle-end/56113
10937         * domwalk.c (bb_postorder): New global static.
10938         (cmp_bb_postorder): New function.
10939         (walk_dominator_tree): Replace scheme imposing an order for
10940         visiting dominator sons by one sorting them at the time they
10941         are pushed on the stack.
10943 2013-03-18  Richard Biener  <rguenther@suse.de>
10945         PR tree-optimization/39326
10946         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
10947         (struct mem_ref): Replace mem member with ao_ref typed member.
10948         (MEM_ANALYZABLE): Adjust.
10949         (memref_eq): Likewise.
10950         (mem_ref_alloc): Likewise.
10951         (gather_mem_refs_stmt): Likewise.
10952         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
10953         (execute_sm_if_changed_flag_set): Adjust.
10954         (execute_sm): Likewise.
10955         (ref_always_accessed_p): Likewise.
10956         (refs_independent_p): Likewise.
10957         (can_sm_ref_p): Likewise.
10959 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
10961         PR c/56566
10962         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
10963         return 1 even for !unsignedp.
10965 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
10967         * config/i386/i386.md (isa): Add x64 and nox64.
10968         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
10969         (*pushtf): Enable *roF alternative for x64 isa only.
10970         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
10971         mode attribute of integer alternatives to DImode for TARGET_64BIT.
10972         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
10973         (*movtf_internal): Merge from *movtf_internal_rex64 and
10974         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
10975         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
10976         nox64 isa attributes.
10977         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
10978         nox64 isa attributes.
10979         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
10981 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
10983         * config/alpha/alpha.c (TARGET_LRA_P): New define.
10985 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
10987         PR target/56640
10988         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
10989         class names.  Remove trailing comma after "ALL_REGS".
10991 2013-03-16  Jan Hubicka  <jh@suse.cz>
10993         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
10994         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
10995         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
10996         of cgraph_get_create_node.
10997         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10999 2013-03-16  Jason Merrill  <jason@redhat.com>
11001         PR debug/49090
11002         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
11003         with DW_AT_default_value.
11005 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
11007         * BASE-VER: Set to 4.9.0.
11009 2013-03-14  Andi Kleen  <ak@linux.intel.com>
11011         PR target/56619
11012         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
11013         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
11014         Document _x* TSX intrinsics.
11016 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
11017             David Holsgrove  <david.holsgrove@xilinx.com>
11019         * configure.ac: Add MicroBlaze TLS support detection.
11020         * configure: Regenerate.
11021         * config/microblaze/microblaze-protos.h
11022         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
11023         symbol_mentioned_p, label_mentioned_p): Add prototypes.
11024         * config/microblaze/microblaze.c (microblaze_address_type): Add
11025         ADDRESS_TLS and tls_reloc address types.
11026         (microblaze_address_info): Add tls_reloc.
11027         (TARGET_HAVE_TLS): Define.
11028         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
11029          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
11030          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
11031         load_tls_operand,  microblaze_call_tls_get_addr,
11032         microblaze_legitimize_tls_address): New functions.
11033         (microblaze_classify_unspec): Handle UNSPEC_TLS.
11034         (get_base_reg): Use microblaze_tls_symbol_p.
11035         (microblaze_classify_address): Handle TLS.
11036         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
11037         label_mentioned_p and microblaze_tls_referenced_p.
11038         (microblaze_legitimize_address): Handle TLS.
11039         (microblaze_address_insns): Handle ADDRESS_TLS.
11040         (pic_address_needs_scratch): Handle TLS.
11041         (print_operand_address): Handle TLS.
11042         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
11043         (microblaze_expand_move): Handle TLS.
11044         (microblaze_legitimate_constant_p): Check
11045         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
11046         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11047         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
11048         (PIC_OFFSET_TABLE_REGNUM): Set.
11049         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
11050         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
11051         (addsi3, movsi_internal2, movdf_internal): Update constraints
11052         * config/microblaze/predicates.md (arith_plus_operand): Define
11053         (move_operand): Redefine as move_src_operand,
11054         check microblaze_tls_referenced_p.
11056 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
11058         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
11059         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
11061 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
11063         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
11064         CC mode for AND.
11066 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
11068         PR tree-optimization/53265
11069         * common.opt (Waggressive-loop-optimizations): New option.
11070         * tree-ssa-loop-niter.c: Include tree-pass.h.
11071         (do_warn_aggressive_loop_optimizations): New function.
11072         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
11073         if number_of_latch_executions returned constant.
11074         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
11075         early.  If number_of_latch_executions returned constant, set
11076         nb_iterations_upper_bound back to it.
11077         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
11078         field.
11079         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
11080         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
11082         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
11083         (MULTILIB_OSDIRNAMES): Set.
11084         * genmultilib: If defaultosdirname doesn't start with :: , set
11085         defaultosdirname2 instead, clear it and emit two . multilib_raw
11086         entries instead of just one.
11088 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
11090         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11091         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
11092         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11093         (SUBTARGET_OVERRIDE_OPTIONS): New.
11095 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
11097         PR target/49880
11098         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
11099         (musermode): Convert to Var(TARGET_USERMODE).
11100         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
11101         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
11102         * config/sh/sh.c (sh_option_override): Use
11103         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
11104         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
11105         condition.
11106         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
11107         TARGET_SH4.
11108         (udivsi3_i4_single, divsi3_i4_single): Use
11109         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
11111 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
11113         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
11114         default setting.
11116 2013-03-13  Richard Biener  <rguenther@suse.de>
11118         PR tree-optimization/56608
11119         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
11120         calls when vectorizing basic-blocks.
11122 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
11124         PR plugins/45078
11125         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
11126         tm_file.
11128 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
11130         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
11132 2013-03-11  Jan Hubicka  <jh@suse.cz>
11134         PR lto/56557
11135         * lto-streamer-out.c (output_symbol_p): Skip references from
11136         constructors of external variables.
11138 2013-03-11  Jan Hubicka  <jh@suse.cz>
11140         PR middle-end/56571
11141         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
11142         from pseudos.
11143         * emit-rtl.c (verify_rtx_sharing): Likewise.
11144         (copy_insn_1): Likewise.
11145         * rtl.c (copy_rtx): Likewise.
11147 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
11149         PR target/56591
11150         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
11151         output_operand_lossage message.
11153 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
11155         PR target/56470
11156         * arm.c (shift_op): Validate RTL pattern on the fly.
11157         (arm_print_operand, case 'S'): Don't use shift_operator to validate
11158         the RTL.
11160 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11162         PR target/56347
11163         * config/pa/pa.md (call_value): Check for calls to powf and direct to
11164         new call patterns that clobber %fr12.
11165         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
11166         split and postreload patterns.
11167         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
11168         registers %fr12 and %fr12R as call used.
11170 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
11172         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
11173         (canon_address, record_store, replace_read, check_mem_read_rtx,
11174         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
11175         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
11176         rest_of_handle_dse): Likewise.
11178 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
11180         PR middle-end/56524
11181         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
11182         Add base_optabs.
11183         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
11184         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
11185         (save_optabs_if_changed): Replace with...
11186         (init_tree_optimization_optabs): ...this.
11187         * optabs.c (save_optabs_if_changed): Rename to...
11188         (init_tree_optimization_optabs): ...this.  Take the optimization node
11189         as argument.  Do nothing if the base optabs are already correct.
11190         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
11191         to recompute optabs.
11192         * function.h (function): Remove optabs field.
11193         * function.c (invoke_set_current_function_hook): Call
11194         init_tree_optimization_optabs.  Use the result to initialize
11195         this_fn_optabs.
11197 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
11199         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
11200         if GTMA_HAS_NO_INSTRUMENTATION.
11201         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
11202         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
11203         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
11204         * gimple-pretty-print.c (dump_gimple_transaction): Handle
11205         GTMA_HAS_NO_INSTRUMENTATION.
11207 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
11209         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
11210         libasan_preinit.o.
11212 2013-03-08  Marek Polacek  <polacek@redhat.com>
11213             Jakub Jelinek  <jakub@redhat.com>
11215         PR tree-optimization/56478
11216         * predict.c (is_comparison_with_loop_invariant_p): Change the
11217         type of loop_step to tree.
11218         (predict_loops): Adjust.
11219         (predict_iv_comparison): Perform the computations on double_ints.
11221 2013-03-08  Richard Biener  <rguenther@suse.de>
11223         PR tree-optimization/56570
11224         * tree-cfg.c (verify_expr_location_1): Verify locations for
11225         DECL_DEBUG_EXPR.
11226         * tree-sra.c (create_access_replacement): Strip locations
11227         from DECL_DEBUG_EXPRs.
11229 2013-03-08  Richard Biener  <rguenther@suse.de>
11231         * tree-inline.c (expand_call_inline): Do not associate
11232         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
11233         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
11235 2013-03-08  Richard Biener  <rguenther@suse.de>
11237         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
11238         or block changes with -Og.  Fix for location / block encoding
11239         changes and PHI arguments with locations.
11241 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
11243         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
11244         for all counters.
11245         (struct output_info): Likewise.
11246         (register_overhead): Remove bad gcc_assert.
11247         (bitmap_find_bit): If there is only a single bitmap element, do not
11248         count a miss as a search.
11249         (print_statistics): Update for counter type changes.
11250         (dump_bitmap_statistics): Likewise.  Print headers such that they
11251         are properly lined up with the printed counters.
11253 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
11255         PR tree-optimization/56559
11256         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
11257         check that it has only a single use.
11259 2013-03-07  Richard Biener  <rguenther@suse.de>
11261         * doc/invoke.texi (fwhole-program): Discourage use in combination
11262         with -flto.
11264 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
11266         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
11268         PR tree-optimization/56539
11269         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
11270         instead of GSI_CONTINUE_LINKING as last argument to
11271         force_gimple_operand_gsi.  Adjust function comment.
11273         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
11274         aarch64-cores.def.
11276         PR middle-end/56548
11277         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
11278         promoted mode, convert the result back to the original mode.
11280 2013-03-06  Richard Biener  <rguenther@suse.de>
11282         PR middle-end/56294
11283         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
11284         (insert_updated_phi_nodes_compare_uids): New function.
11285         (update_ssa): Sort symbols_to_rename after UID before
11286         traversing it to insert PHI nodes.
11288 2013-03-06  Richard Biener  <rguenther@suse.de>
11290         PR middle-end/50494
11291         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
11292         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
11294         Revert
11295         2013-02-13  Richard Biener  <rguenther@suse.de>
11297         PR lto/50494
11298         * varasm.c (output_constant_def_1): Get the decl representing
11299         the constant as argument.
11300         (output_constant_def): Wrap output_constant_def_1.
11301         (make_decl_rtl): Use output_constant_def_1 with the decl
11302         representing the constant.
11303         (build_constant_desc): Optionally re-use a decl already
11304         representing the constant.
11305         (tree_output_constant_def): Adjust.
11307 2013-03-06  Joey Ye  <joey.ye@arm.com>
11309         PR lto/50293
11310         * gcc.c (convert_white_space): New function.
11311         (main): Handles white space in function name.
11313 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
11315         PR target/56529
11316         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
11317         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
11318         to SH_DIV_CALL_TABLE for TARGET_SH2.
11319         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
11320         list.
11321         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
11322         call-table options.
11324 2013-03-05  Sterling Augustine  <saugustine@google.com>
11325             Cary Coutant  <ccoutant@google.com>
11327         PR debug/55364
11328         * dwarf2out.c (resolve_addr): Don't call
11329         remove_loc_list_addr_table_entries a second time for the same
11330         expression.
11332 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
11334         PR debug/56510
11335         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
11336         (avoid_complex_debug_insns): New function.
11337         (expand_debug_locations): Call it.
11339         PR rtl-optimization/56484
11340         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
11341         lifetimes of hard registers on small register class machines.
11343 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
11345         * config/microblaze/microblaze-protos.h: Rename
11346         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
11347         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
11348         fast_interrupt.
11349         (microblaze_fast_interrupt_function_p): New function.
11350         (microblaze_is_interrupt_handler): Rename to
11351         microblaze_is_interrupt_variant and add fast_interrupt check.
11352         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
11353         (save_restore_insns): Likewise.
11354         (compute_frame_size): Likewise.
11355         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
11356         (microblaze_globalize_label): Likewise.
11357         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
11358         * config/microblaze/microblaze.md: Use wrapper
11359         microblaze_is_interrupt_variant.
11361 2013-03-05  Kai Tietz  <ktietz@redhat.com>
11363         * sdbout.c (sdbout_one_type): Switch to current function's section
11364         supporting cold/hot.
11366 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
11368         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
11369         -mxl-reorder.
11371 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
11373         PR middle-end/56461
11374         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
11375         if VALGRIND_GET_VBITS is defined, temporarily make object
11376         memory all defined, and restore previous valgrind addressability
11377         and definability afterwards.  Free this_object at the end.
11379         PR middle-end/56461
11380         * lra.c (lra): Call lra_clear_live_ranges if live_p,
11381         right before calling lra_create_live_ranges, also call it
11382         when clearing live_p.  Only call lra_clear_live_ranges
11383         at the end if live_p.
11385         PR middle-end/56461
11386         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
11388 2013-03-05  Richard Biener  <rguenther@suse.de>
11390         PR tree-optimization/56521
11391         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
11392         value-id.
11394 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
11396         PR c++/55135
11397         * except.h (remove_unreachable_eh_regions): New prototype.
11398         * except.c (remove_eh_handler_splicer): New function, split out
11399         of remove_eh_handler.
11400         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
11401         warning about running it on many EH regions one at a time.
11402         (remove_unreachable_eh_regions_worker): New function, walk the
11403         EH tree in depth-first order and remove non-marked regions.
11404         (remove_unreachable_eh_regions): New function.
11405         * tree-eh.c (mark_reachable_handlers): New function, split out
11406         from remove_unreachable_handlers.
11407         (remove_unreachable_handlers): Use mark_reachable_handlers and
11408         remove_unreachable_eh_regions.
11409         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
11410         and remove_unreachable_eh_regions.
11412 2013-03-05  Richard Biener  <rguenther@suse.de>
11414         PR middle-end/56525
11415         * loop-init.c (fix_loop_structure): Remove loops in two stages,
11416         not freeing them until the end.
11418 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11420         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
11422 2013-03-05  Richard Biener  <rguenther@suse.de>
11424         PR tree-optimization/56270
11425         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
11426         of loads after scheduling an SLP instance.
11428 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
11430         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
11431         tic6x.exp.
11432         (check_gcc_parallelize): Run guality.exp as a separate job from
11433         vect.exp with unsorted.exp and $(dg_target_exps) separately from
11434         struct-layout-1.exp with stackalign.exp.
11436         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
11438         PR middle-end/56461
11439         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
11440         load_index sbitmap even if some bit in it isn't set.
11442         PR middle-end/56461
11443         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
11444         (discover_iteration_bound_by_body_walk): Change queues to
11445         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
11446         spelling in comment.  Call safe_push on queues[bound_index] directly.
11447         Release queues[queue_index] in every iteration unconditionally.
11448         Release bounds vector.
11450         PR middle-end/56461
11451         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
11452         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
11453         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
11454         inner_phis vector.
11456 2013-03-05  Richard Biener  <rguenther@suse.de>
11458         PR lto/56515
11459         * tree-inline.c (remap_blocks_to_null): New function.
11460         (expand_call_inline): When expanding a call stmt without
11461         an associated block inline remap all callee blocks to NULL.
11463 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
11465         PR rtl-optimization/56494
11466         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
11467         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
11468         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
11470         PR middle-end/56461
11471         * sel-sched-ir.c (free_sched_pools): Release
11472         succs_info_pool.stack[succs_info_pool.max_top] vectors too
11473         if succs_info_pool.max_top isn't -1.
11475         PR bootstrap/56509
11476         * opts.c (opts_obstack, opts_concat): Moved to...
11477         * opts-common.c (opts_obstack, opts_concat): ... here.
11479 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
11481         PR middle-end/56461
11482         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
11484 2013-03-04  Martin Jambor  <mjambor@suse.cz>
11486         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
11487         all appropriate places.
11489 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11491         PR tree-optimization/56424
11492         * ipa-split.c (split_function): Do not set the RSO flag if result is
11493         not by reference and its type is a register type.
11495 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
11497         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
11498         (microblaze_legitimate_pic_operand): Likewise
11499         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
11500         new function microblaze_legitimate_pic_operand
11501         * config/microblaze/microblaze-protos.h
11502         (microblaze_legitimate_pic_operand): Declare.
11504 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11506         * config/microblaze/predicates.md (call_insn_simple_operand):
11507         New predicate for supported rtx code types.
11508         * config/microblaze/microblaze.md (call_internal1): Use
11509         call_insn_simple_operand predicate.
11511 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
11513         PR middle-end/56461
11514         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
11515         partitions.ordered_remove.
11517         PR middle-end/56461
11518         * tree-vect-stmts.c (vectorizable_conversion): Don't call
11519         vec_oprnds0.create (1) for modifier == NONE.
11521         PR middle-end/56461
11522         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
11523         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
11524         vec_oprnds1 right before pushing anything to it for
11525         scalar_shift_arg.
11527         PR middle-end/56461
11528         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
11529         set nbbs to 0 instead of having separate code path.
11530         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
11531         instead of false as last argument if returning NULL.
11533 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
11535         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
11536         the attribute is now called "target" instead of "option".
11537         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
11538         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
11539         attribute/pragma name for TARGET_OPTION_VALID_P and
11540         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
11541         * doc/tm.texi: Regenerated.
11543 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
11545         * config/microblaze/microblaze.c:
11546         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
11547         * config/microblaze/microblaze.h: Add -mxl-reorder to
11548         DRIVER_SELF_SPECS.
11549         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
11550         instructions emitted if TARGET_REORDER.
11551         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
11552         or 0 for -m/-mno case, but initialises as 2 to detect default use case
11553         separately.
11555 2013-03-01  Xinliang David Li  <davidxl@google.com>
11557         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
11558         walk length.
11560 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
11562         PR middle-end/56461
11563         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
11564         vector even when returning true.  Fix up function comment formatting.
11566         PR middle-end/56461
11567         * ira-build.c (ira_loop_nodes_count): New variable.
11568         (create_loop_tree_nodes): Initialize it.
11569         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
11571         PR middle-end/56461
11572         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
11573         method on dr_chain and result_chain.
11574         * tree-vect-stmts.c (vectorizable_store): Only call
11575         result_chain.create if j == 0.
11577         PR middle-end/56461
11578         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
11579         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
11580         before overwriting it.
11582 2013-03-01  Tobias Burnus  <burnus@net-b.de>
11584         * doc/extended.texi (C Extensions): Change order in @menu
11585         to match @node.
11586         (Other MIPS Built-in Functions): Move last MIPS entry before
11587         "picoChip Built-in Functions".
11588         (SH Built-in Functions): Move after RX Built-in Functions.
11589         * doc/gcc.texi (Introduction): Change order in @menu
11590         to match @node.
11591         * doc/md.texi (Constraints): Ditto.
11592         * gty.texi (Type Information): Ditto.
11593         (User-provided marking routines for template types): Make
11594         subsection.
11595         * doc/invoke.texi (AArch64 Options): Move before
11596         "Adapteva Epiphany Options".
11598 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
11599             Jakub Jelinek  <jakub@redhat.com>
11601         PR sanitizer/56454
11602         * asan.c (gate_asan): Lookup no_sanitize_address instead of
11603         no_address_safety_analysis attribute.
11604         * doc/extend.texi (no_address_safety_attribute): Rename to
11605         no_sanitize_address attribute, mention no_address_safety_analysis
11606         attribute as deprecated alias.
11608 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
11610         PR middle-end/56461
11611         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
11612         type to vec<vec<tree> > *.
11613         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
11614         to be vec<tree> instead of vec<tree> *, set vec_defs
11615         to vNULL and call vec_defs.create (number_of_vects), adjust other
11616         uses of vec_defs.
11617         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
11618         vectorizable_condition): Adjust vect_get_slp_defs callers.
11620 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
11622         * config/aarch64/aarch64.c
11623         (aarch64_float_const_representable): Remove unused variable.
11625 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
11627         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
11629 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
11631         * config/aarch64/aarch64-builtins.c
11632         (aarch64_init_simd_builtins): Make static.
11634 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
11636         * config/aarch64/aarch64.c
11637         (aarch64_simd_make_constant): Make static.
11639 2013-02-28  Martin Jambor  <mjambor@suse.cz>
11641         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
11642         with no initialization to the RHS of debug statements.
11644 2013-02-28  Martin Jambor  <mjambor@suse.cz>
11646         PR tree-optimization/56294
11647         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
11648         Adjust dumping.
11649         (get_access_replacement): Do not call create_access_replacement.
11650         Assert a replacement exists.
11651         (get_repl_default_def_ssa_name): Create the replacement declaration
11652         itself.
11654 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11656         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
11657         final_end_function.
11659 2013-02-28  Marek Polacek  <polacek@redhat.com>
11661         PR rtl-optimization/56466
11662         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
11663         if we're changing a loop.
11664         (peel_loops_completely): Likewise.
11666 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
11668         PR c++/55813
11669         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
11671 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
11673         PR target/56445
11674         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
11675         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
11676         INTX_FTYPE_FX, FX_FTYPE_INTX.
11677         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
11679 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
11681         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
11682         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
11683         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
11684         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
11685         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
11686         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
11687         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
11688         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
11689         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
11690         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
11691         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
11692         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
11693         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
11694         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
11695         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
11696         (avrxmega6): Increase max flash segments from 5 to 6.
11697         * config/avr/t-multilib: Regenerate.
11698         * config/avr/avr-tables.opt: Regenerate.
11699         * doc/avr-mmcu.texi: Regenerate.
11701 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
11703         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
11704         (avr_device_to_arch): Rename to avr_device_to_ld.
11705         (avr_device_to_as): New prototype.
11706         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
11707         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
11708         * config/avr/driver-avr.c (avr_device_to_as): New.
11709         (avr_device_to_arch): Rename to avr_device_to_ld.
11711 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
11713         PR middle-end/56461
11714         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
11715         method on dr_chain and result_chain.
11717         PR middle-end/56461
11718         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
11719         pointer_set_destroy on not_executed_last_iteration.
11721         PR middle-end/56461
11722         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
11724         PR middle-end/56461
11725         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
11726         FOR_EACH_DEFINED_FUNCTION when freeing state.
11728         PR middle-end/56461
11729         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
11730         pool_free.
11731         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
11732         overwriting it.
11734         PR middle-end/56461
11735         * ipa-cp.c (decide_whether_version_node): Call vec_free on
11736         known_aggs[i].items and release known_aggs vector.
11738         PR middle-end/56461
11739         * ipa-reference.c (propagate): Free node_info even for alias nodes.
11741 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11743         * config/microblaze/microblaze.c (microblaze_emit_compare):
11744         Use xor for EQ/NE comparisions.
11745         * config/microblaze/microblaze.md (cstoresf4): Add constraints
11746         (cbranchsf4): Adjust operator to comparison_operator.
11748 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
11750         PR middle-end/56461
11751         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
11752         vector.
11753         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
11754         vec_safe_push, always update *slot.
11755         (redirect_edge_var_map_clear): Use vec_free.
11756         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
11757         (free_var_map_entry): Use vec_free.
11758         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
11759         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
11761 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
11763         PR middle-end/45472
11764         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
11765         when the may_trap_p bit of the exprs being merged differs.
11766         Reorder tests for speculativeness in the logical and operator.
11768 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
11770         * incpath.c (add_standard_paths): Use reconcat instead of concat
11771         where appropriate and avoid leaking memory.
11773         * opts.h: Include obstack.h.
11774         (opts_concat): New prototype.
11775         (opts_obstack): New declaration.
11776         * opts.c (opts_concat): New function.
11777         (opts_obstack): New variable.
11778         (init_options_struct): Call gcc_init_obstack on opts_obstack.
11779         (finish_options): Use opts_concat instead of concat
11780         and XOBNEWVEC instead of XNEWVEC.
11781         * opts-common.c (generate_canonical_option, decode_cmdline_option,
11782         generate_option): Likewise.
11783         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
11784         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
11786         PR target/56455
11787         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
11788         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
11790 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
11792         PR middle-end/56461
11793         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
11795 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
11797         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
11798         (arm_block_move_unaligned_straight): Likewise.
11799         (arm_adjust_block_mem): Likewise.
11801 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
11803         PR target/48901
11804         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
11805         temp, cond and label.
11806         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
11808         PR target/52500
11809         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
11810         * config/c6x/c6x.h (dbx_register_map): Update declaration.
11812         PR target/52501
11813         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
11814         of prologue/epilogue functions.
11816         PR target/52550
11817         * config/tilegx/tilegx.c (tilegx_expand_prologue):
11818         Remove unused variable cfa_offset.
11819         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
11821         PR target/54639
11822         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
11823         type promotion to unsigned.
11825         PR target/54640
11826         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
11827         for HOST_WIDE_INT of 32 bit / same size as int.
11828         (arm_block_move_unaligned_straight): Likewise.
11829         (arm_adjust_block_mem): Likewise.
11831         PR target/54662
11832         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
11833         ALL_CFLAGS.
11835 2013-02-26  Marek Polacek  <polacek@redhat.com>
11837         PR tree-optimization/56426
11838         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
11840 2013-02-26  Richard Biener  <rguenther@suse.de>
11842         PR target/56444
11843         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
11844         unused variable loops.
11846 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
11848         PR tree-optimization/56448
11849         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
11850         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
11851         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
11852         later operands of the references, or even first operand for
11853         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
11855         PR tree-optimization/56443
11856         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
11857         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
11858         to type_for_mode langhook.
11860 2013-02-25  Matt Turner  <mattst88@gmail.com>
11862         * doc/invoke.texi: Document r4700.
11864 2013-02-25  Richard Biener  <rguenther@suse.de>
11866         PR tree-optimization/56175
11867         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
11868         split out from ...
11869         (simplify_bitwise_binary): ... here.  Also guard the conversion
11870         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
11872 2013-02-25  Catherine Moore  <clm@codesourcery.com>
11874         Revert:
11875         2013-02-24  Catherine Moore  <clm@codesourcery.com>
11876             Maciej W. Rozycki  <macro@codesourcery.com>
11877             Tom de Vries  <tom@codesourcery.com>
11878             Nathan Sidwell  <nathan@codesourcery.com>
11879             Iain Sandoe  <iain@codesourcery.com>
11880             Nathan Froyd  <froydnj@codesourcery.com>
11881             Chao-ying Fu  <fu@mips.com>
11883         * doc/extend.texi: (micromips, nomicromips, nocompression):
11884         Document new function attributes.
11885         * doc/invoke.texi (minterlink-compressed, mmicromips,
11886         m14k, m14ke, m14kec): Document new options.
11887         (minterlink-mips16): Update documentation.
11888         * doc/md.texi (ZC, ZD): Document new constraints.
11889         * configure.ac (gcc_cv_as_micromips): Check if linker
11890         supports the .set micromips directive.
11891         * configure: Regenerate.
11892         * config.in: Regenerate.
11893         * config/mips/mips-tables.opt: Regenerate.
11894         * config/mips/micromips.md: New file.
11895         * constraints.md (ZC, AD): New constraints.
11896         * config/mips/predicates.md (movep_src_register): New predicate.
11897         (movep_src_operand): New predicate.
11898         (non_volatile_mem_operand): New predicate.
11899         * config/mips/mips.md (multimem): New type.
11900         (length): Differentiate between 17-bit and 18-bit branch offsets.
11901         (MOVEP1, MOVEP2): New mode iterator.
11902         (mov_<load>l): Use ZC constraint.
11903         (mov_<load>r): Likewise.
11904         (mov_<store>l): Likewise.
11905         (mov_<store>r): Likewise.
11906         (*branch_equality<mode>_inverted): Add microMIPS support.
11907         (*branch_equality<mode>): Likewise.
11908         (*jump_absolute): Likewise.
11909         (indirect_jump_<mode>): Likewise.
11910         (tablejump_<mode>): Likewise.
11911         (<optab>_internal): Likewise.
11912         (sibcall_internal): Likewise.
11913         (sibcall_value_internal): Likewise.
11914         (prefetch): Use constraint ZD.
11915         * config/mips/mips.opt (minterlink-compressed): New option.
11916         (minterlink-mips16): Now an alias for minterlink-compressed.
11917         (mmicromips): New option.
11918         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11919         (compare_and_swap_12): Likewise.
11920         (sync_add<mode>): Likewise.
11921         (sync_<optab>_12): Likewise.
11922         (sync_old_<optab>_12): Likewise.
11923         (sync_new_<optab>_12): Likewise.
11924         (sync_nand_12): Likewise.
11925         (sync_old_nand_12): Likewise.
11926         (sync_new_nand_12): Likewise.
11927         (sync_sub<mode>): Likewise.
11928         (sync_old_add<mode>): Likewise.
11929         (sync_old_sub<mode>): Likewise.
11930         (sync_new_add<mode>): Likewise.
11931         (sync_new_sub<mode>): Likewise.
11932         (sync_<optab><mode>): Likewise.
11933         (sync_old_<optab><mode>): Likewise.
11934         (sync_new_<optab><mode>): Likewise.
11935         (sync_nand<mode>): Likewise.
11936         (sync_old_nand<mode>): Likewise.
11937         (sync_new_nand<mode>): Likewise.
11938         (sync_lock_test_and_set<mode>): Likewise.
11939         (test_and_set_12): Likewise.
11940         (atomic_compare_and_swap<mode>): Likewise.
11941         (atomic_exchange<mode>_llsc): Likewise.
11942         (atomic_fetch_add<mode>_llsc): Likewise.
11943         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11944         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11945         (umips_save_restore_pattern_p): Likewise.
11946         (umips_load_store_pair_p): Likewise.
11947         (umips_output_load_store_pair): Likewise.
11948         (umips_movep_target_p): Likewise.
11949         (umips_12bit_offset_address_p): Likewise.
11950         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11951         (mips_base_mips16): Rename this...
11952         (mips_base_compression_flags): ...to this. Update all uses.
11953         (mips_attribute_table): Add micromips, nomicromips and nocompression.
11954         (mips_mips16_decl_p): Delete.
11955         (mips_nomips16_decl_p): Delete.
11956         (mips_get_compress_on_flags): New function.
11957         (mips_get_compress_off_flags): New function.
11958         (mips_get_compress_mode): New function.
11959         (mips_get_compress_on_name): New function.
11960         (mips_get_compress_off_name): New function.
11961         (mips_insert_attributes): Support multiple compression types.
11962         (mips_merge_decl_attributes): Likewise.
11963         (umips_12bit_offset_address_p): New function.
11964         (mips_start_function_definition): Emit .set micromips directive.
11965         (mips_call_may_need_jalx_p): New function.
11966         (mips_function_ok_for_sibcall): Add microMIPS support.
11967         (mips_print_operand_punctuation): Support short delay slots and
11968         compact jumps.
11969         (umips_swm_mask, umips_swm_encoding): New.
11970         (umips_build_save_restore): New function.
11971         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11972         (was_mips16_p): Remove.
11973         (old_compression_mode): New.
11974         (mips_set_compression_mode): New function.
11975         (mips_set_current_function): Add microMIPS support.
11976         (mips_option_override): Likewise.
11977         (umips_save_restore_pattern_p): New function.
11978         (umips_output_save_restore): New function.
11979         (umips_load_store_pair_p_1): New function.
11980         (umips_load_store_pair_p): New function.
11981         (umips_output_load_store_pair_1): New function.
11982         (umips_output_load_store_pair): New function.
11983         (umips_movep_target_p) New function.
11984         (mips_prepare_pch_save): Add microMIPS support.
11985         * config/mips/mips.h (TARGET_COMPRESSION): New.
11986         (TARGET_CPU_CPP_BUILTINS): Update macro
11987         to use new compression flags and to support microMIPS.
11988         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11989         (MIPS_ARCH_FLOAT_SPEC): Likewise.
11990         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11991         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11992         (ASM_SPEC): Support mmicromips and mno-micromips.
11993         (M16STORE_REG_P): New macro.
11994         (MIPS_CALL): Support TARGET_MICROMIPS.
11995         (MICROMIPS_J): New macro.
11996         (mips_base_mips16): Rename this...
11997         (mips_base_compression_flags): ...to this.
11998         (UMIPS_12BIT_OFFSET_P): New macro.
11999         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12000         (MULTILIB_DIRNAMES): Likewise.
12002 2013-02-25  Tom de Vries  <tom@codesourcery.com>
12004         PR rtl-optimization/56131
12005         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
12006         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
12007         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
12009 2013-02-25  Tobias Burnus  <burnus@net-b.de>
12011         * doc/invoke.texi (-fsanitize=): Move from optimization
12012         to debugging options.
12014 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
12016         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
12018 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
12019             Alexander Monakov  <amonakov@ispras.ru>
12021         PR middle-end/56077
12022         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
12023         flush pending lists also on non-jumps.  Adjust comment.
12025 2013-02-24  Catherine Moore  <clm@codesourcery.com>
12026             Maciej W. Rozycki  <macro@codesourcery.com>
12027             Tom de Vries  <tom@codesourcery.com>
12028             Nathan Sidwell  <nathan@codesourcery.com>
12029             Iain Sandoe  <iain@codesourcery.com>
12030             Nathan Froyd  <froydnj@codesourcery.com>
12031             Chao-ying Fu  <fu@mips.com>
12033         * doc/extend.texi: (micromips, nomicromips, nocompression):
12034         Document new function attributes.
12035         * doc/invoke.texi (minterlink-compressed, mmicromips,
12036         m14k, m14ke, m14kec): Document new options.
12037         (minterlink-mips16): Update documentation.
12038         * doc/md.texi (ZC, ZD): Document new constraints.
12039         * configure.ac (gcc_cv_as_micromips): Check if linker
12040         supports the .set micromips directive.
12041         * configure: Regenerate.
12042         * config.in: Regenerate.
12043         * config/mips/mips-tables.opt: Regenerate.
12044         * config/mips/micromips.md: New file.
12045         * constraints.md (ZC, AD): New constraints.
12046         * config/mips/predicates.md (movep_src_register): New predicate.
12047         (movep_src_operand): New predicate.
12048         (non_volatile_mem_operand): New predicate.
12049         * config/mips/mips.md (multimem): New type.
12050         (length): Differentiate between 17-bit and 18-bit branch offsets.
12051         (MOVEP1, MOVEP2): New mode iterator.
12052         (mov_<load>l): Use ZC constraint.
12053         (mov_<load>r): Likewise.
12054         (mov_<store>l): Likewise.
12055         (mov_<store>r): Likewise.
12056         (*branch_equality<mode>_inverted): Add microMIPS support.
12057         (*branch_equality<mode>): Likewise.
12058         (*jump_absolute): Likewise.
12059         (indirect_jump_<mode>): Likewise.
12060         (tablejump_<mode>): Likewise.
12061         (<optab>_internal): Likewise.
12062         (sibcall_internal): Likewise.
12063         (sibcall_value_internal): Likewise.
12064         (prefetch): Use constraint ZD.
12065         * config/mips/mips.opt (minterlink-compressed): New option.
12066         (minterlink-mips16): Now an alias for minterlink-compressed.
12067         (mmicromips): New option.
12068         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12069         (compare_and_swap_12): Likewise.
12070         (sync_add<mode>): Likewise.
12071         (sync_<optab>_12): Likewise.
12072         (sync_old_<optab>_12): Likewise.
12073         (sync_new_<optab>_12): Likewise.
12074         (sync_nand_12): Likewise.
12075         (sync_old_nand_12): Likewise.
12076         (sync_new_nand_12): Likewise.
12077         (sync_sub<mode>): Likewise.
12078         (sync_old_add<mode>): Likewise.
12079         (sync_old_sub<mode>): Likewise.
12080         (sync_new_add<mode>): Likewise.
12081         (sync_new_sub<mode>): Likewise.
12082         (sync_<optab><mode>): Likewise.
12083         (sync_old_<optab><mode>): Likewise.
12084         (sync_new_<optab><mode>): Likewise.
12085         (sync_nand<mode>): Likewise.
12086         (sync_old_nand<mode>): Likewise.
12087         (sync_new_nand<mode>): Likewise.
12088         (sync_lock_test_and_set<mode>): Likewise.
12089         (test_and_set_12): Likewise.
12090         (atomic_compare_and_swap<mode>): Likewise.
12091         (atomic_exchange<mode>_llsc): Likewise.
12092         (atomic_fetch_add<mode>_llsc): Likewise.
12093         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12094         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12095         (umips_save_restore_pattern_p): Likewise.
12096         (umips_load_store_pair_p): Likewise.
12097         (umips_output_load_store_pair): Likewise.
12098         (umips_movep_target_p): Likewise.
12099         (umips_12bit_offset_address_p): Likewise.
12100         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12101         (mips_base_mips16): Rename this...
12102         (mips_base_compression_flags): ...to this. Update all uses.
12103         (mips_attribute_table): Add micromips, nomicromips and nocompression.
12104         (mips_mips16_decl_p): Delete.
12105         (mips_nomips16_decl_p): Delete.
12106         (mips_get_compress_on_flags): New function.
12107         (mips_get_compress_off_flags): New function.
12108         (mips_get_compress_mode): New function.
12109         (mips_get_compress_on_name): New function.
12110         (mips_get_compress_off_name): New function.
12111         (mips_insert_attributes): Support multiple compression types.
12112         (mips_merge_decl_attributes): Likewise.
12113         (umips_12bit_offset_address_p): New function.
12114         (mips_start_function_definition): Emit .set micromips directive.
12115         (mips_call_may_need_jalx_p): New function.
12116         (mips_function_ok_for_sibcall): Add microMIPS support.
12117         (mips_print_operand_punctuation): Support short delay slots and
12118         compact jumps.
12119         (umips_swm_mask, umips_swm_encoding): New.
12120         (umips_build_save_restore): New function.
12121         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12122         (was_mips16_p): Remove.
12123         (old_compression_mode): New.
12124         (mips_set_compression_mode): New function.
12125         (mips_set_current_function): Add microMIPS support.
12126         (mips_option_override): Likewise.
12127         (umips_save_restore_pattern_p): New function.
12128         (umips_output_save_restore): New function.
12129         (umips_load_store_pair_p_1): New function.
12130         (umips_load_store_pair_p): New function.
12131         (umips_output_load_store_pair_1): New function.
12132         (umips_output_load_store_pair): New function.
12133         (umips_movep_target_p) New function.
12134         (mips_prepare_pch_save): Add microMIPS support.
12135         * config/mips/mips.h (TARGET_COMPRESSION): New.
12136         (TARGET_CPU_CPP_BUILTINS): Update macro
12137         to use new compression flags and to support microMIPS.
12138         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12139         (MIPS_ARCH_FLOAT_SPEC): Likewise.
12140         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12141         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12142         (ASM_SPEC): Support mmicromips and mno-micromips.
12143         (M16STORE_REG_P): New macro.
12144         (MIPS_CALL): Support TARGET_MICROMIPS.
12145         (MICROMIPS_J): New macro.
12146         (mips_base_mips16): Rename this...
12147         (mips_base_compression_flags): ...to this.
12148         (UMIPS_12BIT_OFFSET_P): New macro.
12149         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12150         (MULTILIB_DIRNAMES): Likewise.
12152 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
12154         PR target/52555
12155         * target-globals.c (save_target_globals): For init_reg_sets and
12156         target_reinit remporarily set this_fn_optabs to this_target_optabs.
12158 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
12160         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
12161         * config/aarch64/t-aarch64
12162         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
12164 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
12166         PR inline-asm/56148
12167         * lra-constraints.c (process_alt_operands): Reload operand
12168         conflicting with earlier clobber only if no more other conflicting
12169         operands.
12171 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
12173         PR sanitizer/56393
12174         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
12175         if not linking a shared library.
12177 2013-02-22  Seth LaForge  <sethml@google.com>
12179         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
12181 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
12183         * config/arm/arm.md (split for extendsidi): Update condition.
12184         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
12185         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
12186         (qhs_zextenddi_cstr): Likewise.
12188 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
12190         PR middle-end/56420
12191         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
12192         avoid signed wrapping.
12193         (expand_mult): Handle properly multiplication by
12194         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
12195         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
12196         in the compiler if coeff is HOST_WIDE_INT_MIN.
12197         (expand_divmod): Don't make ext_op1 static, change it's type to
12198         uhwi.  Avoid undefined behavior in -INTVAL (op1).
12200         PR rtl-optimization/50339
12201         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
12202         field.
12203         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
12204         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
12205         into splitting_ashiftrt field.
12206         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
12207         ASHIFTRT.
12208         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
12209         choices.
12211 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
12213         PR middle-end/56108
12214         * trans-mem.c (execute_tm_mark): Do not expand transactions that
12215         are sure to go irrevocable.
12217 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
12219         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
12220         scalars are valid operands.
12222 2013-02-21  Martin Jambor  <mjambor@suse.cz>
12224         PR tree-optimization/56310
12225         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
12226         only matching indices and non-negative final offsets.
12227         (intersect_aggregates_with_edge): Pass src_idx to
12228         agg_replacements_to_vector.  Pass src_idx insstead of index to
12229         intersect_with_agg_replacements.
12231 2013-02-21  Martin Jambor  <mjambor@suse.cz>
12233         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
12234         instead of hard-wired defaults.
12236 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
12238         * doc/invoke.texi (MIPS Options): Update documentation of the
12239         floating-point multiply-accumulate instruction restrictions.
12241 2013-02-21  Kostya Serebryany  <kcc@google.com>
12243         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
12244         asan_shadow_offset on x86_64 linux.
12246 2013-02-21  Richard Biener  <rguenther@suse.de>
12248         PR tree-optimization/56415
12249         Revert
12250         2013-02-11  Richard Biener  <rguenther@suse.de>
12252         PR tree-optimization/56273
12253         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
12254         first VRP run.
12256 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
12258         PR bootstrap/56258
12259         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
12260         instead of @itemx.
12262         PR inline-asm/56405
12263         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
12264         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
12266 2013-02-20  Jan Hubicka  <jh@suse.cz>
12268         PR tree-optimization/56265
12269         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
12270         when target is referenced for first time.
12272 2013-02-20  Richard Biener  <rguenther@suse.de>
12274         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
12275         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
12276         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
12277         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
12278         not return anything.
12279         (rename_ssa_copies): Do not remove unused locals.
12280         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
12281         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
12282         * passes.c (execute_function_todo): Do not schedule unused locals
12283         removal if cleanup_tree_cfg did something.
12284         * tree-ssa-live.c (remove_unused_locals): Dump statistics
12285         about the number of removed locals.
12287 2013-02-20  Richard Biener  <rguenther@suse.de>
12289         PR tree-optimization/56398
12290         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
12292 2013-02-20  Martin Jambor  <mjambor@suse.cz>
12294         PR tree-optimization/55334
12295         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
12296         restricted pointers to arrays.
12298 2013-02-20  Richard Biener  <rguenther@suse.de>
12299             Jakub Jelinek  <jakub@redhat.com>
12301         PR tree-optimization/56396
12302         * tree-ssa-ccp.c (n_const_val): New static variable.
12303         (get_value): Return NULL for SSA names we don't have a lattice
12304         entry for.
12305         (ccp_initialize): Initialize n_const_val.
12306         * tree-ssa-copy.c (n_copy_of): New static variable.
12307         (init_copy_prop): Initialize n_copy_of.
12308         (get_value): Return NULL_TREE for SSA names we don't have a
12309         lattice entry for.
12311 2013-02-20  Martin Jambor  <mjambor@suse.cz>
12313         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
12315 2013-02-20  Richard Biener  <rguenther@suse.de>
12317         * genpreds.c (write_lookup_constraint): Do not compare first
12318         letter of the constraint again.
12320 2013-02-20  Richard Biener  <rguenther@suse.de>
12322         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
12323         and ceil_log2.
12324         (get_use_iv_cost): Terminate hashtable walk when coming across
12325         an empty entry.
12327 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
12329         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
12330         reassociation for avx2 targets.
12332 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12334         * config/microblaze/microblaze.c: microblaze_has_clz = 0
12335         Add version check for v8.10.a to enable microblaze_has_clz
12336         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
12337         version and TARGET_PATTERN_COMPARE check
12338         * config/microblaze/microblaze.md: New clzsi2 instruction
12340 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12342         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
12343         function before branching.
12345 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
12347         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
12348         DUMP_INSN_RTX_UID.
12349         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
12351 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
12353         PR middle-end/55889
12354         * sel-sched.c: Include ira.h.
12355         (implicit_clobber_conflict_p): New function.
12356         (moveup_expr): Use it.
12357         * Makefile.in (sel-sched.o): Depend on ira.h.
12359 2013-02-19  Richard Biener  <rguenther@suse.de>
12361         PR tree-optimization/56384
12362         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
12363         (vn_hash_type): Split out from ...
12364         (vn_hash_constant_with_type): ... here.
12365         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
12366         (vn_phi_eq): Compare types from vn_phi_s structure.
12367         (vn_phi_lookup): Populate vn_phi_s type.
12368         (vn_phi_insert): Likewise.
12370 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
12372         PR tree-optimization/56350
12373         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
12374         if haven't found reduction or nested cycle operand, rather than
12375         asserting we must find it.
12377         PR tree-optimization/56381
12378         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
12379         to fold_build3.
12381 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
12382             Jakub Jelinek  <jakub@redhat.com>
12384         PR target/52555
12385         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
12386         (swap_optab_enable): Same.
12387         (init_all_optabs): Use argument instead of global.
12388         * tree.h (struct tree_optimization_option): New field target_optabs.
12389         * expr.h (init_all_optabs): Add argument to prototype.
12390         (TREE_OPTIMIZATION_OPTABS): New.
12391         (save_optabs_if_changed): Protoize.
12392         * optabs.h: Declare this_fn_optabs.
12393         * optabs.c (save_optabs_if_changed): New.
12394         Declare this_fn_optabs.
12395         (init_optabs): Add argument to init_all_optabs() call.
12396         * function.c (invoke_set_current_function_hook): Handle per
12397         function optabs.
12398         * function.h (struct function): New field optabs.
12399         * config/mips/mips.c (mips_set_mips16_mode): Handle when
12400         optimization_current_node has changed.
12401         * target-globals.h (save_target_globals_default_opts): Protoize.
12402         * target-globals.c (save_target_globals_default_opts): New.
12404 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12406         PR target/56347
12407         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
12408         registers %fr12 and %fr12R as call used.
12410         PR target/56214
12411         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
12412         and HImode, require all displacements to be an integer multiple of
12413         their mode size.
12414         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
12415         only allow QImode and HImode when reload is in progress and strict is
12416         true.  Likewise for symbolic addresses.  Use base14_operand to check
12417         displacements in REG+BASE addresses.
12419 2013-02-18  Richard Biener  <rguenther@suse.de>
12421         PR tree-optimization/56366
12422         * tree-vect-loop.c (get_initial_def_for_induction): Properly
12423         handle sign-conversion of outer-loop initial induction value.
12425 2013-02-18  Richard Biener  <rguenther@suse.de>
12427         PR middle-end/56349
12428         * cfghooks.c (merge_blocks): If we merge a latch into another
12429         block adjust references to it.
12430         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
12431         (verify_loop_structure): Verify that a recorded latch is in fact
12432         a latch.
12434 2013-02-18  Richard Biener  <rguenther@suse.de>
12436         PR tree-optimization/56321
12437         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
12438         order SSA name release and virtual operand unlinking.
12440 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12442         * config/microblaze/microblaze.md (save_stack_block): Define.
12443         (restore_stack_block): Likewise.
12445 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12447         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
12448         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
12449         * config/microblaze/microblaze.c (microblaze_option_override):
12450         Bail out early for PIC modes when target does not support PIC.
12452 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12454         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
12455         Replace with a microblaze version.
12456         (microblaze_trampoline_init): Adapt for microblaze.
12457         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
12458         microblaze.
12460 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
12461             Dodji Seketeli  <dodji@redhat.com>
12463         PR asan/56330
12464         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
12465         (instrument_mem_region_access): Do not forget to always put
12466         instrumentation of the of 'base' and 'base + len' in a "if (len !=
12467         0) statement, even for cases where either 'base' or 'base + len'
12468         are not instrumented -- because they have been previously
12469         instrumented.  Simplify the logic by putting all the statements
12470         instrument 'base + len' inside a sequence, and then insert that
12471         sequence right before the current insertion point.  Then, to
12472         instrument 'base + len', just get an iterator on that statement.
12473         And do not forget to update the pointer to iterator the function
12474         received as argument.
12476 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
12478         PR rtl-optimization/56348
12479         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
12481 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
12483         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
12484         (clean_graph_dump_file): Pass base to start_graph_dump.
12486 2013-02-14  Richard Henderson  <rth@redhat.com>
12488         PR target/55941
12489         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
12491 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
12493         * collect2-aix.h: Define F_LOADONLY.
12495 2013-02-14  Richard Biener  <rguenther@suse.de>
12497         PR lto/50494
12498         * varasm.c (output_constant_def_1): Get the decl representing
12499         the constant as argument.
12500         (output_constant_def): Wrap output_constant_def_1.
12501         (make_decl_rtl): Use output_constant_def_1 with the decl
12502         representing the constant.
12503         (build_constant_desc): Optionally re-use a decl already
12504         representing the constant.
12505         (tree_output_constant_def): Adjust.
12507 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
12509         Fix an asan crash
12510         * asan.c (instrument_builtin_call):  Really put the length of the
12511         second source argument into src1_len.
12513 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
12515         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
12516         argument.  If it is false, don't create edge from then_bb to
12517         fallthru_bb.
12518         (insert_if_then_before_iter): Pass true to it.
12519         (build_check_stmt): Pass false to it.
12520         (transform_statements): Flush hash table only on extended basic
12521         block boundaries, rather than at the beginning of every bb.
12522         Don't flush hash table on nonfreeing_call_p calls.
12523         * tree-flow.h (nonfreeing_call_p): New prototype.
12524         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
12526 2013-02-13  David S. Miller  <davem@davemloft.net>
12528         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
12530 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
12532         PR target/56184
12533         * ira.c (max_regno_before_ira): Move from ...
12534         (ira): ... here.
12535         (fix_reg_equiv_init): Use max_regno_before_ira instead of
12536         vec_safe_length.
12538 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
12540         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
12542 2013-02-13  Richard Biener  <rguenther@suse.de>
12544         PR lto/56295
12545         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
12546         globals in MEM_REFs.
12548 2013-02-13  Richard Biener  <rguenther@suse.de>
12550         * loop-init.c (loop_optimizer_init): Clear loop state when
12551         re-initializing preserved loops.
12552         * loop-unswitch.c (unswitch_single_loop): Return whether
12553         we unswitched the loop.  Do not verify loop state here.
12554         (unswitch_loops): When we unswitched a loop discover new loops.
12556 2013-02-13  Kostya Serebryany  <kcc@google.com>
12558         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
12559         on x86_64 linux.
12560         * sanitizer.def: Rename __asan_init to __asan_init_v1.
12562 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
12564         Avoid instrumenting duplicated memory access in the same basic block
12565         * Makefile.in (asan.o): Add new dependency on hash-table.h
12566         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
12567         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
12568         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
12569         (free_mem_ref_resources, has_mem_ref_been_instrumented)
12570         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
12571         (get_mem_ref_of_assignment): New functions.
12572         (get_mem_refs_of_builtin_call): Extract from
12573         instrument_builtin_call and tweak a little bit to make it fit with
12574         the new signature.
12575         (instrument_builtin_call): Use the new
12576         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
12577         of is_gimple_builtin_call.
12578         (instrument_derefs, instrument_mem_region_access): Insert the
12579         instrumented memory reference into the hash table.
12580         (maybe_instrument_assignment): Renamed instrument_assignment into
12581         this, and change it to advance the iterator when instrumentation
12582         actually happened and return true in that case.  This makes it
12583         homogeneous with maybe_instrument_assignment, and thus give a
12584         chance to callers to be more 'regular'.
12585         (transform_statements): Clear the memory reference hash table
12586         whenever we enter a new BB, when we cross a function call, or when
12587         we are done transforming statements.  Use
12588         maybe_instrument_assignment instead of instrumentation.  No more
12589         need to special case maybe_instrument_assignment and advance the
12590         iterator after calling it; it's now handled just like
12591         maybe_instrument_call.  Update comment.
12593 2013-02-13  Richard Biener  <rguenther@suse.de>
12595         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
12596         Fix loop discovery code.
12598 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
12600         PR inline-asm/56148
12601         * lra-constraints.c (process_alt_operands): Match early clobber
12602         operand with itself.  Check conflicts with earlyclobber only if
12603         the operand is not reloaded.  Prefer to reload conflicting operand
12604         if earlyclobber and matching operands are the same.
12606 2013-02-12  Richard Biener  <rguenther@suse.de>
12608         PR lto/56297
12609         * lto-streamer-out.c (write_symbol): Do not output symbols
12610         for hard register variables.
12612 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
12614         PR target/54222
12615         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
12616         (umulsidi3_insn, mulsidi3_insn): New insns.
12618 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
12620         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
12621         (struct tune_params): Add vec_costs field.
12622         * config/arm/arm.c (arm_builtin_vectorization_cost)
12623         (arm_add_stmt_cost): New functions.
12624         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
12625         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
12626         (arm_default_vec_cost): New struct of type cpu_vec_costs.
12627         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
12628         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
12629         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
12630         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
12632 2013-02-12  Richard Biener  <rguenther@suse.de>
12634         PR lto/56295
12635         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
12636         decls again if possible.
12638 2013-02-12  Richard Biener  <rguenther@suse.de>
12640         PR middle-end/56288
12641         * tree-ssa.c (verify_ssa_name): Fix check, move
12642         SSA_NAME_IN_FREE_LIST check up.
12644 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
12645             Steven Bosscher   <steven@gcc.gnu.org>
12647         PR rtl-optimization/56151
12648         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
12649         equal to op0 or op1, and last_insn pattern is CODE operation
12650         with MEM dest and one of the operands matches that MEM.
12652 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
12654         * doc/extend.texi: Document Function Multiversioning and "default"
12655         parameter string to target attribute.
12656         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
12657         target attribute parameter is "default".
12658         (ix86_compare_version_priority): Remove checks for target attribute.
12659         (ix86_mangle_function_version_assembler_name): Change error to sorry.
12660         Remove check for target attribute equal to NULL. Add assert.
12661         (ix86_generate_version_dispatcher_body): Change error to sorry.
12663 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
12664             Jack Howarth  <howarth@bromo.med.uc.edu>
12665             Patrick Marlier  <patrick.marlier@gmail.com>
12667         PR libitm/55693
12668         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
12669         define ENDFILE_SPEC as TM_DESTRUCTOR.
12670         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
12672 2013-02-11  Alexander Potapenko  <glider@google.com>
12673             Jack Howarth  <howarth@bromo.med.uc.edu>
12674             Jakub Jelinek  <jakub@redhat.com>
12676         PR sanitizer/55617
12677         * config/darwin.c (cdtor_record): Rename ctor_record.
12678         (sort_cdtor_records): Rename sort_ctor_records.
12679         (finalize_dtors): New routine to sort destructors by
12680         priority before use in assemble_integer.
12681         (machopic_asm_out_destructor): Use finalize_dtors if needed.
12683 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
12685         PR rtl-optimization/56275
12686         * simplify-rtx.c (avoid_constant_pool_reference): Check that
12687         offset is non-negative and less than cmode size before
12688         calling simplify_subreg.
12690 2013-02-11  Richard Biener  <rguenther@suse.de>
12692         PR tree-optimization/56264
12693         * cfgloop.h (fix_loop_structure): Adjust prototype.
12694         * loop-init.c (fix_loop_structure): Return the number of
12695         newly discovered loops.
12696         * tree-cfgcleanup.c (repair_loop_structures): When new loops
12697         are discovered, do a full loop-closed SSA rewrite.
12699 2013-02-11  Richard Biener  <rguenther@suse.de>
12701         PR tree-optimization/56273
12702         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
12703         first VRP run.
12704         (check_array_ref): Fix missing newline in dumps.
12705         (search_for_addr_array): Likewise.
12707 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
12709         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
12711 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
12713         PR target/56256
12714         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
12716 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
12718         PR rtl-optimization/56246
12719         * lra-constraints.c (simplify_operand_subreg): Try to reuse
12720         reload pseudo.
12721         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
12722         constraints are satisfied.
12724 2013-02-08  Jeff Law  <law@redhat.com>
12726         PR debug/53948
12727         * emit-rtl.c (reg_is_parm_p): New function.
12728         * regs.h (reg_is_parm_p): New prototype.
12729         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
12730         callee-clobbered registers.
12732 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
12734         PR target/56043
12735         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
12736         If there is no implicit builtin declaration, just return NULL.
12738 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
12740         * config/i386/sse.md (FMAMODEM): New mode iterator.
12741         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
12742         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
12744 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
12746         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
12747         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
12748         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
12750 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12752         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
12753         (microblaze*-*-elf): Likewise.
12754         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
12755         LINK_SPEC.
12756         * config/microblaze/microblaze-c.c: Add builtin defines for
12757         _LITTLE_ENDIAN and _BIG_ENDIAN.
12758         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
12759         add to TARGET_DEFAULT flags.
12760         Expand ASM_SPEC and LINK_SPEC.
12761         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
12762         * config/microblaze/microblaze.md: Update extendsidi2 and
12763         movdi_internal instructions to use low-order / high-order reg
12764         print_operands.
12765         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
12766         options and inversemask / mask of LITTLE_ENDIAN.
12767         * config/microblaze/t-microblaze: Expand multilib options to
12768         include mlittle-endian (le) and update exceptions patterns.
12770 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
12772         PR rtl-optimization/56195
12773         * lra-constraints.c (get_reload_reg): Don't reuse regs
12774         if they have smaller mode than requested, if they have
12775         wider mode than requested, try to return a SUBREG.
12777         PR tree-optimization/56250
12778         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
12779         if type is unsigned and code isn't MULT_EXPR.
12781 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
12783         PR tree-optimization/56064
12784         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
12785         bits according to mode.
12786         * fixed-value.h (fixed_from_double_int)
12787         (const_fixed_from_double_int): Adjust comments.
12789 2013-02-08  Richard Biener  <rguenther@suse.de>
12791         PR lto/56231
12792         * lto-streamer.h (struct data_in): Remove current_file, current_line
12793         and current_col members.
12794         * lto-streamer-out.c (lto_output_location): Stream changed bits
12795         en-block for efficiency.
12796         * lto-streamer-in.c (clear_line_info): Remove.
12797         (lto_input_location): Cache current file, line and column
12798         globally via local statics.  Read changed bits en-block.
12799         (input_function): Do not call clear_line_info.
12800         (lto_read_body): Likewise.
12801         (lto_input_toplevel_asms): Likewise.
12803 2013-02-08  Michael Matz  <matz@suse.de>
12805         PR tree-optimization/52448
12806         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
12807         (nt_call_phase): New static.
12808         (add_or_mark_expr): Only mark accesses with newer phase than any
12809         call seen.
12810         (nonfreeing_call_p): New.
12811         (nt_init_block): Update nt_call_phase, mark blocks as visited.
12812         (nt_fini_block): Keep blocks marked as visited.
12813         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
12815 2013-02-08  Richard Biener  <rguenther@suse.de>
12817         * ira.c (ira): Free broken dominator information.
12819 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
12821         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
12823 2013-02-08  Marek Polacek  <polacek@redhat.com>
12825         * cfgloop.c (verify_loop_structure): Add more checking of headers.
12827 2013-02-08  Richard Biener  <rguenther@suse.de>
12829         PR middle-end/56181
12830         * cfgloop.h (flow_loops_find): Adjust.
12831         (bb_loop_header_p): Declare.
12832         * cfgloop.c (bb_loop_header_p): New function split out from ...
12833         (flow_loops_find): ... here.  Adjust function signature,
12834         support incremental loop structure update.
12835         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
12836         * cfgloopmanip.c (fix_loop_structure): Move ...
12837         * loop-init.c (fix_loop_structure): ... here.
12838         (apply_loop_flags): Split out from ...
12839         (loop_optimizer_init): ... here.
12840         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
12841         in incremental mode, only remove dead loops here.
12843 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
12845         PR target/54222
12846         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
12847         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
12848         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
12849         (*round<mode>3.libgcc): New insns for fixed-modes.
12850         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
12851         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
12852         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
12853         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
12854         implementations.  Define to __builtin_avr_absFX,
12855         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
12856         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
12857         __builtin_avr_countlsFX, respectively.
12858         * config/avr/avr-c.c (target.h): Include it.
12859         (enum avr_builtin_id): New enum.
12860         (avr_resolve_overloaded_builtin): New static function.
12861         (avr_register_target_pragmas): Use it to set
12862         targetm.resolve_overloaded_builtin.
12863         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
12864         tree nodes used by DEF_BUILTIN.
12865         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
12866         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
12867         <AVR_BUILTIN_xxBITS>: Same.
12869 2013-02-08  Richard Biener  <rguenther@suse.de>
12871         * cfgloop.c (verify_loop_structure): Properly handle
12872         a loop exiting to another loop header.
12873         * ira-int.h (ira_loops): Remove.
12874         * ira.c (ira_loops): Remove.
12875         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
12876         (do_reload): Use loop_optimizer_finalize.
12877         * ira-build.c (create_loop_tree_nodes): Use get_loops and
12878         number_of_loops to access the loop tree.
12879         (more_one_region_p): Likewise.
12880         (finish_loop_tree_nodes): Likewise.
12881         (rebuild_regno_allocno_maps): Likewise.
12882         (mark_loops_for_removal): Likewise.
12883         (mark_all_loops_for_removal): Likewise.
12884         (remove_unnecessary_regions): Likewise.
12885         (ira_build): Likewise.
12886         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
12888 2013-02-08  Richard Biener  <rguenther@suse.de>
12890         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
12891         * ipa-pure-const.c (analyze_function): Avoid calling
12892         mark_irreducible_loops twice.
12893         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
12895 2013-02-07  David S. Miller  <davem@davemloft.net>
12897         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
12898         on 'reg'.
12899         * var-tracking.c (vt_add_function_parameter): Test the presence of
12900         HAVE_window_save properly and do not remap argument registers when
12901         we have a leaf function.
12903 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
12905         PR bootstrap/56227
12906         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
12907         instead of "ll".
12908         * config/i386/i386.c (ix86_print_operand): Ditto.
12910 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
12912         * lra-constraints.c (process_alt_operands): Fix recently added comment.
12914 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
12916         PR rtl-optimization/56225
12917         * lra-constraints.c (process_alt_operands): Check that reload hard
12918         reg can hold value for strict_low_part.
12920 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
12922         PR debug/56154
12923         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
12924         dwarf2out_end_function.
12925         (in_first_function_p, maybe_at_text_label_p,
12926         first_loclabel_num_not_at_text_label): New variables.
12927         (dwarf2out_var_location): In the first function find out
12928         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
12929         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
12930         functions.
12932 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
12934         PR rtl-optimization/56178
12935         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
12936         SUBREG of a register.  Tidy up related block of code.
12937         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
12938         note if the source is a register or a SUBREG of a register.
12940 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
12942         PR target/56228
12943         * config/rs6000/rs6000.md (ptrm): New mode attr.
12944         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
12945         call_value_indirect_aix<pttrsize>,
12946         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
12947         m in constraints.
12949 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12951         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
12952         if -bnortl. Convert to strcmp and strncmp.
12954 2013-02-07  Alan Modra  <amodra@gmail.com>
12956         PR target/54009
12957         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
12958         addresses won't wrap when offsetting.
12959         (rs6000_secondary_reload): Provide secondary reloads needed for
12960         wrapping LO_SUM addresses.
12962 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
12964         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
12965         MACH, just __MACH__.
12967 2013-02-06  Richard Biener  <rguenther@suse.de>
12969         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
12970         instead of calling fix_loop_structure.
12972 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
12974         PR middle-end/56217
12975         * omp-low.c (use_pointer_for_field): Return false if
12976         lower_send_shared_vars doesn't generate any copy-out code.
12978 2013-02-06  Tom de Vries  <tom@codesourcery.com>
12980         PR rtl-optimization/56131
12981         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
12982         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
12983         of the label is NULL.  Add comment.
12985 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
12987         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
12989         PR sanitizer/55374
12990         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
12991         (STATIC_LIBTSAN_LIBS): Likewise.
12992         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
12993         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
12994         is defined, don't add anything else beyond that.
12995         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
12996         (LINK_COMMAND_SPEC): Use them.
12998         PR tree-optimization/56205
12999         * tree-stdarg.c (check_all_va_list_escapes): Return true if
13000         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
13001         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
13003 2013-02-05  Richard Biener  <rguenther@suse.de>
13005         PR tree-optimization/53342
13006         PR tree-optimization/53185
13007         * tree-vectorizer.h (vect_check_strided_load): Remove.
13008         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
13009         not disallow peeling for vectorized strided loads.
13010         (vect_check_strided_load): Make static and simplify.
13011         (vect_analyze_data_refs): Adjust.
13012         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
13013         correctly when vectorizing strided loads.
13015 2013-02-05  Richard Biener  <rguenther@suse.de>
13017         * doc/install.texi: Refer to ISL, not PPL.
13019 2013-02-05  Jan Hubicka  <jh@suse.cz>
13021         PR tree-optimization/55789
13022         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
13024 2013-02-05  Jan Hubicka  <jh@suse.cz>
13026         PR tree-optimization/55789
13027         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
13028         the dead call anyway.
13030 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
13032         PR sanitizer/55374
13033         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
13035 2013-02-04  Alexander Potapenko  <glider@google.com>
13036             Jack Howarth  <howarth@bromo.med.uc.edu>
13037             Jakub Jelinek  <jakub@redhat.com>
13039         PR sanitizer/55617
13040         * config/darwin.c (sort_ctor_records): Stabilized qsort
13041         on constructor priority by using original position.
13042         (finalize_ctors): New routine to sort constructors by
13043         priority before use in assemble_integer.
13044         (machopic_asm_out_constructor): Use finalize_ctors if needed.
13046 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
13048         PR libstdc++/54314
13049         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
13050         about visibility on artificial decls.
13051         * config/sol2.c (solaris_assemble_visibility): Likewise.
13053 2013-02-04  Kai Tietz  <ktietz@redhat.com>
13055         PR target/56186
13056         * config/i386/i386.c (function_value_ms_64): Add additional valtype
13057         argument and improve checking of return-argument types for 16-byte
13058         modes.
13059         (ix86_function_value_1): Add additional valtype argument on call
13060         of function_value_64.
13061         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
13062         handling infunction_value_64 function.
13064 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
13066         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
13068 2013-02-04  Richard Biener  <rguenther@suse.de>
13070         PR tree-optimization/56188
13071         * tree-ssa-structalias.c (label_visit): Consider case with
13072         initially non-empty points-to set.
13073         (perform_var_substitution): Dump node mapping and clean up.
13075 2013-02-04  Richard Guenther  <rguenther@suse.de>
13077         PR lto/56168
13078         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
13079         node prevail as last resort.
13080         (lto_symtab_merge_decls): Remove guard on LTRANS here.
13081         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
13083 2013-02-04  Richard Biener  <rguenther@suse.de>
13085         PR tree-optimization/56113
13086         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
13087         Merge into ...
13088         (equiv_class_lookup_or_add): ... this.
13089         (label_visit): Adjust and fix error in previous patch.
13090         (perform_var_substitution): Adjust.
13092 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
13094         * config/sh/divtab.c: Fix formatting and comments throughout the file.
13095         * config/sh/sh4-300.md: Likewise.
13096         * config/sh/sh4a.md: Likewise.
13097         * config/sh/constraints.md: Likewise.
13098         * config/sh/sh.md: Likewise.
13099         * config/sh/netbsd-elf.h: Likewise.
13100         * config/sh/predicates.md: Likewise.
13101         * config/sh/sh-protos.h: Likewise.
13102         * config/sh/ushmedia.h: Likewise.
13103         * config/sh/linux.h: Likewise.
13104         * config/sh/sh.c: Likewise.
13105         * config/sh/superh.h: Likewise.
13106         * config/sh/elf.h: Likewise.
13107         * config/sh/sh4.md: Likewise.
13108         * config/sh/sh.h: Likewise.
13110 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13112         * config/pa/constraints.md: Adjust unused letters.  Change "T"
13113         constraint to match_test floating_point_store_memory_operand().
13114         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
13115         (base14_operand): New.
13116         (floating_point_store_memory_operand): New.
13117         (integer_store_memory_operand): Revise to use base14_operand and
13118         reg_plus_base_memory_operand.
13119         (move_dest_operand): Allow symbolic_memory_operands.
13120         (symbolic_memory_operand): Check for LO_SOM.
13121         (symbolic_operand): Change default case to break.
13122         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
13123         CONST_DOUBLE values to be reloaded by putting them into memory when
13124         the destination is a floating point register.
13125         (movdf): Remove code to handle CONST_DOUBLE.
13126         (movsf): Likewise.
13127         (reload_indf_r1): New.
13128         (reload_insf_r1): New.
13129         Consistently use "Q" and "T" constraints with integer and floating
13130         point move instructions, respectively.
13131         (movdi): Remove FAIL.
13132         Change predicate for source operand unamed DImode move from
13133         general_operand to move_src_operand.
13134         (umulsidi3): Change predicate for destination operand to
13135         register_operand.
13136         Likewise for similar unamed patterns.
13137         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
13138         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
13139         (hppa_legitimize_address): Simplify mask calculation.
13140         (pa_emit_move_sequence): Revised handling of secondary reloads from
13141         REG+D addresses for floating point loads and stores.  Directly handle
13142         loading CONST0_RTX (mode) to a floating point register.
13143         (pa_secondary_reload): Handle reloading DF and SFmode constant values
13144         to floating point registers.  Don't restrict secondary reloads to
13145         floating point registers to integer modes.  Revise some comments and
13146         cleanup some code.
13147         (TARGET_LEGITIMATE_ADDRESS_P): Define.
13148         (pa_legitimate_address_p): New.
13149         (pa_legitimize_reload_address): New.
13150         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
13151         (STRICT_REG_OK_FOR_BASE_P): New.
13152         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
13153         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
13155 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
13156             Andrew Dixie  <andrewd@gentrack.com>
13158         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
13159         flag set.
13161 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
13163         * expmed.c (extract_bit_field_1): Pass the full width of the
13164         structure to get_best_reg_extraction_insn.
13166 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
13168         PR target/54601
13169         * configure.ac (use_cxa_atexit): Add AIX.
13170         * configure: Regenerate.
13172         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
13174 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
13176         PR debug/54793
13177         * final.c (need_profile_function): New variable.
13178         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
13179         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
13180         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
13181         notes, targetm.asm_out.function_prologue doesn't emit anything,
13182         HAVE_prologue and profiler should be emitted before prologue,
13183         set need_profile_function instead of emitting it.
13184         (final_scan_insn): If need_profile_function, emit
13185         profile_function on the first NOTE_INSN_BASIC_BLOCK or
13186         NOTE_INSN_FUNCTION_BEG note.
13188 2013-02-01  Richard Henderson  <rth@redhat.com>
13190         * config/rs6000/rs6000.md (smulditi3): New.
13191         (umulditi3): New.
13193         * config/alpha/alpha.md (umulditi3): New.
13195 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
13197         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
13198         (ASM_OUTPUT_ALIGNED_LOCAL): New.
13200 2013-02-01  Richard Biener  <rguenther@suse.de>
13202         PR tree-optimization/56113
13203         * tree-ssa-structalias.c (label_visit): Reduce work for
13204         single-predecessor nodes.
13206 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
13208         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
13209         range isn't testing for zero.
13211 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
13213         PR middle-end/56113
13214         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
13216 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
13217             Nick Clifton  <nickc@redhat.com>
13219         * config/v850/constraints.md (Q): Define as a memory constraint.
13220         * config/v850/predicates.md (label_ref_operand): New predicate.
13221         (e3v5_shift_operand): New predicate.
13222         (ior_operator): New predicate.
13223         * config/v850/t-v850: Add e3v5 multilib.
13224         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
13225         (v850_gen_movdi): Prototype.
13226         * config/v850/v850.c: Add support for e3v5 architecture.
13227         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
13228         TARGET_V850E_UP.
13229         (construct_save_jarl): Add e3v5 long JARL support.
13230         (v850_adjust_insn_length): New function.  Adjust length of call
13231         insns when using e3v5 instructions.
13232         (v850_gen_movdi): New function: Generate instructions to move a
13233         DImode value.
13234         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
13235         (CPP_SPEC): Define __v850e3v5__ as appropriate.
13236         (TARGET_USE_FPU): Enable for e3v5.
13237         (CONST_OK_FOR_W): New macro.
13238         (ADJUST_INSN_LENGTH): Define.
13239         * config/v850/v850.md (UNSPEC_LOOP): Define.
13240         (attr cpu): Add v850e3v5.
13241         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
13242         (movdi): New pattern.
13243         (movdi_internal): New pattern.
13244         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
13245         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
13246         (cstoresf4): Likewise.
13247         (cstoredf4): Likewise.
13248         (insv): New pattern.
13249         (rotlso3_a): New pattern.
13250         (rotlsi3_b): New pattern
13251         (rotlsi3_v850e3v5): New pattern.
13252         (doloop_begin): New pattern.
13253         (fix_loop_counter): New pattern.
13254         (doloop_end): New pattern.
13255         (branch_normal): Add e3v5 long branch support.
13256         (branch_invert): Likewise.
13257         (branch_z_normal): Likewise.
13258         (branch_z_invert): Likewise.
13259         (branch_nz_normal): Likewise.
13260         (branch_nz_invert): Likewise.
13261         (call_internal_short): Add e3v5 register-indirect JARL support.
13262         (call_internal_long): Likewise.
13263         (call_value_internal_short): Likewise.
13264         (call_value_internal_long): Likewise.
13265         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
13266         (mloop): New option.
13267         * config.gcc: Add support for configuring v840e3v5 target.
13268         * doc/invoke.texi: Document new v850 specific command line options.
13270 2013-01-31  Paul Koning  <ni1d@arrl.net>
13272         PR debug/55059
13273         PR debug/54508
13274         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
13275         children if parent is a class.
13276         (prune_unused_types_prune): Don't add DW_AT_declaration.
13278 2013-01-31  Richard Biener  <rguenther@suse.de>
13280         PR tree-optimization/56157
13281         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
13282         match up operand with SLP child.
13284 2013-01-31  Jason Merrill  <jason@redhat.com>
13286         PR debug/54410
13287         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
13288         parameters the first time.
13289         (gen_scheduled_generic_parms_dies): Check completeness here.
13291 2013-01-31  Richard Biener  <rguenther@suse.de>
13293         PR middle-end/53073
13294         * common.opt (faggressive-loop-optimizations): New flag,
13295         enabled by default.
13296         * doc/invoke.texi (faggressive-loop-optimizations): Document.
13297         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
13298         infer_loop_bounds_from_undefined by it.
13300 2013-01-31  Richard Biener  <rguenther@suse.de>
13302         PR tree-optimization/56150
13303         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
13304         visit virtual operands.
13305         (find_uses_to_rename_bb): Likewise.
13307 2013-01-31  Richard Biener  <rguenther@suse.de>
13309         PR tree-optimization/56150
13310         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
13311         mixed store non-store stmts.
13313 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
13315         PR sanitizer/55374
13316         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
13317         LIBASAN_EARLY_SPEC is defined.
13318         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
13319         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
13320         before %o.
13321         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
13323         PR c++/55742
13324         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
13325         invalid args instead of ICEing on it.
13326         (ix86_valid_target_attribute_tree): Return error_mark_node if
13327         ix86_valid_target_attribute_inner_p failed.
13328         (ix86_valid_target_attribute_p): Return false only if
13329         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
13330         target("default") attribute.
13331         (sorted_attr_string): Change argument from const char * to tree,
13332         merge in all target attribute arguments rather than just one.
13333         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
13334         instead of free.  Avoid using strcat.
13335         (ix86_mangle_function_version_assembler_name): Mangle
13336         target("default") as if no target attribute is present.  Adjust
13337         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
13338         instead of xmalloc and XDELETEVEC instead of free.
13339         (ix86_function_versions): Don't return true if one of the decls
13340         doesn't have target attribute.  If they don't and one of the decls
13341         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
13342         sorted_attr_string caller.  Use XDELETEVEC instead of free.
13343         (ix86_supports_function_versions): Remove.
13344         (make_name): Fix up formatting.
13345         (make_dispatcher_decl): Remove resolver_name and its initialization.
13346         Avoid leaking memory.
13347         (is_function_default_version): Return true if there is
13348         target("default") attribute rather than no target attribute at all.
13349         (make_resolver_func): Avoid leaking memory.
13350         (ix86_generate_version_dispatcher_body): Likewise.
13351         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
13352         * target.def (supports_function_versions): Remove.
13353         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
13354         * doc/tm.texi: Regenerated.
13356 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
13358         PR rtl-optimization/56144
13359         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
13360         for values with side effects.
13362 2013-01-30  Richard Biener  <rguenther@suse.de>
13364         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
13365         (sparseset_pop): Likewise.
13366         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
13367         to be able to use quick_push in the worker loop.
13369 2013-01-30  Marek Polacek  <polacek@redhat.com>
13371         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
13373 2013-01-30  Richard Biener  <rguenther@suse.de>
13375         PR lto/56147
13376         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
13378 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
13380         PR tree-optimization/56064
13381         * fixed-value.c (fixed_from_double_int): New function.
13382         * fixed-value.h (fixed_from_double_int): New prototype.
13383         (const_fixed_from_double_int): New static inline function.
13384         * fold-const.c (native_interpret_fixed): New static function.
13385         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
13386         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
13387         (native_encode_fixed): New static function.
13388         (native_encode_expr) <FIXED_CST>: Use it.
13389         (native_interpret_int): Move double_int worker code to...
13390         * double-int.c (double_int::from_buffer): ...this new static method.
13391         * double-int.h (double_int::from_buffer): Prototype it.
13393 2013-01-30  Richard Biener  <rguenther@suse.de>
13395         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
13396         New pointer-map and obstack.
13397         (init_alias_vars): Allocate pointer-map and obstack.
13398         (delete_points_to_sets): Free them.
13399         (find_what_var_points_to): Cache result.
13400         (find_what_p_points_to): Adjust for changed interface of
13401         find_what_var_points_to.
13402         (compute_points_to_sets): Likewise.
13403         (ipa_pta_execute): Likewise.
13405 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13407         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
13408         * configure: Regenerate.
13409         * config.in: Regenerate.
13410         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
13411         #nobits/#progbits if supported.
13413 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
13415         PR target/56121
13416         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
13417         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
13418         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
13420 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
13422         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
13423         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
13425 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
13427         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
13428         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
13430 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
13432         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
13433         declaration.
13434         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
13435         * config/arm/cortex-a7.md: New bypasses using
13436         arm_mac_accumulator_is_result.
13438 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
13440         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
13441         (cortex_a7_neon_mla): Likewise.
13442         (cortex_a7_fpfmad): New reservation.
13443         (cortex_a7_fpmacs): Use ffmas and update required units.
13444         (cortex_a7_fpmuld): Update required units and latency.
13445         (cortex_a7_fpmacd): Likewise.
13446         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
13447         (cortex_a7_neon). Likewise.
13448         (bypass) Update participating units.
13450 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
13452         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
13453         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
13454         from fmac to ffma.
13455         * config/arm/vfp11.md (vfp_farith): Use ffmas.
13456         (vfp_fmul): Use ffmad.
13457         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
13458         (cortex_r4_fmacd): Use ffmad.
13459         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
13460         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
13461         (cortex_a9_fmacd): Use ffmad.
13462         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
13463         (cortex_a8_vfp_macd): Use ffmad.
13464         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
13465         (cortex_a5_fpmacd): Use ffmad.
13466         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
13467         (cortex_a15_vfp_macd): Use ffmad.
13468         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
13470 2013-01-29  Jason Merrill  <jason@redhat.com>
13472         PR libstdc++/54314
13473         * varasm.c (default_assemble_visibility): Don't warn about
13474         visibility on artificial decls.
13476 2013-01-29  Richard Biener  <rguenther@suse.de>
13478         PR tree-optimization/56113
13479         * tree-ssa-structalias.c (equiv_class_lookup): Also return
13480         the bitmap leader.
13481         (label_visit): Free duplicate bitmaps and record the leader instead.
13482         (perform_var_substitution): Adjust.
13484 2013-01-29  Richard Biener  <rguenther@suse.de>
13486         PR tree-optimization/55270
13487         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
13488         the CFG, schedule loops for fixup.
13490 2013-01-29  Nick Clifton  <nickc@redhat.com>
13492         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
13493         SP_REG.
13495 2013-01-28  Leif Ekblad  <leif@rdos.net>
13497         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
13498         * config/i386/i386.h (TARGET_RDOS): New macro.
13499         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
13500         * config/i386/i386.c (ix86_option_override_internal): For 64bit
13501         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
13502         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
13503         DEFAULT_LARGE_SECTION_THRESHOLD.
13504         * config/i386/i386.md (R14_REG, R15_REG): New constants.
13505         * config/i386/rdos.h: New file.
13506         * config/i386/rdos64.h: New file.
13508 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
13510         PR other/54814
13511         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
13512         TEST_HARD_REG_BIT.
13514 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
13516         PR rtl-optimization/56117
13517         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
13518         call cselib_lookup_from_insn on the MEM before calling
13519         add_insn_mem_dependence.
13521 2013-01-28  Richard Biener  <rguenther@suse.de>
13523         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
13524         to a stmt that didn't have one.
13525         (copy_phis_for_bb): Likewise for PHI arguments.
13526         (copy_debug_stmt): Likewise for debug stmts.
13528 2013-01-28  Richard Biener  <rguenther@suse.de>
13530         PR tree-optimization/56034
13531         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
13532         (partition_builtin_p): Adjust.
13533         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
13534         it is the last partition.
13535         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
13536         up the vertex for the definition.
13537         (classify_partition): Classify whether a partition is a
13538         PKIND_REDUCTION, thus has uses outside of the loop.
13539         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
13540         Merge all PKIND_REDUCTION partitions into the last partition.
13541         (tree_loop_distribution): Seed partitions from reductions as well.
13543 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
13545         PR tree-optimization/56125
13546         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
13547         pow(x,c) into sqrt(x) * powi(x, n/2) or
13548         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
13549         optimizing for size.
13550         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
13551         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
13552         integer.
13554         PR tree-optimization/56094
13555         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
13556         to UNKNOWN_LOCATION while gimplifying expr.
13558 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
13560         PR target/56114
13561         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
13562         operand 0 in movabs insn template for -masm=intel asm alternative.
13563         (*movabs<mode>_2): Ditto for operand 1.
13565 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
13567         PR target/54663
13568         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
13569         of microblaze-c.o
13571 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
13573         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
13574         tm_file.
13576 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13578         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
13579         Undef to avoid warning.
13581 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13583         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
13584         * configure: Regenerate.
13586 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
13588         PR tree-optimization/56098
13589         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
13590         for stmts with volatile ops.
13591         (cond_store_replacement): Don't optimize if assign has volatile ops.
13592         (cond_if_else_store_replacement_1): Don't optimize if either
13593         then_assign or else_assign have volatile ops.
13594         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
13595         volatile ops.
13597 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
13599         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
13601 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
13603         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
13604         missing ':' in asm example.
13606 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
13608         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
13609         entries into lane and laneq entries.
13610         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
13611         Remove AdvSIMD scalar modes.
13612         (aarch64_sq<r>dmulh_laneq<mode>): New.
13613         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
13614         modes.
13615         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
13616         builtin implementations to relfect changes in RTL in aarch64-simd.md.
13617         * config/aarch64/iterators.md (VCOND): New.
13618         (VCONQ): New.
13620 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
13622         PR target/54222
13623         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
13624         Add NULL LIBNAME argument to existing definitions.
13625         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
13626         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
13627         * config/avr/avr.c (DEF_BUILTIN): Same.
13628         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
13629         (avr_expand_builtin): Expand to a vanilla call if a libgcc
13630         implementation is available (DECL_ASSEMBLER_NAME is set).
13631         (avr_fold_absfx): New static function.
13632         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
13633         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
13634         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
13635         AVR_BUILTIN_ABSLLK.
13636         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
13637         (abshk, absk, abslk, absllk): Provide as static inline functions.
13639 2013-01-25  Marek Polacek  <polacek@redhat.com>
13641         PR tree-optimization/56035
13642         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
13644 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
13646         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
13647         (*movtf_internal_rex64): Add (!o,C) alternative
13648         (*movxf_internal_rex64): Ditto.
13649         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
13651 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
13653         * doc/invoke.texi: fix typo.
13654         * doc/objc.texi: fix typo.
13656 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
13658         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
13659         for the first two alternatives.
13661 2013-01-24  Diego Novillo  <dnovillo@google.com>
13663         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
13664         (ggc-zone.o): Remove.
13665         * configure.ac: Remove option --with-gc.
13666         * configure: Re-generate.
13667         * doc/install.texi: Remove documentation for --with-gc.
13668         * gengtype.c (write_enum_defn): Remove.  Update all users.
13669         (write_Types_process_field): Remove generation of gt_e_* argument.
13670         (output_type_enum): Remove.  Update all users.
13671         (write_enum_defn): Remove.  Update all users.
13672         (enum alloc_zone): Remove.  Update all users.
13673         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
13674         * ggc-common.c (ggc_splay_alloc): Remove first argument.
13675         Update all callers.
13676         (struct ptr_data): Remove field TYPE.  Update all users.
13677         (gt_pch_note_object): Remove argument TYPE.  Update all users.
13678         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
13679         Update all users.
13680         * ggc-none.c (ggc_alloc_typed_stat): Remove.
13681         (struct alloc_zone): Remove.
13682         (ggc_internal_alloc_zone_stat): Remove.
13683         (ggc_internal_cleared_alloc_zone_stat): Remove.
13684         * ggc-page.c (ggc_alloc_typed_stat): Remove.
13685         (ggc_pch_count_object): Remove last argument.  Update all users.
13686         (ggc_pch_alloc_object): Remove last argument.  Update all users.
13687         (struct alloc_zone): Remove.
13688         * ggc-zone.c: Remove.
13689         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
13690         (struct alloc_zone): Remove.
13691         (ggc_alloc_typed_stat): Remove.
13692         (ggc_alloc_typed): Remove.
13693         (ggc_splay_alloc): Remove first argument.
13694         (rtl_zone): Remove.  Update all users.
13695         (tree_zone): Remove.  Update all users.
13696         (tree_id_zone): Remove.  Update all users.
13697         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
13698         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
13699         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
13700         * tree-ssanames.c: Remove references to zone allocator in comments.
13702 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
13704         * config/avr/avr.c (avr_out_fract): Make register numbers that
13705         might be outside of source operand signed.
13707 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
13709         * config/i386/constraints.md (Yf): New constraint.
13710         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
13711         of f constraint to conditionaly disable x87 register preferences.
13712         (*movdf_internal): Ditto.
13713         (*movsf_internal): Ditto.
13715 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
13717         PR inline-asm/55934
13718         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
13719         that have operands with impossible constraints.
13720         Add a FIXME for a speed-up opportunity.
13721         * lra-constraints.c (process_alt_operands): Verify that a class
13722         selected from constraints on asms is valid for the operand mode.
13723         (curr_insn_transform): Remove incorrect comment.
13725 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
13727         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
13728         TOC operand is a valid symbol ref in the constant pool.
13730 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
13732         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
13734 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
13736         PR target/54222
13737         * config/avr/stdfix.h: New file.
13738         * t-avr (stdfix-gcc.h): New rule to build it.
13739         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
13741 2013-01-23  Kostya Serebryany  <kcc@google.com>
13743         * config/darwin.h: remove dependency on
13744         CoreFoundation (asan on Mac OS).
13746 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
13748         PR target/49069
13749         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
13750         instead of cmpdi_operand for first comparison operand.
13751         Don't assert that comparison operands aren't both constants.
13753 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
13755         * doc/install.texi (Downloading the Source): Update references to
13756         downloading separate components.
13758 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
13760         * doc/extend.texi (__int128): Improve grammar.
13762 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
13764         PR target/56028
13765         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
13766         alternative to (o,r).
13767         (*movdi_internal_rex64): Remove (!o,n) alternative.
13768         (DImode immediate->memory splitter): Remove.
13769         (DImode immediate->memory peephole2): Remove.
13770         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
13771         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
13772         alternative to (!o,*r).
13773         (*movtf_internal_sse): New pattern.
13774         (*movxf_internal_rex64): New pattern.
13775         (*movxf_internal): Disable for TARGET_64BIT.
13776         (*movdf_internal_rex64): Remove (!o,F) alternative.
13778 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
13780         PR middle-end/56074
13781         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
13782         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
13783         * tree-vect-loop-manip.c (find_loop_location): Also ignore
13784         stmt locations where LOCATION_LOCUS of the stmt location is
13785         UNKNOWN_LOCATION or BUILTINS_LOCATION.
13787         PR target/55686
13788         * config/i386/i386.md (UNSPEC_STOS): New.
13789         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
13790         *strsetqi_1): Add UNSPEC_STOS.
13792 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
13794         PR c++/56067
13795         * doc/invoke.texi: Remove left over -Wsynth example.
13797 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
13799         PR tree-optimization/56051
13800         * fold-const.c (fold_binary_loc): Don't fold
13801         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
13802         a narrowing conversion, or widening conversion from signed
13803         to unsigned.
13805 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
13807         PR rtl-optimization/56023
13808         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
13809         dependent on debug instruction.
13811 2013-01-21  Martin Jambor  <mjambor@suse.cz>
13813         PR middle-end/56022
13814         * function.c (allocate_struct_function): Call
13815         invoke_set_current_function_hook earlier.
13817 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
13819         * reload1.c (init_reload): Only initialize reload_obstack
13820         during the first call.
13822 2013-01-21  Marek Polacek  <polacek@redhat.com>
13824         * cfgloop.c (verify_loop_structure): Fix up grammar.
13826 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
13828         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
13829         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
13831 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13833         PR target/56058
13834         * config/arm/marvell-pj4.md: Update copyright year.
13835         Fix up use of alu to alu_reg and simple_alu_imm.
13837 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
13839         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
13841 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
13843         PR target/55433
13844         * lra-constraints.c (curr_insn_transform): Don't reuse original
13845         insn for secondary memory move when memory mode should be different.
13847 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13849         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
13850         atomic_storedi_1): New patterns.
13852 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13854         btver2 pipeline descriptions.
13855         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
13856         descriptions.
13857         * config/i386/i386.md (btver2_decode): New type attributes.
13858         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
13859         type attributes.
13860         * config/i386/btver2.md: New file describing btver2 pipelines.
13862 2013-01-19  Andrew Pinski  <apinski@cavium.com>
13864         PR tree-optimization/52631
13865         * tree-ssa-sccvn (visit_use): Before looking up the original
13866         statement, try looking up the simplified expression.
13868 2013-01-19  Anthony Green  <green@moxielogic.com>
13870         * config/moxie/moxie.c (moxie_expand_prologue): Set
13871         current_function_static_stack_size.
13873 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
13875         PR tree-optimization/56029
13876         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
13877         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
13879 2013-01-18  Sharad Singhai  <singhai@google.com>
13881         PR tree-optimization/55995
13882         * dumpfile.c (dump_loc): Print location only if available.
13883         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
13885 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
13887         PR target/55433
13888         * lra-constraints.c (curr_insn_transform): Reuse original insn for
13889         secondary memory move.
13890         (inherit_reload_reg): Use rclass instead of cl for
13891         check_secondary_memory_needed_p.
13893 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
13895         PR middle-end/56015
13896         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
13897         the case where writing real complex part of target modifies op1.
13899 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
13901         * config/aarch64/aarch64-simd.md
13902         (aarch64_vcond_internal<mode>): Handle unordered cases.
13903         * config/aarch64/iterators.md (v_cmp_result): New.
13905 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
13906             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13908         * config/arm/marvell-pj4.md: New file.
13909         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
13910         * config/arm/arm.md (generic_sched): Add marvell_pj4.
13911         (generic_vfp): Likewise.
13912         * config/arm/arm-cores.def: Add marvell-pj4.
13913         * config/arm/arm-tune.md: Regenerate.
13914         * config/arm/arm-tables.opt: Regenerate.
13915         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
13916         * doc/invoke.texi: Document marvell-pj4.
13918 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
13920         * config/aarch64/arm_neon.h: Map scalar types to standard types.
13922 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
13924         PR debug/54114
13925         PR debug/54402
13926         PR debug/49888
13927         * var-tracking.c (negative_power_of_two_p): New.
13928         (global_get_addr_cache, local_get_addr_cache): New.
13929         (get_addr_from_global_cache, get_addr_from_local_cache): New.
13930         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
13931         heading comment.
13932         (vt_stack_offset_p): Remove.
13933         (vt_canon_true_dep): Always canonicalize loc's address.
13934         (clobber_overlapping_mems): Make sure we have a MEM.
13935         (local_get_addr_clear_given_value): New.
13936         (val_reset): Clear local cached entries.
13937         (compute_bb_dataflow): Create and release the local cache.
13938         Disable duplicate MEMs clobbering.
13939         (emit_notes_in_bb): Clobber MEMs likewise.
13940         (vt_emit_notes): Create and release the local cache.
13941         (vt_initialize, vt_finalize): Create and release the global
13942         cache, respectively.
13943         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
13945 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
13947         PR libmudflap/53359
13948         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
13949         not found in the symtab.
13951 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
13953         PR debug/56006
13954         PR rtl-optimization/55547
13955         PR rtl-optimization/53827
13956         PR debug/53671
13957         PR debug/49888
13958         * alias.c (offset_overlap_p): New, factored out of...
13959         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
13960         the conservative special case for symbolic constants.  Don't
13961         adjust zero sizes on alignment.
13963 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
13965         PR rtl-optimization/52573
13966         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
13967         REG_UNUSED for the same register.
13969 2013-01-17  Richard Biener  <rguenther@suse.de>
13970             Marek Polacek  <polacek@redhat.com>
13972         PR rtl-optimization/55833
13973         * loop-unswitch.c (unswitch_loops): Move loop verification...
13974         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
13975         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
13976         Set it to true when we're removing a loop from hierarchy tree in
13977         an irreducible region.
13978         (fix_bb_placements): Adjust caller.
13979         (fix_loop_placements): Likewise.
13981 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
13983         * config/avr/builtins.def (DEF_BUILTIN): Factor out
13984         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
13985         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
13986         Remove ID.  Adjust comments.
13987         * config/avr/avr-c.c (avr_builtin_name): Remove.
13988         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
13989         * config/avr/avr.c (avr_tolower): New static function.
13990         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
13991         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
13992         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
13993         default expansion.
13995 2013-01-17  Jan Hubicka  <jh@suse.cz>
13997         PR tree-optimization/55273
13998         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
14000 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
14002         PR target/55981
14003         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
14004         store through atomic_store<mode>_1.
14005         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
14007 2013-01-17  Martin Jambor  <mjambor@suse.cz>
14009         PR tree-optimizations/55264
14010         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
14011         for virtual methods.
14012         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
14013         virtual methods before inlining is over.
14014         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
14015         virtual functions.
14016         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
14017         non-virtual.
14019 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
14021         PR rtl-optimization/56005
14022         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
14023         pending reads for prefetch.
14025 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
14027         * config/aarch64/aarch64.md
14028         (*cstoresi_neg_uxtw): New pattern.
14029         (*cmovsi_insn_uxtw): New pattern.
14030         (*<optab>si3_uxtw): New pattern.
14031         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
14032         (*<optab>si3_insn_uxtw): New pattern.
14033         (*bswapsi2_uxtw): New pattern.
14035 2013-01-16  Richard Biener  <rguenther@suse.de>
14037         * tree-inline.c (tree_function_versioning): Remove set but
14038         never used variable.
14040 2013-01-16  Richard Biener  <rguenther@suse.de>
14042         PR tree-optimization/55964
14043         * tree-flow.h (rename_variables_in_loop): Remove.
14044         (rename_variables_in_bb): Likewise.
14045         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
14046         (copy_loop_before): Adjust and delete update-ssa status.
14047         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
14048         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
14049         (rename_variables_in_loop): Remove.
14050         (slpeel_update_phis_for_duplicate_loop): Likewise.
14051         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
14052         use available cfg machinery instead of duplicating it.
14053         Update PHI nodes and perform poor-mans SSA update here.
14054         (slpeel_tree_peel_loop_to_edge): Adjust.
14056 2013-01-16  Richard Biener  <rguenther@suse.de>
14058         PR tree-optimization/54767
14059         PR tree-optimization/53465
14060         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
14061         (vrp_visit_phi_node): For PHI arguments coming via backedges
14062         drop all symbolical range information.
14063         (execute_vrp): Compute backedges.
14065 2013-01-16  Richard Biener  <rguenther@suse.de>
14067         * doc/install.texi: Update CLooG and ISL requirements to
14068         0.18.0 and 0.11.1.
14070 2013-01-16  Christian Bruel  <christian.bruel@st.com>
14072         PR target/55301
14073         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
14074         (broken_move): Handle UNSPECV_SP_SWITCH_B.
14075         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
14077 2013-01-16  DJ Delorie  <dj@redhat.com>
14079         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
14080         (UNSPECV_SP_SWITCH_E): New.
14081         (sp_switch_1): Change to an unspec.
14082         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
14083         replace $r15.
14085 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
14087         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
14088         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
14089         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
14090         (expand_mem_thread_fence): Ditto.
14091         (expand_mem_signal_fence): Ditto.
14092         (expand_atomic_load): Ditto.
14093         (expand_atomic_store): Ditto.
14095 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
14097         PR rtl-optimization/55547
14098         PR rtl-optimization/53827
14099         PR debug/53671
14100         PR debug/49888
14101         * alias.c (memrefs_conflict_p): Set sizes to negative after
14102         AND adjustments.
14104 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
14106         PR target/55940
14107         * function.c (thread_prologue_and_epilogue_insns): Always
14108         add crtl->drap_reg to set_up_by_prologue.set, even if
14109         stack_realign_drap is false.
14111 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14113         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
14114         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
14115         *call): Fix indention.
14117 2013-01-15  Tom de Vries  <tom@codesourcery.com>
14119         PR target/55876
14120         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
14121         Update comment.
14123 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
14125         PR rtl-optimization/55153
14126         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
14128 2013-01-15  Martin Jambor  <mjambor@suse.cz>
14130         PR tree-optimization/55920
14131         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
14132         accesses as grp_to_be_debug_replaced.
14134 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
14136         PR tree-optimization/55920
14137         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
14138         there is non-useless type conversion needed from debug rhs to lhs,
14139         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
14141 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
14142             Mikael Pettersson  <mikpe@it.uu.se>
14144         PR target/43961
14145         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
14146         Thumb.
14147         (ASM_OUTPUT_CASE_LABEL): Remove.
14148         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
14149         * final.c (shorten_branches): Update alignment of labels before
14150         jump tables if CASE_VECTOR_SHORTEN_MODE.
14152 2013-01-15  Richard Biener  <rguenther@suse.de>
14154         PR bootstrap/55961
14155         * system.h: Do not include gmp.h for building host tools.
14157 2013-01-15  Richard Biener  <rguenther@suse.de>
14159         PR middle-end/55882
14160         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
14161         account for bitpos when computing alignment.
14163 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
14165         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
14166         (ix86_target_macros_internal): Likewise.
14168         * config/i386/i386.c (m_CORE2I7): Removed.
14169         (m_CORE_HASWELL): New macro.
14170         (m_CORE_ALL): Likewise.
14171         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
14172         (initial_ix86_arch_features): Likewise.
14173         (processor_target_table): Initializations for Core avx2.
14174         (cpu_names): New names "core-avx2".
14175         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
14176         PROCESSOR_CORE_HASWELL.
14177         (ix86_issue_rate): New case.
14178         (ia32_multipass_dfa_lookahead): Likewise.
14179         (ix86_sched_init_global): Likewise.
14181         * config/i386/i386.h (TARGET_HASWELL): New macro.
14182         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
14183         (processor_type): New PROCESSOR_HASWELL.
14185 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
14187         PR tree-optimization/55955
14188         * tree-vect-loop.c (vectorizable_reduction): Give up early on
14189         *SHIFT_EXPR and *ROTATE_EXPR codes.
14191         PR tree-optimization/48766
14192         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
14193         -ftrapv disable -fwrapv.
14195 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
14197         PR target/55974
14198         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
14199         etc. to 1 and not to __flash.
14200         Use LL suffix for __INT24_MAX__ with -mint8.
14201         Use ULL suffix for __UINT24_MAX__ with -mint8.
14203 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
14205         * config/avr/avr-arch.h
14206         (struct base_arch_s): Use typedef avr_arch_t instead.
14207         (struct arch_info_s): Use typedef avr_arch_info_t instead.
14208         (struct mcu_type_s): Use typedef avr_mcu_t instead.
14209         * config/avr/avr.c: Same.
14210         * config/avr/avr-devices.c: Same.
14211         * config/avr/driver-avr.c: Same.
14212         * config/avr/gen-avr-mmcu-texi.c: Same.
14213         * config/avr/avr-mcus.def: Adjust comment.
14215 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
14217         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
14218         * config/aarch64/iterators.md (VALLDI): New.
14220 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
14221             Andi Kleen  <ak@linux.intel.com>
14223         PR target/55948
14224         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
14225         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
14226         memmodel flag.
14228 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
14230         * config/avr/avr-stdint.h: Remove trailing blanks.
14231         * config/avr/avr-log.h: Same.
14232         * config/avr/avr-arch.h: Same.
14233         * config/avr/avr-devices.c: Same.
14234         * config/avr/avr-dimode.md: Same.
14235         * config/avr/predicates.md: Same.
14236         * config/avr/avr-c.c: Same.  And fix typo.
14238         * config/avr/avr-protos.h: Same.  And:
14239         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
14240         (init_cumulative_args): Rename to avr_init_cumulative_args.
14241         (expand_prologue): Rename to avr_expand_prologue.
14242         (expand_epilogue): Rename to avr_expand_epilogue.
14243         (adjust_insn_length): Rename to avr_adjust_insn_length.
14244         (notice_update_cc): Rename to avr_notice_update_cc.
14245         (final_prescan_insn): Rename to avr_final_prescan_insn.
14246         * config/avr/avr.c: Same.
14247         * config/avr/avr.h: Same.
14248         * config/avr/avr.md: Remove trailing blanks.
14249         (prologue): Use avr_expand_prologue.
14250         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
14252 2013-01-14  Richard Biener  <rguenther@suse.de>
14254         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
14255         verify_location, collect_subblocks): New functions.
14256         (verify_gimple_in_cfg): Verify that locations only reference
14257         BLOCKs in the functions BLOCK tree.
14259 2013-01-14  Richard Biener  <rguenther@suse.de>
14261         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
14262         PHI argument.
14263         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
14264         unshare reference.
14265         (insert_out_of_ssa_copy_on_edge): Likewise.
14266         (rewrite_close_phi_out_of_ssa): Likewise.
14267         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
14268         debug expressions.
14269         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
14270         propagated constants.
14271         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
14272         can not be shared.
14274 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
14276         * config/avr/avr-modes.def: Add GPL copyright notice.
14278 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
14280         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
14281         MEMMODEL_MASK to determine memory model.
14282         (atomic_store<mode>): Ditto from operands[2].
14283         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
14285 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
14287         PR fortran/55935
14288         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
14289         (fold_gimple_assign): Don't call unshare_expr here.
14290         (fold_ctor_reference): Call unshare_expr.
14292 2013-01-13  Terry Guo  <terry.guo@arm.com>
14294         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
14295         * doc/fragments.texi: Document MULTILIB_REUSE.
14296         * gcc.c (multilib_reuse): New internal spec.
14297         (set_multilib_dir): Also search multilib from multilib_reuse.
14298         * genmultilib (tmpmultilib3): Refactor code.
14299         (tmpmultilib4): Ditto.
14300         (multilib_reuse): New multilib argument.
14302 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
14304         * Makefile.in: Update copyright.
14306 2013-01-12  Tom de Vries  <tom@codesourcery.com>
14308         PR middle-end/55890
14309         * calls.c (expand_call): Check if arg_nr is valid.
14311 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
14313         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
14314         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
14315         documentation.  Add missing '__' in front of
14316         __builtin_ia32_packssdw256.
14318 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14320         PR target/55719
14321         * config/s390/s390.c (s390_preferred_reload_class): Do not return
14322         NO_REGS for larl operands.
14323         (s390_reload_larl_operand): Use s390_load_address instead of
14324         emit_move_insn.
14326 2013-01-11  Richard Biener  <rguenther@suse.de>
14328         * tree-cfg.c (verify_node_sharing_1): Split out from ...
14329         (verify_node_sharing): ... here.
14330         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
14332 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
14334         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
14335         Substitute TREECHECKING.
14336         * configure: Regenerate.
14337         * Makefile.in (TREECHECKING): New.
14339 2013-01-11  Richard Guenther  <rguenther@suse.de>
14341         PR tree-optimization/44061
14342         * tree-vrp.c (extract_range_basic): Compute zero as
14343         value-range for __builtin_constant_p of function parameters.
14345 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
14347         Update copyright years.
14349 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
14351         PR rtl-optimization/55672
14352         * lra-eliminations.c (mark_not_eliminable): Permit addition with
14353         const to be eliminable.
14355 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
14357         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
14358         * configure: Regenerate.
14360 2013-01-10  Richard Biener  <rguenther@suse.de>
14362         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
14364 2013-01-10  Richard Biener  <rguenther@suse.de>
14366         PR bootstrap/55792
14367         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
14368         locations for virtual PHI arguments.
14369         (rewrite_update_phi_arguments): Likewise.
14371 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
14373         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
14374         on to assembler.
14376 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
14378         PR tree-optimization/55921
14379         * tree-complex.c (expand_complex_asm): New function.
14380         (expand_complex_operations_1): Call it for GIMPLE_ASM.
14382 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14384         PR target/55718
14385         * config/s390/s390.c (s390_symref_operand_p)
14386         (s390_loadrelative_operand_p): Merge the two functions.
14387         (s390_check_qrst_address, print_operand_address): Add parameters
14388         to s390_loadrelative_operand_p invokation.
14389         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
14390         (s390_reload_larl_operand, s390_secondary_reload): Use
14391         s390_loadrelative_operand_p instead of s390_symref_operand_p.
14392         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
14394 2013-01-09  Mike Stump  <mikestump@comcast.net>
14396         * dse.c (record_store): Remove unnecessary assert.
14398 2013-01-09  Jan Hubicka  <jh@suse.cz>
14400         PR tree-optimization/55569
14401         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
14402         * cfgloop.h (scale_loop_profile): Likewise.
14404 2013-01-09  Jan Hubicka  <jh@suse.cz>
14406         PR lto/45375
14407         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
14408         functions.
14409         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
14411 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
14413         PR middle-end/55114
14414         * expr.h (maybe_emit_group_store): Declare.
14415         * expr.c (maybe_emit_group_store): New function.
14416         * builtins.c (expand_builtin_int_roundingfn): Call it.
14417         (expand_builtin_int_roundingfn_2): Likewise.
14419 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
14421         PR rtl-optimization/55829
14422         * lra-constraints.c (match_reload): Add code for absent output.
14423         (curr_insn_transform): Add code for reloads of matched inputs
14424         without output.
14426 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
14428         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
14429         attribute of movddup insn to DF.
14430         (*vec_interleave_lowv2df): Ditto.
14431         (vec_dupv2df): Ditto.
14433 2013-01-09  Jan Hubicka  <jh@suse.cz>
14435         PR tree-optimiation/55875
14436         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
14437         EVERY_ITERATION parameter.
14438         (number_of_iterations_exit): Check if exit is executed every iteration.
14439         (idx_infer_loop_bounds): Similarly here.
14440         (n_of_executions_at_most): Simplify
14441         to only test for cases where statement is dominated by the
14442         particular bound; handle correctly the "postdominance" test.
14443         (scev_probably_wraps_p): Use max loop iterations info
14444         as a global bound first.
14446 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
14447             Nick Clifton  <nickc@redhat.com>
14449         * config/v850/v850.md (cbranchsf4): New pattern.
14450         (cstoresf4): New pattern.
14451         (cbranchdf4): New pattern.
14452         (cstoredf4): New pattern.
14453         (movsicc): Disallow floating point comparisons.
14454         (cmpsf_le_insn): Fix order of operators.
14455         (cmpsf_lt_insn): Likewise.
14456         (cmpsf_eq_insn): Likewise.
14457         (cmpdf_le_insn): Likewise.
14458         (cmpdf_lt_insn): Likewise.
14459         (cmpdf_eq_insn): Likewise.
14460         (cmpsf_ge_insn): Use LE comparison.
14461         (cmpdf_ge_insn): Likewise.
14462         (cmpsf_gt_insn): Use LT comparison.
14463         (cmpdf_gt_insn): Likewise.
14464         (cmpsf_ne_insn): Delete pattern.
14465         (cmpdf_ne_insn): Delete pattern.
14466         * config/v850/v850.c (v850_gen_float_compare): Use
14467         gen_cmpdf_eq_insn for NE comparison.
14468         (v850_float_z_comparison_operator)
14469         (v850_float_nz_comparison_operator): Move from here ...
14470         * config/v850/predicates.md: ... to here.  Move GT and GE
14471         comparisons into v850_float_z_comparison_operator.
14472         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
14473         Delete prototype.
14474         (v850_float_nz_comparison_operator): Likewise.
14476 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14478         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
14479         with calls to gen_insvsi/gen_insvdi.
14481 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
14483         * config/i386/i386.c (initial_ix86_tune_features): Set up
14484         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
14486 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
14487             Jakub Jelinek  <jakub@redhat.com>
14489         PR tree-optimization/48189
14490         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
14491         If nitercst is 0, don't predict the exit edge.
14493 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14495         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
14496         in asm_fprintf with reg_names.
14497         (aarch64_print_operand_address): Likewise.
14498         (aarch64_return_addr): Likewise.
14499         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
14501 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14503         * config/pa/pa.h (VAL_U6_BITS_P): Define.
14504         (INT_U6_BITS): Likewise.
14505         * config/pa/predicates.md (uint6_operand): New predicate.
14506         (shift5_operand, shift6_operand): Likewise.
14507         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
14508         arith32_operand.
14509         (lshrdi3): Use shift6_operand.
14510         (shrpsi4, shrpdi4): New insn patterns.
14511         (extzv): Delete expander.
14512         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
14513         predicates in unamed zero extract patterns.  Tighten common constraint.
14514         (extv): Delete expander.
14515         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
14516         predicates in unamed sign extract patterns.  Tighten common constraint.
14517         (insv): Delete expander.
14518         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
14519         predicates in unamed insert patterns.  Tighten common constraint.
14520         Change uint32_operand predicate to uint6_operand predicate in unamed
14521         DImode pattern to insert constant values of type 1...1xxxx.
14523 2013-01-04  Jan Hubicka  <jh@suse.cz>
14525         PR tree-optimization/55823
14526         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
14527         issue.
14529 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
14530             Uros Bizjak  <ubizjak@gmail.com>
14532         PR rtl-optimization/55845
14533         * df-problems.c (can_move_insns_across): Stop scanning at
14534         volatile_insn_p source instruction or give up if
14535         across_from .. across_to range contains any volatile_insn_p
14536         instructions.
14538 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
14540         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
14541         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
14542         Declare.
14543         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
14544         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
14546 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
14548         PR fortran/55341
14549         * asan.c (asan_clear_shadow): New function.
14550         (asan_emit_stack_protection): Use it.
14552 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
14554         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
14555         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
14556         with tab instead of space.
14558 2013-01-08  Nick Clifton  <nickc@redhat.com>
14560         * config/rl78/rl78.c (rl78_expand_prologue): Always select
14561         register bank 0 at the start of an interrupt handler.
14562         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
14563         MDBH registers.
14565 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
14567         * config/aarch64/aarch64-simd.md
14568         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
14569         (aarch64_simd_bsl): Likewise.
14570         (aarch64_vcond_internal<mode>): Likewise.
14571         (vcond<mode><mode>): Likewise.
14572         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
14573         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
14575 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
14577         * config/aarch64/aarch64-builtins.c
14578         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
14580 2013-01-08  Martin Jambor  <mjambor@suse.cz>
14582         PR debug/55579
14583         * tree-sra.c (analyze_access_subtree): Return true also after
14584         potentially creating a debug-only replacement.
14586 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
14588         PR middle-end/55890
14589         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
14591         PR tree-optimization/54120
14592         * tree-vrp.c (range_fits_type_p): Don't allow
14593         src_precision < precision from signed vr to unsigned_p
14594         if vr->min or vr->max is negative.
14595         (simplify_float_conversion_using_ranges): Test can_float_p
14596         against CODE_FOR_nothing.
14598 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
14599             Richard Biener  <rguenther@suse.de>
14601         PR middle-end/55851
14602         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
14603         types instead of just INTEGER_TYPE types.
14605 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
14607         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
14608         TF_SIZE): Define.
14610 2013-01-07  Steve Ellcey  <sellcey@mips.com>
14612         PR target/42661
14613         * config/mips/mips.opt: Change mad to mmad to match documentation.
14615 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
14617         PR target/55897
14618         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
14619         .progmemx.data now.
14621 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
14623         PR target/55897
14624         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
14625         (avr_addrspace_t): Add .section_name field.
14626         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
14627         array size.
14628         (avr_addrspace): Same.  Initialize .section_name.  Remove last
14629         NULL entry.  Put __memx into .progmemx.data.
14630         (progmem_section_prefix): Remove.
14631         (avr_asm_init_sections): No need to initialize progmem_section.
14632         (avr_asm_named_section): Use avr_addrspace[].section_name to get
14633         section name prefix.
14634         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
14635         retrieve the progmem section.
14636         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
14637         boundary to run over avr_addrspace[].
14638         (avr_register_target_pragmas): Ditto.
14640 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
14642         * varasm.c (output_constant_def_contents): For asan_protect_global
14643         protected strings, adjust DECL_ALIGN if needed, before testing for
14644         anchored symbols.
14645         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
14646         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
14647         normal decls.
14648         (output_object_block): For asan protected decls, emit asan padding
14649         after their contents.
14650         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
14651         (asan_finish_file): Test it here instead.
14653 2013-01-07  Nick Clifton  <nickc@redhat.com>
14654             Matthias Klose  <doko@debian.org>
14655             Doug Kwan  <dougkwan@google.com>
14656             H.J. Lu  <hongjiu.lu@intel.com>
14658         PR driver/55470
14659         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
14661         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
14663         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
14665         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
14667         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
14669 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
14671         PR target/54461
14672         * doc/install.texi (Cross-Compiler-Specific Options): Document
14673         --with-avrlibc.
14675 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
14677         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
14678         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
14679         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
14680         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
14681         vqmovun_high_s64): Fix source operand number and update copyright.
14683 2013-01-07  Richard Biener  <rguenther@suse.de>
14685         PR middle-end/55890
14686         * gimple.h (gimple_call_builtin_p): New overload.
14687         * gimple.c (validate_call): New function.
14688         (gimple_call_builtin_p): Likewise.
14689         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14690         Use gimple_call_builtin_p.
14691         (find_func_clobbers): Likewise.
14692         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
14693         (strlen_optimize_stmt): Likewise.
14695 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
14697         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
14698         (vld1q_dup_*): Likewise.
14699         (vld1_*): Likewise.
14700         (vld1q_*): Likewise.
14701         (vld1_lane_*): Likewise.
14702         (vld1q_lane_*): Likewise.
14704 2013-01-07  Richard Biener  <rguenther@suse.de>
14706         * lto-streamer.h (LTO_minor_version): Bump to 2.
14708 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
14710         * config/aarch64/aarch64-protos.h
14711         (aarch64_const_double_zero_rtx_p): Rename to...
14712         (aarch64_float_const_zero_rtx_p): ...this.
14713         (aarch64_float_const_representable_p): New.
14714         (aarch64_output_simd_mov_immediate): Likewise.
14715         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
14716         move immediate case.
14717         * config/aarch64/aarch64.c
14718         (aarch64_const_double_zero_rtx_p): Rename to...
14719         (aarch64_float_const_zero_rtx_p): ...this.
14720         (aarch64_print_operand): Allow printing of new constants.
14721         (aarch64_valid_floating_const): New.
14722         (aarch64_legitimate_constant_p): Check for valid floating-point
14723         constants.
14724         (aarch64_simd_valid_immediate): Likewise.
14725         (aarch64_vect_float_const_representable_p): New.
14726         (aarch64_float_const_representable_p): Likewise.
14727         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
14728         (aarch64_output_simd_mov_immediate): New.
14729         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
14730         (*movdf_aarch64): Likewise.
14731         * config/aarch64/constraints.md (Ufc): New.
14732         (Y): call aarch64_float_const_zero_rtx.
14733         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
14735 2013-01-07  Richard Biener  <rguenther@suse.de>
14737         PR tree-optimization/55888
14738         PR tree-optimization/55862
14739         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
14740         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
14741         not if it is contained therein.
14743 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
14745         * config/avr/t-avr: Typo.
14747 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
14749         PR55243
14750         * config/avr/t-avr: Don't automatically rebuild
14751         $(srcdir)/config/avr/t-multilib
14752         $(srcdir)/config/avr/avr-tables.opt
14753         $(srcdir)/doc/avr-mmcu.texi
14754         (avr-mcus): New phony target to build them on request.
14755         (s-avr-mlib, s-avr-mmcu-texi): Remove.
14756         * avr/avr-mcus.def: Adjust comments.
14758 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
14760         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
14762 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
14764         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
14766 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
14768         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
14770 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
14772         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
14773         to generate profiling.
14774         * config/rs6000/aix64.h (LIB_SPEC): Same.
14776 2013-01-04  Andrew Pinski  <apinski@cavium.com>
14778         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
14779         New function.
14780         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
14782 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
14784         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
14785         unconditionally.
14786         (ix86_expand_move): Ditto.
14787         (ix86_zero_extend_to_Pmode): Ditto.
14788         (ix86_expand_call): Ditto.
14789         (ix86_expand_special_args_builtin): Ditto.
14790         (ix86_expand_builtin): Ditto.
14792 2013-01-04  Richard Biener  <rguenther@suse.de>
14794         PR tree-optimization/55862
14795         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
14796         translating them through PHI nodes.
14798 2013-01-04  Martin Jambor  <mjambor@suse.cz>
14800         PR tree-optimization/55755
14801         * tree-sra.c (sra_modify_assign): Do not check that an access has no
14802         children when trying to avoid producing a VIEW_CONVERT_EXPR.
14804 2013-01-04  Marek Polacek  <polacek@redhat.com>
14806         PR middle-end/55859
14807         * opts.c (default_options_optimization): Clarify error message.
14809 2013-01-04  Richard Biener  <rguenther@suse.de>
14811         PR middle-end/55863
14812         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
14813         reassociation.
14815 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14817         PR target/53789
14818         * config/pa/pa.md (movsi): Revert previous change.
14819         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
14820         references.
14822 2013-01-03  Richard Henderson  <rth@redhat.com>
14824         * config/i386/i386.c (ix86_expand_move): Always assign to op1
14825         after eliminating TLS symbols.
14827 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
14829         PR bootstrap/50167
14830         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
14831         * graphite-poly.c (debug_gmp_value): Likewise.
14833 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
14835         PR target/55712
14836         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
14837         selected code model, define __code_mode_small__, __code_model_medium__,
14838         __code_model_large__, __code_model_32__ or __code_model_kernel__.
14839         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
14840         xchg temporary register with %k.  Declare temporary register as
14841         early clobbered.
14842         [__x86_64__]: For medium and large code models, preserve %rbx register.
14844 2013-01-03  Richard Biener  <rguenther@suse.de>
14846         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
14847         (dump_subscript): Adjust.
14848         (finalize_ddr_dependent): Do not dump redundant info.
14849         (analyze_siv_subscript): Adjust.
14850         (subscript_dependence_tester): Likewise.
14851         (compute_affine_dependence): Likewise.
14853 2013-01-03  Richard Biener  <rguenther@suse.de>
14855         Revert
14856         2013-01-03  Richard Biener  <rguenther@suse.de>
14858         PR tree-optimization/55857
14859         * tree-vect-stmts.c (vectorizable_load): Do not setup
14860         re-alignment for invariant loads.
14862         2013-01-02  Richard Biener  <rguenther@suse.de>
14864         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
14865         invariant load do not generate a vector load from the scalar location.
14867 2013-01-03  Richard Biener  <rguenther@suse.de>
14869         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
14870         for not vectorizing.
14871         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
14872         not build INDIRECT_REFs, call get_name once only.
14873         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
14874         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
14876 2013-01-03  Richard Biener  <rguenther@suse.de>
14878         PR tree-optimization/55857
14879         * tree-vect-stmts.c (vectorizable_load): Do not setup
14880         re-alignment for invariant loads.
14882 2013-01-03  Richard Biener  <rguenther@suse.de>
14884         PR lto/55848
14885         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
14886         prefer a built-in decl.
14888 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
14890         * gcc.c (process_command): Update copyright notice dates.
14891         * gcov.c (print_version): Likewise.
14892         * gcov-dump.c (print_version): Likewise.
14894         PR rtl-optimization/55838
14895         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
14896         iv0.step, iv1.step and step.
14898 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
14899             Marc Glisse  <marc.glisse@inria.fr>
14901         PR tree-optimization/55832
14902         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
14903         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
14904         integer_{one,zero}_node.
14906 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
14908         PR debug/54402
14909         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
14910         * var-tracking.c (reverse_op): Don't add reverse ops to
14911         VALUEs that have already
14912         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
14914 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
14916         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
14918 2013-01-02  Teresa Johnson  <tejohnson@google.com>
14920         * dumpfile.c (dump_loc): Print filename with location.
14921         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
14922         new location_t parameter to emit complete unroll message with
14923         new dump framework.
14924         (canonicalize_loop_induction_variables): Compute loops location
14925         and pass to try_unroll_loop_completely.
14926         * loop-unroll.c (report_unroll_peel): New function.
14927         (peel_loops_completely): Use new dump format with location
14928         for main dumpfile message, and invoke report_unroll_peel on success.
14929         (decide_unrolling_and_peeling): Ditto.
14930         (decide_peel_once_rolling): Remove old dumpfile message subsumed
14931         by report_unroll_peel.
14932         (decide_peel_completely): Ditto.
14933         (decide_unroll_constant_iterations): Ditto.
14934         (decide_unroll_runtime_iterations): Ditto.
14935         (decide_peel_simple): Ditto.
14936         (decide_unroll_stupid): Ditto.
14937         * cfgloop.c (get_loop_location): New function.
14938         * cfgloop.h (get_loop_location): Declare.
14940 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
14942         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
14943         NULL.
14945 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14947         PR middle-end/55198
14948         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
14949         BLKmode objects when EXPAND_MEMORY is specified.
14951 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
14953         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
14954         in loop predicate.
14955         (fold_builtin_cpu): Do not share cpu model decls across statements.
14957 2013-01-02  Jason Merrill  <jason@redhat.com>
14959         PR c++/55804
14960         * tree.c (build_array_type_1): Revert earlier change.
14962 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
14964         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
14965         "cortex-a57".
14966         * config/aarch64/aarch64-tune.md: Re-generate.
14968 2013-01-02  Richard Biener  <rguenther@suse.de>
14970         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
14971         invariant load do not generate a vector load from the scalar location.
14973 2013-01-02  Richard Biener  <rguenther@suse.de>
14975         PR bootstrap/55784
14976         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
14977         * configure: Regenerate.
14979 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
14981         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
14982         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
14983         (expand_builtin_int_roundingfn_2): Keep the original target around
14984         for the fallback case.
14986 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
14988         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
14989         to be clear for sign changes.
14991 2013-01-01  Jan Hubicka  <jh@suse.cz>
14993         * ipa-inline-analysis.c: Fix formatting.
14995 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
14997         PR tree-optimization/55831
14998         * tree-vect-loop.c (get_initial_def_for_induction): Use
14999         gsi_after_labels instead of gsi_start_bb.
15001 Copyright (C) 2013 Free Software Foundation, Inc.
15003 Copying and distribution of this file, with or without modification,
15004 are permitted in any medium without royalty provided the copyright
15005 notice and this notice are preserved.